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 yogeshhk/TeachingDataScience (GitHub) · coding · 307 stars · scanned at commit f14dfc4

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.

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/yogeshhk/TeachingDataScience' "$d" && git -C "$d" checkout --quiet 'f14dfc47a89c09ed792181bdcf7be507cbc2e34e' -- 'Code/claudecode/MattPocock/dot_claude/skills/git-guardrails-claude-code' && mkdir -p ~/.agents/skills && cp -R "$d"/'Code/claudecode/MattPocock/dot_claude/skills/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 yogeshhk/TeachingDataScience shows the score of its lowest-scoring skill.

SkillTrust badge for yogeshhk/TeachingDataScience

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

Score history

DateVersionScore
2026-11-14f14dfc495

Also found in

Identical copies of this skill exist at: