Health-check the wiki for contradictions, orphan pages, stale claims, and missing cross-references. Use when the user says "audit", "health check", "lint", "find problems", or wants to improve wiki quality.
Health-check the wiki and report issues with actionable fixes.
Run all checks below, then present a consolidated report.
Scan all wiki pages for [[wikilink]] references. For each link, verify the target page exists. Report any broken links.
# Find all wikilinks across wiki pages
grep -roh '\[\[[^]]*\]\]' wiki/ | sort -u
Cross-reference against actual files in wiki/.
Find pages with no inbound links — no other page references them via [[wikilink]].
For each .md file in wiki/sources/, wiki/entities/, wiki/concepts/, wiki/synthesis/:
[[Page Name]]Read pages that share entities or concepts and look for conflicting claims. Flag when:
Cross-reference source dates with wiki content. Flag when:
Scan for [[wikilinks]] that point to pages that don't exist yet. These are topics the wiki mentions but hasn't given their own page. Assess whether they warrant a page.
Find pages that discuss the same topics but don't link to each other. Look for:
Verify wiki/index.md is complete and accurate:
wiki/sources/, wiki/entities/, wiki/concepts/, wiki/synthesis/ has an index entryBased on the wiki's current coverage, suggest:
Present findings grouped by severity:
For each finding, include:
Ask the user:
"Found N errors, N warnings, and N info items. Want me to fix any of these?"
If the user agrees, fix issues and report what changed.
Append to wiki/log.md:
## [YYYY-MM-DD] lint | Health check
Found N errors, N warnings, N info items. Fixed: [list of fixes applied].
/second-brain-ingest — process new sources into wiki pages/second-brain-query — ask questions against the wiki