Skip to content

[Bug]: create-plugin command has incorrect phase count and missing Edit tool #98

@sjnims

Description

@sjnims

Bug Description

The /plugin-dev:create-plugin command has two functional issues discovered during a comprehensive review:

  1. Incorrect phase count: Line 29 instructs Claude to "Create todo list with all 7 phases" but the command actually defines 8 phases
  2. 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

  1. Load plugin with cc --plugin-dir plugins/plugin-dev
  2. Run /plugin-dev:create-plugin my-plugin
  3. Observe Claude creates a todo list with 7 items instead of 8

Issue 2: Missing Edit tool

  1. Run /plugin-dev:create-plugin and proceed through all phases
  2. In Phase 8, choose to add plugin to an existing marketplace
  3. Claude attempts to update marketplace.json but may lack Edit tool permission

Expected Behavior

  1. 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
  2. The allowed-tools frontmatter should include Edit to support updating existing files like marketplace.json

Actual Behavior

  1. Line 29 says "Create todo list with all 7 phases"
  2. 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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions