clean-branches
Pass
Audited by Gen Agent Trust Hub on Apr 9, 2026
Risk Level: SAFE
Full Analysis
- [COMMAND_EXECUTION]: The skill uses local
gitandbashcommands to fetch repository state and perform cleanup. Destructive actions likegit branch -dandgit worktree removeare gated behind user confirmation using theAskUserQuestiontool. - [PROMPT_INJECTION]: Implements a denylist of protected branches (main, master, develop, release/*) to prevent accidental deletion of critical project history.
- [COMMAND_EXECUTION]: Employs safe Git defaults, specifically using the
-dflag instead of-Dto ensure branches are not deleted if they contain unmerged work, providing an additional layer of data protection. - [COMMAND_EXECUTION]: The execution of the candidate detection script uses proper shell quoting for the user-supplied pattern argument, mitigating potential command injection risks within the helper script.
Audit Metadata