disk-cleanup

Scan local disk for large storage consumers and identify cleanup opportunities.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/lzlatkin/dots --skill disk-cleanup-lzlatkin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: disk-cleanup
Source: https://github.com/lzlatkin/dots/tree/main/agents/skills/disk-cleanup
Command: npx skills add https://github.com/lzlatkin/dots --skill disk-cleanup-lzlatkin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps users identify and clean up large storage consumers on their local disk, such as caches, build artifacts, and old application data, to free up valuable space.

Core Features & Use Cases

  • Disk Space Analysis: Scans for common large files and directories that consume significant disk space.
  • Cleanup Recommendations: Provides categorized suggestions for safe and potentially safe cleanup actions.
  • Controlled Execution: Never deletes files without explicit user approval, ensuring data safety.
  • Use Case: Run /disk-cleanup when your Mac is running low on storage to quickly find and remove unnecessary files like old Xcode build data or Docker images.

Quick Start

Run the disk-cleanup skill to scan for large files and suggest cleanup actions.

Frequently Asked Questions about disk-cleanup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I free up disk space on macOS by finding large files?

You can free up disk space on macOS by scanning your local disk for large storage consumers using shell commands like `df`, `du`, and `diskutil` to report disk usage and identify reclaimable space.

What is the best way to clean up Xcode build data and Docker images on a Mac?

The best way to clean up old Xcode build data or Docker images is to run a disk cleanup scan that targets caches and build artifacts, providing categorized suggestions for safe removal to free up valuable storage.

How does disk cleanup handle file deletion to ensure data safety?

Disk cleanup ensures data safety through controlled execution, meaning it never deletes files without explicit user approval. It only provides categorized suggestions for safe and potentially safe cleanup actions.

Can I use disk cleanup for system maintenance on any macOS environment?

Yes, you can use disk cleanup for system maintenance and storage optimization tasks on macOS. It requires a local environment where shell commands like `df`, `du`, and `diskutil` can execute to report disk usage.

What types of files does macOS disk cleanup target to reclaim storage?

macOS disk cleanup targets large storage consumers such as caches, build artifacts, and old application data. It scans common directories to identify these files and suggest safe cleanup actions.