git-guardrails-claude-code is agent-read markdown (skill) from akillness/jeo-skills: Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code..
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# Git Guardrails for Claude Code
Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.
This skill is imported from `mattpocock/skills` (MIT) and is **model-invoked** upstream.
## When to use this skill
- Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute.
- Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.
## Instructions
## Setup Git Guardrails
Sets up a PreToolUse hook that intercepts and blocks dangerous git commands before Claude executes them.
### What Gets Blocked
- `git push` (all variants including `--force`)
- `git reset --hard`
- `git clean -f` / `git clean -fd`
- `git branch -D`
- `git checkout .` / `git restore .`
When blocked, Claude sees a message telling it that it does not have authority to access these commands.
### Steps
#### 1. Ask scope
…
Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
GET https://markdownregistry.com/api/v1/artifacts/art_offersiihjz4rlsp
GET https://markdownregistry.com/api/v1/resolve?ref=akillness/jeo-skills/git-guardrails-claude-code
GET https://markdownregistry.com/api/v1/blob/eb5d5c0af8c01abc8f802084b2dcfca55eb0a4a45cdb44ce2161a1ce2dec2c9a
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
akillness/jeo-skills · .agent-skills/academic-research/SKILL.md · Full academic research pipeline from discovery to publication — 4 reference pipelines, 27 modes, 39-agent ensemble…
akillness/jeo-skills · .agent-skills/agent-pulse/SKILL.md · Operate and extend barretlee/agent-pulse, the evidence-backed AI industry intelligence system: inspect source catalog…
akillness/jeo-skills · .agent-skills/agentic-gamedev-skills/SKILL.md · Discover, select, and safely install focused skills from abagames/agentic-gamedev-skills. Use when a user explicitly…
akillness/jeo-skills · .agent-skills/agentic-skills/SKILL.md · Production engineering lifecycle for spec-first, test-driven implementation, review, and staged shipping; use for…
akillness/jeo-skills · .agent-skills/agenticskills/SKILL.md · One-shot installer for the akillness/oh-my-gods agent skill bundle (80+ god-skills) — wraps the official install.sh…
akillness/jeo-skills · .agent-skills/aider-cli-workflow/SKILL.md · Runs a scope-locked, test-backed Aider coding loop with commit hygiene; use for local-repo AI pair-programming on one…
akillness/jeo-skills · .agent-skills/airship/SKILL.md · Drive Airship (`@airshiplabs/cli`), a CLI that puts a visual, pannable design canvas in front of a running dev server…
akillness/jeo-skills · .agent-skills/amrouter/SKILL.md · Self-hosted AI gateway with one OpenAI-compatible endpoint for multi-provider LLM, embedding, image, and audio routing…
akillness/jeo-skills · .agent-skills/animato/SKILL.md · Drive Animato (github.com/otdnnc/Animato) as an API-key agent loop that turns a rigged .fbx/.gltf model plus a…
asymmetric-al/core · .agents/skills/git-guardrails-claude-code/SKILL.md · Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they…
vodailocz/kilo-kit-mcp · skills/productivity/git-guardrails-claude-code/SKILL.md · Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they…
rudycity/superagent · .agents/skills/git-guardrails-claude-code/SKILL.md · Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they…
mambo-wang/codewiki-plus · .trae/skills/git-guardrails-claude-code/SKILL.md · Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they…
mambo-wang/codewiki-plus · .codebuddy/skills/git-guardrails-claude-code/SKILL.md · Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they…
chinkan/rustfox · .agents/skills/git-guardrails-claude-code/SKILL.md · Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they…
chrislacey89/skills · git-guardrails-claude-code/SKILL.md · Infrastructure safety skill for blocking dangerous git commands in Claude-driven workflows. Use when the repo or user…