agentleFS
palpenpalpen/claude-skills/disk-usage/SKILL.md

disk-usage

Skill0 starsChanged 7 months agoMITView on GitHub

Scan disk usage across all folders in the home directory, organize by size, break down heavy directories, and flag the largest files and caches that can be safely deleted. Never executes any delete operations. Use when asked to "check disk usage", "disk space", "what's using space", "clean up disk", or "free up space".

  • Installs packages

4 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions4 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 4

    1. alehlopeh/claude-skills★ 2same name
    2. dennisonbertram/claude-mac-guardian★ 1same name
    3. JinwangMok/openclaw-simple-skills★ 0same name
    4. tony/skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository10 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run these in parallel where possible:

    line 22
  2. Distinctive:

    Run these in parallel:

    line 63
  3. Distinctive:

    If a folder doesn't exist or returns errors, skip it silently.

    line 123

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Disk Usage Report

Scan the user's home directory and produce a structured disk usage report. NEVER delete, remove, or clean anything. Report only.

Steps

Run these in parallel where possible:

1. Top-level folder sizes

du -sh ~/*/ 2>/dev/null | sort -hr | head -30
du -sh ~/.* 2>/dev/null | sort -hr | head -20

2. Break down the largest folders

For the top 2-3 largest folders from Step 1, drill one level deeper:

du -sh ~/Library/*/ 2>/dev/null | sort -hr | head -15
du -sh ~/Library/Caches/*/ 2>/dev/null | sort -hr | head -10
du -sh ~/Library/Application\ Support/*/ 2>/dev/null | sort -hr | head -10

Adapt these paths based on what Step 1 reveals — if Library/ isn't the biggest, drill into whatever is.

3. Find large files (>50 MB)

find ~ -not -path '*/Library/*' -not -path '*/.Trash/*' -type f -size +50M 2>/dev/null | head -30

For each file found, show its size with du -sh.

4. Find reclaimable development artifacts

Run these in parallel:

node_modules directories:

find ~/Desktop ~/Documents ~/personal -name "node_modules" -type d -maxdepth 4 2>/dev/null | while read d; do du -sh "$d" 2>/dev/null; done | sort -hr

.next / build caches:

find ~/Desktop ~/Documents ~/personal -name ".next" -type d -maxdepth 4 2>/dev/null | while read d; do du -sh "$d" 2>/dev/null; done | sort -hr

Python virtual environments:

find ~/Desktop ~/Documents ~/personal \( -name "venv" -o -name ".venv" \) -type d -maxdepth 4 2>/dev/null | while read d; do du -sh "$d" 2>/dev/null; done | sort -hr

5. Check common caches

du -sh ~/.npm/_cacache 2>/dev/null
du -sh ~/.cache/*/ 2>/dev/null | sort -hr

Output format

Present the results as a structured report with these sections:

Section 1: Total by top-level folder

A markdown table sorted by size descending, with a "Notes" column for context (e.g., "All your project repos", "npm cache").

Section 2: Breakdown of largest folders

Drill-down tables for the heaviest directories (Library/, Desktop/, etc.).

Section 3: Development artifacts

Separate tables for node_modules, .next caches, and Python venvs with per-project sizes.

Section 4: Candidates for deletion

Split into three categories:

Safe to clear — caches: Items that can be rebuilt automatically (npm cache, pip cache, Homebrew cache, browser caches, old CLI versions). Include the command to clear each one.

Safe to clear — rebuild with install: node_modules and build caches for inactive projects. Note that npm install / pip install will restore them.

Worth reviewing: Large files or app data that may or may not be needed (old videos, unused app data, dormant project venvs). Frame as questions ("Still using this project?", "Move to external storage?").

Section 5: Quick wins summary

A table showing action, space recovered, for the top opportunities.

Rules

  • NEVER execute any delete, rm, clean, or purge commands. This is a read-only audit.
  • Show exact commands the user would run to clear each item, but do not run them.
  • Round sizes to human-readable units (GB, MB).
  • If a folder doesn't exist or returns errors, skip it silently.
  • Adapt the scan paths to the user's actual directory structure — the paths above are starting points, not the only places to check.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.