generating-lattice
Installation
SKILL.md
Generating Lattice
Generate and maintain lat.md/ knowledge graphs — structured, cross-referenced
markdown anchored to source code symbols. The output is validated by the lat
CLI, which catches documentation drift whenever code or docs change.
The core mechanism is bidirectional linking:
- Top-down (docs → code):
[[src/auth.js#getValidToken]]wiki links inlat.md/files point to specific symbols in source. When a symbol is renamed or deleted,lat checkcatches the broken link. - Bottom-up (code → docs):
// @lat: [[auth#Token Refresh]]comments in source point back to the concept they implement. When a section is renamed or removed,lat checkcatches the dangling reference.
Without both directions, the lattice is a static essay that drifts silently.
With both, lat check enforces consistency.