Skip to main content

git-guardrails-claude-code

Stars0
Forks0
UpdatedJuly 20, 2026 at 02:51

为 Claude Code 配置 hooks,在 push、reset --hard、clean、branch -D 等危险 Git 命令执行前将其拦截。适用于用户希望防止破坏性 Git 操作、添加 Git 安全 hooks,或禁止 Claude Code 执行 git push/reset 的场景。

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

File Explorer
3 files
SKILL.md
readonly