An LLM Wiki is not ordinary RAG. The agent compiles source material into a persistent, cross-linked Markdown wiki that grows through every ingest, query, compile, lint, teach, and audit operation.
Use three conceptual layers:
CLAUDE.md, AGENTS.md, a vault convention note, or a map-of-content page that describes scope, naming, page types, source policy, and workflows.Respect the user's existing layout. Common structures:
<wiki-root>/
raw/
wiki/
index.md
log.md
audit/
resolved/
<wiki-root>/
sources/
notes/
maps/
reviews/
<wiki-root>/
CLAUDE.md
log/YYYYMMDD.md
wiki/concepts/
wiki/entities/
wiki/summaries/
outputs/queries/
audit/resolved/
Do not migrate the vault just to match a template. Create missing pieces only when they help the user's workflow.
Purpose: overview, scope, learning path, map of modules, important concepts, and source coverage. Topic pages should guide navigation rather than carry all detail.
Suggested sections:
Purpose: detailed, reviewable explanation of a coherent subtopic.
Suggested sections:
Purpose: reusable idea that appears across multiple topics.
Suggested sections:
Purpose: people, tools, organizations, products, papers, datasets, places, or projects.
Suggested sections:
Purpose: structured extraction from a source that has independent value or needs provenance.
Create source pages when citation, provenance, or source-level review matters. Do not create one source page per note by default if the material is better compiled into topics and modules.
Add learning sections to topic, module, or concept pages when the goal includes understanding, judgment, or reading practice:
Use this when reorganizing messy notes, exported notebooks, book notes, course notes, or research folders.
Avoid mechanical cleanup. The rebuilt wiki should help the user review, reason, compare, and apply the material.
Use when the user is reading with curiosity, emotion, or a live purpose.
Use when the user needs deep understanding.
Use when the user wants judgment, taste, non-consensus thinking, or multi-model reasoning.
The index or map-of-content is a navigation tool, not a long summary.
# Index
## Topics
- [[topic-example]] - one-line scope
## Modules
- [[module-example]] - one-line role
## Concepts
- [[concept-example]] - reusable idea
## Entities
- [[entity-example]] - relevant person/tool/project
## Sources
- [[source-example]] - source summary
## Learning Paths
- [[topic-example#Learning path]]
## Open Questions
- ...
Every durable wiki page should be reachable from the index, map, or a nearby topic page.
Use the vault's existing history convention. A simple format:
## [2026-04-25 14:30] ingest | source-name
- Updated: [[module-example]], [[concept-example]]
- Added: [[source-example]]
- Noted: conflict with [[concept-old]]
Common operations: init, ingest, query, promote, teach, compile, split, merge, lint, audit.