macos-disk-cleanup
Pass
Audited by Gen Agent Trust Hub on Sep 2, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill utilizes powerful shell commands to perform disk cleanup, including
rm -rffor deleting directories and specific cleanup flags for package managers likebrew cleanup,uv cache clean,npm cache clean, andpip3 cache purge. These operations are performed on standard cache locations and are consistent with the skill's primary purpose. - [INDIRECT_PROMPT_INJECTION]: The skill presents an indirect prompt injection surface by ingesting the output of
du(disk usage) andlscommands. An adversary could potentially create directories with malicious names intended to influence the agent's subsequent logic during the analysis phase. - Ingestion points: Output of
ducommands used to measure top-level and home directory usage inSKILL.md, andlsoutput for Python versions inreferences/paths.md. - Boundary markers: The skill does not define specific delimiters or instructions to ignore embedded content in directory names when processing command output.
- Capability inventory: The agent has the ability to delete files and directories via
rm -rf, prune Homebrew caches, and remove Ollama models through the CLI. - Sanitization: The skill mitigates risk by instructing the agent to classify candidates into 'quick wins' (caches) and 'confirm-first' groups, mandating individual user approval for the latter.
Audit Metadata