From deep-wiki
Check wiki health — find contradictions, orphan pages, broken links, schema violations, and stale content. Includes a status dashboard.
npx claudepluginhub sungmin-cho/claude-deep-suite --plugin deep-wiki[--fix]# /wiki-lint — Wiki Health Check Inspect the wiki for structural issues, inconsistencies, and schema violations. ## Prerequisites Read `~/.claude/deep-wiki-config.yaml` to get `wiki_root`. If missing, tell the user to run `/wiki-setup` first. Load the `wiki-schema` skill for validation rules. Read `wiki-schema.yaml` for the machine-readable schema definition. #### Obsidian CLI Liveness Check If the config contains `obsidian_cli.available: true`, check if the Obsidian app is running: - **Success** → `OBS_LIVE=true`, read `wiki_prefix` from config. - **Failure** → `OBS_LIVE=false`, u...
/wiki-lintRuns wiki health check detecting contradictions, orphan pages, stale claims, missing pages, hash mismatches between wiki and WARM files; produces structured Markdown report. Supports --fix auto-resolve, --project, --retire-preview.
/wiki-lintRuns health checks on compiled wiki detecting stale articles, orphan pages, missing cross-references, low coverage sections, contradictions, and schema drift. Outputs summary, fix suggestions, and logs results.
Inspect the wiki for structural issues, inconsistencies, and schema violations.
Read ~/.claude/deep-wiki-config.yaml to get wiki_root. If missing, tell the user to run /wiki-setup first.
Load the wiki-schema skill for validation rules. Read wiki-schema.yaml for the machine-readable schema definition.
If the config contains obsidian_cli.available: true, check if the Obsidian app is running:
obsidian version 2>/dev/null
OBS_LIVE=true, read wiki_prefix from config.OBS_LIVE=false, use filesystem-only checks.Report these metrics first:
.md files in pages/.yaml files in .wiki-meta/sources/log.jsonlts in log.jsonl.wiki-meta/.versions/If OBS_LIVE, enhance tag statistics:
obsidian tags counts sort=count format=json
Wiki boundary filter required. The tags command may return vault-wide results (
path=may not support folder scoping). Post-filter the output to include only tags from files under<wiki_prefix>/pages/.
For each page in pages/, verify required frontmatter fields:
title — must be present and non-emptysources — must be present (list, can be empty for manually created pages)tags — must be present and non-emptyReport pages that fail schema compliance.
An orphan page is one that:
(<filename>) pattern)Exclude welcome.md from orphan detection (it is the entry point).
If OBS_LIVE, use Obsidian's link graph for more accurate orphan detection:
obsidian orphans 2>/dev/null
Wiki boundary filter required. This command returns vault-wide results and does not support
path=scoping orformat=json. Parse line-by-line and keep only entries starting with<wiki_prefix>/pages/. Discard all other vault notes. On parse failure, fall back to the regex-based scan above.
For each markdown link [text](target.md) found in pages:
target.md exists in pages/If OBS_LIVE, supplement with Obsidian's unresolved link tracking:
obsidian unresolved format=json 2>/dev/null
Wiki boundary filter required. This returns vault-wide results. Keep only entries where the source or target is under
<wiki_prefix>/pages/. Discard unrelated vault entries.
Check index.json for:
For each page, check that every slug in sources: frontmatter has a corresponding .wiki-meta/sources/<slug>.yaml file. Report missing source provenance.
Read pages that share the same tags or source slugs. For each group of related pages, check if any statements directly contradict each other. Focus on:
For each detected contradiction, report:
This is a semantic check — read the actual page content, not just metadata. Flag contradictions as [CONTRADICTION] in the report. If the wiki has many pages, prioritize pages with overlapping tags.
Count versions in .wiki-meta/.versions/ per page. Report pages with more than 3 versions (candidates for pruning).
Compare index.json entries against actual page files:
If drift is found, suggest running /wiki-rebuild.
Present a structured report:
## Wiki Health Report
### Dashboard
- Pages: 42 | Sources: 15 | Last activity: 2026-04-06
### Issues Found
- [SCHEMA] 2 pages missing required frontmatter
- [ORPHAN] 3 pages have no inbound links
- [BROKEN] 1 broken link found
- [CONTRADICTION] 1 semantic contradiction between page-x.md and page-y.md
- [DRIFT] index.json is out of sync (2 unindexed pages)
### Recommendations
- Run /wiki-rebuild to fix index drift
- Review orphan pages: page-a.md, page-b.md, page-c.md
If the user passed --fix: