Skill / SKILL.md

Git Guardrails Claude Code

amazingloft999-droid/mattpocock-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.
4 views 456 repository stars 0 commentsUpdated Nov 28, 2026
Overview

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.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/amazingloft999-droid/mattpocock-skills' skill-source

Use the complete skill-source/skills/misc/git-guardrails-claude-code directory with your client’s skill installer.

  • skills/misc/git-guardrails-claude-code

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/misc/git-guardrails-claude-code

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
80a323eccb8aad8f413f89df2f25edc02408535fe1769b2f752fbd7d2848c3a7
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills