Skip to main content

git-guardrails-claude-code

Stars1
Forks0
UpdatedJuly 15, 2026 at 01:18

设置 Claude Code hooks 来在执行前拦截并阻止危险的 git 命令(push、reset --hard、clean、branch -D 等)。当用户想要防止破坏性 git 操作、添加 git 安全钩子、或在 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
2 files
SKILL.md
readonly