Home / akillness / jeo-skills · .agent-skills/git-guardrails-claude-code/SKILL.md · GitHub

git-guardrails-claude-code skillA

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
…

Read the whole file at its exact version.

How to install

Latest version
mdr add akillness/jeo-skills/git-guardrails-claude-code@v1.0
Exact content
mdr add akillness/jeo-skills/git-guardrails-claude-code@sha256:eb5d5c0af8c01abc

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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_offersiihjz4rlsp.svg)](https://markdownregistry.com/a/art_offersiihjz4rlsp)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
v1.0 latest2026-09-11 8052d3c 4,284 BA view · diff
v1.02026-07-27 056e3f8 3,715 BA view · diff
v1.02026-05-05 eb68a6f 3,866 BA view · diff
v1.02026-05-04 aab4b13 3,171 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (4284 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

akillness/jeo-skills · 47 stars · license none · pushed 2026-09-22 · branch main

API

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.

More from akillness/jeo-skills

academic-research skill
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…
v1.0.0 · audit A · 47 stars
agent-pulse skill
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…
v1.0 · audit A · 47 stars
agent-reach skill
akillness/jeo-skills · .agent-skills/agent-reach/SKILL.md · Operate Panniantong/Agent-Reach, the MIT-licensed installer, doctor, and routing layer for platform-specific internet…
v1.0.0 · audit A · 47 stars
agentation skill
akillness/jeo-skills · .agent-skills/agentation/SKILL.md · Exact rendered-UI feedback router → choose copy-paste review, watch-loop sync, self-driving critique, or platform…
v1.1.0 · audit A · 47 stars
agentic-gamedev-skills skill
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…
v1.0.0 · audit A · 47 stars
agentic-skills skill
akillness/jeo-skills · .agent-skills/agentic-skills/SKILL.md · Production engineering lifecycle for spec-first, test-driven implementation, review, and staged shipping; use for…
v1 · audit A · 47 stars
agenticskills skill
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…
v1.0.0 · audit B · 47 stars
aider-cli-workflow skill
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…
v1.0.0 · audit A · 47 stars
airship skill
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…
v1.0 · audit A · 47 stars
amrouter skill
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…
git:20260911.fa4fe6b · audit A · 47 stars
animato skill
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…
v1.0.0 · audit A · 47 stars
api-design skill
akillness/jeo-skills · .agent-skills/api-design/SKILL.md · Design or refactor API contracts for REST and GraphQL systems.
v1.1.0 · audit A · 47 stars

Every file in akillness/jeo-skills

Other files named git-guardrails-claude-code

git-guardrails-claude-code skill
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…
git:20260709.bec34b9 · audit A · 383 stars
git-guardrails-claude-code skill
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…
git:20260821.05c0d52 · audit A · 26 stars
git-guardrails-claude-code skill
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…
git:20260626.019dba9 · audit A · 23 stars
git-guardrails-claude-code skill
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…
git:20260916.5a385b8 · audit A · 17 stars
git-guardrails-claude-code skill
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…
git:20260916.5a385b8 · audit A · 17 stars
git-guardrails-claude-code skill
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…
git:20260922.53f91f6 · audit A · 9 stars
git-guardrails-claude-code skill
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…
git:20260909.9dc7053 · audit A · 3 stars

Browse by kind, by grade A, or by owner.