
Nx Generate
nrwl/nx-ai-agents-configOfficial
Generate Nx workspace code through local or plugin generators, with source reading, dry-runs, and verification built in.
- skills.sh installs
- 4K
- GitHub stars
- 29
- last updated
- Aug 21, 2026
What it does
- Covers discovery via
npx nx list, option inspection with--help, and generator source reading before any run - Enforces
--no-interactive, a--dry-runplacement check, and a prefer-local-generator rule when both local and plugin generators apply - Includes a buildable versus non-buildable library decision table, with non-buildable as the default
- Designed for scaffolding apps and libs, then running format plus build, lint, test, and typecheck across affected projects
Install
$ npx -y skills add nrwl/nx-ai-agents-config --skill nx-generate -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Run Nx Generator
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:
- Create new projects like libraries or applications
- Scaffold features or boilerplate code
- Run workspace-specific or custom generators
- Do anything else that an nx generator exists for
Key Principles
- Always use
--no-interactive- Prevents prompts that would hang execution - Read the generator source code - The schema alone is not enough; understand what the generator actually does
- Match existing repo patterns - Study similar artifacts in the repo and follow their conventions
- Verify with lint/test/build/typecheck etc. - Generated code must pass verification. The listed targets are just an example, use what's appropriate for this workspace.
Steps
1. Discover Available Generators
Use the Nx CLI to discover available generators:
- List all generators for a plugin:
npx nx list @nx/react - View available plugins:
npx nx list
Details
- Repository
- github.com/nrwl/nx-ai-agents-config
- Categories
- Frontend & UI Code, DevOps & Cloud
More from nrwl/nx-ai-agents-config
All 7Similar to Nx Generate
More Frontend & UI Code
nx-run-tasksSkillnrwl/nx-ai-agents-config4.1K installsCommand-line guide for running build, test, lint, and other targets across Nx workspace projects.
nx-workspaceSkillnrwl/nx-ai-agents-config94.9K installsRead-only exploration of Nx workspaces for projects, targets, configuration, and dependencies, with jq-friendly JSON output.
run-nx-generatorSkillnrwl/nx100 installsPriority-ordered Nx generator runner that favors workspace-plugin generators and checks schemas first.
nx-monorepoSkillgiuseppe-trisciuoglio/developer-kit3.9K installsGuided Nx monorepo workflows covering workspace setup, generators, affected-only task runs, CI/CD, and Module Federation.
nxSkillmindrally/skills718 installsBest-practices guide for Nx monorepos covering project layout, tagged module boundaries, generators, and cached affected builds.
RepomixMCP serveryamadashy29.4K starsPacks local or remote codebases into a single AI-readable file for LLMs and coding agents.