git-guardrails

star 105

Install Claude Code PreToolUse hooks that block destructive git/shell commands before they execute — force-push to protected branches, `git reset --hard` of unstaged work, `git push --no-verify`, and `rm -rf` paths that escape the worktree. Smart-merges into the project's `.claude/settings.json` and writes one guardian script. Trigger when the user says "/git-guardrails", asks to harden Claude Code against destructive git commands, or is about to run `/night` unattended for the first time.

iusztinpaul By iusztinpaul schedule Updated 4/30/2026

Skill instructions (SKILL.md) could not be loaded from local cache or raw GitHub repository.

Install via CLI
npx skills add https://github.com/iusztinpaul/squid --skill git-guardrails
Repository Details
star Stars 105
call_split Forks 16
navigation Branch main
article Path SKILL.md
More from Creator