run-nx-generator
Run Nx generators with prioritization for workspace-plugin generators. Use this when generating code, scaffolding new features, or automating repetitive tasks in the monorepo.
Security Assessment
About run-nx-generator
The 'run-nx-generator' skill is designed to streamline the process of executing Nx generators, particularly emphasizing the use of workspace-plugin generators that are tailored for internal tooling. This skill addresses the common challenge of efficiently generating code, scaffolding new features, and automating repetitive tasks within a monorepo, enabling developers to focus on delivering value rather than getting bogged down by manual processes. By providing a structured approach to generator execution, it helps maintain consistency and reduces the potential for errors during code generation.
FAQ
What are workspace-plugin generators?
Workspace-plugin generators are custom tools located in 'tools/workspace-plugin/' that are prioritized for use in your projects.
Can I use core Nx generators with this skill?
Yes, core Nx generators can be used when workspace-plugin generators do not meet your needs.
What tools are required to use this skill?
The skill requires tools such as Bash, Read, Glob, Grep, and specific Nx generator tools.
Is there a way to preview changes before applying them?
Yes, you can use the '--dry-run' flag to preview changes before applying.
What should I do after running a generator?
You should verify the changes by reviewing generated files, running tests, and formatting the code.
Install run-nx-generator
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
nrwl/nx