by nrwl
在单体仓库中生成代码需要导航复杂的项目结构并选择正确的生成器。此技能优先使用工作区插件生成器用于自定义解决方案,并指导您通过适当的验证步骤运行生成器。
1. 打开 Claude 聊天界面
2. 点击下方 "📋 复制" 按钮
3. 粘贴到 Claude 聊天框中并发送
4. 输入 "使用 run-nx-generator 技能" 开始使用
=== run-nx-generator 技能 === 作者: nrwl 描述: 在单体仓库中生成代码需要导航复杂的项目结构并选择正确的生成器。此技能优先使用工作区插件生成器用于自定义解决方案,并指导您通过适当的验证步骤运行生成器。 使用方法: 1. 调用技能: "使用 run-nx-generator 技能" 2. 提供相关信息: 根据技能要求提供必要参数 3. 查看结果: 技能会返回处理结果 示例: "使用 run-nx-generator 技能,帮我分析一下这段代码"
这种方法适用于所有 Claude 用户,不需要安装额外工具。
coding
safe
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 testnpx 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:
View Count
0
Download Count
0
Favorite Count
0
Quality Score
69