agentleFS
GucixdevGucixdev/claude-skills/skills/cleandocs/SKILL.md

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.

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
  1. Very specific:

    Wording: Run publish-check (filler, emoji, "robust", "seamless", "honest gap"), then the tone: plain sentences, a number next to every …

    line 33
  2. Very specific:

    Commit as docs: ... in small steps (moves apart from rewording), so a wrong call is one revert.

    line 44

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Inventory. git ls-files '*.md' '*.txt' '*.rst' plus every --help text and man page. Count them first (wc -l), then read by intent (code (reading)).
  2. 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.
  3. 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 by rg; each number is measured again or dropped (rules (rtfm), code (done)). A doc line that cannot be checked is rewritten until it can.
  4. Check the links. Relative links point at files that exist (a loop over rg -o '\]\(([^)#:]+)' results and test -e); anchors match a heading; an external link is kept only when it is the primary source.
  5. 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.
  6. 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.
  7. 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.
  8. Tests still pass and the repo's check / test scripts 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.