Agent Skill
2/7/2026

plugin-spec

Claude Code プラグインの全仕様知識を統合。plugin.json、commands、skills、agents、hooks の概要と個別スキルへの参照を提供。Use when understanding plugin structure, creating plugins, or validating plugin components.

B
biwakonbu
0GitHub Stars
2Views
npx skills add biwakonbu/cc-plugins

SKILL.md

Nameplugin-spec
DescriptionClaude Code プラグインの全仕様知識を統合。plugin.json、commands、skills、agents、hooks の概要と個別スキルへの参照を提供。Use when understanding plugin structure, creating plugins, or validating plugin components.

name: plugin-spec description: Claude Code プラグインの全仕様知識を統合。plugin.json、commands、skills、agents、hooks の概要と個別スキルへの参照を提供。Use when understanding plugin structure, creating plugins, or validating plugin components. context: fork user-invocable: false allowed-tools: Read, Grep, Glob

Plugin Spec スキル(統合版)

Claude Code プラグインの全仕様知識を統合して提供する。 詳細な仕様は個別スキルを参照。

Instructions

このスキルはプラグインの各コンポーネント(commands, skills, agents, hooks)の 概要を提供し、詳細は個別スキルに委譲します。

重要: 実装前に必ず公式ドキュメント(英語版)を確認し、最新の仕様に従ってください。

公式ドキュメント


個別仕様スキル

スキル説明詳細コマンド
command-speccommand の仕様知識/plugin-generator:create-command
skill-specskill の仕様知識/plugin-generator:create-skill
agent-specagent の仕様知識/plugin-generator:create-agent

各コンポーネントの詳細な仕様は上記スキルを参照してください。


plugin.json 仕様

プラグインのメタデータを定義するファイル。

必須フィールド

フィールド説明
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/"
}

コンポーネント概要

Commands

スラッシュコマンドを定義する Markdown ファイル。

  • 配置: commands/{command-name}.md
  • 必須: フロントマターに description
  • オプション: model(フルモデル ID)、allowed-tools
  • 詳細: command-spec スキルを参照

Skills

Claude が自動適用する知識・手順を定義する Markdown ファイル。

  • 配置: skills/{skill-name}/SKILL.md
  • 必須: フロントマターに name, description
  • オプション: allowed-tools, context, agent, user-invocable, hooks
  • 注意: model 指定は使用不可
  • v2.1.0+: context: fork でサブエージェントとして実行可能
  • 詳細: skill-spec スキルを参照

Agents

サブエージェントを定義する Markdown ファイル。

  • 配置: agents/{agent-name}.md
  • 必須: フロントマターに name, description
  • オプション: tools, model(短縮名), skills
  • 詳細: agent-spec スキルを参照

Hooks

イベント発生時に自動実行されるシェルコマンドを定義。

  • 配置: hooks/hooks.json
  • イベント: PreToolUse, PostToolUse, SessionStart, SessionEnd など
  • タイプ: command, prompt

model 指定の違い

コンポーネントmodel 指定形式
commands可能フルモデル ID(claude-haiku-4-5-20251001
skills不可-
agents可能短縮名(haiku, opus, inherit

注意: Sonnet は現在の Claude Code では推奨されません。


バリデーションルール

エラー(必須)

対象ルール
plugin.json存在必須
plugin.jsonname フィールド必須
パス参照先ディレクトリ/ファイル存在
commands/*.mdフロントマターに description 必須
skills/*/SKILL.mdフロントマターに name, description 必須
agents/*.mdフロントマターに name, description 必須
hooks.json有効な JSON 構文

警告(推奨)

対象ルール
plugin.jsonversion 推奨
plugin.jsondescription 推奨
プラグインルートCLAUDE.md 推奨

Examples

コンポーネント作成

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/(イベントフック)
Skills Info
Original Name:plugin-specAuthor:biwakonbu