Skip to content

[Bug]: create-marketplace command missing Bash(git init:*) in allowed-tools #109

@sjnims

Description

@sjnims

Bug Description

The create-marketplace.md command is missing Bash(git init:*) in its allowed-tools frontmatter, but Phase 4 explicitly instructs Claude to "Initialize git repo if creating new directory".

This inconsistency causes the command to either fail or request additional permissions when reaching Phase 4's git initialization step.

Steps to Reproduce

  1. Load plugin with cc --plugin-dir plugins/plugin-dev
  2. Run /plugin-dev:create-marketplace
  3. Progress through Phases 1-3 (Discovery, Plugin Planning, Metadata Design)
  4. In Phase 4 (Structure Creation), when Claude attempts to run git init, it will either:
    • Fail due to missing tool permission, or
    • Prompt for additional permission (breaking the workflow)

Expected Behavior

The command should have all necessary tools pre-authorized in its allowed-tools frontmatter. When Phase 4 instructs to "Initialize git repo if creating new directory", git init should execute without additional permission prompts.

Actual Behavior

Bash(git init:*) is not included in allowed-tools, so Claude cannot execute git initialization without requesting additional permissions or failing.

Command Used

/plugin-dev:create-marketplace

Evidence

create-marketplace.md (line 4) - Current (missing git init):

allowed-tools: Read, Write, Edit, Grep, Glob, Bash(mkdir:*), TodoWrite, AskUserQuestion, Skill, Task

create-marketplace.md (line 160-161) - Phase 4 instruction:

5. Initialize git repo if creating new directory

create-plugin.md (line 4) - Correct implementation for comparison:

allowed-tools: Read, Write, Edit, Grep, Glob, Bash(mkdir:*), Bash(git init:*), TodoWrite, AskUserQuestion, Skill, Task

Suggested Fix

Add Bash(git init:*) to the allowed-tools frontmatter in plugins/plugin-dev/commands/create-marketplace.md:

allowed-tools: Read, Write, Edit, Grep, Glob, Bash(mkdir:*), Bash(git init:*), TodoWrite, AskUserQuestion, Skill, Task

Additional Context

This was discovered during a comprehensive review of both plugin commands 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