What it is
An audit of disk usage on a developer machine that reclaims space safely; the hard part is not cleaning but deciding what may be deleted. For a full or nearly full disk, cleaning a workspace or Downloads, or hunting tens of gigabytes. It does not offer one-click cleanup, and no single signal is enough to justify a deletion.
Core workflow
| Stage | Content |
|---|---|
| Trigger | The disk is full or nearly full; asked to clean workspace/Downloads/Documents; hunting what ate tens of gigabytes |
| Input | The target directory, plus a usage baseline recorded with df |
| Steps | Phase 0 baseline → Phase 1 inventory (hidden directories included) → Phase 2 classify into five buckets and run the git safety audit → Phase 3 verify each candidate → Phase 4 execute in risk tiers, stopping to report between tiers |
| Output | The df before/after delta, a classification and verification record per item, a tiered cleanup report |
| Boundary | du is never quoted as space freed; an incomplete check must be reported as uncertain; rewriting git history is a separate, riskier step |
Getting started: Run df and note the used number first; after that, “freed N GB” means only that delta.
Traits
- One hard rule: all five conditions must hold — no live dependency, no unpushed work, no irreplaceable data, reproducible, measured with
df - The git audit goes per branch over
refs/headsand names both wrong ways: checking only HEAD, and--allcounting tags as unpushed - Worktrees get their own rules: the stash belongs to the host repo and cannot justify keeping one; removal goes through
git worktree remove, thenprune - Directory vs archive pairs are compared by name and MD5, handling the archive’s top-level prefix and CP437/GBK filenames
Who it is for and who it is not for
| Good fit | Poor fit |
|---|---|
| A full local disk where it is unclear what may go | A permanent, unattended cleanup script |
| Clearing multi-GB CI leftovers and caches | Data with no git and no second copy |
| Tidying orphaned worktrees and old checkouts | Containers or scratch disks where deletion costs nothing |
How it differs
| Need | Use |
|---|---|
| Decide whether a repo or direction is still worth investing in | criteria-audit |
| See what is inside a PDF/document before deleting it | appautomaton-document-skills-pdf |
| Write the cleanup notes clearly, without grammar slips | phuryn-pm-skills-pm-toolkit-grammar-check |
Source-level risks
| Risk | Source | Impact |
|---|---|---|
| Deletion is irreversible, and a tool failure reads as “nothing found” | SKILL.md “The one rule” | Deleting a directory with unpushed commits or the only copy of data |
git filter-branch rewrites history and cannot be undone without a remote | SKILL.md “Reclaiming space inside git history” | Repository history destroyed beyond recovery |
| APFS atime, copy-on-write clones and hardlinks all distort directory sizes | frontmatter description | Neither the freed amount nor the directory total adds up |