Claude Skill · Claude Code · Codex · plain CLI | Windows · macOS · Linux
Your Desktop has 214 files called final_FINAL_v2 (3).pdf.
Fix it in 60 seconds. Undo it with one command.
Demo · Install · Modes · Safety · FAQ
ADHD is a skill for Claude (and any agent that follows the SKILL.md folder format) that cleans up a messy file system without ever deleting anything. It scans, gives you a Chaos Score, shows a dry-run plan, moves files only after you say yes, and journals every move so you can reverse it.
Built for brains that hate filing systems: one rule, zero guilt, always undoable. It is also a plain Python script with zero dependencies, so you can run it without any AI.
That is a real run on a deliberately gross 12-file folder. Copy of resume final FINAL v2.docx became 20_Areas/Career/resume-final-final-v2.docx. The git project sitting next to it was never touched.
Every scan and every apply prints a 0-100 score (lower is calmer) and a verdict: piles (loose files everywhere) or a maze (nested folders, fiddly names). It weighs loose files, exact duplicates, copy-marker names, empty and one-file folders, stale files and temp junk. Formula in references/methodology.md. Post your before/after with #chaosscore.
Claude Code / Codex / any skills-compatible agent
git clone https://github.com/NISTALTALSON/adhd ~/.claude/skills/adhdThen say: "ADHD, clean my Downloads." On Windows you can also run ./install.ps1 after cloning (copies into .claude\skills and .codex\skills); on macOS/Linux, ./install.sh.
Claude.ai
Download this repo as a ZIP and upload it as a skill in Settings. Then just ask.
No AI, just the script
python scripts/organize.py scan ~/Downloads
python scripts/organize.py plan ~/Downloads --mode quick
python scripts/organize.py apply <the plan path it prints>
python scripts/organize.py undo ~/Downloads # changed your mind?| ⚡ Quick (default) | 💎 Perfect | |
|---|---|---|
| Vibe | "I just want the pile gone." | "Do it properly. Make it a system." |
| Layout | _Sorted/<type> and _Review/, one level |
PARA + Johnny.Decimal: 10_Projects, 20_Areas, 30_Resources, 40_Media, 90_Archive |
| Renames files? | Never (nothing to second-guess) | Yes: 2026-11-08_invoice-airtel.pdf |
| Time | ~60 seconds | a few minutes, once |
| Best for | Desktop, Downloads | Documents, college folders, a decade of backups |
| 🔍 Scan first Read-only report and Chaos Score before anything moves |
🧪 Dry-run plans See exactly where each file goes, then approve |
↩️ One-command undo Every move and created folder is journaled |
| 👯 Exact-duplicate finder Size, then SHA-256. Copies go to review, not the bin |
🧹 Junk quarantine Temp files, ~$ locks and 0-byte files parked safely |
🏷️ Clean names ISO dates, no (1), no "copy", kebab-case (Perfect mode) |
| 🗂️ Project-aware Git repos and package.json folders are never entered |
📸 Screenshot sorting2026-11-06_130011_screenshot.png, filed by month |
🧠 AI judgment pass Claude reads file names, proposes your rules, re-plans |
| 🌏 Regional rules Aadhaar, PAN, marksheets, GST out of the box |
📥 Inbox sweep--dest organizes Downloads into another folder |
🧰 Zero dependencies One Python file, 3.8+, works offline |
- Dry run first.
planwrites a file and moves nothing. You read it, thenapply. - Never deletes. Never overwrites. Duplicates and junk go to a
Reviewfolder. Name clashes get-2,-3. - Undo is real. Every move and every created folder is journaled;
undoreverses it, empty folders included. - Protected by default: git repos and any folder with
package.json,pyproject.tomland friends, shortcuts, hidden and system files, files edited in the last 30 minutes, symlinks. - Refuses dangerous targets: drive roots, your bare home folder,
C:\Windows,/usr, AppData. - Exact duplicates only. "Looks similar" is never "duplicate".
- Local only. No network, no telemetry, no uploads. Through an AI, sensitive files (IDs, bank, medical) are routed by file name; the skill is told never to open them.
- Tested on 3 operating systems. CI runs a plan → apply → undo round trip on Linux, Windows and macOS and fails if a single byte changes.
| Manual cleanup | Typical "sort by extension" script | ADHD | |
|---|---|---|---|
| Preview before moving | n/a | rarely | ✅ always |
| Undo | ❌ | rarely | ✅ journaled |
| Never deletes | depends on you at 2 a.m. | varies | ✅ by design |
| Leaves code projects alone | you remember (or not) | ❌ often breaks them | ✅ |
| Exact-duplicate detection | ❌ | rarely | ✅ SHA-256 |
| Understands your files (rules from names) | ✅ but slow | ❌ | ✅ with an AI agent |
| Tells you if it worked | vibes | ❌ | ✅ Chaos Score |
Rules are plain regexes run against the normalized file name; first match wins.
[{"match": "\\b(invoice|receipt|payslip)\\b", "to": "20_Areas/Finance"},
{"match": "my startup|pitch deck", "to": "10_Projects/My-Startup"}]python scripts/organize.py plan ~/Documents --mode perfect --rules my-rules.json --depth 3More in examples/rules.example.json. Handy flags: --depth 3 dig into subfolders (their names are kept as context) · --dest <folder> organize into somewhere else · --prune-empty · --archive-days 180 · --keep-names · --flatten.
flowchart LR
A[🔍 scan<br/>Chaos Score] --> B[🧪 plan<br/>dry run]
B --> C{you approve?}
C -- yes --> D[⚙️ apply<br/>journaled moves]
C -- tweak --> E[🧠 add rules] --> B
D --> F[📉 score drops]
D -. oops .-> G[↩️ undo]
The script handles everything deterministic. The AI handles judgment: which files form a project, what your rules should be, and explaining the plan in plain English. Design notes and sources (PARA, Johnny.Decimal, ISO 8601, NIST file-naming guidance) are in references/methodology.md.
Will it delete my files?
No. It has no delete code path. Duplicates and junk are moved to aReview folder for you to empty.
Will it break my coding projects?
No. Any folder containing a git repo,package.json, pyproject.toml, Cargo.toml, .sln and similar markers is treated as one unit and left exactly where it is.
What if I change my mind?
python scripts/organize.py undo <folder> reverses the latest run. Files you edited since are left alone and reported.
Does it need an AI?
No. The script runs standalone. The AI skill adds the judgment layer: plain-English explanations and rules tailored to your files.Does it read my documents?
No. Everything is decided from names, extensions, sizes and dates. Duplicate detection hashes bytes locally and never reads text.OneDrive, iCloud or Dropbox folders?
Works, but online-only files may start downloading when moved. Run it on a local folder first.Why is it called ADHD?
Because the people who need this most are the ones who will never maintain a perfect system. It is designed around that: one shot, low friction, forgiving, undoable. It is a file tool, not a medical product, and it makes no claims about treating anything.-
watchmode: auto-sweep_Inboxon a schedule (always dry-run + notify) - EXIF dates for photos
- Near-duplicate images (opt-in, review only)
- Localized screenshot and document-name patterns
- Shareable Chaos Score card image
PRs welcome, especially regional document-name rules and extra Chaos Score signals. Ground rule: never lose a user's file. See CONTRIBUTING.md.
If this saved your Desktop, ⭐ star the repo so other people with New folder (7) can find it.
Built by @NISTALTALSON · MIT licensed