← スキル一覧に戻る

plugin-development
by ShunsukeHayashi
Miyabi Plugins for Claude Code - 25+ Agents, 22 Skills, 50+ Commands
⭐ 27🍴 14📅 2026年1月24日
SKILL.md
name: plugin-development description: Claude Code plugin development guide. Use when creating commands, skills, hooks, or agents for plugins. Triggers: plugin, command, skill, hook, agent development
Plugin Development
Plugin Structure
my-plugin/
├── .claude-plugin/
│ └── plugin.json # Required: metadata
├── commands/ # Slash commands
│ └── hello.md
├── agents/ # Subagents
│ └── reviewer.md
├── skills/ # Agent skills
│ └── code-review/
│ └── SKILL.md
├── hooks/ # Event handlers
│ └── hooks.json
└── .mcp.json # MCP server config
Creating Commands
File: commands/my-command.md
---
description: Short description for help
---
# Command Name
Instructions for Claude to execute this command.
Use $ARGUMENTS for user input.
Use $1, $2 for positional parameters.
Command naming: /plugin-name:command-name
Creating Skills
Directory: skills/my-skill/SKILL.md
---
name: my-skill
description: Description with triggers. Triggers: keyword1, keyword2
---
# My Skill
Instructions and workflows...
Creating Hooks
File: hooks/hooks.json
{
"hooks": {
"PostToolUse": [
{
"matcher": "Write|Edit",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/script.sh"
}
]
}
]
}
}
Supported Events
PreToolUse- Before tool executionPostToolUse- After successful executionPostToolUseFailure- After failed executionSessionStart- Session beginsSessionEnd- Session endsUserPromptSubmit- User sends prompt
Creating Agents
File: agents/my-agent.md
---
description: Agent specialization
capabilities: ["code-review", "testing"]
---
# Agent Name
Detailed role description...
Environment Variables
${CLAUDE_PLUGIN_ROOT}- Plugin root directory$TOOL_NAME- Current tool name$TOOL_INPUT- Tool input$TOOL_OUTPUT- Tool output
スコア
総合スコア
55/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
✓フォーク
10回以上フォークされている
+5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です