destructive-git-hook
Pass
Audited by Gen Agent Trust Hub on Jul 14, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill includes a shell script (
scripts/deny-destructive-git.sh) and instructions to configure it as aPreToolUsehook. While this involves command execution, the purpose is explicitly defensive: it parses incoming agent commands and returns a non-zero exit code to block high-risk git operations likereset --hard,push --force, andbranch -D. This is a recommended security best practice for autonomous agents.
Audit Metadata