git-guardrails-claude-code
Blocks dangerous git commands in Claude Code to prevent destructive operations, enhancing safety during version control.
Install this skill
or
84/100
Security score
The git-guardrails-claude-code skill was audited on Mar 27, 2026 and we found 4 security issues across 1 threat category. Review the findings below before installing.
Categories Tested
Security Issues
medium line 24
Access to home directory dotfiles
SourceSKILL.md
| 22 | ### 1. Ask scope |
| 23 | |
| 24 | Ask the user: install for **this project only** (`.claude/settings.json`) or **all projects** (`~/.claude/settings.json`)? |
| 25 | |
| 26 | ### 2. Copy the hook script |
medium line 33
Access to home directory dotfiles
SourceSKILL.md
| 31 | |
| 32 | - **Project**: `.claude/hooks/block-dangerous-git.sh` |
| 33 | - **Global**: `~/.claude/hooks/block-dangerous-git.sh` |
| 34 | |
| 35 | Make it executable with `chmod +x`. |
medium line 61
Access to home directory dotfiles
SourceSKILL.md
| 59 | ``` |
| 60 | |
| 61 | **Global** (`~/.claude/settings.json`): |
| 62 | |
| 63 | ```json |
low line 72
Access to home directory dotfiles
SourceSKILL.md
| 70 | { |
| 71 | "type": "command", |
| 72 | "command": "~/.claude/hooks/block-dangerous-git.sh" |
| 73 | } |
| 74 | ] |
Scanned on Mar 27, 2026
View Security DashboardInstall this skill with one command
/learn @mattpocock/git-guardrails-claude-codeGitHub Stars 10.4K
Rate this skill
Categorydevelopment
UpdatedMarch 29, 2026
claudeclaude-codefrontendgitapitestingdevops-srebackend-developerfrontend-developergithubgitlabbitbucketdevelopment
mattpocock/skills