Branch Guard
Hard PreToolUse gate that blocks Edit/Write/NotebookEdit and mutating git commands (commit, add, stage, apply) while HEAD is on the repo's default branch. Fires before the first edit so no work is ever produced on main. Bypass-proof (exit 2); ALLOWMAINCOMMIT=1 escape hatch; exempts in-progress rebase/merge/cherry-pick, unborn HEAD, and direct-to-main allowlisted repos.
Works with: Claude Code (native)
native: this artifact type is that client's own format
Category: Dev Tools & CI — see all ranked ›
Work: Version control
Who it is for: Software engineer
Install (Claude Code):
/plugin marketplace add lucasmccomb/ccgm
/plugin install branch-guard@ccgm- tashan score: 37.0
- Adoption: 1 repos
- Upkeep: 64.0
- Freshness: 100.0
- Evidence coverage: 84% of the inputs this score can use — the rest are unknown, and the score is discounted for it
- Health: active
- Contributors: 1
- License: MIT
Security audit
Not scanned yet. We audit npm-published capabilities for known advisories, install-time scripts and permission surface; this one has no npm package we can resolve, or has not reached the queue.
source ↗ · plugin:lucasmccomb/ccgm/branch-guard
Already running this? npx tashan-cli doctor checks your whole config against the Index — how it works ›
Measured 2026-08-05 · scorer s5 · how · something wrong here?