SKILL5.5K installs5.3K

Git Guardrails Claude Code

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

Type
Skill
Author
vinvcn
GitHub stars
5.3K
Installs
5.5K
Last updated
October 28, 2026

Install

npx skills add https://github.com/vinvcn/mattpocock-skills-zh-cn --skill git-guardrails-claude-code

About this skill

Sets up Claude Code hooks that block dangerous git commands — push, reset --hard, clean, branch -D, and similar — before they run. Useful when you want a safety net against destructive git operations during agent-driven work. It's configured per repository.

Summary written with AI assistance from the project's public description.


Categories


More from vinvcn


Similar Skills