From plugin-generator
Claude Code プラグインの全仕様知識を統合。plugin.json、commands、skills、agents、hooks の概要と個別スキルへの参照を提供。Use when understanding plugin structure, creating plugins, or validating plugin components.
How this skill is triggered — by the user, by Claude, or both
Slash command
/plugin-generator:plugin-specThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Claude Code プラグインの全仕様知識を統合して提供する。
Claude Code プラグインの全仕様知識を統合して提供する。 詳細な仕様は個別スキルを参照。
このスキルはプラグインの各コンポーネント(commands, skills, agents, hooks)の 概要を提供し、詳細は個別スキルに委譲します。
重要: 実装前に必ず公式ドキュメント(英語版)を確認し、最新の仕様に従ってください。
| スキル | 説明 | 詳細コマンド |
|---|---|---|
command-spec | command の仕様知識 | /plugin-generator:create-command |
skill-spec | skill の仕様知識 | /plugin-generator:create-skill |
agent-spec | agent の仕様知識 | /plugin-generator:create-agent |
各コンポーネントの詳細な仕様は上記スキルを参照してください。
プラグインのメタデータを定義するファイル。
| フィールド | 説明 |
|---|---|
name | プラグイン識別子(kebab-case) |
| フィールド | 説明 |
|---|---|
version | セマンティックバージョン(例: "1.0.0") |
description | プラグインの説明 |
author | 作者情報({name, email?, url?}) |
license | ライセンス(例: "MIT") |
keywords | 検索用キーワード配列 |
| フィールド | 説明 |
|---|---|
commands | コマンドディレクトリ(例: "./commands/") |
skills | スキルディレクトリ(例: "./skills/") |
agents | エージェントディレクトリ(例: "./agents/") |
hooks | フック設定ファイル(例: "./hooks/hooks.json") |
{
"name": "my-plugin",
"description": "プラグインの説明",
"version": "1.0.0",
"author": { "name": "Author Name" },
"license": "MIT",
"keywords": ["keyword1", "keyword2"],
"commands": "./commands/",
"skills": "./skills/",
"agents": "./agents/"
}
スラッシュコマンドを定義する Markdown ファイル。
commands/{command-name}.mddescriptionmodel(フルモデル ID)、allowed-toolscommand-spec スキルを参照Claude が自動適用する知識・手順を定義する Markdown ファイル。
skills/{skill-name}/SKILL.mdname, descriptionallowed-tools, context, agent, user-invocable, hooksmodel 指定は使用不可context: fork でサブエージェントとして実行可能skill-spec スキルを参照サブエージェントを定義する Markdown ファイル。
agents/{agent-name}.mdname, descriptiontools, model(短縮名), skillsagent-spec スキルを参照イベント発生時に自動実行されるシェルコマンドを定義。
hooks/hooks.json| コンポーネント | model 指定 | 形式 |
|---|---|---|
| commands | 可能 | フルモデル ID(claude-haiku-4-5-20251001) |
| skills | 不可 | - |
| agents | 可能 | 短縮名(haiku, opus, inherit) |
注意: Sonnet は現在の Claude Code では推奨されません。
| 対象 | ルール |
|---|---|
| plugin.json | 存在必須 |
| plugin.json | name フィールド必須 |
| パス | 参照先ディレクトリ/ファイル存在 |
| commands/*.md | フロントマターに description 必須 |
| skills/*/SKILL.md | フロントマターに name, description 必須 |
| agents/*.md | フロントマターに name, description 必須 |
| hooks.json | 有効な JSON 構文 |
| 対象 | ルール |
|---|---|
| plugin.json | version 推奨 |
| plugin.json | description 推奨 |
| プラグインルート | CLAUDE.md 推奨 |
Q: 新しいコマンドを作りたい
A: `/plugin-generator:create-command {name}` を実行するか、
`command-spec` スキルを参照してください。
Q: 新しいスキルを作りたい
A: `/plugin-generator:create-skill {name}` を実行するか、
`skill-spec` スキルを参照してください。
Q: 新しいエージェントを作りたい
A: `/plugin-generator:create-agent {name}` を実行するか、
`agent-spec` スキルを参照してください。
Q: プラグインの構造を教えて
A: 基本構造は以下の通りです:
- .claude-plugin/plugin.json(必須)
- commands/(スラッシュコマンド)
- skills/(自動適用スキル)
- agents/(サブエージェント)
- hooks/(イベントフック)
npx claudepluginhub biwakonbu/cc-plugins --plugin plugin-generatorGuides creation of Claude Code plugins including skills, commands, agents, hooks, MCP servers, and configuration. Use for 'create plugin', 'make skill', scaffolding structures.
Guides Claude Code plugin setup including directory structure, plugin.json manifest, component organization for commands/agents/skills/hooks, auto-discovery, and naming conventions.
Quick-reference for editing Claude Code skills, agents, slash commands, hooks, plugins, and configs. Triggers on YAML frontmatter, .claude/ files, Task tools, hook debugging.