Run a health check on the wiki. Finds broken links, contradictions, orphan pages, missing pages, stale content, cross-namespace duplicates, and incomplete cross-references. Use periodically or when the user asks to clean up the wiki.
Use this workflow to audit wiki quality and fix issues.
Check the runtime context for readable namespaces. Lint should check all readable namespaces and cross-namespace references. Pay special attention to @shared/ consistency.
[[page-name]] and [[@namespace/page-name]] references.[[links]] from other pages.updated dates against raw/ file modification times.index.md.index.md entry points to an existing file.@shared/ with cross-namespace links.Produce a lint report organized by check category:
## Wiki Lint Report — YYYY-MM-DD
### Namespaces Checked
- @shared, @user-xxx, @dept-xxx
### Broken Links (N)
- ...
### Cross-Namespace Duplicates (N)
- ...
### Summary
Total issues: N. Auto-fixable: M.
After presenting the report, offer to auto-fix:
@shared/ (ask before proceeding).Always ask before deleting or significantly modifying existing content.
Append to each checked namespace's log.md:
- [YYYY-MM-DD HH:MM] lint: N issues found, M auto-fixed.