commit-commands: 4 small upstream fixes (plugin.json version, git checkout --branch flag, clean_gone allowed-tools, commit-push-pr phase split)
Summary
While conducting a comprehensive ecosystem audit of my local Claude Code setup, I identified four cosmetic/latent bugs in the commit-commands plugin (installed version: unknown) that are worth fixing upstream. None are blocking — they're caught by overly-permissive Bash(*) allowlists on most user setups — but they create silent drift and would bite a user with tighter permissions.
Findings
1. plugin.json missing version field
Current plugin.json has no version key, causing the install path to resolve as plugins/cache/claude-plugins-official/commit-commands/unknown/. This prevents /plugin refresh from comparing installed-vs-declared version and can trigger unnecessary re-downloads.
Suggested fix: Add "version": "0.1.0" (or whatever the current semver is) to plugin.json.
2. commit-push-pr.md declares non-existent git checkout --branch flag
In the allowed-tools: frontmatter of commands/commit-push-pr.md, a Bash(git checkout --branch:*) entry appears. git checkout has no --branch flag (it's git checkout -b). The allowlist entry therefore matches nothing, and users with tight permissions see an unexpected approval prompt mid-workflow.
Suggested fix: Replace with Bash(git checkout -b:*) or Bash(git switch -c:*).
3. clean_gone.md missing allowed-tools frontmatter
commands/clean_gone.md has no allowed-tools list in frontmatter. The skill executes git branch, git worktree remove, git fetch, git for-each-ref — all would surface approval prompts on strict-permission user setups.
Suggested fix: Add:
allowed-tools:
- Bash(git branch:*)
- Bash(git fetch:*)
- Bash(git for-each-ref:*)
- Bash(git worktree remove:*)
- Bash(git worktree list:*)4. commit-push-pr.md prompt-safety tension with harness git-protocol
The command prompt references pushing + creating a PR in one operation, but the harness's git-safety protocol (per system prompt guidance) prefers creating a new commit + atomic push + explicit PR creation. The current /commit-push-pr flow mixes these in a single prompt instruction, which can confuse agents about which step is "done".
Suggested fix: Split the skill into three phases in the command doc: (1) stage + commit, (2) push, (3) PR creation — each with an explicit "step complete" markerable phase.
Context
- Discovered via 30-agent ecosystem audit (2026-04-23).
- Audit report + verifier analysis on file locally.
- Happy to submit a PR if maintainers prefer that over an issue.
Repro
cat ~/.claude/plugins/cache/claude-plugins-official/commit-commands/unknown/.claude-plugin/plugin.json
cat ~/.claude/plugins/cache/claude-plugins-official/commit-commands/unknown/commands/commit-push-pr.md
cat ~/.claude/plugins/cache/claude-plugins-official/commit-commands/unknown/commands/clean_gone.mdSource: anthropics/claude-plugins-official