SkillTrust

← All skills

git-guardrails-claude-code

95 / 100 · Low risk

Fine to try. Some of what it can do is expected: a coding skill usually runs build and test commands.

By luestr/skills (GitHub) · coding · 94 stars · scanned at commit b115464

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.

Works with any agent that supports SKILL.md skills.

What this skill can do

Runs commands on your computer

The author does not mention this. Expected for a coding skill.

Found in 1 place.

Other copies in this repository

luestr/skills has 1 more folder with a skill named git-guardrails-claude-code. This page shows the lowest-scoring copy.

Install

Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.

if [ -e ~/.agents/skills/'git-guardrails-claude-code' ] || [ -L ~/.agents/skills/'git-guardrails-claude-code' ]; then echo 'A skill folder named git-guardrails-claude-code already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/luestr/skills' "$d" && git -C "$d" checkout --quiet 'b115464d14efbcf261bc10b7e0efb21978f01813' -- 'mattpocock/en-US/misc/git-guardrails-claude-code' && mkdir -p ~/.agents/skills && cp -R "$d"/'mattpocock/en-US/misc/git-guardrails-claude-code' ~/.agents/skills/'git-guardrails-claude-code' && rm -rf "$d"; fi

Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'git-guardrails-claude-code' ~/.claude/skills/'git-guardrails-claude-code' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.

Badge for your README

The badge for luestr/skills shows the score of its lowest-scoring skill.

SkillTrust badge for luestr/skills

[![SkillTrust](https://zalavijaysinh.github.io/skilltrust/badges/luestr/skills.svg)](https://zalavijaysinh.github.io/skilltrust/repos/luestr/skills/)

Score history

DateVersionScore
2026-11-12b11546495
2026-11-08283d591100