nx-generate

Generate libraries, applications, or boilerplate using Nx generators.

1.4k|245|Updated Jun 18, 2018
One-click install
npx skills add https://github.com/nrwl/nx-console --skill nx-generate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/nrwl/nx-console/tree/main/.cursor/skills/nx-generate
Command: npx skills add https://github.com/nrwl/nx-console --skill nx-generate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies scaffolding code in Nx workspaces by wrapping Nx generator commands into a guided, AI-assisted flow, ensuring consistent boilerplate generation.

Core Features & Use Cases

  • Guided Nx generator discovery and matching to user intent
  • Consistent boilerplate for libraries, applications, and migrations
  • Local workspace generators preferred over external plugins when possible

Quick Start

Run an example: nx generate @workspace/library --name=my-lib --no-interactive

Frequently Asked Questions about nx-generate

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

FAQPage Schema
How do I generate code scaffolding in an Nx workspace?

Nx generators create code scaffolding for libraries, applications, and boilerplate in your workspace. Run `nx generate @workspace/library --name=my-lib` or use built-in generators from Nx plugins to scaffold consistently across your monorepo with predefined templates.

Can I use local workspace generators instead of external plugins?

Yes. Nx prioritizes local workspace generators over external plugin generators when available, letting you maintain custom scaffolding rules specific to your monorepo structure and coding standards.

What do I need to run Nx generators?

You need Node.js installed, npm or yarn as your package manager, and Nx set up in your project. Generators execute with `--no-interactive` to ensure deterministic, repeatable scaffolding across team environments.

How do I discover which Nx generators are available for my project?

Nx generators are matched to your intent through guided discovery—the Skill identifies available local workspace generators and external plugins, then recommends the right generator for creating libraries, applications, or migrations.

Why use Nx generators instead of manual boilerplate?

Generators ensure consistent boilerplate across your workspace, eliminate manual setup errors, and scale scaffolding for teams building multiple libraries or applications in a monorepo with standardized structure and conventions.

Do Nx generators work with existing monorepo projects?

Yes. Nx generators integrate into existing monorepos to add new libraries, applications, or migrate code. They apply to any workspace running Nx, adding standardized scaffolding on top of your current project structure.