Git Guardrails Claude Code

mattpocock/git-guardrails-claude-code · Agent Skill (multi-file)

by mattpocock · bundle

Published · Last updated


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.

SKILL.md

Files

This skill is a package of 3 files. Install with the command above, or download the folder.

  • 📄SKILL.md entry
  • 📁agents
  • openai.yaml GitHub 112 B
  • 📁scripts
  • ⚙️block-dangerous-git.sh GitHub 507 B

Related

  1. Skill Creator · anthropic bundle
    Create new skills, modify existing ones, and measure their performance through iterative evaluation and benchmarking.
    158k
    repo stars
  2. Code Reviewer · alirezarezvani bundle
    Automates code review for pull requests across 14+ languages, analyzing complexity, risk, code quality, and generating structured review reports.
    20.4k
    repo stars
  3. Algorithmic Art · anthropic bundle
    Create algorithmic art by first writing a generative philosophy, then expressing it as p5.js sketches with seeded randomness and interactive parameter exploration.
    158k
    repo stars
  4. Senior Backend · alirezarezvani bundle
    Designs and implements backend systems including REST APIs, microservices, database architectures, authentication flows, and security hardening. Covers Node.js/Express/Fastify development, PostgreSQL optimization, API security, and backend architecture patterns.
    20.4k
    repo stars
  5. Game Engine · github bundle
    Build web-based games and game engines using HTML5 Canvas, WebGL, and JavaScript with frameworks like Phaser, Three.js, and Babylon.js.
    36.2k
    repo stars
  6. Senior QA · alirezarezvani bundle
    Generates unit tests, integration tests, and E2E tests for React/Next.js applications by scanning components, analyzing coverage reports, and scaffolding Playwright test files.
    20.4k
    repo stars

Frequently asked questions

How do I install the Git Guardrails Claude Code skill?

Run npx skillmds add mattpocock/git-guardrails-claude-code in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.

What does the Git Guardrails Claude Code skill do?

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. It is listed under Coding & Dev Tools on SkillMD.

Is Git Guardrails Claude Code safe to use?

This skill has not completed SkillMD's automated safety review yet. Capability flags: executes scripts. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.

Which AI agents work with Git Guardrails Claude Code?

This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.

Is Git Guardrails Claude Code free to use?

Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.

Who published Git Guardrails Claude Code?

mattpocock (@mattpocock) published this skill. Their other Agent Skills are listed on their SkillMD profile.