nx-generate

Automate Nx generator scaffolding and validate options with dry-run.

Updated Dec 12, 2025
One-click install
npx skills add https://github.com/MateusRoscoe/quantyx --skill nx-generate-mateusroscoe
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/MateusRoscoe/quantyx/tree/main/.cursor/skills/nx-generate
Command: npx skills add https://github.com/MateusRoscoe/quantyx --skill nx-generate-mateusroscoe

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Nx generators streamline scaffolding and project setup within a monorepo, eliminating boilerplate and ensuring consistent boilerplate across apps and libs.

Core Features & Use Cases

  • Discover and run local or plugin generators to create applications, libraries, and tooling within a workspace.
  • Validate generator options with --help, perform non-interactive runs, and verify changes with a dry-run before applying them.
  • Align new artifacts with existing project conventions by inspecting generator sources and repository patterns.

Quick Start

Generate a new library with an Nx generator using --no-interactive and verify with a dry-run first.

Frequently Asked Questions about nx-generate

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

FAQPage Schema
How do I automate scaffolding for a new library in an Nx monorepo?

Run Nx generators non-interactively to scaffold libraries or apps in a monorepo. Validate options with --help and verify changes with a --dry-run before applying them to your workspace.

What is the best way to ensure new apps and libs match existing workspace conventions?

Inspect generator sources and repository patterns to align new artifacts with existing conventions. This ensures consistent boilerplate across applications and libraries when scaffolding projects within the monorepo.

Can I run Nx generators non-interactively to automate project setup in CI?

Yes, Nx generators enforce non-interactive usage to automate project setup and migrations. This allows applying boilerplate code and generating applications or libraries without manual prompts.

How do I validate Nx generator options before modifying my workspace?

Validate generator options by checking --help output and performing a --dry-run. This verifies the exact changes before you actually apply them to the monorepo workspace.

What does an Nx generator do during a monorepo migration?

An Nx generator automates workspace migrations by applying boilerplate code and structural updates. It reads generator sources to determine behavior and executes changes non-interactively across the monorepo.

When should I use Nx generators instead of manually creating monorepo projects?

Use Nx generators when you need to eliminate boilerplate and ensure consistent structure across apps and libs. Manually creating projects risks divergence from established workspace conventions and patterns.