git-guardrails-claude-code
Pass
Audited by Gen Agent Trust Hub on Oct 8, 2026
Risk Level: SAFEPERSISTENCECOMMAND_EXECUTION
Full Analysis
- [PERSISTENCE]: The skill configures the environment to execute a custom script for every subsequent tool use. Specifically, it instructs the agent to create an executable script in
~/.claude/hooks/or.claude/hooks/and modifysettings.jsonto register this script as aPreToolUsehook. While this creates a persistent change to the agent's execution flow, it is the primary intended function of the skill to provide ongoing git guardrails. - [COMMAND_EXECUTION]: The skill involves the creation and execution of a bash script (
scripts/block-dangerous-git.sh). The script itself usesjqandgrepto analyze command strings. It does not execute the input it receives; rather, it exits with a non-zero status code to block execution by the primary agent if a dangerous pattern is detected.
Audit Metadata