nx-generate

Scaffold Nx monorepo projects by orchestrating generators with dry-run validation.

Updated Feb 1, 2026
One-click install
npx skills add https://github.com/ramiz4/simple-pos --skill nx-generate-ramiz4
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/ramiz4/simple-pos/tree/main/.gemini/skills/nx-generate
Command: npx skills add https://github.com/ramiz4/simple-pos --skill nx-generate-ramiz4

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Nx generators help teams scaffold projects, migrate code, and automate repetitive tasks in an Nx monorepo, ensuring consistency and reducing boilerplate.

Core Features & Use Cases

  • Discover available generators across plugins and local workspace to identify the right scaffold for a given requirement.
  • Validate generator options and enforce non-interactive mode to support automation in CI and large teams.
  • Read generator source code to understand side effects, then apply changes with safe dry-run before actual execution.

Quick Start

Ask me to scaffold a new library or application and I will perform a dry-run Nx generate to validate changes before applying.

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 safely?

To scaffold a new library in an Nx monorepo, use Nx generators to validate options and perform a dry-run before applying changes. This ensures the project structure is created correctly without causing unintended side effects.

Can I use Nx generators to automate project scaffolding in CI pipelines?

Yes, Nx generators can automate project scaffolding in CI pipelines by enforcing non-interactive mode. This allows you to execute generators automatically without requiring manual input during the automation process.

What is the best way to discover available generators across Nx plugins?

The best way to discover available generators across Nx plugins is to query the workspace to identify local and plugin generators. This helps you find the right scaffold for your specific application or library requirements.

How do I validate generator options before applying changes to my workspace?

You can validate generator options before applying changes by reading the generator source code and running a dry-run with the --help flag. This verifies the exact options and side effects before actual execution in the workspace.

Does Nx generate support dry-run mode to preview structural changes?

Yes, Nx generate supports a dry-run mode to preview structural changes. It reads the generator source to understand side effects and applies a safe dry-run validation before executing the actual scaffolding process on the monorepo.

Why should I verify results after running an Nx generator?

You should verify results after running an Nx generator to ensure the newly scaffolded code integrates cleanly. Running lint, build, test, and typecheck commands confirms that the generated structure is valid and functional within the workspace.