plugin-development
БесплатноБез исполняемых скриптовНе проверенComplete guide to building Claude Code plugins — manifest schema, command/skill/agent/hook authoring, MCP server development, marketplace publishing, and…
от TheLobbi★ 22 звезды на GitHubОб этом скилле
Plugin Development Complete Guide
Building Claude Code plugins means creating directories, manifests, and markdown files that extend Claude's capabilities through commands, skills, agents, and hooks.
Plugin Anatomy
Every plugin follows this directory structure:
my-plugin/
├── .claude-plugin/
│ └── plugin.json # Manifest (REQUIRED)
├── commands/ # Slash commands
│ ├── index.json # Command index (optional)
│ └── my-command.md
├── skills/ # Knowledge packs
│ ├── skill-name/
│ │ └── SKILL.md
│ └── another-skill/
│ └── SKILL.md
├── agents/ # Specialized workers
│ ├── index.json # Agent index (optional)
│ ├── my-agent.md
│ └── another-agent.md
├── hooks/ # Lifecycle scripts
│ ├── hooks.json # Hook configuration
│ ├── my-hook.sh
│ └── scripts/
│ └── helper.sh
├── mcp-server/ # Optional: custom MCP server
│ ├── src/
│ │ └── index.js
│ ├── package.json
│ └── dist/
├── CLAUDE.md # Plugin routing guide (recommended)
├── CONTEXT_SUMMARY.md # Bootstrap context (recommended, 700 tokens max)
└── README.md # Marketplace documentation
Manifest Schema (plugin.json)
Located at .claude-plugin/plugin.json, the manifest defines plugin identity, permissions, and capabilities.
Required Fields
| Field | Type | Example |
|---|---|---|
$schema |
string | "https://claude.local/schemas/plugin.schema.json" |
name |
string | "my-awesome-plugin" |
version |
string | "1.0.0" (semver) |
description |
string | One-line summary (50-80 chars) |
author.name |
string | Your name or org |
license |
string | "MIT" or other SPDX |
permissions.requires |
string[] | Minimum permissions needed |
Example Manifest
{
"$schema": "https://claude.local/schemas/plugin.schema.json",
"name": "my-awesome-plugin",
"version": "1.0.0",
"description": "Does something amazing with Claude Code",
"author": {
"name": "Your Name"
},
"license": "MIT",
"repository": "https://github.com/user/my-awesome-plugin",
"keywords": [
"automation",
"productivity",
"development"
],
"permissions": {
"requires": [
"read",
"write"
],
"optional": [
"bash",
"agent",
"mcp"
]
},
"capabilities": {
"provides": [
"my-custom-capability"
],
"requires": []
},
"contextEntry": "CONTEXT_SUMMARY.md",
"context": {
"entry": "CONTEXT_SUMMARY.md",
"title": "My Awesome Plugin",
"summary": "Essential context for using the plugin",
"tags": [
"automation",
"claude-code"
],
"bootstrapFiles": [
"CONTEXT_SUMMARY.md"
],
"maxTokens": 700,
"excludeGlobs": [
"**/node_modules/**",
"**/.git/**"
],
"lazyLoadSections": [
"CLAUDE.md",
"commands/advanced.md",
"skills/expert-mode/SKILL.md"
]
}
}
Manifest Fields Explained
$schema: Validates against Claude's plugin schema. Use as shown above.
name: Unique identifier (lowercase, hyphens). Used in claude plugin install commands.
version: Semantic versioning. Increment when publishing updates (1.0.0 → 1.0.1 for patches, 1.1.0 for features, 2.0.0 for breaking changes).
permissions.requires: Minimum permissions needed. Plugin will not load without these:
read— read fileswrite— write filesbash— execute shell commandsagent— spawn subagentsmcp— use MCP serversnetwork— external HTTP
permissions.optional: Nice-to-have permissions. Plugin works without them but features are limited.
capabilities.provides: Custom capabilities your plugin exposes. Use for plugin discovery and dependency resolution.
contextEntry: Points to the bootstrap file. Always "CONTEXT_SUMMARY.md".
context.bootstrapFiles: Files loaded into context when plugin installs. Keep to 700 tokens.
context.lazyLoadSections: Files loaded on-demand when user references them. Helps large plugins stay responsive.
context.excludeGlobs: Patterns to exclude from context scanning (node_modules, build artifacts, etc.).
Command Authoring
Commands are markdown files in the commands/ directory with YAML frontmatter and implementation body.
Command Frontmatter Schema
---
name: my-command
intent: What this command does (one sentence)
inputs:
- name: description
- task: what the user wants
- query: optional search term
flags:
- name: force
type: boolean
description: Skip confirmations
- name: output
type: choice
choices: [json, text, html]
description: Output format
risk: low
cost: low
tags:
- my-plugin
- productivity
---
Command Body Structure
After frontmatter, the body contains:
- **Usage Exa
Установить plugin-development в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditGlobGrepBashFAQ
Что делает скилл plugin-development?
Complete guide to building Claude Code plugins — manifest schema, command/skill/agent/hook authoring, MCP server development, marketplace publishing, and testing
Как установить скилл plugin-development?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл plugin-development запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic