🔧cowork-plugin-customizer
- プラグイン
- Plugin Management
- ソース
- GitHub で見る ↗
説明
特定の組織のツールおよびワークフローに合わせて、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.
ユースケース
- ✓プラグインをカスタマイズする
- ✓プラグインをセットアップする
- ✓プラグイン設定を変更する
- ✓プラグインコネクターをカスタマイズする
本文(日本語訳)
Cowork プラグインのカスタマイズ
特定の組織向けにプラグインをカスタマイズします。汎用プラグインテンプレートを初めてセットアップする場合と、すでに設定済みのプラグインを調整・改善する場合の両方に対応しています。
プラグインの検索: プラグインのソースファイルを見つけるには、
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リストの項目・質問・サマリー)は、平易で技術的でない言葉で記述してください。
~~プレフィックス・プレースホルダー・カスタマイズポイントといった表現はユーザーに対して使用しないでください。すべてをプラグインの機能と組織のツールという観点で説明してください。
カスタマイズのワークフロー
フェーズ 0: ユーザーの意図を把握する(スコープ限定カスタマイズおよび一般カスタマイズのみ)
スコープ限定カスタマイズと一般カスタマイズ(汎用プラグインセットアップを除く)では、ユーザーがリクエストと合わせて自由記述のコンテキストを提供しているかどうかを確認します(例:「スタンドアップスキルをカスタマイズして — 毎朝 #eng-updates で非同期スタンドアップをやっています」)。
-
コンテキストが提供されている場合: それを記録し、フェーズ 3 での回答の事前入力に活用します。ユーザーがすでに答えている質問は省略してください。
-
コンテキストが提供されていない場合: 処理を進める前に、AskUserQuestion を使って一つのオープンな質問をします。ユーザーがカスタマイズを求めた内容に合わせた質問にしてください(例:「brief スキルにどのような変更をお考えですか?」「このプラグインの動作についてどのような変更をご希望ですか?」)。短く、リクエストに的を絞った内容にしてください。
ユーザーの回答(ある場合)は、以降のフェーズ全体で追加コンテキストとして活用します。
フェーズ 1: ナレッジ MCP からコンテキストを収集する
社内ナレッジ MCP を使用して、カスタマイズのスコープに関連する情報を収集します。カテゴリ別の詳細なクエリパターンは references/search-strategies.md を参照してください。
収集すべき情報(関連するものに絞って収集):
- 組織が使用しているツール名・サービス名
- 組織のプロセスとワークフロー
- チームの規約(命名規則・ステータス・見積もりスケールなど)
- 設定値(ワークスペース ID・プロジェクト名・チーム識別子など)
検索対象のソース:
- Chat/Slack MCP — ツールへの言及・インテグレーション・ワークフローに関する議論
- ドキュメント MCP — オンボーディング資料・ツールガイド・セットアップ手順
- メール MCP — ライセンス通知・管理者メール・セットアップ招待
収集した情報はすべてフェーズ 3 で使用するために記録しておきます。
フェーズ 2: ToDoリストを作成する
スコープに応じた変更の ToDoリストを作成します:
- スコープ限定カスタマイズの場合: ユーザーが指定したセクションに関連する項目のみを含めます。
- 汎用プラグインセットアップの場合:
grep -rn '~~\w' /path/to/plugin --include='*.md' --include='*.json'を実行してすべてのプレースホルダーのカスタマイズポイントを特定し、テーマ別にグループ化します。 - 一般カスタマイズの場合: プラグインファイルを読んで現在の設定を把握し、ユーザーのリクエストに基づいて変更が必要な箇所を特定します。
プラグインの目的に焦点を当てた、ユーザーにわかりやすい説明を使用します:
- 良い例: 「会社でのスタンドアップ準備の進め方を確認する」
- 悪い例: 「skills/standup-prep/SKILL.md のプレースホルダーを置き換える」
フェーズ 3: ToDoアイテムを完了する
フェーズ 0 およびフェーズ 1 で得たコンテキストを使いながら、各アイテムを順番に処理します。
ユーザーの自由記述(フェーズ 0)またはナレッジ MCP(フェーズ 1)から明確な回答が得られている場合: 確認なしに直接適用します。
それ以外の場合: AskUserQuestion を使用します。「業界標準」のデフォルト値が正しいとは思い込まないでください。ユーザーの入力にも MCP にも具体的な回答がない場合は、質問してください。なお、AskUserQuestion には常に「スキップ」ボタンとカスタム回答用の自由記述ボックスが含まれているため、選択肢として None や Other を含める必要はありません。
変更の種類:
- プレースホルダーの置き換え(汎用セットアップ):
~~Jira→Asana、~~your-org-channel→#engineering - コンテンツの更新: 組織に合わせた指示・スキル・ワークフロー・参照内容の変更
- URL パターンの更新:
tickets.example.com/your-team/123→app.asana.com/0/PROJECT_ID/TASK_ID - 設定値: ワークスペース ID・プロジェクト名・チーム識別子
ユーザーが不明・スキップした場合は、値を変更せずそのままにします(汎用セットアップの場合は ~~ プレフィックスのプレースホルダーのまま)。
フェーズ 4: 有用な MCP を検索する
カスタマイズ項目がすべて解決したら、特定または変更されたツールの MCP を接続します。完全なワークフロー・カテゴリとキーワードのマッピング・設定ファイルの形式については references/mcp-servers.md を参照してください。
カスタマイズ中に特定された各ツールについて:
- レジストリを検索:
references/mcp-servers.mdのカテゴリキーワードを使ってsearch_mcp_registry(keywords=[...])を実行します。ツール名がすでにわかっている場合はそのツール名で直接検索します。 - 未接続の場合:
suggest_connectors(directoryUuids=["chosen-uuid"])を実行し、ユーザーが認証を完了します。 - プラグインの MCP 設定ファイルを更新します(カスタムの場所は
plugin.jsonを確認し、それ以外の場合はルートの.mcp.json)。
MCP の結果はすべてまとめて収集し、サマリー出力(後述)でまとめて提示します。このフェーズ中に MCP を一件ずつ提示しないでください。
プラグインのパッケージング
すべてのカスタマイズが適用されたら、プラグインを .plugin ファイルとしてパッケージ化してユーザーに渡します:
- プラグインディレクトリを zip 圧縮する(
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 などのソースを接続しておくと、次回プラグインをカスタマイズする際に自動的に回答を見つけることができます。
追加リソース
原文(English)を表示
Cowork Plugin Customization
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."
Determining the Customization 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.
Customization Workflow
Phase 0: Gather User Intent (scoped and general customization only)
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.
Phase 1: Gather Context from Knowledge MCPs
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):
- Tool names and services the organization uses
- Organizational processes and workflows
- Team conventions (naming, statuses, estimation scales)
- Configuration values (workspace IDs, project names, team identifiers)
Sources to search:
- Chat/Slack MCPs — tool mentions, integrations, workflow discussions
- Document MCPs — onboarding docs, tool guides, setup instructions
- Email MCPs — license notifications, admin emails, setup invitations
Record all findings for use in Phase 3.
Phase 2: Create Todo List
Build a todo list of changes to make, scoped appropriately:
- For scoped customization: Only include items related to the specific section the user asked about.
- For generic plugin setup: Run
grep -rn '~~\w' /path/to/plugin --include='*.md' --include='*.json'to find all placeholder customization points. Group them by theme. - For general customization: Read the plugin files, understand the current config, and based on the user's request, identify what needs to change.
Use user-friendly descriptions that focus on the plugin's purpose:
- Good: "Learn how standup prep works at Company"
- Bad: "Replace placeholders in skills/standup-prep/SKILL.md"
Phase 3: Complete Todo Items
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:
- Placeholder replacements (generic setup):
~~Jira→Asana,~~your-org-channel→#engineering - Content updates: Modifying instructions, skills, workflows, or references to match the organization
- URL pattern updates:
tickets.example.com/your-team/123→app.asana.com/0/PROJECT_ID/TASK_ID - Configuration values: Workspace IDs, project names, team identifiers
If user doesn't know or skips, leave the value unchanged (or the ~~-prefixed placeholder, for generic setup).
Phase 4: Search for Useful MCPs
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 the registry:
search_mcp_registry(keywords=[...])using category keywords fromreferences/mcp-servers.md, or search for the specific tool name if already known - If unconnected:
suggest_connectors(directoryUuids=["chosen-uuid"])— user completes auth - Update the plugin's MCP config file (check
plugin.jsonfor custom location, otherwise.mcp.jsonat 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.
Packaging the Plugin
After all customizations are applied, package the plugin as a .plugin file for the user:
- Zip the plugin directory (excluding
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 - Present the file to the user with the
.pluginextension 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.
Summary Output
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.
Additional Resources
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 による自動翻訳です。