From copilot-consultant
Scans workspace for skills, agents, prompts, hooks, and MCP servers; packages selected customizations into distributable Agent Plugin bundles for Copilot or Claude formats.
npx claudepluginhub yuma-722/github-copilot-consultantThis skill uses the workspace's default tool permissions.
ワークスペースの既存 Copilot カスタマイズを Agent Plugin としてパッケージし、マーケットプレイスやローカルインストールで配布可能にする。
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Automates semantic versioning and release workflow for Claude Code plugins: bumps versions in package.json, marketplace.json, plugin.json; verifies builds; creates git tags, GitHub releases, changelogs.
ワークスペースの既存 Copilot カスタマイズを Agent Plugin としてパッケージし、マーケットプレイスやローカルインストールで配布可能にする。
Agent Plugin は、skills / agents / slash commands / hooks / MCP servers を1つのバンドルとしてまとめ、インストール可能にしたものである。VS Code では Preview 機能として提供されている(chat.plugins.enabled が必要)。
作成チェックリスト:
- [ ] Step 1: ワークスペースのカスタマイズをスキャンする
- [ ] Step 2: Pluginに含めるカスタマイズをヒアリングする
- [ ] Step 3: Pluginメタデータを収集する
- [ ] Step 4: Pluginディレクトリを生成する
- [ ] Step 5: 検証とドキュメント生成
以下のパスを走査し、既存カスタマイズの一覧を作成する:
| 種別 | 検索パス |
|---|---|
| Skills | .github/skills/*/SKILL.md |
| Agents | .github/agents/*.agent.md |
| Prompts(Slash Commands) | .github/prompts/*.prompt.md |
| Hooks | .github/hooks/*.json |
| MCP Servers | .mcp.json、mcp.json |
| Instructions | .github/instructions/*.instructions.md |
注意: instructions は Plugin に直接バンドルできない。skills や agents の本文に含めるか、除外する。
スキャン結果をもとに、#askQuestions ツールで以下を確認する:
質問1: どのカスタマイズをPluginに含めますか?
→ スキャン結果をオプションとして表示(multiSelect: true)
質問2: Plugin のフォーマットはどちらにしますか?
→ Copilot format(.github/plugin/plugin.json)← 推奨
→ Claude format(.claude-plugin/marketplace対応)
→ 両対応
一度に質問しすぎない。 最重要の2問から始め、追加は Step 3 で行う。
#askQuestions で Plugin メタデータを取得する:
質問: Plugin の基本情報を教えてください
- Plugin名(kebab-case、例: my-awesome-plugin)
- 説明文(何をするPluginか)
- バージョン(デフォルト: 1.0.0)
- キーワード(カンマ区切り、任意)
- 作者名
- リポジトリURL(任意)
- ライセンス(デフォルト: MIT)
選択されたカスタマイズと収集したメタデータをもとに、Plugin ディレクトリを生成する。
Plugin はワークスペースルートの plugins/<plugin-name>/ に生成する。
plugins/<plugin-name>/
├── .github/
│ └── plugin/
│ └── plugin.json # Copilot format メタデータ
├── skills/
│ └── <skill-name>/
│ └── SKILL.md # コピー元から複製
├── agents/
│ └── <agent-name>.agent.md # コピー元から複製
├── hooks/
│ └── hooks.json # hooks設定の統合
├── scripts/
│ └── <script-files> # hooksが参照するスクリプト
├── .mcp.json # MCP server定義(該当時のみ)
└── README.md # 自動生成ドキュメント
{
"name": "<plugin-name>",
"description": "<description>",
"version": "<version>",
"keywords": ["<keyword1>", "<keyword2>"],
"author": { "name": "<author>" },
"repository": "<repository-url>",
"license": "<license>",
"agents": ["./agents"],
"commands": ["./commands/<command-name>.md"],
"skills": ["./skills/<skill-name>"]
}
生成ルール:
agents: .agent.md ファイルがあるディレクトリパスを配列で列挙commands: prompt files を commands として配置(Pluginでは /plugin-name:command として提供される)skills: 各スキルのディレクトリパスを配列で列挙hooks.json、.mcp.json として配置(VS Code が自動検出)ワークスペースの prompt files(.prompt.md)は、Plugin では commands として扱われる。配置先を変更する:
元: .github/prompts/my-command.prompt.md
先: plugins/<plugin-name>/commands/my-command.md
フロントマターの description は維持する。tools や agents は Plugin コンテキストに合わせて調整する。
Plugin 内の hooks は ${CLAUDE_PLUGIN_ROOT} トークンを使ってスクリプトを参照する:
{
"hooks": {
"PostToolUse": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/format.sh"
}
]
}
}
ワークスペース内の相対パスを ${CLAUDE_PLUGIN_ROOT} ベースのパスに書き換える。
.mcp.json 内のパスも ${CLAUDE_PLUGIN_ROOT} トークンで書き換える:
{
"mcpServers": {
"my-server": {
"command": "${CLAUDE_PLUGIN_ROOT}/servers/my-server",
"args": ["--config", "${CLAUDE_PLUGIN_ROOT}/config.json"]
}
}
}
plugin.json に name、description、version が存在するagents、commands、skills の各パスが実在する${CLAUDE_PLUGIN_ROOT} を使用している${CLAUDE_PLUGIN_ROOT} を使用しているSKILL.md に name と description が存在する以下のテンプレートで README.md を生成する:
# <Plugin名>
<description>
## インストール
### マーケットプレイスから
copilot plugin install <plugin-name>@<marketplace>
### ローカルインストール
VS Code の `chat.pluginLocations` 設定に追加:
{
"<plugin-path>": true
}
## 含まれるカスタマイズ
### Skills
| スキル名 | 説明 |
|----------|------|
| ... | ... |
### Agents
| エージェント名 | 説明 |
|----------------|------|
| ... | ... |
### Commands
| コマンド | 説明 |
|----------|------|
| ... | ... |
## ライセンス
<license>
chat.plugins.enabled 設定が必要${CLAUDE_PLUGIN_ROOT} は Copilot / Claude 両方で動作する.github/plugin/plugin.json と .claude-plugin/ の両方に配置する