Run Nx Generator
Automate code generation and scaffolding with intelligent Nx generators
✨ The solution you've been looking for
Run Nx generators with prioritization for workspace-plugin generators. Use this when generating code, scaffolding new features, or automating repetitive tasks in the monorepo.
See It In Action
Interactive preview & real-world examples
AI Conversation Simulator
See how users interact with this skill
User Prompt
I need to create a new UserProfile component in my React app with tests and stories
Skill Processing
Analyzing request...
Agent Response
Generated component files, test files, and storybook stories with proper imports and boilerplate code
Quick Start (3 Steps)
Get up and running in minutes
Install
claude-code skill install run-nx-generator
claude-code skill install run-nx-generatorConfig
First Trigger
@run-nx-generator helpCommands
| Command | Description | Required Args |
|---|---|---|
| @run-nx-generator scaffold-new-react-component | Generate a new React component with proper structure and tests | None |
| @run-nx-generator bump-maven-plugin-version | Automate version updates across multiple configuration files | None |
| @run-nx-generator create-custom-workspace-plugin | Generate a new create-nodes plugin for internal tooling | None |
Typical Use Cases
Scaffold New React Component
Generate a new React component with proper structure and tests
Bump Maven Plugin Version
Automate version updates across multiple configuration files
Create Custom Workspace Plugin
Generate a new create-nodes plugin for internal tooling
Overview
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 utilitiesnx generate @nx/node:...- Node.js librariesnx generate @nx/react:...- React components and apps- Framework-specific generators
How to Run Generators
List available generators:
Get generator schema (to see available options): Use the
mcp__nx-mcp__nx_generator_schematool to get more information about how to use the generatorRun the generator:
1nx generate [generator-path] [options]Verify the changes:
- Review generated files
- Run tests:
nx affected -t test - Format code:
npx prettier --write [files]
Best Practices
- ✅ Always check workspace-plugin first - it has your custom solutions
- ✅ Use
--dry-runflag to preview changes before applying - ✅ Format generated code immediately with Prettier
- ✅ 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:
1nx generate @nx/workspace-plugin:bump-maven-version \
2 --newVersion 0.0.10 \
3 --nxVersion 22.1.0-beta.7
This automates all the version bumping instead of manual file edits.
Creating a New Plugin
For creating a new create-nodes plugin:
1nx generate @nx/workspace-plugin:create-nodes-plugin \
2 --name my-custom-plugin
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
What Users Are Saying
Real feedback from the community
Environment Matrix
Dependencies
Framework Support
Context Window
Security & Privacy
Information
- Author
- nrwl
- Updated
- 2026-01-30
- Category
- automation-tools
Related Skills
Run Nx Generator
Run Nx generators with prioritization for workspace-plugin generators. Use this when generating …
View Details →Monorepo Management
Master monorepo management with Turborepo, Nx, and pnpm workspaces to build efficient, scalable …
View Details →Monorepo Management
Master monorepo management with Turborepo, Nx, and pnpm workspaces to build efficient, scalable …
View Details →