Защита git от опасных команд агента
engineering
git-guardrails-claude-code is a Claude Code skill that sets up hooks to block dangerous git commands before they execute. It intercepts operations like push, reset --hard, clean, and branch -D — the ones most likely to destroy uncommitted work or irreversibly rewrite repository history. The skill is part of Matt Pocock's engineering skills collection and installs in seconds via `claude plugins install mattpocock-skills`, or through `npx skills@latest add mattpocock/skills` for Codex and other agents. It's a practical safety net for any developer using Claude Code who wants to prevent the agent from accidentally running destructive git operations.
- #engineering
- #git
- #safety
- #workflow