| name | wiki |
| description | Access the LLM Code Wiki — a persistent, LLM-maintained knowledge base over living code repositories. Use when the user wants to map/scan/read a repo into the wiki, ask a question answerable from accumulated knowledge, add/import a source (article, ticket, note), file/save a session insight into the wiki, or check/audit the wiki for staleness. Works from any repo; the wiki root is recorded in ~/.llm-code-wiki. |
Access the LLM Code Wiki
Resolve the wiki root first. Read the pointer file ~/.llm-code-wiki; its single line is the
absolute path to this machine's wiki data (call it <WIKI_ROOT>). If the file is missing or empty,
the wiki isn't set up yet — tell the user to run /setup-wiki, then stop.
On every invocation:
- Read
<WIKI_ROOT>/constitution.md first. It is the single source of truth for how this
wiki is structured and maintained — taxonomy, frontmatter schema, the interaction loop, the
maintenance protocol, and path resolution. Follow it. Do not act on the wiki before reading it,
and do not duplicate its rules here.
- Anchor every path to
<WIKI_ROOT>. Index reads, page paths, repos.md resolution, and the
hash-script staleness checks all resolve relative to <WIKI_ROOT>, not the repo you were
invoked from.
- Follow the interaction loop from the constitution: understand → propose → confirm → write.
Never write to the wiki without the user's confirmation.
- The repo you are currently in may be a source for the wiki — register it in
<WIKI_ROOT>/repos.md — but the wiki itself is always at <WIKI_ROOT>.