cleanup
Pass
Audited by Gen Agent Trust Hub on Oct 27, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses
subprocess.runto execute a variety of system and development tools includinggit,du,lsof,npm,pnpm,yarn,bun,pip3,uv,go,brew, anddocker. These commands are used to inventory project state and perform cleanup tasks. The implementation uses list-based arguments for subprocess calls and does not invoke the shell, which reduces the risk of command injection. - [DATA_EXPOSURE]: The script scans local directories for coding agent metadata and logs (e.g.,
~/.claude/,~/.gemini/). It reads~/.claude/settings.jsonto extract retention settings to provide better context to the user. This access is consistent with the skill's stated purpose of cleaning up agent-related data. - [SAFEGUARDS]: The script includes a
safe_rmtreefunction with explicit checks to prevent the deletion of the root directory, the home directory, or its immediate parent. This is a critical security control for a tool designed to delete files. - [TRANSPARENCY]: The skill follows a two-step process: a read-only
scanthat generates a plan, followed by anapplystep that requires user-confirmed IDs. This provides the user with visibility and control over the cleanup process.
Audit Metadata