skills/cnife/skills/arch-wsl-cleanup/Gen Agent Trust Hub

arch-wsl-cleanup

Pass

Audited by Gen Agent Trust Hub on May 6, 2026

Risk Level: SAFE
Full Analysis
  • [COMMAND_EXECUTION]: The skill utilizes standard Arch Linux and WSL utilities (e.g., pacman, journalctl, du, fstrim) to perform system maintenance. These operations are aligned with the skill's primary purpose.
  • [COMMAND_EXECUTION]: Executes a bundled Python script scripts/calc_package_size.py using uv run to calculate package sizes. Technical review of the script confirms it uses subprocess.run securely with an argument list, preventing shell injection.
  • [COMMAND_EXECUTION]: Uses sudo for administrative cleanup tasks, which is expected behavior for system-level disk management on Linux.
  • [SAFE]: Includes a 'Safety Rules' section that implements a directory blacklist for rm -rf and mandates user confirmation before deleting packages or non-cache directories, which serves as a safeguard against accidental data loss.
Audit Metadata
Risk Level
SAFE
Analyzed
May 6, 2026, 01:01 AM