Disk Cleanup
Find large files, old files, or directories consuming excessive disk space and produce a cleanup plan to reclaim storage.
What it does
Find large files, old files, or directories consuming excessive disk space and produce a cleanup plan to reclaim storage.
Procedure
When this skill is activated, Chalie follows these steps:
- Use
memoryto recall any prior disk cleanup runs or known safe-to-delete paths. - Use
bashwith action read to rundf -hto show current disk usage across all partitions — identify which filesystem is under pressure. - Use
bashwith action read to rundu -sh /* 2>/dev/null | sort -rh | head -15to find the largest top-level directories on the target filesystem. - Use
bashwith action read to runfind <target_dir> -type f -size +100M 2>/dev/null | head -20to list individual files larger than 100 MB within the heaviest directory. - Use
bashwith action read to runfind /tmp -type f -atime +30 2>/dev/null | wc -lto count old temporary files that are candidates for removal. - Present a cleanup plan: list each candidate for deletion with its size, explain why it is safe to remove (old temp file, cache, log rotation candidate), and estimate total reclaimable space — do NOT delete anything without user confirmation.
Version
v1 (curated)