worktree-janitor
Pass
Audited by Gen Agent Trust Hub on Oct 15, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The core logic in
scripts/worktree_janitor.pyand its tests involves executinggitcommands viasubprocess.run. The implementation passes arguments as lists and avoids usingshell=True, which mitigates the risk of command injection from maliciously crafted filenames or branch names. - [SAFE]: The skill incorporates multiple defensive programming patterns, such as directory traversal prevention using
path.resolve()and path containment checks to ensure file operations are restricted to the intended directories. It also implements secure file handling with restrictive permissions and atomic updates for its state files.
Audit Metadata