setup-git-guardrails
Pass
Audited by Gen Agent Trust Hub on Oct 9, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill is a defensive utility intended to protect git repositories from destructive operations by AI agents. It functions by intercepting commands and requiring human confirmation.
- [COMMAND_EXECUTION]: The provided bash script parses shell commands using
jqandawkto identify potentially dangerous git subcommands (e.g.,push --force,reset --hard). It uses localgitcalls to verify branch status. - [PRIVILEGE_ESCALATION]: Instructions include making the hook script executable (
chmod +x), which is appropriate for its function as a tool-integrated shell script.
Audit Metadata