nx-generate

Generate applications and libraries within an Nx monorepo using Nx generators.

1|Updated Jun 12, 2024
One-click install
npx skills add https://github.com/cskiwi/badman-m3 --skill nx-generate-cskiwi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/cskiwi/badman-m3/tree/main/.claude/skills/nx-generate
Command: npx skills add https://github.com/cskiwi/badman-m3 --skill nx-generate-cskiwi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the process of creating and managing code within an Nx monorepo by leveraging its powerful code generation capabilities.

Core Features & Use Cases

  • Project Scaffolding: Quickly generate new applications, libraries, or features using Nx's built-in or custom generators.
  • Code Consistency: Ensures new code adheres to established project patterns and conventions.
  • Use Case: When starting a new feature, use this Skill to generate a new React component library, ensuring it's set up with the correct testing and linting configurations.

Quick Start

Use the nx-generate skill to create a new React library named 'ui-common' within the 'libs' directory.

Frequently Asked Questions about nx-generate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a new library in an Nx monorepo?

To scaffold a new library in an Nx monorepo, use Nx generators to create the code artifacts, ensuring the new library adheres to established workspace conventions and configurations.

What is the best way to ensure code consistency when generating new applications in Nx?

Using Nx generators ensures code consistency when generating new applications by automatically applying established project patterns, testing configurations, and linting rules to the new code artifacts.

Can I generate boilerplate code for a React component library using Nx?

Yes, you can generate boilerplate code for a React component library using Nx generators, which sets up the library with correct testing and linting configurations within your monorepo.

Do I need to understand existing project patterns to use Nx generators effectively?

Yes, effective utilization of Nx generators requires an understanding of existing project patterns, source code, and Nx generator schemas to ensure the generated code fits your workspace conventions.

How does code generation work within an Nx workspace?

Code generation within an Nx workspace works by leveraging Nx generators to create new applications, libraries, and boilerplate code, streamlining the process of managing code within the monorepo.

When should I use Nx generators to set up a new project feature?

You should use Nx generators to set up a new project feature when you need to quickly create new applications, libraries, or boilerplate code while strictly adhering to established workspace conventions.