plugin-creator
A framework for building and validating plugins for Claude Code.
Install
mkdir -p .claude/skills/plugin-creator && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/1816" && unzip -o skill.zip -d .claude/skills/plugin-creator && rm skill.zipInstalls to .claude/skills/plugin-creator
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Create, validate, and publish Claude Code plugins and marketplaces. Use this skill when building plugins with commands, agents, hooks, MCP servers, or skills.Key capabilities
- →Validate plugin manifest schema
- →Scaffold plugin directory structure
- →Configure MCP server integration
- →Package slash commands and agents
- →Prepare metadata for marketplaces
How it works
It validates project files against the Anthropic plugin schema and ensures correct assembly of hooks, agents, and commands.
Inputs & outputs
When to use plugin-creator
- →Create new custom slash commands
- →Package AI subagents as plugins
- →Integrate MCP servers into Claude Code
- →Validate plugin manifest files
About this skill
Claude Code Plugin Creator
Overview
This skill provides comprehensive guidance for creating Claude Code plugins following the official Anthropic format (as of December 2025).
Plugin Architecture
A Claude Code plugin can contain any combination of:
- Commands: Custom slash commands (
/mycommand) - Agents: Specialized AI subagents for specific tasks
- Hooks: Pre/post tool execution behaviors
- MCP Servers: Model Context Protocol integrations
- Skills: Domain-specific knowledge packages
Directory Structure
my-plugin/
├── .claude-plugin/
│ └── plugin.json # REQUIRED - Plugin manifest
├── commands/ # Optional - Slash commands
│ └── my-command.md
├── agents/ # Optional - Subagents
│ └── my-agent.md
├── hooks/ # Optional - Hook definitions
│ └── hooks.json
├── skills/ # Optional - Bundled skills
│ └── my-skill/
│ └── SKILL.md
├── mcp/ # Optional - MCP server configs
└── README.md
Plugin Manifest (plugin.json)
The .claude-plugin/plugin.json file is required. Here's the complete schema:
{
"$schema": "https://anthropic.com/claude-code/plugin.schema.json",
"name": "my-plugin",
"version": "1.0.0",
"description": "Clear description of what this plugin does",
"author": {
"name": "Your Name",
"email": "[email protected]"
},
"license": "MIT",
"commands": [
{
"name": "mycommand",
"description": "What this command does",
"source": "./commands/my-command.md"
}
],
"agents": [
{
"name": "my-agent",
"description": "What this agent specializes in",
"source": "./agents/my-agent.md"
}
],
"hooks": {
"source": "./hooks/hooks.json"
},
"skills": [
"./skills/my-skill"
],
"mcp_servers": [
{
"name": "my-mcp",
"command": "npx",
"args": ["my-mcp-server"]
}
]
}
Creating Commands
Commands are markdown files with YAML frontmatter:
---
name: deploy
description: Deploy the application to production
---
# Deploy Command
When the user runs /deploy, perform these steps:
1. Run the build process
2. Run all tests
3. Create a deployment package
4. Upload to the configured target
## Usage Examples
- `/deploy` - Deploy to default environment
- `/deploy staging` - Deploy to staging
- `/deploy production --skip-tests` - Deploy to production (use carefully)
Creating Agents
Agents are specialized subagents with focused capabilities:
---
name: security-reviewer
description: Reviews code for security vulnerabilities
model: sonnet
tools:
- Read
- Grep
- Glob
---
# Security Review Agent
You are a security expert focused on identifying vulnerabilities.
## Your Responsibilities
1. Scan for OWASP Top 10 vulnerabilities
2. Identify hardcoded secrets
3. Check for input validation issues
4. Review authentication/authorization logic
## Output Format
Provide findings as:
- CRITICAL: Immediate security risk
- HIGH: Should fix before deployment
- MEDIUM: Fix in next sprint
- LOW: Consider improving
Creating Skills
Skills use the official Agent Skills format:
---
name: my-skill
description: What this skill teaches Claude to do
---
# My Skill Name
## When to Use
Use this skill when the user needs help with [specific task].
## Instructions
1. Step one
2. Step two
3. Step three
## Examples
### Example 1: Basic Usage
[Concrete example]
### Example 2: Advanced Usage
[Another example]
## Best Practices
- Practice 1
- Practice 2
Creating Hooks
Hooks are defined in hooks.json:
{
"hooks": [
{
"event": "PreToolUse",
"matcher": "Edit|Write",
"command": ".claude-plugin/hooks/security-check.sh"
},
{
"event": "PostToolUse",
"matcher": "Bash",
"command": ".claude-plugin/hooks/log-commands.sh"
}
]
}
Hook events:
PreToolUse- Before a tool executesPostToolUse- After a tool completesSessionStart- When a Claude Code session beginsSessionEnd- When a session ends
Creating a Marketplace
To distribute multiple plugins, create a marketplace:
my-marketplace/
├── .claude-plugin/
│ └── marketplace.json
└── plugins/
├── plugin-a/
│ └── .claude-plugin/
│ └── plugin.json
└── plugin-b/
└── .claude-plugin/
└── plugin.json
marketplace.json
{
"$schema": "https://anthropic.com/claude-code/marketplace.schema.json",
"name": "my-marketplace",
"version": "1.0.0",
"description": "Collection of productivity plugins",
"owner": {
"name": "Your Name",
"email": "[email protected]"
},
"plugins": [
{
"name": "plugin-a",
"description": "What plugin A does",
"source": "./plugins/plugin-a",
"category": "development",
"tags": ["productivity", "automation"]
},
{
"name": "plugin-b",
"description": "What plugin B does",
"source": "./plugins/plugin-b",
"category": "productivity"
}
]
}
Plugin Categories
Official categories:
development- Developer toolsproductivity- Workflow automationsecurity- Security toolslearning- Educational contenttesting- Test automationdatabase- Database toolsdesign- UI/UX toolsmonitoring- Observabilitydeployment- CI/CD tools
Testing Plugins
Local Testing
# Install from local path
/plugin install /path/to/my-plugin
# Or add as local marketplace
/plugin marketplace add /path/to/my-marketplace
/plugin install my-plugin@my-marketplace
# List installed plugins
/plugin list
# Enable/disable
/plugin enable my-plugin
/plugin disable my-plugin
# Uninstall
/plugin uninstall my-plugin
Validation Checklist
Before publishing, verify:
-
plugin.jsonis valid JSON - All
sourcepaths exist - Commands have name + description
- Agents specify required tools
- Hook scripts are executable
- Skills have proper YAML frontmatter
- README.md explains usage
Publishing to a Marketplace
Option 1: Create Your Own Marketplace
- Create a GitHub repository
- Add
.claude-plugin/marketplace.json - Add plugin directories
- Users install via:
/plugin marketplace add your-username/your-repo /plugin install plugin-name@your-repo
Option 2: Submit to Community Marketplaces
Popular community marketplaces:
Submit via:
- Pull request to the marketplace repo
- Or their submission forms
Option 3: Anthropic's Official Marketplace
The anthropics/claude-code repo contains official plugins. To add:
- Fork the repository
- Add your plugin under
plugins/ - Update
marketplace.json - Submit a pull request
Best Practices
Plugin Design
- Single Responsibility: Each plugin should do one thing well
- Clear Descriptions: Users should understand purpose from description
- Sensible Defaults: Work out-of-the-box with minimal config
- Version Semantics: Use semver (1.0.0, 1.1.0, 2.0.0)
Security
- Minimal Permissions: Only request tools you need
- No Secrets in Code: Use environment variables
- Audit Hook Scripts: Review all shell scripts for safety
- Document Risks: Explain what your plugin does
Documentation
- README.md: Always include installation and usage
- Examples: Show concrete use cases
- Changelog: Track version changes
- License: Specify usage terms (MIT recommended)
Quick Start Template
Run this to scaffold a new plugin:
mkdir my-plugin && cd my-plugin
mkdir -p .claude-plugin commands agents skills
cat > .claude-plugin/plugin.json << 'EOF'
{
"name": "my-plugin",
"version": "1.0.0",
"description": "My awesome Claude Code plugin",
"author": {
"name": "Your Name"
},
"commands": []
}
EOF
cat > README.md << 'EOF'
# My Plugin
Description of your plugin.
## Installation
/plugin install /path/to/my-plugin
## Usage
Describe how to use your plugin.
EOF
echo "Plugin scaffolded! Edit .claude-plugin/plugin.json to add commands/agents."
References
When not to use it
- →Native Anthropic-specific internal build tools
- →Generic directory creation without specific plugin requirements
Prerequisites
Limitations
- →Limited to Claude Code plugin environment
- →Does not verify logical correctness of agent behaviors
How it compares
It enforces the specific Claude Code plugin marketplace standards and schema, preventing invalid submissions.
Compared to similar skills
plugin-creator side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| plugin-creator (this skill) | 5 | 7mo | Review | Intermediate |
| agent-factory | 8 | 9mo | Review | Advanced |
| claude-opus-4-5-migration | 9 | 8mo | No flags | Beginner |
| subagent-driven-development | 14 | 7mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by ananddtyagi
View all by ananddtyagi →You might also like
agent-factory
alirezarezvani
Claude Code agent generation system that creates custom agents and sub-agents with enhanced YAML frontmatter, tool access patterns, and MCP integration support following proven production patterns
claude-opus-4-5-migration
anthropics
Migrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5. Use when the user wants to update their codebase, prompts, or API calls to use Opus 4.5. Handles model string updates and prompt adjustments for known Opus 4.5 behavioral differences. Does NOT migrate Haiku 4.5.
subagent-driven-development
davila7
Use when executing implementation plans with independent tasks in the current session
coding-agent
openclaw
Run Codex CLI, Claude Code, OpenCode, or Pi Coding Agent via background process for programmatic control.
continuous-learning-v2
affaan-m
Instinct-based learning system that observes sessions via hooks, creates atomic instincts with confidence scoring, and evolves them into skills/commands/agents.
copilot-sdk
github
Build agentic applications with GitHub Copilot SDK. Use when embedding AI agents in apps, creating custom tools, implementing streaming responses, managing sessions, connecting to MCP servers, or creating custom agents. Triggers on Copilot SDK, GitHub SDK, agentic app, embed Copilot, programmable agent, MCP server, custom agent.