run-nx-generator
モノレポ環境で、コード生成や機能追加、反復作業の自動化を行う際に、ワークスペースのプラグインジェネレーターを優先的に実行し、効率的にNxジェネレーターを利用するSkill。
📜 元の英語説明(参考)
Run Nx generators with prioritization for workspace-plugin generators. Use this when generating code, scaffolding new features, or automating repetitive tasks in the monorepo.
🇯🇵 日本人クリエイター向け解説
モノレポ環境で、コード生成や機能追加、反復作業の自動化を行う際に、ワークスペースのプラグインジェネレーターを優先的に実行し、効率的にNxジェネレーターを利用するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o run-nx-generator.zip https://jpskill.com/download/19748.zip && unzip -o run-nx-generator.zip && rm run-nx-generator.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/19748.zip -OutFile "$d\run-nx-generator.zip"; Expand-Archive "$d\run-nx-generator.zip" -DestinationPath $d -Force; ri "$d\run-nx-generator.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
run-nx-generator.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
run-nx-generatorフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[Skill 名] run-nx-generator
Nx Generator の実行
このスキルは、Nx ジェネレーターを効率的に実行するのに役立ちます。特に、社内ツールからの workspace-plugin ジェネレーターに焦点を当てています。
ジェネレーターの優先順位リスト
ジェネレーターの使用方法の詳細については、mcp__nx-mcp__nx_generator_schema ツールを使用してください。
以下の優先順位で実行するジェネレーターを選択してください。
🔥 Workspace-Plugin ジェネレーター (高優先度)
これらは、tools/workspace-plugin/ にあるカスタムの社内ツールです。
📦 コア Nx ジェネレーター (標準)
workspace-plugin ジェネレーターが適さない場合にのみ、これらを使用してください。
nx generate @nx/devkit:...- DevKit ユーティリティnx generate @nx/node:...- Node.js ライブラリnx generate @nx/react:...- React コンポーネントとアプリ- フレームワーク固有のジェネレーター
ジェネレーターの実行方法
-
利用可能なジェネレーターをリスト表示する:
-
ジェネレーターのスキーマを取得する (利用可能なオプションを確認するため): ジェネレーターの使用方法の詳細については、
mcp__nx-mcp__nx_generator_schemaツールを使用してください。 -
ジェネレーターを実行する:
nx generate [generator-path] [options] -
変更を検証する:
- 生成されたファイルを確認する
- テストを実行する:
nx affected -t test - コードをフォーマットする:
npx prettier --write [files]
ベストプラクティス
- ✅ 常に workspace-plugin を最初に確認してください。カスタムソリューションが含まれています。
- ✅ 変更を適用する前に
--dry-runフラグを使用してプレビューしてください。 - ✅ 生成されたコードはすぐに Prettier でフォーマットしてください。
- ✅ 生成後に影響を受けるプロジェクトをテストしてください。
- ✅ ジェネレーターによる変更は手動での編集とは別にコミットしてください。
例
Maven バージョンの更新
Maven プラグインのバージョンを更新する場合は、workspace-plugin ジェネレーターを使用してください。
nx generate @nx/workspace-plugin:bump-maven-version \
--newVersion 0.0.10 \
--nxVersion 22.1.0-beta.7
これにより、手動でファイルを編集する代わりに、すべてのバージョン更新が自動化されます。
新しいプラグインの作成
新しい create-nodes プラグインを作成する場合:
nx generate @nx/workspace-plugin:create-nodes-plugin \
--name my-custom-plugin
このスキルを使用するタイミング
このスキルは、次のような場合に必要です。
- 新しいコードやプロジェクトを生成する
- 新しい機能やライブラリをスキャフォールドする
- 繰り返し発生するセットアップタスクを自動化する
- 社内ツールや設定を更新する
- マイグレーションやバージョン更新を作成する
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
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 generator -
Run the generator:
nx 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:
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.
Creating a New Plugin
For creating a new create-nodes plugin:
nx generate @nx/workspace-plugin:create-nodes-plugin \
--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