easy-ui-mcp: Skill for Claude Code

.claude/skills/git-guardrails-claude-code/SKILL.md

git-guardrails-claude-code is a skill for Claude Code from thunderkds/easy-ui-mcp. It costs 64 tokens per session (634 once invoked), scanned B, original, MIT.

A Claude Code safety hook that blocks selected destructive Git commands before they run. Git is the version-control system used to track code changes and branches.

In plain words
What is it for?
Use it to block commands such as force pushes, hard resets, forced cleaning, branch deletion, and restoring an entire working tree in a project or across projects.
Why use it?
It reduces the chance of accidentally deleting work, discarding local changes, rewriting history, or pushing code from an automated coding session.

Skill for Claude Code

Written for Claude Code: $CLAUDE_PROJECT_DIR variable. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

This is thunderkds/easy-ui-mcp's own configuration. It tells Claude Code how to work on easy-ui-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything easy-ui-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to thunderkds/easy-ui-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/thunderkds/easy-ui-mcp/main/.claude/skills/git-guardrails-claude-code/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/thunderkds/easy-ui-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for git-guardrails-claude-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/thunderkds/easy-ui-mcp/git-guardrails-claude-code/github.svg)](https://agentmods.dev/skills/thunderkds/easy-ui-mcp/git-guardrails-claude-code)
Your own site
<a href="https://agentmods.dev/skills/thunderkds/easy-ui-mcp/git-guardrails-claude-code"><img src="https://agentmods.dev/badge/skills/thunderkds/easy-ui-mcp/git-guardrails-claude-code/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-guardrails-claude-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/thunderkds/easy-ui-mcp/git-guardrails-claude-code"><img src="https://agentmods.dev/badge/skills/thunderkds/easy-ui-mcp/git-guardrails-claude-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 634 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.00634
Opus 5.5 $0.00026 $0.00254
Sonnet 5.5 $0.00013 $0.00127
Haiku 4.5 $0.00006 $0.00063

Measured yesterday against content hash a0cd4b94dbf3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

git-guardrails-claude-code scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/block-dangerous-git.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

Install for **this project only** (`.claude/settings.json`) or **all projects** (`~/.claude/settings.json`)?
.claude/skills/git-guardrails-claude-code/SKILL.md · 58 lines

How it starts

The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Role: Git Safety Hook Installer

Installs a PreToolUse hook that intercepts and blocks destructive git commands before Claude runs them — a guardrail for the isolated worktrees sub-agents work in (Stage 3). Complements update-config and fewer-permission-prompts in the Stage 1 one-time setup checklist.

What gets blocked

git push (all variants incl. --force), git reset --hard, git clean -f / -fd, git branch -D, git checkout . / git restore .. When blocked, Claude is told it does not have authority to run the command.

Steps

1. Ask scope

Install for this project only (.claude/settings.json) or all projects (~/.claude/settings.json)?

2. Place the hook script

The bundled script lives at .claude/skills/git-guardrails-claude-code/scripts/block-dangerous-git.sh. Copy it to:

  • Project: .claude/hooks/block-dangerous-git.sh
  • Global: ~/.claude/hooks/block-dangerous-git.sh

Then chmod +x it.

3. Register the hook (via the update-config skill)

Add to the chosen settings file, merging into any existing hooks.PreToolUse array — never overwrite other settings:

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          { "type": "command", "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/block-dangerous-git.sh" }
        ]
      }
    ]
  }
}

(Global scope: use ~/.claude/hooks/block-dangerous-git.sh as the command.)

4. Ask about customization

Ask whether to add/remove patterns from the blocked list; edit the copied script accordingly.

5. Verify
echo '{"tool_input":{"command":"git push origin main"}}' | .claude/hooks/block-dangerous-git.sh

Should exit code 2 and print a BLOCKED message to stderr.

Note for this framework

The Supervisor commits/pushes only when the user explicitly asks. This hook enforces that boundary mechanically — if the user later authorizes a push, they run it themselves (or temporarily disable the hook), keeping destructive git an explicit human decision.

Read the full file on GitHub · 58 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 58 lines · 64 tokens per session scan B a0cd4b94dbf3

Subscribe to this mod's changes

git-guardrails-claude-code is a skill published in the GitHub repository thunderkds/easy-ui-mcp (1 stars, last pushed today), licensed MIT. It adds 64 tokens to every session and 634 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-30.