/wiki-lint audits your compiled wiki and surfaces issues before they cause problems. Run it after a compile, after ingesting new sources, or anytime you want to check the state of your knowledge base.
Command
What gets checked
| Check | What it looks for |
|---|---|
| Stale articles | Topics whose source files have changed since the last compile |
| Orphan pages | Articles where source files have been deleted or moved, or articles with zero sources listed |
| Missing cross-references | Topic pairs that share 3 or more source files but don’t link to each other |
| Low coverage sections | Sections tagged [coverage: low] across all articles — flagged as improvement candidates |
| Contradictions | Conflicting facts across articles (different dates for the same event, conflicting metrics, decisions described differently in different topics) |
| Schema drift | Topics in topics/ that aren’t listed in schema.md, topics in schema.md with no corresponding article, or article sections that don’t match the schema’s defined structure |
Output format
- Stale topics — Run
/wiki-compileto refresh - Orphans — Source was deleted; recompile to remove stale references
- Missing cross-references — Consider adding a reference to
[[topic-b]]in topic-a’s Summary section - Contradictions — Check the named source files to determine the correct value
- Schema drift — Add or remove the listed topic from
schema.md
Lint log
Each lint run is appended to{output}/compile-log.md: