This skill helps you execute Nx generators efficiently, with special focus on workspace-plugin generators from your internal tooling.
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:
These are your custom internal tools in tools/workspace-plugin/
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 appsList available generators:
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
Run the generator:
nx generate [generator-path] [options]
Verify the changes:
nx affected -t test
npx prettier --write [files]
--dry-run flag to preview changes before applyingWhen updating the Maven plugin version, use the workspace-plugin generator:
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.
For creating a new create-nodes plugin:
nx generate @nx/workspace-plugin:create-nodes-plugin \
--name my-custom-plugin
Use this skill when you need to: