InnerVault

git-guardrails-claude-code

IndexedAgent skill collections on GitHub, mattpocock

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.

Open the source (opens github.com) https://github.com/mattpocock/skills/tree/main/skills/misc/git-guardrails-claude-code

Before you use it

  • Skills can include scripts that your agent may run. Read the folder before installing.

What it is

Skills from mattpocock.

The problem it solves and who it suits haven't been reviewed by InnerVault. The description above is the source's own.

How to get it

Setup steps: not provided by the source. Follow the instructions on the source.

Related

  1. retro

    Skills

    Conduct a retrospective on a coding session.

    Indexed Agent skill collections on GitHub, mattpocock MIT1 note

  2. pr

    Skills

    Use when writing a PR body.

    Indexed Agent skill collections on GitHub, mattpocock MIT1 note

  3. Writing, explore: mine raw fragments, no structure yet.

    Indexed Agent skill collections on GitHub, mattpocock MIT1 note

  4. Implement the result of /to-spec and /to-tickets in code.

    Indexed Agent skill collections on GitHub, mattpocock MIT1 note

  5. grill-me

    Skills

    A relentless interview to sharpen a plan or design.

    Indexed Agent skill collections on GitHub, mattpocock MIT1 note

  6. teach

    Skills

    Teach the user a new skill or concept, within this workspace.

    Indexed Agent skill collections on GitHub, mattpocock MIT1 note