Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions plugins/plugin-dev/commands/create-plugin.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: Create plugins with guided 8-phase workflow
argument-hint: "[plugin-description]"
allowed-tools: ["Read", "Write", "Edit", "Grep", "Glob", "Bash(mkdir:*)", "TodoWrite", "AskUserQuestion", "Skill", "Task"]
allowed-tools: Read, Write, Edit, Grep, Glob, Bash(mkdir:*), Bash(git init:*), TodoWrite, AskUserQuestion, Skill, Task
---

# Plugin Creation Workflow
Expand Down Expand Up @@ -199,7 +199,7 @@ Guide the user through creating a complete, high-quality Claude Code plugin from
- Agent-creator generates: identifier, whenToUse with examples, systemPrompt
- Create agent markdown file with frontmatter and system prompt
- Add appropriate model, color, and tools
- Validate with validate-agent.sh script
- Validate using plugin-validator agent

### For Hooks

Expand All @@ -209,7 +209,7 @@ Guide the user through creating a complete, high-quality Claude Code plugin from
- Prefer prompt-based hooks for complex logic
- Use ${CLAUDE_PLUGIN_ROOT} for portability
- Create hook scripts if needed (in examples/ not scripts/)
- Test with validate-hook-schema.sh and test-hook.sh utilities
- Validate using plugin-validator agent (handles hook schema validation)

### For MCP

Expand Down Expand Up @@ -258,11 +258,10 @@ Guide the user through creating a complete, high-quality Claude Code plugin from
4. **Test agent triggering** (if plugin has agents):
- For each agent, verify <example> blocks are clear
- Check triggering conditions are specific
- Run validate-agent.sh on agent files
- Verify via plugin-validator agent

5. **Test hook configuration** (if plugin has hooks):
- Run validate-hook-schema.sh on hooks/hooks.json
- Test hook scripts with test-hook.sh
- Validate via plugin-validator agent (checks hook schema and scripts)
- Verify ${CLAUDE_PLUGIN_ROOT} usage

6. **Present findings**:
Expand Down
Loading