A plugin-creation workflow
The plugin-dev toolkit ships a /plugin-dev:create-plugin command — a 439-line workflow prompt that walks a plugin from concept to tested implementation in 8 phases. It's a masterclass in long-form command design:
- Discovery — what problem, who uses it, what should it do
- Prior-art discovery (mandatory) — walk a reuse ladder before generating anything
- Component planning — skills? commands? agents? hooks? MCP? settings?
- Detailed design — clarifying questions per component, wait for answers
- Structure creation — directories + manifest
- Implementation — using AI-assisted generator agents
- Validation — plugin-validator agent + schema scripts
- Testing & docs — verify in Claude Code, finalize README
---description: Guided end-to-end plugin creation workflow with component design, implementation, and validationargument-hint: Optional plugin descriptionallowed-tools: ["Read", "Write", "Grep", "Glob", "Bash", "TodoWrite", "AskUserQuestion", "Skill", "Task"]---
# Plugin Creation Workflow
Guide the user through creating a complete, high-quality Claude Codeplugin from initial concept to tested implementation.
## Core Principles
- **Reuse before generating**: Search installed plugins, first-party plugins, community catalogs, and the user's own orgs before scaffolding anything. Generate only the glue.- **Ask clarifying questions**: Identify all ambiguities about purpose, triggering, scope, and components. Wait for answers.- **Load relevant skills**: Use the Skill tool to load plugin-dev skills when needed.- **Use TodoWrite**: Track all progress throughout all phases.
**Initial request:** $ARGUMENTSNote the techniques: allowed-tools scopes the command's power; $ARGUMENTS seeds phase 1; every phase declares a goal, actions, and output; and mandatory gates ("DO NOT SKIP", "wait for answers") keep the model honest. The full prompt is in the Prompt Library.
Check your understanding
Section titled “Check your understanding”Question 1What does the workflow require before generating any component?
Phase 1.5 is mandatory: merge and adapt existing components; net-new content is glue only.
Question 2What does allowed-tools in command frontmatter do?
It scopes the command's capabilities, a safety and focus mechanism.