Skip to main content
在 Manus 中运行任何 Skill
一键导入

git-guardrails-claude-code

Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.

概览

Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.

安装命令
npx skills add https://github.com/hwj123hwj/custom-skills --skill git-guardrails-claude-code

复制此命令并粘贴到 Claude Code 中以安装该技能

星标3
分支0
更新时间2026年5月30日 07:00
文件资源管理器
2 个文件
SKILL.md
readonly