nx-generate

Generate code artifacts in an Nx monorepo using Nx generators.

246|65|Updated Apr 27, 2019
One-click install
npx skills add https://github.com/udayvunnam/xng-breadcrumb --skill nx-generate-udayvunnam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/udayvunnam/xng-breadcrumb/tree/main/.gemini/skills/nx-generate
Command: npx skills add https://github.com/udayvunnam/xng-breadcrumb --skill nx-generate-udayvunnam

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of new projects, features, and boilerplate code within an Nx monorepo, ensuring consistency and reducing manual effort.

Core Features & Use Cases

  • Project Scaffolding: Quickly generate new applications and libraries.
  • Code Generation: Create boilerplate code for features or components.
  • Workspace Consistency: Enforces project structure and conventions across the monorepo.
  • Use Case: When a user wants to add a new React feature library to the project, this skill can generate the necessary files and 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 generate a new library in an Nx monorepo?

You can generate a new library in an Nx monorepo by using Nx generators to scaffold the project structure, automatically creating necessary files and configurations to ensure workspace consistency and reduce manual setup effort.

What is Nx code generation used for?

Used for automating the creation of new applications, libraries, and boilerplate features within a monorepo, Nx code generation enforces project structure conventions to ensure workspace consistency and reduce manual effort.

Does Nx scaffolding enforce existing workspace conventions?

Yes, Nx scaffolding enforces workspace conventions by requiring an understanding of existing generator schemas and project structures, ensuring generated code adheres to repository patterns and passes linting and testing verification.

Can I generate React applications and components using Nx generators?

You can generate React applications and components using Nx generators, which create the required boilerplate code and configuration files needed to add new feature libraries to your project.

What is the best way to add a new feature to an existing Nx workspace?

Using Nx generators to scaffold the boilerplate code is the best way to add a new feature to an Nx workspace, ensuring the new feature adheres to predefined project structures and passes linting and testing targets.

Why does generated Nx code need to understand existing project structures?

Understanding existing project structures ensures newly scaffolded Nx applications and features adhere to repository conventions, match generator schemas, and successfully pass linting and testing verification targets.