wiki-maintain
Skill0 starsChanged 3 months agoMITView on GitHub
Change a retrieval wiki built to this contract (a `_index.md` router plus a `_schema.md` page contract), without breaking its structure — edit a page, add a page/pitfall/domain, rename or retire a page, add glossary terms, set up an empty wiki, or re-validate. Use when the user says "/wiki-maintain", "update the wiki", "add a page/domain/pitfall to the wiki", "change what the wiki says about…", "the wiki is wrong about…", "add a term to the glossary", "set up the wiki", or "re-validate the wiki". Read-only lookups belong to /wiki-navigate.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- ankishraj/llm-wiki-md-clitheir own version, first seen Jun 28, 2026
- Oshayr/LLM-Wikitheir own version, first seen Apr 10, 2026
- AGMO-Inc/agmo-everywheretheir own version, first seen Mar 18, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- Oshayr/LLM-Wiki★ 50same name
- AGMO-Inc/agmo-everywhere★ 4same name
- ankishraj/llm-wiki-md-cli★ 1same name
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 repositoryOne other file it gives its agents.
- wiki-navigateSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 1 is distinctive, and 7 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Read <WIKI_ROOT>\_maintenance.md (procedure, touch-lists, checklist, changelog).
- Very specific: line 21
Read <WIKI_ROOT>\_schema.md (voice, frontmatter, templates, vocabularies, canonical names, index format).
- Very specific: line 30
Run <WIKI_ROOT>\_tools\validate.ps1 once to capture the pre-change baseline (issue list, counts, and any vocabularies it reports as not yet …
- Very specific: line 39
If the request needs new facts, locate the exact source and heading now, in the form _sources.md defines.
- Very specific: line 58
Write exactly the approved plan, per _schema.md: fixed frontmatter order, type template headings, canonical names, If … → … .
- Very specific: line 65
Run <WIKI_ROOT>\_tools\validate.ps1 -WriteCatalog.
- Very specific: line 73
Never edit _catalog.yaml by hand, or any source material the wiki cites.
- Distinctive: line 74
Do not hardcode domain names, ids, or counts from memory — read them from the files each time.
“Common” is measured: kept by at least 6 in 10 of the 3 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
wiki-maintain
This skill hardcodes no path. A wiki is any folder holding both _index.md and _schema.md.
Plan → confirm → write → verify. No file is created, modified, renamed, or deleted until the user has seen the exact change and explicitly approved it. This is absolute — it holds for one-line edits, typo fixes, formatting, and changes the user already described in their own request. A request to make a change is not approval of the change.
1. Load the contract (every invocation; never from memory)
- Resolve
<WIKI_ROOT>the way/wiki-navigate§0 does: a path in the request wins; else a saved memory entry, verified; else search the working directory, its children, then its ancestors and their children, for a folder holding_index.md+_schema.md; several hits → ask; none → stop. - Read
<WIKI_ROOT>\_maintenance.md(procedure, touch-lists, checklist, changelog). - Read
<WIKI_ROOT>\_schema.md(voice, frontmatter, templates, vocabularies, canonical names, index format). - If
<WIKI_ROOT>\_bootstrap.mdexists, read it too whenever the request touches domains, the controlled vocabularies (topics,stage,depth), canonical names, or the source form — and whenever_schema.md§5 or §6 still containsTODO, whatever the request. An unpopulated wiki is set up by following_bootstrap.md, not by improvising a schema. - Discover structure at runtime: list
<WIKI_ROOT>\NN-*folders and, for a container (aNN-*folder holding only leaf folders), its leaves; read the target domain's or leaf's_index.md; grep_catalog.yaml(never load it whole) for ids/terms the request mentions. - Run
<WIKI_ROOT>\_tools\validate.ps1once to capture the pre-change baseline (issue list, counts, and any vocabularies it reports as not yet defined).
2. Classify
Map the request to one operation in _maintenance.md §3 (edit page content · add page · add pitfall ·
split/merge · rename/deprecate · add domain · glossary term · top-level file · re-validate only · bulk
import). Take that row's touch-list as the minimum change set. Compound requests compose (split = add +
rename/deprecate). Only bulk import fans out to sub-agents; everything else is one sequential edit.
If the request needs new facts, locate the exact source and heading now, in the form _sources.md
defines. If no source covers it, the change is user-supplied knowledge — say so, and record it as
Maintainer/<date>. If it needs a source not yet in _sources.md, that file and the $sources list in
validate.ps1 are part of the change set.
Setting up an empty wiki is its own path: follow _bootstrap.md in its stated order, and treat each of
its steps as a separate confirm-then-write cycle rather than one bulk approval.
3. Confirm (blocking, absolute)
Fill the change plan in _maintenance.md §6 — paths to create/modify/rename, page ids, frontmatter
deltas, domain index rows and decisions-in-order line, playbook line, glossary rows in stored form
(| term | ≤25-word definition | \see-id` |), overview/root count or structure text, schema/validator
changes (flag), sources per claim (flag Maintainer/<date>), any new source added to _sources.mdand$sources`, catalog regen, draft changelog line. Present it and stop. Proceed only on explicit approval
given after seeing the plan. For any edit small enough that a plan feels excessive, show the exact
before/after text instead — but still stop and wait. A scope change during execution → re-confirm the
delta before continuing.
4. Execute
Write exactly the approved plan, per _schema.md: fixed frontmatter order, type template headings,
canonical names, If … → … . Because … guidance, sources in the wiki's own form, nothing invented. Copy
summary/applies_when verbatim into the domain index row. Rename/remove: grep the whole wiki for the
old id and rewrite every hit; no stubs.
5. Verify and report
- Walk
_maintenance.md§7 item by item; fix until each is true. - Run
<WIKI_ROOT>\_tools\validate.ps1 -WriteCatalog. Required:structure issues: 0; per-page issues no larger than baseline and none on touched files — otherwise fix, or list each remaining one with the reason accepted. If the validator reports vocabularies not yet defined, repeat that in your report. - Append the
## Changelogline (§8) with the validator tail. - Report: files created/modified/renamed, ids affected, glossary rows added, validator result, accepted issues. Do not report complete with an open checklist item.
Rules
- Never edit
_catalog.yamlby hand, or any source material the wiki cites. - Do not hardcode domain names, ids, or counts from memory — read them from the files each time.
_schema.mdchanges are contract changes: call them out in the plan and the report. A change to §5 or §6 must be mirrored in_tools\validate.ps1, and a change to the source form must be mirrored in_sources.md.
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.

