Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Run automatically on Claude Code events. Claude doesn't decide.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Prevents Claude from executing destructive git commands that could result in data loss.
| Command | Reason |
|---|---|
git checkout -- <files> | Discards uncommitted changes |
git restore <files> | Overwrites working directory |
git reset --hard | Destroys uncommitted work |
git reset --merge | Can lose changes |
git clean -f | Deletes untracked files |
git push --force | Destroys remote history |
git push --delete | Removes remote refs |
git branch -D | Force-deletes branches |
git stash drop/clear | Deletes saved work |
git reflog expire/delete | Removes recovery safety net |
git filter-branch | Rewrites history |
git gc --prune=now | Removes unreferenced objects |
git checkout -b <branch> - Creating branchesgit restore --staged - Unstaging filesgit clean -n / --dry-run - Preview modegit push --force-with-lease - Safer force pushclaude plugin add ./plugins/git-safety-guard
After incidents where Claude executed git checkout -- on multiple files, erasing hours of uncommitted work, this mechanical enforcement prevents accidents that instructions alone cannot.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub rbozydar/rbw-claude-code --plugin git-safety-guardPlugins from other owners that cover similar ground