CClaude Code Catalog
All Posts
Use Case2026-03-174 min

Cleaning Up 100 Files in My Downloads Folder with Claude Code in 5 Minutes

The Chaos in My Downloads Folder

One day I opened my Downloads folder and found 118 files piled up — screenshots mixed with PDFs, forgotten zip files, random images from Slack. I tried sorting them manually, but after 10 minutes of "what was this file for?" I gave up. That's when I decided to let Claude Code handle it.

Step 1: Analyzing What's Actually There

I opened Claude Code in my Downloads directory and simply said: "Analyze this folder — what's in here?"

The result was surprisingly useful. It broke down everything by file type, last modified date, and size. Turns out: 43 PNGs (mostly screenshots), 28 PDFs, 12 zip files I never extracted, and a bunch of miscellaneous files. 89 of the 118 files hadn't been touched in over 3 months. Most were "downloaded once, looked at, never again" files.

Step 2: Defining My Sorting Rules

My first attempt was sorting by file extension — all PNGs here, all PDFs there. But that didn't really help. A screenshot and a design asset are both PNGs but they belong in completely different places.

Second attempt worked much better: date + purpose. I wrote three simple rules in CLAUDE.md:

# File Organization Rules

1. Files older than 3 months → ~/Archive/YYYY-MM/
2. PDFs with "invoice" or "receipt" in name → ~/Finance/receipts/YYYY/
3. Everything else → subfolders by extension (Screenshots/, Documents/, etc.)

Step 3: Dry Run First (This Is Important)

Before actually moving anything, I asked Claude Code to show me what it would do — a dry run. It listed every file and its planned destination.

Good thing I checked: it was about to move a .gitconfig backup I actually needed. I added an exception to the rules and ran the dry run again. Second time looked perfect.

The actual move took about 2 minutes. No drama.

The Result

Before: 118 files, zero organization, 3.1 GB. After: 11 files left in Downloads (this month's stuff only), everything else sorted into 6 clean folders, 1.8 GB freed from duplicates.

Total time: 3 minutes writing rules + 2 minutes execution = 5 minutes. If I'd done it manually? I tried. I lasted 10 minutes and gave up.

A month later I ran the same CLAUDE.md rules again — finished in 30 seconds. The rules were already there, just needed to run them.

Tips If You Want to Try This

Always do a dry run first. Moving files is hard to undo, especially when you're dealing with hundreds.

Start with a small folder. Don't go straight to your entire home directory.

Don't over-engineer the rules. Three simple rules worked better than the 12-rule system I tried first. "Good enough" rules you actually use beat perfect rules you never finish writing.

The file-organizer pattern and batch-rename skill in our catalog are good starting points if you want pre-built automation recipes.

Sources

Related Posts