Claude Codeプラグインを、特定の組織のツールやワークフロー(業務の流れ)に合わせてカスタマイズする。 次のような場合に使用: プラグインをカスタマイズしたい、プラグインを設定したい、プラグインを構成したい、プラグインを組織に合わせたい、プラグインの設定を調整したい、プラグインのコネクタ(接続機能)をカスタマイズしたい、プラグインのスキルをカスタマイズしたい、プラグインを微調整したい、プラグインの構成を変更したい
Customize a Claude Code plugin for a specific organization's tools and workflows. Use when: customize plugin, set up plugin, configure plugin, tailor plugin, adjust plugin settings, customize plugin connectors, customize plugin skill, tweak plugin, modify plugin configuration.
特定の組織向けにプラグインをカスタマイズします。汎用プラグインテンプレートを初めてセットアップする場合と、すでに設定済みのプラグインを調整・改善する場合の両方に対応しています。
プラグインの検索: プラグインのソースファイルを見つけるには、
find mnt/.local-plugins mnt/.plugins -type d -name "*<plugin-name>*"を実行してプラグインディレクトリを特定し、変更を加える前にファイルを読んで構造を把握してください。プラグインディレクトリが見つからない場合、ユーザーがリモートコンテナ上でこの会話を実行している可能性があります。その場合は処理を中止し、「プラグインのカスタマイズは現在、デスクトップアプリの Cowork モードでのみご利用いただけます。」とお知らせください。
プラグインを見つけたら、~~ プレフィックスのプレースホルダーを確認します:
grep -rn '~~\w' /path/to/plugin --include='*.md' --include='*.json'
デフォルトのルール:
~~プレースホルダーが存在する場合、ユーザーが特定の箇所のカスタマイズを明示的に指定しない限り、汎用プラグインセットアップをデフォルトとします。
1. 汎用プラグインセットアップ — プラグインに ~~ プレフィックスのプレースホルダーが含まれている状態です。これらはテンプレート内のカスタマイズポイントであり、実際の値に置き換える必要があります(例: ~~Jira → Asana、~~your-team-channel → #engineering)。
2. スコープ限定カスタマイズ — ~~ プレースホルダーが存在せず、ユーザーがプラグインの特定の箇所のカスタマイズを求めている場合です(例:「コネクターをカスタマイズして」「スタンドアップスキルを更新して」「チケットツールを変更して」)。プラグインファイルを読んで該当セクションを特定し、そこだけに集中してください。プラグイン全体をスキャンしたり、無関係なカスタマイズ項目を提示したりしないでください。
レガシーの
commands/ディレクトリ: 一部のプラグインにはcommands/ディレクトリが含まれています。Cowork UI では現在、これらをスキルと並べて単一の「Skills」概念として表示しているため、カスタマイズ時にはcommands/*.mdファイルをskills/*/SKILL.mdファイルと同様に扱ってください。
3. 一般カスタマイズ — ~~ プレースホルダーが存在せず、ユーザーがプラグイン全体を広く変更したい場合です。プラグインのファイルを読んで現在の設定を把握し、変更したい内容をユーザーに確認します。
重要: カスタマイズ対象のプラグインまたはスキルの名前は絶対に変更しないでください。ディレクトリ名・ファイル名・プラグイン/スキルの name フィールドはリネームしないでください。
非技術的な出力: ユーザー向けのすべての出力(ToDoリストの項目・質問・サマリー)は、平易で技術的でない言葉で記述してください。
~~プレフィックス・プレースホルダー・カスタマイズポイントといった表現はユーザーに対して使用しないでください。すべてをプラグインの機能と組織のツールという観点で説明してください。
スコープ限定カスタマイズと一般カスタマイズ(汎用プラグインセットアップを除く)では、ユーザーがリクエストと合わせて自由記述のコンテキストを提供しているかどうかを確認します(例:「スタンドアップスキルをカスタマイズして — 毎朝 #eng-updates で非同期スタンドアップをやっています」)。
コンテキストが提供されている場合: それを記録し、フェーズ 3 での回答の事前入力に活用します。ユーザーがすでに答えている質問は省略してください。
コンテキストが提供されていない場合: 処理を進める前に、AskUserQuestion を使って一つのオープンな質問をします。ユーザーがカスタマイズを求めた内容に合わせた質問にしてください(例:「brief スキルにどのような変更をお考えですか?」「このプラグインの動作についてどのような変更をご希望ですか?」)。短く、リクエストに的を絞った内容にしてください。
ユーザーの回答(ある場合)は、以降のフェーズ全体で追加コンテキストとして活用します。
社内ナレッジ MCP を使用して、カスタマイズのスコープに関連する情報を収集します。カテゴリ別の詳細なクエリパターンは references/search-strategies.md を参照してください。
収集すべき情報(関連するものに絞って収集):
検索対象のソース:
収集した情報はすべてフェーズ 3 で使用するために記録しておきます。
スコープに応じた変更の ToDoリストを作成します:
grep -rn '~~\w' /path/to/plugin --include='*.md' --include='*.json' を実行してすべてのプレースホルダーのカスタマイズポイントを特定し、テーマ別にグループ化します。プラグインの目的に焦点を当てた、ユーザーにわかりやすい説明を使用します:
フェーズ 0 およびフェーズ 1 で得たコンテキストを使いながら、各アイテムを順番に処理します。
ユーザーの自由記述(フェーズ 0)またはナレッジ MCP(フェーズ 1)から明確な回答が得られている場合: 確認なしに直接適用します。
それ以外の場合: AskUserQuestion を使用します。「業界標準」のデフォルト値が正しいとは思い込まないでください。ユーザーの入力にも MCP にも具体的な回答がない場合は、質問してください。なお、AskUserQuestion には常に「スキップ」ボタンとカスタム回答用の自由記述ボックスが含まれているため、選択肢として None や Other を含める必要はありません。
変更の種類:
~~Jira → Asana、~~your-org-channel → #engineeringtickets.example.com/your-team/123 → app.asana.com/0/PROJECT_ID/TASK_IDユーザーが不明・スキップした場合は、値を変更せずそのままにします(汎用セットアップの場合は ~~ プレフィックスのプレースホルダーのまま)。
カスタマイズ項目がすべて解決したら、特定または変更されたツールの MCP を接続します。完全なワークフロー・カテゴリとキーワードのマッピング・設定ファイルの形式については references/mcp-servers.md を参照してください。
カスタマイズ中に特定された各ツールについて:
references/mcp-servers.md のカテゴリキーワードを使って search_mcp_registry(keywords=[...]) を実行します。ツール名がすでにわかっている場合はそのツール名で直接検索します。suggest_connectors(directoryUuids=["chosen-uuid"]) を実行し、ユーザーが認証を完了します。plugin.json を確認し、それ以外の場合はルートの .mcp.json)。MCP の結果はすべてまとめて収集し、サマリー出力(後述)でまとめて提示します。このフェーズ中に MCP を一件ずつ提示しないでください。
すべてのカスタマイズが適用されたら、プラグインを .plugin ファイルとしてパッケージ化してユーザーに渡します:
setup/ は不要なので除外):cd /path/to/plugin && zip -r /tmp/plugin-name.plugin . -x "setup/*" && cp /tmp/plugin-name.plugin /path/to/outputs/plugin-name.plugin
.plugin 拡張子のファイルをユーザーに提示します。ユーザーはそのまま直接インストールできます。(.plugin ファイルを提示すると、ユーザーにはプラグインファイルを確認できるリッチプレビューが表示され、ボタンを押してカスタマイズを受け入れることができます。)重要: 必ず最初に
/tmp/に zip を作成してから、outputs フォルダーにコピーしてください。outputs フォルダーに直接書き込もうとすると、権限の問題で失敗し、一時ファイルが残ってしまう場合があります。
ファイル名:
.pluginファイルの名前には元のプラグインディレクトリ名を使用してください(例: プラグインディレクトリがcoderであれば、出力ファイルはcoder.pluginとします)。カスタマイズ中はプラグインやそのファイルのリネームは行わず、プレースホルダーの値の置き換えとコンテンツの更新のみを行ってください。
カスタマイズ後、何をどのソースから把握したかをソース別にまとめてユーザーに提示します。セットアップ中に接続された MCP と、まだ接続が必要な MCP を示すセクションは必ず含めてください:
## Slack の検索から
- プロジェクト管理には Asana を使用していること
- スプリントサイクルは 2 週間であること
## ドキュメントの検索から
- ストーリーポイントには T シャツサイズを使用していること
## ご回答から
- チケットのステータス: バックログ、進行中、レビュー中、完了
その後、セットアップ中に接続された MCP と、まだ接続が必要な MCP を提示し、接続方法を案内します。
フェーズ 1 でナレッジ MCP がまったく利用できず、ユーザーが少なくとも 1 つの質問に手動で回答する必要があった場合は、末尾に次の注記を追加します:
ちなみに、Slack や Microsoft Teams などのソースを接続しておくと、次回プラグインをカスタマイズする際に自動的に回答を見つけることができます。
Customize a plugin for a specific organization — either by setting up a generic plugin template for the first time, or by tweaking and refining an already-configured plugin.
Finding the plugin: To find the plugin's source files, run
find mnt/.local-plugins mnt/.plugins -type d -name "*<plugin-name>*"to locate the plugin directory, then read its files to understand its structure before making changes. If you cannot find the plugin directory, the user is likely running this conversation in a remote container. Abort and let them know: "Customizing plugins is currently only available in the desktop app's Cowork mode."
After locating the plugin, check for ~~-prefixed placeholders: grep -rn '~~\w' /path/to/plugin --include='*.md' --include='*.json'
Default rule: If
~~placeholders exist, default to Generic plugin setup unless the user explicitly asks to customize a specific part of the plugin.
1. Generic plugin setup — The plugin contains ~~-prefixed placeholders. These are customization points in a template that need to be replaced with real values (e.g., ~~Jira → Asana, ~~your-team-channel → #engineering).
2. Scoped customization — No ~~ placeholders exist, and the user asked to customize a specific part of the plugin (e.g., "customize the connectors", "update the standup skill", "change the ticket tool"). Read the plugin files to find the relevant section(s) and focus only on those. Do not scan the entire plugin or present unrelated customization items.
Legacy
commands/directories: Some plugins include acommands/directory. The Cowork UI now presents these alongside skills as a single "Skills" concept, so treatcommands/*.mdfiles the same way you wouldskills/*/SKILL.mdfiles when customizing.
3. General customization — No ~~ placeholders exist, and the user wants to modify the plugin broadly. Read the plugin's files to understand its current configuration, then ask the user what they'd like to change.
Important: Never change the name of the plugin or skill being customized. Do not rename directories, files, or the plugin/skill name fields.
Nontechnical output: All user-facing output (todo list items, questions, summaries) must be written in plain, nontechnical language. Never mention
~~prefixes, placeholders, or customization points to the user. Frame everything in terms of the plugin's capabilities and the organization's tools.
For scoped customization and general customization (not generic plugin setup), check whether the user provided free-form context alongside their request (e.g., "customize the standup skill — we do async standups in #eng-updates every morning").
If the user provided context: Record it and use it to pre-fill answers in Phase 3 — skip asking questions that the user already answered here.
If the user did not provide context: Ask a single open-ended question using AskUserQuestion before proceeding. Tailor the question to what they asked to customize — e.g., "What changes do you have in mind for the brief skill?" or "What would you like to change about how this plugin works?" Keep it short and specific to their request.
Use their response (if any) as additional context throughout the remaining phases.
Use company-internal knowledge MCPs to collect information relevant to the customization scope. See references/search-strategies.md for detailed query patterns by category.
What to gather (scope to what's relevant):
Sources to search:
Record all findings for use in Phase 3.
Build a todo list of changes to make, scoped appropriately:
grep -rn '~~\w' /path/to/plugin --include='*.md' --include='*.json' to find all placeholder customization points. Group them by theme.Use user-friendly descriptions that focus on the plugin's purpose:
Work through each item using context from Phase 0 and Phase 1.
If the user's free-form input (Phase 0) or knowledge MCPs (Phase 1) provided a clear answer: Apply directly without confirmation.
Otherwise: Use AskUserQuestion. Don't assume "industry standard" defaults are correct — if neither the user's input nor knowledge MCPs provided a specific answer, ask. Note: AskUserQuestion always includes a Skip button and a free-text input box for custom answers, so do not include None or Other as options.
Types of changes:
~~Jira → Asana, ~~your-org-channel → #engineeringtickets.example.com/your-team/123 → app.asana.com/0/PROJECT_ID/TASK_IDIf user doesn't know or skips, leave the value unchanged (or the ~~-prefixed placeholder, for generic setup).
After customization items have been resolved, connect MCPs for any tools that were identified or changed. See references/mcp-servers.md for the full workflow, category-to-keywords mapping, and config file format.
For each tool identified during customization:
search_mcp_registry(keywords=[...]) using category keywords from references/mcp-servers.md, or search for the specific tool name if already knownsuggest_connectors(directoryUuids=["chosen-uuid"]) — user completes authplugin.json for custom location, otherwise .mcp.json at root)Collect all MCP results and present them together in the summary output (see below) — don't present MCPs one at a time during this phase.
After all customizations are applied, package the plugin as a .plugin file for the user:
setup/ since it's no longer needed):cd /path/to/plugin && zip -r /tmp/plugin-name.plugin . -x "setup/*" && cp /tmp/plugin-name.plugin /path/to/outputs/plugin-name.plugin
.plugin extension so they can install it directly. (Presenting the .plugin file will show to the user as a rich preview where they can look through the plugin files, and they can accept the customization by pressing a button.)Important: Always create the zip in
/tmp/first, then copy to the outputs folder. Writing directly to the outputs folder may fail due to permissions and leave behind temporary files.
Naming: Use the original plugin directory name for the
.pluginfile (e.g., if the plugin directory iscoder, the output file should becoder.plugin). Do not rename the plugin or its files during customization — only replace placeholder values and update content.
After customization, present the user with a summary of what was learned grouped by source. Always include the MCPs sections showing which MCPs were connected during setup and which ones the user should still connect:
## From searching Slack
- You use Asana for project management
- Sprint cycles are 2 weeks
## From searching documents
- Story points use T-shirt sizes
## From your answers
- Ticket statuses are: Backlog, In Progress, In Review, Done
Then present the MCPs that were connected during setup and any that the user should still connect, with instructions on how to connect them.
If no knowledge MCPs were available in Phase 1, and the user had to answer at least one question manually, include a note at the end:
By the way, connecting sources like Slack or Microsoft Teams would let me find answers automatically next time you customize a plugin.
references/mcp-servers.md — MCP discovery workflow, category-to-keywords mapping, config file locationsreferences/search-strategies.md — Knowledge MCP query patterns for finding tool names and org valuesexamples/customized-mcp.json — Example fully configured .mcp.json原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。