Nx Workspace Patterns
wshobson/agents
Guidance for setting up and tuning Nx monorepos: project boundaries, library types, affected commands, remote caching and moving existing code into Nx.
Generate code using nx generators. An agent skill from nrwl/nx.
$ npx skills add nrwl/nx --skill nx-generate -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install nrwl/nx nx-generate --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/nrwl/nx.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/nx-generate .claude/skills/nx-generate && rm -rf skills-srcUse ~/.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/
Install the "nx-generate" agent skill from https://github.com/nrwl/nx/tree/master/.cursor/skills/nx-generate into .claude/skills/nx-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nx-generate", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/nrwl/nx/tree/master/.cursor/skills/nx-generateType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add nrwl/nx --skill nx-generate -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install nrwl/nx nx-generate --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nrwl/nx.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.cursor/skills/nx-generate .agents/skills/nx-generate && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "nx-generate" agent skill from https://github.com/nrwl/nx/tree/master/.cursor/skills/nx-generate into .agents/skills/nx-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nx-generate", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add nrwl/nx --skill nx-generate -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install nrwl/nx nx-generate --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nrwl/nx.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.cursor/skills/nx-generate .cursor/skills/nx-generate && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "nx-generate" agent skill from https://github.com/nrwl/nx/tree/master/.cursor/skills/nx-generate into .cursor/skills/nx-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nx-generate", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/nrwl/nx.git --path .cursor/skills/nx-generate--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add nrwl/nx --skill nx-generate -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install nrwl/nx nx-generate --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nrwl/nx.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.cursor/skills/nx-generate .gemini/skills/nx-generate && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "nx-generate" agent skill from https://github.com/nrwl/nx/tree/master/.cursor/skills/nx-generate into .gemini/skills/nx-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nx-generate", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install nrwl/nx nx-generateInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add nrwl/nx --skill nx-generate -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/nrwl/nx.git skills-src && mkdir -p .github/skills && cp -r skills-src/.cursor/skills/nx-generate .github/skills/nx-generate && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "nx-generate" agent skill from https://github.com/nrwl/nx/tree/master/.cursor/skills/nx-generate into .github/skills/nx-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nx-generate", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add nrwl/nx --skill nx-generate -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install nrwl/nx nx-generate --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nrwl/nx.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.cursor/skills/nx-generate .opencode/skills/nx-generate && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "nx-generate" agent skill from https://github.com/nrwl/nx/tree/master/.cursor/skills/nx-generate into .opencode/skills/nx-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nx-generate", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
nx-generateGenerate code using nx generators. An agent skill from nrwl/nx.
Nx Generate is an agent skill from nrwl/nx. Generate code using nx generators. USE WHEN scaffolding code or transforming existing code - for example creating libraries or applications, or anything else that is boilerplate code or automates repetitive tasks. ALWAYS use this first when generating code with Nx instead of calling MCP tools or running nx generate immediately.
Its SKILL.md is about 2.2k 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 Project scaffolding. It works with Nx. 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.
10 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 200edc8. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
nxnpxnodeFrom the folder's file list and the shell code blocks in SKILL.md.
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.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Nx Generate loads about 2.2k tokens when it runs. Until then it costs about 85 tokens; SKILL.md has 1,143 words of instructions outside code blocks.
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.
The automated check found no risky patterns in SKILL.md.
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.
The full file from nrwl/nx at commit 200edc8, republished under its MIT licence (© nrwl). 1,143 words, ~2,173 tokens.
.claude/skills/nx-generate/SKILL.md (or your agent's skills folder).Nx generators are powerful tools that scaffold projects, make automated code migrations or automate repetitive tasks in a monorepo. They ensure consistency across the codebase and reduce boilerplate work.
This skill applies when the user wants to:
Use the Nx CLI to discover available generators:
npx nx list @nx/reactnpx nx listThis includes:
@nx/react:library, @nx/js:library)Based on the user's request, identify which generator(s) could fulfill their needs. Consider:
IMPORTANT: When both a local workspace generator and an external plugin generator could satisfy the request, always prefer the local workspace generator. Local generators are customized for the specific repo's patterns and conventions.
It's possible that the user request is something that no Nx generator exists for whatsoever. In this case, you can stop using this skill and try to help the user another way. HOWEVER, the burden of proof for this is high. Before aborting, carefully consider each and every generator that's available. Look into details for any that could be related in any way before making this decision.
Before running any generator, complete these steps:
Use the --help flag to understand all available options:
npx nx g @nx/react:library --helpPay attention to:
Understanding what the generator actually does helps you:
To find generator source code:
node -e "console.log(require.resolve('@nx/<plugin>/generators.json'));" to find the generators.json, then locate the source from therenode_modules/<plugin>/generators.jsontools/generators/ or a local plugin directory. You can search the repo for the generator name to find it.Once you have built up an understanding of what the selected generator does, reconsider: Is this the right generator to service the user request? If not, it's okay to go back to the Generator Discovery Flow and select a different generator before proceeding. If you do, make sure to go through the entire pre-execution checklist once more.
Before generating, examine the target area of the codebase:
For example, if similar libraries are using a specific test runner, build tool or linter, try to match that if possible. If projects or other artifacts are organized with a specific naming convention, try to match it.
Ensure all required options have values:
Keep in mind that you might have to prefix things with npx/pnpx/yarn if the user doesn't have nx installed globally. Many generators will behave differently based on where they are executed. For example, first-party nx library generators use the cwd to determine the directory that the library should be placed in. This is highly important.
Running with --dry-run first is strongly encouraged but not mandatory. Use your judgment:
Execute the generator with:
nx generate <generator-name> <options> --no-interactiveCRITICAL: Always include --no-interactive to prevent prompts that would hang the execution.
Example:
nx generate @nx/react:library --name=my-utils --no-interactiveIf the generator fails:
Common failure reasons:
Generators provide a starting point, but the output may need adjustment to match the user's specific requirements:
Run formatting on all generated/modified files:
nx format --fixLanguages other than javascript/typescript might need other formatting invocations too.
Verify that the generated code works correctly. What this looks like will vary depending on the type of generator and the targets available. If the generator created a new project, run its targets directly Use your best judgement to determine what needs to be verified.
Example:
nx lint <new-project>
nx test <new-project>
nx build <new-project>When verification fails:
If scope is manageable (a few lint errors, minor type issues):
If issues are extensive (many errors, complex problems):
Local generators first - Always prefer workspace/local generators over external plugin generators when both could work
Understand before running - Read both the schema AND the source code to fully understand what will happen
No prompts - Always use --no-interactive to prevent hanging
Generators are starting points - Modify the output as needed to fully satisfy the user's requirements
Verify changes work - Don't just generate; ensure the code builds, lints, and tests pass
Be proactive about fixes - Don't just report errors; attempt to resolve them automatically when possible
Match repo patterns - Study existing similar code in the repo and match its conventions
© nrwl, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .cursor/skills/nx-generate of nrwl/nx.
Open the folder on GitHubat commit 200edc8
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in nrwl/nx, which our catalogue first saw on October 7, 2026.
Nx Generate 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Nx Generate this skillnrwl/nx | 29k | 1 repos | ~2.2k | Automated safety check: Pass | MIT | |
| Nx Workspace Patternswshobson/agents | 40k | 9 repos | ~547 | Automated safety check: Pass | MIT | |
| Frontmcp Setupagentfront/frontmcp | 146 | — | ~5.8k | Automated safety check: Pass | Apache-2.0 | |
| Nx Workspacenomcopter/react-mosaic | 4.8k | 8 repos | ~1.9k | Automated safety check: Pass | Custom licence | |
| Nx Run Tasksnomcopter/react-mosaic | 4.8k | 8 repos | ~613 | Automated safety check: Pass | Custom licence | |
| Nx Generatenomcopter/react-mosaic | 4.8k | 7 repos | ~1.9k | Automated safety check: Pass | Custom licence |
wshobson/agents
Guidance for setting up and tuning Nx monorepos: project boundaries, library types, affected commands, remote caching and moving existing code into Nx.
agentfront/frontmcp
A skill your agent uses when starting, scaffolding, or organizing a FrontMCP project.
nomcopter/react-mosaic
Explore and understand Nx workspaces. An agent skill from nomcopter/react-mosaic.
nomcopter/react-mosaic
Helps with running tasks in an Nx workspace. An agent skill from nomcopter/react-mosaic.
nomcopter/react-mosaic
Generate code using nx generators. An agent skill from nomcopter/react-mosaic.
DavidObando/gsharp
Forces the laziest solution that actually works, simplest, shortest, most minimal.
nrwl/nx
Monitor Nx Cloud CI pipeline and handle self-healing fixes. An agent skill from nrwl/nx.
nrwl/nx
Import, merge, or combine repositories into an Nx workspace using nx import.
nrwl/nx
Run Nx generators with prioritization for workspace-plugin generators.
nrwl/nx
Author or scope a first-party Nx migration. An agent skill from nrwl/nx.
nrwl/nx
Check modified Nx documentation pages against the astro-docs style guide.
nrwl/nx
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.
Works with
Categories
Generate code using nx generators. An agent skill from nrwl/nx. Nx Generate is an agent skill from nrwl/nx. Generate code using nx generators.
Nx Generate fits situations like: scaffolding code; transforming existing code - for example creating libraries; anything else that is boilerplate code; automates repetitive tasks.
Run `npx skills add nrwl/nx --skill nx-generate -a claude-code`. Or copy the skill folder (.cursor/skills/nx-generate in nrwl/nx) into .claude/skills/nx-generate in your project. Claude Code loads it when a task matches its description.
Run `npx skills add nrwl/nx --skill nx-generate -a codex`. Or copy the skill folder (.cursor/skills/nx-generate in nrwl/nx) into .agents/skills/nx-generate in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nrwl/nx --skill nx-generate -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/nx-generate, .gemini/skills/nx-generate, .github/skills/nx-generate and .opencode/skills/nx-generate in your project.
Going by SKILL.md and its folder, Nx Generate needs the command-line tools its instructions call (nx, npx and node). Our summary lists: Node.js.
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.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Nx Generate is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.2k tokens (SKILL.md is roughly 8.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Nx Generate: Nx Workspace Patterns (wshobson/agents, 40k stars), Frontmcp Setup (agentfront/frontmcp, 146 stars), Nx Workspace (nomcopter/react-mosaic, 4.8k stars) and Nx Run Tasks (nomcopter/react-mosaic, 4.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
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.