git-guardrails-claude-codeby Matt PocockDevelopmentGitHub stars: 273k
Git Guardrails for Claude Code skill: what it does and how to install it
Sets up Claude Code hooks that block dangerous git commands such as push, reset --hard and clean before they run.
Install
$ npx skills add mattpocock/skills --skill git-guardrails-claude-codeRun it in a terminal. If your agent is already running, start a new session so it picks the skill up.
About this skill
Sets up Claude Code hooks that block dangerous git commands such as push, reset --hard and clean before they run.
Similar skills
- Setup Pre-CommitSets up Husky pre-commit hooks with lint-staged, type checking and tests in the current repo.
- Skill CreatorCreates new skills, improves existing ones and measures how well they perform with evals and benchmarks.
- Dispatching Parallel AgentsSplits two or more independent tasks across parallel agents when they share no state.