1. Habit
  2. Skills
  3. Run Nx Generator skill
nrwl · 4K installs

Run Nx Generator skill
Runs by itself, you ask to scaffold.

Scaffolded code that passes checks.

Install the Run Nx Generator skill and make it a habit: follow https://gethabit.dev/skills/nrwl/nx-generate.md

  1. 1Copy
  2. 2Paste into Claude Code, Codex or Cursor
  3. 3It runs by itself

4K installs29 starsMIT licenceSource on GitHub ↗

Run Nx Generator

by nrwl · 4K installs

The skill

Run Nx Generator (the nx-generate skill) scaffolds libraries, apps and features in an Nx monorepo: it finds the right generator, reads its source, dry-runs, generates and verifies with build, lint, test and typecheck.

Only when you ask.

The habit

Scaffolded code that passes checks.

↻ Runs by itselfyou ask to scaffold

How the habit works.
You don't have to.

Three questionsWhen does it start? How does it check its work? What does it remember?

One run, step by step.
Then it stops.

Stop ruleStops after one generator run per request, with at most 2 fix retries before escalating to you.

  1. 01

    Discover

    Your agent lists generators with npx nx list to find what the workspace offers.

  2. 02

    Match

    It picks the generator for your request, preferring a local workspace generator over an external one.

  3. 03

    Read options and source

    It reads the --help options and the generator source to learn exactly what it creates.

  4. 04

    Study patterns

    It looks at similar existing projects for naming, structure and tooling.

  5. 05

    Dry-run

    It runs the generator with --dry-run --no-interactive to check file placement.

  6. 06

    Generate

    It runs the generator with --no-interactive and adjusts the generated code if needed.

  7. 07

    Format and verify

    It runs nx format --fix, then build, lint, test and typecheck across affected projects.

What it may do.
Nothing more.

Safe by defaultIt writes only in its own folder and asks you before anything goes out.

Is it for you?
Use it when it fits.

Quick checkRead both lists. If the left one sounds like you, the Run Nx Generator skill helps.

Use it when

  • ✓ creating a new library or app in Nx
  • ✓ running a workspace or plugin generator
  • ✓ scaffolding boilerplate consistently

Skip it when

  • – the repo is not an Nx monorepo
  • – no suitable generator exists

Questions

Run Nx Generator skill, answered.

Why read the generator source?

The schema alone does not show side effects. Reading the source shows which files and configs it really touches.

What if no generator fits?

It stops and says so. The burden of proof is high, so it checks all generators before deciding none apply.

How do I install the Run Nx Generator skill?

Copy the prompt at the top into your agent. It installs the skill from nrwl/nx-ai-agents-config and sets up the habit. Or run npx skills add nrwl/nx-ai-agents-config --skill nx-generate.

Is the Run Nx Generator skill free?

Yes. It is published under MIT. Habit is free too.

Run Nx Generator. Now as a habit.

Install the Run Nx Generator skill and make it a habit: follow https://gethabit.dev/skills/nrwl/nx-generate.md

  • Free
  • No account
  • Undo in one line

All nrwl skills →More code skills →

Works in

  • Claude Code
  • Codex
  • Cursor
  • ChatGPT
  • Claude app

Made by nrwl, published under MIT. Habit links to the original and never changes it. Is this your skill?

Copying didn't work here. Select the line and copy it by hand.