Skip to content
Marketplace

Skill

Git Guardrails Hook

Installs a pre-tool hook that stops the agent from pushing, hard-resetting, force-cleaning or deleting branches.

Haarnessverifieddevopsgitsafetyhooksguardrailsclaude code

Install

  1. 1

    Get Haarness

    Free and open source. Skip this step if Haarness is already on your computer.

    Download for macOSor
    curl -fsSL https://haarness.ai/install.sh | sh

    Free and open source. Skip this step if Haarness is already on your computer.

    Download for Windowsor
    irm https://haarness.ai/install.ps1 | iex

    Free and open source. Skip this step if Haarness is already on your computer.

    Download for Linuxor
    curl -fsSL https://haarness.ai/install.sh | sh

    Haarness installs on a computer. Open this page there to continue, or use it in the cloud below.

    Haarness installs on a computer. Open this page there to continue, or use it in the cloud below.

    Haarness installs on a computer. Open this page there to continue, or use it in the cloud below.

    Haarness installs on a computer. Open this page there to continue, or use it in the cloud below.

  2. 2

    Add Git Guardrails Hook

    Run this in a terminal. Add --global to install for every project, or --local for this project only.

    haarness marketplace install skill haarness/git-guardrails-claude-code

Notes

From mattpocock/skills (skills/misc/git-guardrails-claude-code), by mattpocock. Licence: MIT. Haarness keeps it in sync with the repository; installs update themselves.

Details

Publisher
Haarness
Version
v1
License
MIT
Visibility
public
Updated
Source
github.com/mattpocock/skillsskills/misc/git-guardrails-claude-code · mainKept in sync · a496f55

Versions

  • v1