Matt Pocock's Git Guardrails: Stop Claude Code from Accidentally Nuking Your Repo with git push --force

Matt Pocock released git-guardrails, a Claude Code skill that uses a PreToolUse hook to intercept dangerous git commands like push, reset --hard, and clean -f. It is a practical YOLO-mode safety rail for agents in Docker Sandbox.