Overview
branch-guard is a pre-tool hook that intercepts git push --force, git reset --hard, and similar destructive commands when the current branch is main or another protected branch, requiring explicit confirmation.
When to Use
Install globally to protect all projects, or per-project for repos with strict branch protection requirements.
Usage Examples
Runs automatically before any Bash tool call that matches destructive git patterns.
Configuration
Configure protected branch names in .claude/settings.json under branchGuard.protectedBranches.
Installation
npx skills add mclaude95/eq-foundry -s branch-guard