clean-branches

Pass

Audited by Gen Agent Trust Hub on May 13, 2026

Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill executes local git commands to manage branches and worktrees.
  • [SAFETY_ANALYSIS]:
  • Protected Branches: Specifically excludes critical branches (main, master, develop, release/*) from deletion logic in both SKILL.md and find-candidates.sh.
  • Confirmation Loop: Uses AskUserQuestion to ensure no branches are deleted without explicit user selection and confirmation.
  • Safe Deletion: Uses git branch -d instead of -D, which leverages Git's built-in check to prevent deleting branches with unmerged commits.
  • Worktree Handling: Correctly identifies branches active in worktrees and attempts to remove the worktree before the branch, respecting Git's safety refusal if there are uncommitted changes.
  • Remote Safety: Remote branch deletion is only performed if explicitly requested by the user, never as a default action.
Audit Metadata
Risk Level
SAFE
Analyzed
May 13, 2026, 08:00 AM