Skip to main content
Run any Skill in Manus
with one click

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.

Overview

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.

Install command
npx skills add https://github.com/hwj123hwj/custom-skills --skill git-guardrails-claude-code

Copy and paste this command into Claude Code to install the skill

Stars3
Forks0
UpdatedMay 30, 2026 at 07:00
File Explorer
2 files
SKILL.md
readonly