/context-engineering:plugin-devfrom context-engineering
Creates and refines Claude Code plugins. Guides directory structure, plugin.json configuration, marketplace distribution, and installation workflows.
Ships in context-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill helps create production-ready Claude Code plugins following Anthropic's official plugin specifications.
A plugin is a bundled collection of Claude Code components that work together to provide cohesive functionality. Plugins enable:
| Approach | When to Use |
|---|---|
| Individual Components | Single capability, personal use, experimental |
| Plugin | Multiple related components, team distribution, reusable across projects |
Example - Individual approach:
.claude/agents/postgres-expert.md (one file).claude/commands/test.md (one file)Example - Plugin approach:
database-toolkit/ plugin containing:
Design consideration: Claude supports 20-50 skills simultaneously. When designing plugins with multiple skills, keep each skill focused and avoid overlap. Beyond 50 simultaneous skills, activation accuracy may decrease. Consider bundling related capabilities into fewer, more comprehensive skills rather than many narrow ones.
plugin-name/
├── .claude-plugin/
│ └── plugin.json # Required: Plugin metadata
├── agents/ # Optional: Sub-agent definitions
│ ├── agent-one.md
│ └── agent-two.md
├── skills/ # Optional: Skill definitions
│ ├── skill-one/
│ │ ├── SKILL.md # Do NOT add README.md inside skill dirs
│ │ ├── examples/
│ │ └── assets/ # Optional: Static resources
│ └── skill-two/
│ └── SKILL.md
├── commands/ # Optional: Slash commands
│ ├── command-one.md
│ └── subfolder/
│ └── command-two.md
├── hooks/ # Optional: Hook configurations
│ └── hooks.json
├── .mcp.json # Optional: MCP server integrations
├── .lsp.json # Optional: LSP server integrations
├── templates/ # Optional: Code templates
│ └── template-files/
├── patterns/ # Optional: Design patterns
│ └── pattern-docs/
├── README.md # Recommended: Plugin documentation
└── LICENSE # Recommended: License file
Required file: .claude-plugin/plugin.json
{
"name": "database-toolkit",
"version": "1.0.0",
"description": "Comprehensive database management toolkit with experts for PostgreSQL, MongoDB, and SQL",
"author": {
"name": "Your Name",
"email": "[email protected]",
"url": "https://example.com"
},
"homepage": "https://github.com/username/database-toolkit",
"license": "MIT",
"repository": "https://github.com/username/database-toolkit",
"keywords": [
"database",
"postgresql",
"mongodb",
"sql",
"migration",
"optimization"
]
}
name (required)
database-toolkit, api-testing-suiteversion (required)
MAJOR.MINOR.PATCH1.0.0, 2.3.1-betadescription (required)
author (required)
name (required), email (optional), and url (optional){"name": "Your Name", "email": "[email protected]", "url": "https://example.com"}homepage (optional)
"https://github.com/username/plugin-name"license (recommended)
MIT, Apache-2.0, GPL-3.0"SEE LICENSE IN <filename>"repository (recommended)
"https://github.com/username/plugin-name"keywords (optional)
Component path overrides (optional)
commands, agents, skills, hooks, mcpServers, outputStyles, lspServers"agents": ["./custom-agents/expert.md"]Focused on one domain with minimal structure.
database-migration/
├── .claude-plugin/
│ └── plugin.json
├── agents/
│ └── migration-expert.md
├── skills/
│ └── schema-evolution/
│ └── SKILL.md
├── commands/
│ ├── migrate.md
│ └── rollback.md
└── README.md
Comprehensive toolkit with multiple agents and capabilities.
full-stack-toolkit/
├── .claude-plugin/
│ └── plugin.json
├── agents/
│ ├── backend/
│ │ ├── fastapi-expert.md
│ │ └── nodejs-expert.md
│ ├── frontend/
│ │ ├── react-expert.md
│ │ └── nextjs-expert.md
│ └── database/
│ └── postgres-expert.md
├── skills/
│ ├── api-testing/
│ ├── deployment/
│ └── monitoring/
├── commands/
│ ├── dev/
│ │ ├── start-dev.md
│ │ └── run-tests.md
│ └── deploy/
│ └── production-deploy.md
├── templates/
│ ├── api-endpoint/
│ ├── react-component/
│ └── database-schema/
└── README.md
Includes external tool integrations.
devops-toolkit/
├── .claude-plugin/
│ └── plugin.json
├── agents/
│ ├── docker-expert.md
│ └── k8s-expert.md
├── mcp/
│ ├── docker-cli/
│ │ └── config.json
│ └── kubectl/
│ └── config.json
├── skills/
│ └── container-orchestration/
└── README.md
Interactive interface:
/plugin
Opens plugin browser with search and installation UI.
Direct installation:
/plugin install plugin-name@marketplace-name
From local path:
/plugin install /path/to/plugin-directory
From Git URL:
/plugin install https://github.com/user/plugin-name.git
Configure in .claude/settings.json:
{
"plugins": {
"database-toolkit": {
"source": "github:username/database-toolkit",
"version": "^1.0.0",
"enabled": true
},
"local-plugin": {
"source": "file:../plugins/local-plugin",
"enabled": true
}
}
}
Benefits:
marketplace.json format:
{
"name": "company-plugins",
"description": "Internal company plugin marketplace",
"plugins": [
{
"name": "database-toolkit",
"description": "Database management toolkit",
"version": "1.0.0",
"source": "github:company/database-toolkit",
"author": "Company DevOps",
"keywords": ["database", "postgresql", "migration"]
},
{
"name": "api-testing",
"description": "API testing and validation suite",
"version": "2.1.0",
"source": "github:company/api-testing",
"author": "Company QA",
"keywords": ["testing", "api", "validation"]
}
]
}
Users add your marketplace:
/plugin marketplace add https://company.com/plugins/marketplace.json
Or from local file:
/plugin marketplace add file:///path/to/marketplace.json
Develop plugin locally:
cd plugins/my-plugin
# Create .claude-plugin/plugin.json
# Add agents, skills, commands
# Test locally
Create repository:
git init
git add .
git commit -m "Initial plugin release"
git tag v1.0.0
git push origin main --tags
Add to marketplace:
{
"plugins": [{
"name": "my-plugin",
"source": "github:username/my-plugin",
"version": "1.0.0"
}]
}
Announce and distribute:
Group related agents by domain:
agents/
├── database/
│ ├── postgres-expert.md
│ └── mongodb-expert.md
├── api/
│ ├── rest-api-expert.md
│ └── graphql-expert.md
└── infrastructure/
├── docker-expert.md
└── k8s-expert.md
Organize by capability:
skills/
├── data-processing/
│ ├── SKILL.md
│ └── examples/
├── api-testing/
│ ├── SKILL.md
│ └── templates/
└── deployment-automation/
├── SKILL.md
└── scripts/
Group by workflow or domain:
commands/
├── development/
│ ├── start-dev.md
│ ├── run-tests.md
│ └── lint-code.md
├── database/
│ ├── migrate.md
│ └── seed-data.md
└── deployment/
├── deploy-staging.md
└── deploy-production.md
Install plugin locally:
/plugin install /absolute/path/to/plugin-directory
Verify components loaded:
/agents # Check agents available
/commands # Check commands available
Test each component:
Check for conflicts:
Add to project settings:
{
"plugins": {
"test-plugin": {
"source": "file:../plugins/test-plugin",
"enabled": true
}
}
}
Have team members clone project:
git clone project-repo
# Plugin auto-installs
Collect feedback:
Follow semver:
MAJOR (1.0.0 → 2.0.0): Breaking changes
MINOR (1.0.0 → 1.1.0): New features (backward compatible)
PATCH (1.0.0 → 1.0.1): Bug fixes
Maintain CHANGELOG.md:
# Changelog
## [1.1.0] - 2025-01-15
### Added
- New mongodb-expert agent
- /db-backup command
### Changed
- Improved postgres-expert query optimization
### Fixed
- Migration skill path resolution bug
## [1.0.0] - 2025-01-01
### Added
- Initial release
- postgres-expert agent
- schema-evolution skill
# Plugin Name
Brief description of plugin capabilities.
## Features
- Feature 1
- Feature 2
- Feature 3
## Installation
\`\`\`
/plugin install plugin-name
\`\`\`
Or add to project `.claude/settings.json`:
\`\`\`json
{
"plugins": {
"plugin-name": {
"source": "github:username/plugin-name",
"version": "^1.0.0"
}
}
}
\`\`\`
## Components
### Agents
- **agent-one**: Description
- **agent-two**: Description
### Skills
- **skill-one**: Description
- **skill-two**: Description
### Commands
- `/command-one`: Description
- `/command-two`: Description
## Usage Examples
### Example 1
\`\`\`
User: Request example
Claude: Uses component to handle request
\`\`\`
### Example 2
\`\`\`
/command-example arg1 arg2
\`\`\`
## Configuration
Optional configuration in `.claude/settings.json`:
\`\`\`json
{
"plugin-name": {
"option1": "value1"
}
}
\`\`\`
## License
MIT
## Contributing
Contributions welcome! See CONTRIBUTING.md.
❌ Missing plugin.json
plugin-name/
├── agents/
└── README.md # No .claude-plugin/plugin.json
✅ Proper structure
plugin-name/
├── .claude-plugin/
│ └── plugin.json # Required
├── agents/
└── README.md
❌ Unversioned plugin
{
"name": "my-plugin"
// Missing "version" field
}
✅ Properly versioned
{
"name": "my-plugin",
"version": "1.0.0"
}
❌ No documentation
plugin-name/
├── .claude-plugin/
└── agents/ # No README explaining usage
✅ Well-documented
plugin-name/
├── .claude-plugin/
├── agents/
├── README.md # Installation and usage guide
└── CHANGELOG.md # Version history
❌ Conflicting component names
plugin-name/agents/postgres-expert.md
# Conflicts with user's existing postgres-expert agent
✅ Unique naming
plugin-name/agents/company-postgres-expert.md
# Prefixed to avoid conflicts
For enterprise teams, Anthropic provides the /v1/skills API endpoint for programmatic skill management:
container.skills parameterThis is relevant when plugins contain skills intended for organization-wide deployment beyond individual Claude Code installations.
All plugin components are automatically prefixed with the plugin name when installed. For example, a plugin named my-plugin with a /deploy command becomes accessible as my-plugin:deploy. This prevents naming collisions between plugins.
my-plugin:agent-namemy-plugin:skill-name/my-plugin:command-nameInstalled plugins are copied to ~/.claude/plugins/cache. Key implications:
claude --plugin-dir ./my-plugin during development for rapid iteration (see Development Workflow below)Use these tools for rapid plugin iteration:
claude --plugin-dir ./my-plugin — Load a plugin from a local directory without installing. Changes take effect immediately on next session.claude --debug — Enable diagnostic output to troubleshoot plugin loading issues, component discovery, and activation./plugin uninstall plugin-name then /plugin install /path/to/plugin to pick up changes.Reference the examples directory for:
Next Steps: After creating a plugin, test locally with /plugin install /path/to/plugin, gather feedback from team members, version appropriately, and distribute via marketplace or Git repository.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub andisab/swe-marketplace --plugin context-engineering7 skills in this plugin
/agent-devUse this skill when creating or refining Claude Code sub-agent definitions. Helps design specialized AI assistants with proper YAML frontmatter, system prompts, tool access, and example-driven descriptions. Automatically invoked when user requests "create an agent", "design a sub-agent", "make a specialist", or mentions agent development. Ensures agents follow Anthropic best practices with focused responsibilities, discovery-optimized descriptions, and proper tool restrictions.
/command-devUse this skill when creating or refining custom Claude Code slash commands. Slash commands are user-invoked reusable prompts that can accept arguments, reference files, and execute bash operations. Helps design command syntax, argument handling, file references, bash execution, and frontmatter configuration. Automatically invoked when user requests "create a command", "make a slash command", "add a /command", or mentions custom command development.
/hook-devUse this skill when creating or refining Claude Code hooks. Hooks are shell commands that execute at specific lifecycle events (tool use, prompt submit, notifications, session events). Helps design event handlers for notifications, formatting, logging, feedback, and permission control. Automatically invoked when user requests "create a hook", "add automation", "event handler", "workflow automation", or mentions hook development.
/mcp-server-devCreate MCP servers — multi-tool services exposed via Model Context Protocol. Use this skill whenever users mention MCP servers, building servers, server scaffolding, tool registration, or want to package tools for distribution via uvx or npx. Also use when the conversation involves stdio transport, server lifecycle, or grouping multiple related tools into a service. Covers Python (FastMCP) and TypeScript (@modelcontextprotocol/sdk) patterns, packaging, and testing.
Activate for: - "Create an MCP server" - "Build a server with multiple tools" - "Package tools for uvx/npx" - "Set up stdio transport" - "Register tools on a server"
Do NOT use for: - Creating a single standalone tool function (use mcp-tool-dev) - General REST API development - Claude Code agents, skills, or commands
/mcp-tool-devCreate MCP tools — individual tool functions exposed via Model Context Protocol. Use this skill whenever users mention MCP tools, tool handlers, tool functions, tool definitions, or want to add capabilities to an MCP server. Also use when the conversation involves designing tool schemas, writing tool descriptions, or implementing tool input validation. Covers FastMCP patterns, Anthropic tool description best practices, and testing strategies.
Activate for: - "Create an MCP tool" - "Add a tool to my MCP server" - "Write a tool handler" - "Design a tool schema" - "Implement tool input validation"
Do NOT use for: - Creating full MCP servers with multiple tools (use mcp-server-dev) - General API development without MCP - Claude Code slash commands or hooks
/skill-devUse this skill when creating or refining Claude Code skill definitions. Skills are model-invoked capabilities that Claude activates autonomously based on context. Helps design focused skills with discovery-optimized descriptions, proper directory structures, and supporting resources. Automatically invoked when user requests "create a skill", "make a capability", "add autonomous behavior", or mentions skill development. Ensures skills follow Anthropic specifications with clear activation triggers.
Other plugins' skills for the same job