tidy
Skill1 starsChanged 6 months agoMITView on GitHub
Clean up and organize a project's file structure — group loose files into logical folders (images/, scripts/, styles/, etc.), remove empty directories, and delete genuinely unnecessary files. Use when the user asks to "clean up the project", "organize the files", "tidy the directory", "sort these into folders", "remove empty folders", or "get rid of junk files". Always understands the project and updates references BEFORE moving anything, never deletes load-bearing files, and gets approval before changing the file tree.
- Reads credentials
15 other projects use a version of this.
Adopted by
Most recently taken up by
- davidsolheim/skillstheir own version, first seen Oct 5, 2026
- angusfretwell/skillstheir own version, first seen Oct 4, 2026
- legibet/agent-skillstheir own version, first seen Oct 3, 2026
- eliphazbouye/skillstheir own version, first seen Sep 30, 2026
- wyattjoh/skillstheir own version, first seen Sep 27, 2026
- collectifweb/claude-skillstheir own version, first seen Sep 23, 2026
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- croffasia/itsaplan★ 886same name
- mblode/agent-skills★ 142same name
- crimx/skills★ 4same name
- collectifweb/claude-skills★ 3same name
- smkg75/wikidoc★ 2same name
- wyattjoh/skills★ 2same name
- angusfretwell/skills★ 1same name
- davidsolheim/skills★ 1same name
- dreamlx/skills★ 1same name
- ruccess/skills★ 1same name
5 more not listed
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 repository6 other files it gives its agents.
- gitignoreSkill
- optimizeSkill
- pdf-summarySkill
- pre-pushSkill
- qnaSkill
- security-auditSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 10 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Read build/config files (package.json, bundler config, framework config) — they often hardcode paths and dictate where files must live.
- Very specific: line 26
Check what's tracked vs untracked (git status) so you don't reorganize generated output (dist/, node_modules/) — those belong in …
- Distinctive: line 49
Don't bury them in subfolders.
- Distinctive: line 50
Don't invent deep nesting for a tiny project.
- Distinctive: line 57
When you move a file, you MUST update everything that points to it, or you break the project.
- Very specific: line 61
Update them to the new path: HTML <img src>/<link href>/<script src>, CSS url(...)/@import, JS/TS imports, and any config/string paths.
- Distinctive: line 65
After moving, verify nothing dangles: re-grep for the old paths.
- Very specific: line 95
Only then: treat it as a deletion candidate.
- Distinctive: line 99
When in doubt, list it as "suspected unnecessary — confirm?" rather than deleting.
- Distinctive: line 106
If a build/test was available, state that it still passes.
- Distinctive: line 110
Plan and get approval before changing the tree: No surprise moves/deletes.
- Distinctive: line 114
Use git mv / git rm for tracked files so history and staging stay correct.
- Distinctive: line 115
Don't reorganize generated/dependency dirs — gitignore them instead.
- Distinctive: line 116
Prefer the project's existing conventions over imposing a new structure.
“Common” is measured: kept by at least 6 in 10 of the 13 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.
Files
Project Tidy — Organize, Don't Break
Make a messy project clean and easy to manage without breaking it. Moving or deleting files can silently break a build, a page, or an import. So the rule is: understand first, plan, get approval, then execute — and update every reference.
This skill can move and delete files. Treat that power carefully. When unsure whether something is safe to move or delete, leave it and ask.
Step 1 — Understand the project
Before touching anything:
- Map the current tree (
git ls-files, directory listing). Identify the project type (static site, Node app, Python package, etc.) and its entry points (index.html,main.py,src/index.js, etc.). - Read build/config files (
package.json, bundler config, framework config) — they often hardcode paths and dictate where files must live. - Understand how files reference each other: HTML
src/href, CSSurl()and@import, JS/TSimport/require, asset paths in code, config path strings. - Check what's tracked vs untracked (
git status) so you don't reorganize generated output (dist/,node_modules/) — those belong in.gitignore, not in folders.
Step 2 — Plan the reorganization (don't execute yet)
Propose a clean structure based on what you found. Typical pattern for a flat web project with loose files:
before/ after/
index.html index.html ← entry stays at root
about.html about.html
style.css styles/style.css
main.js scripts/main.js
logo.png images/logo.png
photo1.jpg ... photo20.jpg images/photo1.jpg ...Guidelines:
- Group by role:
styles/,scripts/(orjs/),images/(orassets/),fonts/,docs/. Follow any convention the project already uses. - Keep entry points and required-root files where they belong —
index.html,package.json,README,LICENSE,.gitignore, CI configs, framework configs. Don't bury them in subfolders. - Don't invent deep nesting for a tiny project. Clean ≠ over-engineered.
Show the user the proposed before→after tree and the list of deletions before doing it. Get approval. This is a file-tree change — confirm first.
Step 3 — Move files AND fix every reference
When you move a file, you MUST update everything that points to it, or you break the project. For each moved file:
- Find all references (grep the codebase for the old path/filename).
- Update them to the new path: HTML
<img src>/<link href>/<script src>, CSSurl(...)/@import, JS/TS imports, and any config/string paths. - Move with
git mvwhen tracked (preserves history) rather than plainmv.
After moving, verify nothing dangles: re-grep for the old paths; if the project builds or has tests, run them to confirm it still works.
Step 4 — Remove empty directories
Empty directories are clutter — remove them. But first check they're truly disposable:
- A dir kept intentionally usually has a
.gitkeep/.keepmarker — that signals "keep this empty dir." Don't delete those (or confirm with the user). - Some tooling/frameworks expect certain dirs to exist even when empty. If a dir is referenced in config or is a known framework path, leave it.
Step 5 — Delete unnecessary files (carefully)
The user wants junk gone — but an empty or tiny file is not automatically junk. Some tools create load-bearing files on purpose. Before deleting ANY file, even an empty one:
- Confirm it's not referenced anywhere (grep imports/paths/config).
- Confirm it's not a known "load-bearing even when empty" file. Never delete
these just because they look empty:
__init__.py(Python — makes a package importable).gitkeep/.keep(intentionally preserves a dir)py.typed(marks a typed Python package)index.js/index.ts/mod.rs/__init__barrels (module entry points).gitignore,.npmignore,.dockerignore,.editorconfig,.nvmrcpackage.json, lockfiles,go.mod,Cargo.toml, manifests.env.example, config stubs,robots.txt,favicon.ico,.htaccess- CI/workflow files,
Dockerfile,Makefile
- Only then treat it as a deletion candidate. Genuinely safe candidates:
editor/OS cruft (
.DS_Store,Thumbs.db,*.swp), stray temp files (*.tmp,*.bak,*~), duplicate/leftover files the user confirms.
When in doubt, list it as "suspected unnecessary — confirm?" rather than deleting. It is always better to leave a harmless file than to delete a load-bearing one.
Step 6 — Report
Summarize what changed: files moved (old → new), references updated, empty dirs removed, files deleted, and anything you deliberately left alone with the reason. If a build/test was available, state that it still passes.
Rules
- Plan and get approval before changing the tree. No surprise moves/deletes.
- Update references whenever you move a file — a move without fixing paths is a bug, not a cleanup.
- Never delete a load-bearing file, even if empty. When unsure, keep and ask.
- Use
git mv/git rmfor tracked files so history and staging stay correct. - Don't reorganize generated/dependency dirs — gitignore them instead.
- Prefer the project's existing conventions over imposing a new structure.
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
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.

