Lightlines
By mattpocock

git-guardrails-claude-code

mattpocock431.5k installs

Block destructive Git commands in Claude Code.

What it does

Installs safety hooks that block destructive Git commands before the agent executes them.

When to use it

Use when the user wants to prevent destructive Git operations or add Git safety hooks in Claude Code.

How to use it

Ask for Git safety hooks; it asks whether to install them for one project or all projects and offers to customize the blocked commands.

Uses

Latest review

What you need · 1

Requires jq to extract the command from the hook's JSON input.


Access · 1

This skill

Claude Code

Write

Adds Claude Code safety hooks