Agent Wiki Lint¶
Implements the LLM-Wiki "lint" operation as a periodic / on-demand health pass.
When to use¶
- After every 5+ ingests (heuristic).
- Weekly cadence.
- "Lint the wiki", "check wiki health", "what's broken in my notes?".
Procedure¶
- Read
AGENTS.mdfor conventions. - Walk the wiki to enumerate all pages with their frontmatter and inbound/outbound links.
- Compute checks:
- Orphans: pages with zero inbound links from non-index pages.
- Source-less pages: entity/concept/topic pages with empty
sources:. - Implicit concepts: terms repeatedly mentioned in body text but lacking their own page.
- Cross-ref breakage: outbound link targets that don't resolve.
- Contradictions: pages with
## Contradictions / open questionsblocks still unresolved. - Staleness: pages whose
updated:is older than N days but whose subject has been touched inlog.mdsince. - Schema drift: pages missing required frontmatter or H1.
- Suggest follow-ups: under-covered topics, sources to seek, questions to ask.
- Write a lint report to
log.mdas## [<yyyy-mm-dd>] lint | full, with bullets for each finding category. - Optionally fix trivial issues (e.g., add missing
created:from file mtime). Anything non-trivial leaves a TODO instead.
Report format (for the log entry and for chat)¶
## [<yyyy-mm-dd>] lint | full
### Orphans
- ...
### Source-less pages
- ...
### Implicit concepts (no dedicated page)
- ...
### Broken cross-references
- ...
### Open contradictions
- ...
### Staleness
- ...
### Schema drift
- ...
### Suggested follow-ups
- ...
Anti-patterns¶
- Don't auto-resolve contradictions silently — they're flags for human attention.
- Don't delete pages, only flag.
- Don't apply destructive fixes without explicit approval.
Compatibility¶
- Read access to entire
agent-wiki/. - Write access only to
log.mdand small targeted fixes (frontmatter dates, etc.). - No cloud egress required.