Use when auditing a wiki for health issues — contradictions between pages, orphan pages, broken cross-references, stale claims, missing pages, or coverage gaps. Run after every 5-10 ingests.
Audit the wiki. Produce a categorized report. Offer concrete fixes. Log the operation.
Find SCHEMA.md (search from cwd upward, or ~/wikis/). If not found, tell the user to run wiki-init first. Read it to get wiki root path and conventions.
Read wiki/index.md, wiki/overview.md, and all files in wiki/pages/. Build a map of:
.md)[[slug]] references found in any pagesources listed in frontmatter🔴 Errors (must fix)
[[slug]] references where no corresponding wiki/pages/<slug>.md existstitle, tags, sources, or updated fields🟡 Warnings (should fix)
[[slug]] links from any other page (excluding index.md and overview.md)🔵 Info (consider addressing)
[[slug]] references that appear 3+ times across the wiki but have no dedicated pageoverview.md that could be answered by a web search or new ingestWrite wiki/pages/lint-<today>.md (do not ask permission — always write this):
---