Skip to main content

git-guardrails-claude-code

设置 Claude Code hooks,在危险 git commands(push、reset --hard、clean、branch -D 等)执行前阻止它们。适用于用户想防止破坏性 git 操作、添加 git safety hooks,或在 Claude Code 中阻止 git push/reset 时。

Jump to install

Source facts

Repository
vinvcn/mattpocock-skills-zh-CN
Last source activity
July 22, 2026 at 14:25
Detected SKILL.md language
Chinese
Stars
3,407
Forks
275

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.