tidylisted
Install: claude install-skill smkg75/wikidoc
# Tidy
The upkeep of the wiki, done alone: examine, clean, report. The user reads what changed afterwards; nothing waits on them. Three things make that safe. The workspace is a local git repository, so every clean is one commit the user can read and revert. The examination is finished before the first edit, so each finding is checked against the state it was found in. And a fact is only ever settled by the wiki's own dated replacement or by its source document, never by a guess: what neither settles stays, as an open question.
The audit of a filing rule is another thing: `route.py --audit`, in `skills/tri/SKILL.md`.
## Step 0 — Load
Resolve the workspace: `$WIKIDOC_HOME`, default `~/.wikidoc`. No `wiki/index.md`: stop on "Run `/wikidoc:setup` first". Read `skills/wiki/SKILL.md`: its write rules bind every edit below.
The workspace is a git repository, local, with no remote: `config.yaml`, the ledger and `wiki/` are versioned together. No `.git` at the workspace root: `git init` it there, `.gitignore` `logs/`, `cache/`, `bench/`, `.trash/`, `.DS_Store`, `*.bak*`. Commit whatever is uncommitted as `before tidy <date>`: that commit holds everything sessions wrote since the last one.
The scope: `$ARGUMENTS` is `full`, or no `tidy <date>` commit exists yet, and the whole wiki is read. Otherwise the scope is the diff of `wiki/` since the last `tidy` commit: the changed hunks, and for each fact they carry, the other places in the wiki that speak of the same subject, found by