Skip to main content
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-code

Run 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