fix: add Bash(git init:*) to create-marketplace allowed-tools#110
fix: add Bash(git init:*) to create-marketplace allowed-tools#110
Conversation
The create-marketplace command's Phase 4 instructs Claude to "Initialize git repo if creating new directory", but the allowed-tools frontmatter was missing Bash(git init:*). This caused permission failures or prompts when the command attempted to initialize a git repository. This aligns create-marketplace.md with create-plugin.md, which correctly includes this tool. Fixes #109 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Claude finished @sjnims's task in 1m 6s —— View job PR Review: Add Bash(git init:*) to create-marketplaceSummaryLooks good - Ready to merge ✅ This is a clean, focused fix that addresses a missing tool authorization in the What's Good
Checklist VerificationAll key items from the PR description are properly addressed:
Diff Analysis-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, TaskThe change is minimal, targeted, and follows the exact pattern used in RecommendationApprove and merge. This fix:
|
Description
Adds the missing
Bash(git init:*)tool to thecreate-marketplacecommand's allowed-tools frontmatter. This tool was referenced in Phase 4's instruction to "Initialize git repo if creating new directory" but was not authorized in the frontmatter.Type of Change
Component(s) Affected
/plugin-dev:*)Motivation and Context
The
create-marketplacecommand instructs Claude to initialize a git repository in Phase 4, but theBash(git init:*)tool was not included inallowed-tools. This caused the command to either fail or prompt for additional permissions, breaking the guided workflow.This was discovered during a comprehensive review of both plugin commands against Claude Code plugin command best practices and official documentation.
Fixes #109
How Has This Been Tested?
Test Configuration:
Test Steps:
markdownlint plugins/plugin-dev/commands/create-marketplace.md- passedBash(git init:*)is placed afterBash(mkdir:*)for logical groupingChecklist
General
Documentation
Markdown
markdownlintand fixed all issues<example>,<commentary>, etc.)Component-Specific Checks
Commands (if applicable)
Testing
cc --plugin-dir plugins/plugin-devVersion Management (if applicable)
plugin.jsonandmarketplace.json(if this is a release)Additional Notes
This is a one-line fix that aligns
create-marketplace.mdwithcreate-plugin.md, which correctly includesBash(git init:*)in its allowed-tools.Before:
After:
🤖 Generated with Claude Code