cleandocs
Skill0 starsChanged 8 days agoMITView on GitHub
Clean up the documentation of a repo or folder - find what is stale, duplicated, wrong, personal or generated-sounding, check every command and link against the code, keep one README per folder in sync, move notes out and retired files to the trash instead of deleting. Use for cleandocs, clean the docs, uporzadkuj dokumentacje, docs are out of date, before publishing a repo, after a big rename or move.
In this repository37 other files it gives its agents.
- skills/model-surgery/references/agents.mdAGENTS.md
- alienspaceSkill
- announce-anythingSkill
- ask-older-brotherSkill
- audit-everythingSkill
- automate-everythingSkill
- bash-everythingSkill
- claudeSkill
- cli-everythingSkill
- codeSkill
- conventionsSkill
- cppSkill
- day-traderSkill
- decideSkill
- distribute-everythingSkill
- economistSkill
- evolveSkill
- founderSkill
- godotSkill
- hardware-anythingSkill
- karpathySkill
- model-surgerySkill
- nonconformistSkill
- orchestratorSkill
- paying-demandSkill
- publish-anythingSkill
- reaSkill
- rulesSkill
- scrape-everythingSkill
- seedSkill
- ship-anythingSkill
- skill-everythingSkill
- teardownSkill
- uiSkill
- which-licenseSkill
- whiteboard-programmingSkill
- workflowSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 33
Wording: Run publish-check (filler, emoji, "robust", "seamless", "honest gap"), then the tone: plain sentences, a number next to every …
- Very specific: line 44
Commit as docs: ... in small steps (moves apart from rewording), so a wrong call is one revert.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
cleandocs
Docs are code that nobody compiles; this skill is the compiler. The wording rules are conventions (docs), the
public-facing scan is publish-anything; here is the pass that finds and fixes what drifted.
Pass
- Inventory.
git ls-files '*.md' '*.txt' '*.rst'plus every--helptext and man page. Count them first (wc -l), then read by intent (code (reading)). - Classify each file into one of four and act:
- Keep: describes the code as it is now.
- Fix: right idea, wrong detail (a renamed flag, a moved path, an old number).
- Move: notes, braindumps, todo lists, questions, "his words" - they belong in the notes repo
(
claude-config/braindump.md), never in a project repo, least of all a public one. - Retire: duplicated, superseded, or about something gone. It goes to the trash folder, not to
rm(rules (trash-not-rm)); history keeps the rest.
- Check every claim against the code. Each command in a README or doc is run (or
--help'd) once; each path exists; each flag, env var and option name is found byrg; each number is measured again or dropped (rules (rtfm),code (done)). A doc line that cannot be checked is rewritten until it can. - Check the links. Relative links point at files that exist (a loop over
rg -o '\]\(([^)#:]+)'results andtest -e); anchors match a heading; an external link is kept only when it is the primary source. - One README per folder that holds code or data: what it is, how to run it, the one gotcha; its list of files
matches
ls. A folder with nothing to say gets none rather than a stub. - Wording. Run
publish-check(filler, emoji, "robust", "seamless", "honest gap"), then the tone: plain sentences, a number next to every claim, no sales words, no history in comments, no step numbering of obvious things. Headings state what the section holds. - Sync the generated parts. An index, a coverage table or a command list that is produced by a script is regenerated by the script, not edited by hand.
- Tests still pass and the repo's
check/testscripts run clean; a doc change that breaks a doc test is a doc bug.
Report
Five lines in the reply: files kept / fixed / moved / retired, what was run to verify, what is left and why.
Commit as docs: ... in small steps (moves apart from rewording), so a wrong call is one revert.
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.

