nx-generate

Scaffold apps and libraries in an Nx workspace using generators.

Updated Dec 20, 2025
One-click install
npx skills add https://github.com/iqbal125/typescript_projects --skill nx-generate-iqbal125
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/iqbal125/typescript_projects/tree/main/nestjs-react-monorepo-nx/.agents/skills/nx-generate
Command: npx skills add https://github.com/iqbal125/typescript_projects --skill nx-generate-iqbal125

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Nx generators streamline scaffolding and project structure in a monorepo by automating code creation, migrations, and boilerplate, ensuring consistency across apps and libs.

Core Features & Use Cases

  • Scaffold new apps or libraries with project-wide conventions.
  • Run workspace-specific or custom generators while aligning with repo patterns.
  • Verify results using lint, build, and type checks before commit.

Quick Start

Use the nx-generate skill to scaffold a new app or library within the workspace, ensuring a dry-run first and then running with --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 scaffold a new library in an Nx monorepo without interactive prompts?

To scaffold a library in an Nx monorepo without interactive prompts, select the appropriate local generator and execute a safe non-interactive run using the --no-interactive flag to ensure consistent project structure creation.

What is the safest way to run Nx generators for boilerplate migration?

The safest way to run Nx generators for boilerplate migration is to perform a dry-run first, allowing you to preview structural changes before applying them non-interactively to align with project conventions.

Can I discover workspace-specific custom generators before scaffolding code?

Yes, you can discover workspace-specific custom generators before scaffolding code. The process identifies local generators available within the Nx workspace to ensure new apps or libs align with repo patterns.

How do I validate code generation results in a TypeScript monorepo?

To validate code generation results in a TypeScript monorepo, run lint, test, build, and typecheck tasks immediately after scaffolding. This verifies the generated code passes all checks before commit.

Does Nx code generation work for adjusting existing workspace structure?

Yes, Nx code generation works for adjusting existing workspace structure. Generators automate structural changes and migrations, ensuring consistency across apps and libs while following established project conventions.