Agent skill

Run Nx Generator

by nrwl in nrwl/nx

Run Nx generators with prioritization for workspace-plugin generators.

MITAuto-check: notesDevelopment

Install Run Nx Generator

skills CLI
$ npx skills add nrwl/nx --skill run-nx-generator -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install nrwl/nx run-nx-generator --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/nrwl/nx.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/run-nx-generator .claude/skills/run-nx-generator && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
run-nx-generator
GitHub stars
29k
Used in
2 other repos
Token cost
~592 tokens
SKILL.md length
240 words
Files
1
Skills in repo
21
Repo updated
First seen
Licence
MIT

At a glance

Run Nx generators with prioritization for workspace-plugin generators.

  • Works in 4 steps: List available generators → Get generator schema (to see available… → Run the generator → …
  • Tasks that involve Monorepo tooling
  • SKILL.md covers Generator Priority List, How to Run Generators, Best Practices and Examples, plus 1 more section
  • Calls nx and npx

What it does

Run Nx Generator is an agent skill from nrwl/nx. Run Nx generators with prioritization for workspace-plugin generators. Use this when generating code, scaffolding new features, or automating repetitive tasks in the monorepo.

Its SKILL.md is about 590 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Monorepo tooling, Project scaffolding and Prioritization frameworks. It works with Model Context Protocol. The repository describes itself as: The Monorepo Platform that amplifies both developers and AI agents. Nx optimizes your builds, scales your CI, and fixes failed PRs automatically. Ship in half the time. The licence is MIT.

When your agent uses it

  • Tasks that involve Monorepo tooling
  • Tasks that involve Project scaffolding
  • Tasks that involve Prioritization frameworks

Example prompts

  • “/run-nx-generator”

Requirements

  • Node.js
  • Pre-approved tools (allowed-tools): Bash, Read, Glob, Grep, mcp__nx-mcp__nx_generators, mcp__nx-mcp__nx_generator_schema

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. List available generators
  2. Get generator schema (to see available options)
  3. Run the generator
  4. Verify the changes

What it can do on your machine

Read from SKILL.md and the folder at commit 200edc8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash
    • Read
    • Glob
    • Grep
    • mcp__nx-mcp__nx_generators
    • mcp__nx-mcp__nx_generator_schema

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • nx
    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Run Nx Generator loads about 592 tokens when it runs. Until then it costs about 48 tokens; SKILL.md has 240 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~48
When it runs · the whole SKILL.md, loaded when a task matches
~592

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash, Read, Glob, Grep, mcp__nx-mcp__nx_generators, mcp__nx-mcp__nx_generator_schema

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from nrwl/nx at commit 200edc8, republished under its MIT licence (© nrwl). 240 words, ~592 tokens.

Download SKILL.mdSave it as .claude/skills/run-nx-generator/SKILL.md (or your agent's skills folder).
name
run-nx-generator
description
Run Nx generators with prioritization for workspace-plugin generators. Use this when generating code, scaffolding new features, or automating repetitive tasks in the monorepo.
allowed-tools
Bash, Read, Glob, Grep, mcp__nx-mcp__nx_generators, mcp__nx-mcp__nx_generator_schema

Run Nx Generator

This skill helps you execute Nx generators efficiently, with special focus on workspace-plugin generators from your internal tooling.

Generator Priority List

Use the mcp__nx-mcp__nx_generator_schema tool to get more information about how to use the generator

Choose which generators to run in this priority order:

🔥 Workspace-Plugin Generators (High Priority)

These are your custom internal tools in tools/workspace-plugin/

📦 Core Nx Generators (Standard)

Only use these if workspace-plugin generators don't fit:

  • nx generate @nx/devkit:... - DevKit utilities
  • nx generate @nx/node:... - Node.js libraries
  • nx generate @nx/react:... - React components and apps
  • Framework-specific generators

How to Run Generators

  1. List available generators:

  2. Get generator schema (to see available options): Use the mcp__nx-mcp__nx_generator_schema tool to get more information about how to use the generator

  3. Run the generator:

    bash
    nx generate [generator-path] [options]
  4. Verify the changes:

    • Review generated files
    • Run tests: nx affected -t test
    • Format code: npx oxfmt [files]

Best Practices

  • ✅ Always check workspace-plugin first - it has your custom solutions
  • ✅ Use --dry-run flag to preview changes before applying
  • ✅ Format generated code immediately with oxfmt
  • ✅ Test affected projects after generation
  • ✅ Commit generator changes separately from manual edits

Examples

Bumping Maven Version

When updating the Maven plugin version, use the workspace-plugin generator:

bash
nx generate @nx/workspace-plugin:bump-maven-version \
  --newVersion 0.0.10 \
  --nxVersion 22.1.0-beta.7

This automates all the version bumping instead of manual file edits.

When to Use This Skill

Use this skill when you need to:

  • Generate new code or projects
  • Scaffold new features or libraries
  • Automate repetitive setup tasks
  • Update internal tools and configurations
  • Create migrations or version updates

© nrwl, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/run-nx-generator of nrwl/nx.

Open the folder on GitHubat commit 200edc8

Used in 2 other repositories

We found 4 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in nrwl/nx, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Run Nx Generator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Run Nx Generator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Run Nx Generator this skillnrwl/nx29k2 repos~592Automated safety check: NotesMIT
Scaffold ProjectMarve10s/Better-Fullstack756—~716Automated safety check: PassMIT
Tsed CLItsedio/tsed3.1k—~2.7kAutomated safety check: PassMIT
Trellis Spec Bootstarpanjiemo/SunnyBeach1787 repos~740Automated safety check: PassApache-2.0
Code Review Graph Navigatorhandsontable/handsontable22k—~939Automated safety check: PassCustom licence
Create Vechain Dappvechain/x-app-template450—~1.8kAutomated safety check: PassMIT

Similar skills

  • Scaffold Project

    Marve10s/Better-Fullstack

    Scaffold a new app, API, backend, fullstack project, mobile app, polyglot service, monorepo, or starter with Better Fullstack.

    756 GitHub stars~716 tokensUpdated today
    DevelopmentAuto-check passed
  • Tsed CLI

    tsedio/tsed

    Scaffolds Ts.ED v8 projects and generates files with the Ts.ED CLI v7, through its MCP server (tools set-workspace, init-project, list-templates, get-template, generate-file) or the tsed binary…

    3.1k GitHub stars~2.7k tokensUpdated today
    DevelopmentAuto-check passed
  • Trellis Spec Bootstarp

    anjiemo/SunnyBeach

    Bootstrap project-specific Trellis coding specs with a platform-neutral single-agent workflow.

    178 GitHub starsUsed in 7 repos~740 tokens
    DevelopmentAuto-check passed
  • Code Review Graph Navigator

    handsontable/handsontable

    Queries a pre-built, Tree-sitter-based code graph of the whole monorepo instead of grepping call chains, for exploring, debugging, refactoring or reviewing code.

    22k GitHub stars~939 tokensUpdated today
    DevelopmentAuto-check passed
  • Create Vechain Dapp

    vechain/x-app-template

    Scaffold a VeChain dApp with Next.js, VeChain Kit, Chakra UI v3, and GitHub Pages deployment.

    450 GitHub stars~1.8k tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • Build or evolve a complex agent-enabled Tutti workspace app repository.

    3.8k GitHub stars~1.9k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Monitor CI

    nrwl/nx

    Monitor Nx Cloud CI pipeline and handle self-healing fixes. An agent skill from nrwl/nx.

    29k GitHub starsUsed in 6 repos~4.7k tokens
    Auto-check passed
  • Nx Import

    nrwl/nx

    Import, merge, or combine repositories into an Nx workspace using nx import.

    29k GitHub starsUsed in 6 repos~3.5k tokens
    Auto-check passed
  • Author or scope a first-party Nx migration. An agent skill from nrwl/nx.

    29k GitHub stars~12k tokensUpdated today
    Auto-check: notes
  • Generate code using nx generators. An agent skill from nrwl/nx.

    29k GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed
  • Check modified Nx documentation pages against the astro-docs style guide.

    29k GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Sync docs commits from master out to the live docs branches in the nx repo: cherry-picks docs( / feat(nx-dev) commits onto website-<major AND the latest <major.<minor.x release branch.

    29k GitHub stars~1.2k tokensUpdated today
    Auto-check passed

Questions about Run Nx Generator

What does Run Nx Generator do?

Run Nx generators with prioritization for workspace-plugin generators. Run Nx Generator is an agent skill from nrwl/nx. Run Nx generators with prioritization for workspace-plugin generators.

When should I use Run Nx Generator?

Run Nx Generator fits situations like: tasks that involve Monorepo tooling; tasks that involve Project scaffolding; tasks that involve Prioritization frameworks.

How do I install Run Nx Generator in Claude Code?

Run `npx skills add nrwl/nx --skill run-nx-generator -a claude-code`. Or copy the skill folder (.claude/skills/run-nx-generator in nrwl/nx) into .claude/skills/run-nx-generator in your project. Claude Code loads it when a task matches its description.

How do I install Run Nx Generator in Codex?

Run `npx skills add nrwl/nx --skill run-nx-generator -a codex`. Or copy the skill folder (.claude/skills/run-nx-generator in nrwl/nx) into .agents/skills/run-nx-generator in your project. Codex loads it when a task matches its description.

Can I use Run Nx Generator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nrwl/nx --skill run-nx-generator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/run-nx-generator, .gemini/skills/run-nx-generator, .github/skills/run-nx-generator and .opencode/skills/run-nx-generator in your project.

What does Run Nx Generator need to run?

Going by SKILL.md and its folder, Run Nx Generator needs the command-line tools its instructions call (nx and npx). Our summary lists: Node.js. Its frontmatter pre-approves these tools: Bash, Read, Glob, Grep, mcp__nx-mcp__nx_generators, mcp__nx-mcp__nx_generator_schema.

Does Run Nx Generator access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Run Nx Generator safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Run Nx Generator use?

Run Nx Generator is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Run Nx Generator use?

About 592 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Run Nx Generator?

Skills that share tags, products or a category with Run Nx Generator: Scaffold Project (Marve10s/Better-Fullstack, 756 stars), Tsed CLI (tsedio/tsed, 3.1k stars), Trellis Spec Bootstarp (anjiemo/SunnyBeach, 178 stars) and Code Review Graph Navigator (handsontable/handsontable, 22k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Run Nx Generator?

nrwl (a GitHub organization) maintains it in nrwl/nx, which has 29,401 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on October 10, 2026.

Source: nrwl/nx on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.