| id | 1288e770-c01e-476c-b985-f8a4cce53a94 |
| name | wiki |
| description | Maintain an in-repo markdown wiki under wiki/: init a new wiki, surgically update it after code changes, or answer questions from it. Use for /wiki init, /wiki update, /wiki ask, "generate the wiki", "refresh the docs", "how does X work in this repo" when wiki/ exists, deep-wiki style docs, or keep the wiki in sync — never wipe an existing wiki; prefer small incremental edits. Also use when installing CI that runs wiki update on push. |
| disable-model-invocation | true |
Wiki
In-repo markdown wiki under wiki/. Three triggers — pick one from the user request:
Hard rules
- Never wipe an existing
wiki/. If it exists with real content, use update (even if the user said "generate" or "rebuild"). Only init when there is no usable wiki.
- Prefer small surgical edits on update. No formatting-only churn. No-op is success when nothing relevant changed.
- Respect
.wikiignore at repo root and all .gitignore patterns — never read excluded paths. See references/wikiignore.md.
- Never read or document secrets, credentials, or
.env files (.env.example placeholders are OK).
Init (summary)
- If
wiki/ already has content → switch to update.
- Survey the repo (targeted, not every file).
- Write
wiki/_plan.md (pages, evidence, open questions).
- Execute the plan using toc-and-layout.md and page-writing.md.
- Assemble: listings, root
log.md, .wiki-meta.json.
- Ensure top-level
AGENTS.md / CLAUDE.md keep a short wiki pointer (agents-pointer).
- Write repo-root
.wikiignore when missing (wikiignore).
- Delete
wiki/_plan.md. Report what was created.
Update (summary)
- Diff against
.wiki-meta.json commitHash (and uncommitted changes).
- Soft budget: few source files changed → touch few wiki pages; skip cosmetic edits.
- Optional short
wiki/_plan.md for the edit list; delete it when done.
- Edit in place. Refresh listings/
log.md/meta only if content changed.
- Keep the AGENTS/CLAUDE wiki pointer present (agents-pointer).
- If nothing relevant changed, leave every file untouched and say the wiki is current.
Ask (summary)
Answer from wiki/ first; cite pages; verify source only when the wiki looks stale or incomplete. See ask.md.
Output
wiki/ with concept pages (frontmatter + type), listing index.md files, root log.md, and .wiki-meta.json. Plus a short pointer in top-level AGENTS.md and/or CLAUDE.md.