Commit 3714ae2
fix: add Bash(git init:*) to create-marketplace allowed-tools (#110)
## Description
Adds the missing `Bash(git init:*)` tool to the `create-marketplace`
command'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
- [x] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Documentation update (improvements to README, CLAUDE.md, or
component docs)
- [ ] Refactoring (code change that neither fixes a bug nor adds a
feature)
- [ ] Configuration change (changes to .markdownlint.json, plugin.json,
etc.)
## Component(s) Affected
- [x] Commands (`/plugin-dev:*`)
- [ ] Skills (methodology and best practices)
- [ ] Agents (requirements-assistant)
- [ ] Hooks (UserPromptSubmit)
- [ ] Documentation (README.md, CLAUDE.md, SECURITY.md)
- [ ] Configuration (.markdownlint.json, plugin.json, marketplace.json)
- [ ] Issue/PR templates
- [ ] Other (please specify):
## Motivation and Context
The `create-marketplace` command instructs Claude to initialize a git
repository in Phase 4, but the `Bash(git init:*)` tool was not included
in `allowed-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**:
- Verified YAML frontmatter syntax is valid
- Ran markdownlint with no errors
- Compared with create-plugin.md which correctly includes this tool
**Test Steps**:
1. Ran `markdownlint plugins/plugin-dev/commands/create-marketplace.md`
- passed
2. Verified frontmatter structure matches create-plugin.md pattern
3. Confirmed `Bash(git init:*)` is placed after `Bash(mkdir:*)` for
logical grouping
## Checklist
### General
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
(if applicable)
- [x] My changes generate no new warnings or errors
### Documentation
- [x] I have updated the documentation accordingly (README.md,
CLAUDE.md, or component docs)
- [x] I have updated YAML frontmatter (if applicable)
- [x] I have verified all links work correctly
### Markdown
- [x] I have run `markdownlint` and fixed all issues
- [x] My markdown follows the repository style (ATX headers, dash lists,
fenced code blocks)
- [x] I have verified special HTML elements are properly closed
(`<example>`, `<commentary>`, etc.)
### Component-Specific Checks
#### Commands (if applicable)
- [x] Command uses imperative form ("Do X", not "You should do X")
- [x] Error handling is included for common failure modes
- [x] GitHub CLI commands are properly formatted
- [x] Success/failure messages are clear and helpful
### Testing
- [x] I have tested the plugin locally with `cc --plugin-dir
plugins/plugin-dev`
- [x] I have tested the full workflow (if applicable)
- [x] I have verified GitHub CLI integration works (if applicable)
- [ ] I have tested in a clean repository (not my development repo)
### Version Management (if applicable)
- [ ] I have updated version numbers in both `plugin.json` and
`marketplace.json` (if this is a release)
- [ ] I have updated CHANGELOG.md with relevant changes
## Additional Notes
This is a one-line fix that aligns `create-marketplace.md` with
`create-plugin.md`, which correctly includes `Bash(git init:*)` in its
allowed-tools.
**Before:**
```yaml
allowed-tools: Read, Write, Edit, Grep, Glob, Bash(mkdir:*), TodoWrite, AskUserQuestion, Skill, Task
```
**After:**
```yaml
allowed-tools: Read, Write, Edit, Grep, Glob, Bash(mkdir:*), Bash(git init:*), TodoWrite, AskUserQuestion, Skill, Task
```
---
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent 6b4b916 commit 3714ae2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments