cleanup

Pass

Audited by Gen Agent Trust Hub on Oct 27, 2026

Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill uses subprocess.run to execute a variety of system and development tools including git, du, lsof, npm, pnpm, yarn, bun, pip3, uv, go, brew, and docker. 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.json to 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_rmtree function 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 scan that generates a plan, followed by an apply step that requires user-confirmed IDs. This provides the user with visibility and control over the cleanup process.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 27, 2026, 04:05 PM