Bug Description
The /plugin-dev:create-plugin command has two functional issues discovered during a comprehensive review:
- Incorrect phase count: Line 29 instructs Claude to "Create todo list with all 7 phases" but the command actually defines 8 phases
- Missing Edit tool: Phase 8 requires updating
marketplace.json but the Edit tool is not included in allowed-tools
Steps to Reproduce
Issue 1: Phase count
- Load plugin with
cc --plugin-dir plugins/plugin-dev
- Run
/plugin-dev:create-plugin my-plugin
- Observe Claude creates a todo list with 7 items instead of 8
Issue 2: Missing Edit tool
- Run
/plugin-dev:create-plugin and proceed through all phases
- In Phase 8, choose to add plugin to an existing marketplace
- Claude attempts to update
marketplace.json but may lack Edit tool permission
Expected Behavior
-
Line 29 should say "Create todo list with all 8 phases" to match the actual phase count:
- Phase 1: Discovery
- Phase 2: Component Planning
- Phase 3: Detailed Design
- Phase 4: Structure Creation
- Phase 5: Component Implementation
- Phase 6: Validation
- Phase 7: Testing
- Phase 8: Documentation
-
The allowed-tools frontmatter should include Edit to support updating existing files like marketplace.json
Actual Behavior
- Line 29 says "Create todo list with all 7 phases"
allowed-tools is: ["Read", "Write", "Grep", "Glob", "Bash", "TodoWrite", "AskUserQuestion", "Skill", "Task"] (no Edit)
Command Used
/plugin-dev:create-plugin
Environment
- File:
plugins/plugin-dev/commands/create-plugin.md
- Line 29 (phase count)
- Lines 4 (allowed-tools)
Suggested Fix
# Line 4 - add Edit to allowed-tools:
allowed-tools: ["Read", "Write", "Edit", "Grep", "Glob", "Bash", "TodoWrite", "AskUserQuestion", "Skill", "Task"]
# Line 29 - correct phase count:
1. Create todo list with all 8 phases
Additional Context
Found during comprehensive command review against Claude Code plugin command best practices and official documentation.
Bug Description
The
/plugin-dev:create-plugincommand has two functional issues discovered during a comprehensive review:marketplace.jsonbut theEdittool is not included inallowed-toolsSteps to Reproduce
Issue 1: Phase count
cc --plugin-dir plugins/plugin-dev/plugin-dev:create-plugin my-pluginIssue 2: Missing Edit tool
/plugin-dev:create-pluginand proceed through all phasesmarketplace.jsonbut may lack Edit tool permissionExpected Behavior
Line 29 should say "Create todo list with all 8 phases" to match the actual phase count:
The
allowed-toolsfrontmatter should includeEditto support updating existing files likemarketplace.jsonActual Behavior
allowed-toolsis:["Read", "Write", "Grep", "Glob", "Bash", "TodoWrite", "AskUserQuestion", "Skill", "Task"](no Edit)Command Used
/plugin-dev:create-pluginEnvironment
plugins/plugin-dev/commands/create-plugin.mdSuggested Fix
Additional Context
Found during comprehensive command review against Claude Code plugin command best practices and official documentation.