| name | knowledge-map |
| description | Update the docs/ knowledge wiki when adding or changing data structures, modules, optimizations, SIMD paths, or paper references. Triggers on "knowledge map", "wiki", "update wiki", "add to wiki". |
| user-invocable | false |
Knowledge Map Maintenance
The knowledge wiki lives in docs/ with docs/index.md as the entry point. Each core concept has its own page. When the codebase changes in ways that affect the wiki, update the relevant pages.
Page Structure
Every concept page follows this structure:
- Breadcrumb:
[Home](../../) > [Docs](../) > [Category](./) > PageName
- What It Does — one-paragraph summary
- How It Works — key algorithms and data structures
- Depends On — links to wiki pages this concept uses
- Used By — links to wiki pages that use this concept
- Academic Papers — citations with links where available
- Source & Docs — links to implementation files and existing architecture/parsing docs
When to Update
New data structure or module
- Create the page in the appropriate subdirectory (e.g.
docs/parsing/, docs/optimizations/, docs/reference/) following the page structure above
- Add a row to the Core Data Structures table in
docs/index.md
- Update Depends On / Used By sections on related pages (keep these bidirectional)
- If the module has SIMD variants, add to
docs/optimizations/simd-strategy.md
New optimization
- Add a row to the relevant concept page's optimization table (e.g. the Optimization Journey table in
docs/parsing/yaml-index.md)
- If it involves a new SIMD technique, update
docs/optimizations/simd-strategy.md
New academic paper reference
- Add to the Academic Foundations table in
docs/index.md
- Add to the relevant concept page's Academic Papers section
- If the URL is on
doi.org, it's already excluded from link checking (returns 403 to bots)
New SIMD path
- Update the Platform Support table in
docs/optimizations/simd-strategy.md
- Update the Per-Module SIMD Usage section in
docs/optimizations/simd-strategy.md
- Update the SIMD Platform Support table in
docs/index.md if a new platform is added
Formatting Rules
- Tables must use fixed-width columns with consistent padding (invoke the
format-md-tables skill)
- Use mermaid diagrams for flowcharts and dependency graphs, not ASCII art
- Use relative markdown links (not wikilinks)
After Updating
- Append an entry to
docs/log.md with the date, what changed, and what sources were read
- Verify links:
lychee '**/*.md' (or let CI catch them)
- Check that Depends On / Used By links are bidirectional