Repo guardrails
Hooks that stop bad commits and destructive git commands, and a clean way to work in parallel.
Install the kit
4 available install commands
npx skills@latest add mattpocock/skills --skill setup-pre-commit
npx skills@latest add mattpocock/skills --skill git-guardrails-claude-code
npx skills@latest add addyosmani/agent-skills --skill git-workflow-and-versioning
npx skills@latest add obra/superpowers --skill using-git-worktreesEach command asks which agents to install for; add -g to install globally.
In this kit
Set up pre-commit
Adds Husky, lint-staged, type checks and tests as a pre-commit hook.
What it can touch: Edits code · Runs commands · Uses git
394Kinstalls
npx skills@latest add mattpocock/skills --skill setup-pre-commitGit guardrails for Claude Code
Installs Claude Code hooks that block destructive git commands before they run.
What it can touch: Edits code · Runs commands
402Kinstalls
npx skills@latest add mattpocock/skills --skill git-guardrails-claude-codeGit workflow and versioning
Atomic commits, clear messages and a clean branch strategy.
What it can touch: Uses git
40Kinstalls
npx skills@latest add addyosmani/agent-skills --skill git-workflow-and-versioningUsing git worktrees
Creates an isolated worktree for feature work and sets the project up inside it.
What it can touch: Uses git · Runs commands
200Kinstalls
npx skills@latest add obra/superpowers --skill using-git-worktrees