wiki-keeper
Skill9 starsChanged 9 days agoMITView on GitHub
Use when /wiki-ingest or /wiki-lint runs, when the user adds a document, link or research to the project, when a question about the project should be answered from its wiki, or when wiki pages are stale, contradictory or over their size budgets.
In this repository18 other files it gives its agents.
- skills/foundation/templates/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- skills/foundation/templates/CLAUDE.mdCLAUDE.md
- audit-ai-design-slopSkill
- backlogSkill
- brainstormSkill
- context-managerSkill
- cortexSkill
- debuggingSkill
- design-studioSkill
- foundationSkill
- idea-researchSkill
- improve-loopSkill
- no-ai-design-slopSkill
- phase-flowSkill
- pipeline-loggerSkill
- releaseSkill
- synapseSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
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 17
Index and log: Add one line for the source page to wiki/index.md (see Conventions).
- Distinctive: line 21
When the user asks something about the project:
- Very specific: line 23
Read wiki/index.md first, then the pages it points to.
- Distinctive: line 25
If the answer required real synthesis and is not in the wiki, offer to file it as a page.
- Distinctive: line 26
If the wiki could not answer, say so, and say which source would.
≈ “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
Wiki Keeper — the second brain
The project's memory follows the LLM-wiki pattern: immutable sources in raw/, a wiki the agents write and keep coherent, and a schema in CLAUDE.md. The user curates sources and asks questions; the agents do the bookkeeping. Four operations.
Ingest (/wiki-ingest <file, path or link>)
- Store the source. Copy it into
raw/(a link: save the readable content toraw/<slug>.mdwith the URL and the date on top). Never edit a file inraw/afterwards. A source that contains keys or credentials does not go intoraw/: tell the user to put it insecrets/. - Read and discuss. Summarise the takeaways in a few lines and ask the user what matters most to them, before writing.
- Write the source page:
wiki/sources/<slug>.mdwith what it says, what it changes for the project, and quotes with their location in the raw file. - Update the pages it touches. A single source often touches several pages (overview, architecture, a domain skill, a decision, the glossary). For each: add the new information with a citation to the source page; when it contradicts what the page says, mark the old claim
~~superseded~~with the pointer, never delete it; when it affects a decision, propose a newDEC-NNNinstead of editing the old one. - Index and log. Add one line for the source page to
wiki/index.md(see Conventions); append## [date] ingest | <title>towiki/log.mdwith the list of pages touched.
Query
When the user asks something about the project:
- Read
wiki/index.mdfirst, then the pages it points to. Go toraw/only for the detail a page cites. - Answer with citations to the pages (and raw files) used.
- If the answer required real synthesis and is not in the wiki, offer to file it as a page. A good answer filed back is worth more than the same answer repeated next month.
- If the wiki could not answer, say so, and say which source would.
Projects with more than about a hundred pages can add a local search tool; the index stays the entry point.
Lint (/wiki-lint)
A health check. Report first, change nothing until the user approves the plan.
Start with the script. From the project root run bash "${CLAUDE_SKILL_DIR}/scripts/wiki-report.sh" (add --all for every page). It reads nothing into context but its own short output: estimated tokens per page against the budget for its type, the five largest pages, index lines over 200 characters, pages missing from the index (the orphans), index entries without a page, relative links that do not resolve (page:line -> target), @ imports in CLAUDE.md outside backticks, and unparsable wiki/log.md headers. Open only the pages it flags and the ones the judgment checks below need. Without Git Bash, make these checks by hand from wiki/index.md and the line counts, and say so.
| Page type | Budget (lines / ~tokens) |
CLAUDE.md (hub) | 120 / 3,000 |
wiki/index.md | 200 / 6,250, one line per page |
wiki/handoff.md · wiki/priorities.md | 80 / 2,000 · 100 / 2,500 |
wiki/sources/<slug>.md | 120 / 1,500 |
wiki/todo.md (notebook) | no cap: lines are never deleted, read only through its script (backlog skill) |
| Any other page (topic) | 200 / 2,000 |
wiki/log.md · wiki/product/decisions.md | Append-only: no budget, never trimmed |
| Check | How |
| Contradictions | Claims on different pages that cannot both be true |
| Superseded but unmarked | Claims a later decision or source has replaced |
| Missing pages | Concepts mentioned on three or more pages without a page of their own |
| Size, index, orphans, links, imports, log | The script's findings: fix each at the page:line it gives |
| Duplicates | Two pages on the same concept: propose merging into one |
| Uncited claims | [FACT] without a source |
| Stale | last-verified older than 30 days on a page whose subject changed since (git log) |
| Drift from the code | Architecture, tech-stack and skills pages that describe what the code no longer does |
| Secrets | Anything resembling a key value outside secrets/ |
The mechanical checks need no agent and no page reads. Contradictions, duplicates and drift need judgment: do them yourself.
Output: the script's totals line, then one table of findings with page, check, evidence and proposed fix, then the plan. Every page over budget gets one proposed fix: split it into smaller focused pages (one concept each, each with its own index line), archive the part that is no longer current, or merge it with its duplicate. Nothing is split, merged or archived without the user's approval of that line of the plan. After approval, apply it, rerun the script to show the new totals, update last-verified on every page touched and log ## [date] lint | <n> fixes, ~<before> → ~<after> tokens.
Archive
Nothing in the wiki is deleted. Content that is no longer current (a closed milestone's details, superseded sections, overflow beyond a budget) moves to wiki/_archive/YYYY-MM/<page>.md, and a one-line stub stays in its place: > Archived YYYY-MM-DD: see wiki/_archive/YYYY-MM/<page>.md#<section>. wiki/log.md and wiki/product/decisions.md are never archived or trimmed. The index gets an "Archive" section.
Conventions
- First line after the title:
> last-verified: YYYY-MM-DD. - One concept per page; many small pages beat a few large ones. Relative links between pages; citations to sources.
- The index is bounded: one line per page,
- [Title](path.md) — summary of at most 150 characters, at most 200 lines; past that, group a folder's pages underwiki/<dir>/index.mdand keep one line for it. On-demand pages sit under a "Not yet created" heading. Detail lives in the pages, never in the index. - Tags:
[FACT],[DECISION],[HYPOTHESIS],[DEPRECATED]. - Log lines start with
## [YYYY-MM-DD] <op> | <title>sogrep "^## \[" wiki/log.md | tailgives the recent history.
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.

