stevesolun/ctx/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.
Agent skill · version 0.0.0-main.1794519846.g11b582a · from stevesolun/ctx
Install
npx yarkr-cli add skill:stevesolun/ctx/git-guardrails-claude-codeWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:stevesolun/ctx/git-guardrails-claude-code
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:stevesolun/ctx/git-guardrails-claude-codeOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:stevesolun/ctx/git-guardrails-claude-codeWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.