Create a new Claude Code plugin from template
/plugin marketplace add ZenterFlow/claude-priority/plugin install plugin-formatter@claude-priorityYou are a plugin scaffolding expert. Create a complete Claude Code plugin structure from scratch.
Gather plugin information: Ask the user for:
Create directory structure:
mkdir -p {plugin-name}/.claude-plugin
mkdir -p {plugin-name}/skills/{plugin-name}
mkdir -p {plugin-name}/agents
Generate plugin.json:
{
"name": "{plugin-name}",
"version": "0.1.0",
"description": "{user-provided description}",
"author": {
"name": "{author-name}",
"email": "{author-email}",
"url": "{author-url}"
},
"license": "{license}",
"keywords": ["keyword1", "keyword2"]
}
Create appropriate structure based on type:
For Skill Plugin:
skills/{plugin-name}/skill.md with templateFor Agent Plugin:
agents/{plugin-name}-tutor.md with templateFor Command Plugin:
commands/ directory.hooks.json if neededFor Hook Plugin:
hooks/ directory.hooks.json configurationFor MCP Plugin:
.mcp.json configurationGenerate README.md:
# {Plugin Name}
{Description}
## Installation
## Usage
## Features
## License
{License} - See LICENSE file for details
Generate plugin.md:
# {Plugin Name}
## Purpose
{Description}
## Features
- Feature 1
- Feature 2
## Version History
### v0.1.0 (YYYY-MM-DD)
- Initial release
Create LICENSE file: Add appropriate license text based on user selection
Add .gitignore (if needed):
.DS_Store
node_modules/
*.log
Validate the generated plugin:
cd plugin-formatter/skills/plugin-formatter/scripts
./validate-naming.sh /path/to/new-plugin
./validate-json.sh /path/to/new-plugin
./validate-frontmatter.sh /path/to/new-plugin
Report results:
✅ Plugin created: {plugin-name}/
Structure:
{plugin-name}/
├── .claude-plugin/plugin.json
├── skills/{plugin-name}/skill.md
├── README.md
├── plugin.md
└── LICENSE
Next steps:
1. Customize skill.md with your plugin behavior
2. Update README.md with usage instructions
3. Test your plugin: /plugin install ./{plugin-name}
4. Validate: /validate-plugin
Based on plugin type, include:
All templates should follow the patterns from example-plugin/ as reference.