/wiki-suite:wiki-lintfrom wiki-suite
Health check the project wiki. Finds orphans, broken links, contradictions, stale pages. Writes maintenance report. Suggests log rotation when log.md > 500 entries. AUTOMATICALLY INVOKE when: "wiki health check", "lint the wiki", "audit wiki", "find wiki issues", "check wiki quality", "wiki maintenance"
Ships in wiki-suite. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run a comprehensive health check on the project wiki. Write a maintenance report.
Locate WIKI_DIR by searching for .wiki/log.md from the git root upward (matches hook sentinel, max 4 levels).
If not found: print "No wiki found. Run /wiki-init first." and stop.
TODAY = current date YYYY-MM-DD
REPORT_PATH = .wiki/maintenance/lint-TODAY.md
Glob all .md files under .wiki/.
If file count > 200: print "Wiki has N files — processing first 200 only" and truncate.
Read .wiki/index.md for INDEXED_PAGES (all rows in the Pages table).
An orphan page is in WIKI_DIR but:
INDEXED_PAGES (not in index.md), ANDTo check inbound links: Grep for each page's filename across all wiki files. Collect ORPHANS.
Grep all wiki pages for markdown link patterns [text](path).
For each internal link (not starting with http): verify the target file exists.
Cap at 50 pages for link checking. Note if truncated.
Collect BROKEN_LINKS with: page containing the link, link text, target path.
Read entity pages (cap at 20).
Look for cases where two - **From SOURCE:** bullets make incompatible factual claims
about the same entity (e.g., "X uses approach A" vs "X uses approach B").
Collect CONTRADICTIONS with entity page, claim A, claim B, and their sources.
A page is potentially stale if its Last Updated date in index.md is > 180 days ago.
Collect STALE_CANDIDATES.
Terms appearing 3+ times across multiple pages but lacking their own entity page. Cap at 10 results. Collect MISSING_CONCEPTS.
Count entries in .wiki/log.md.
If count > 500: add suggestion to archive: "Log has N entries (>500) — consider archiving old entries to .wiki/log-archive-YYYY.md"
Read all entity pages under .wiki/entities/ (cap at 200).
A page is missing v2 frontmatter if its YAML frontmatter block (between --- delimiters) lacks ANY of:
confidence, sources, related, description
(a description: whose value is an empty string "" counts as missing; pages with no --- block at all are also flagged)
Collect MISSING_FRONTMATTER with page path and which fields are absent.
Read entity pages that contain a ## Contradictions or ## Contradictions / Open Questions section (grep first, then read those pages only — cap at 20).
A contradiction section is unresolved if it contains no line starting with Decision:, Resolved:, or the word Unresolved as an explicit marker.
An empty section body (section header with no content) counts as unresolved.
Collect UNRESOLVED_CONTRADICTIONS with page path and the section content.
Read entity pages with confidence: high in frontmatter (grep first, then read those pages — cap at 30).
A page is stale-high-confidence if last_verified is absent OR last_verified date is more than 180 days before TODAY.
This is an advisory flag only — never modify the confidence field.
Collect STALE_HIGH_CONFIDENCE with page path, last_verified date, and days elapsed.
Read entity pages with access_count: in frontmatter (grep first; cap at 200).
Hot pages: top 10 by access_count value (descending). Skip pages with
access_count: 0. These are the high-value entities — surface to the user
so they know what's earning its keep.
Underused pages: pages where access_count == 0 (or field absent) AND
created (or last_updated if created absent) is more than 90 days
before TODAY. These are stale-on-arrival — never accessed since creation.
Pages with neither field are fine — they're either pre-v3 (treated as access_count=0) or freshly written and haven't been hit yet.
Collect HOT_PAGES (slug + count) and UNDERUSED_PAGES (slug + age_in_days).
Write REPORT_PATH with the full detailed report (markdown format for Obsidian readability).
Then print a terminal dashboard to the user:
╔═══════════════════════════════════════╗
║ 🔍 Wiki Lint — [repo name] ║
║ Pages: [N] | Date: TODAY ║
╚═══════════════════════════════════════╝
Health Checks
┌─ Orphan pages [✓ 0 | ⚠ N found]
├─ Broken links [✓ 0 | ✗ N broken]
├─ Contradictions [✓ 0 | ⚠ N flagged]
├─ Stale pages (>180d) [✓ 0 | ⚠ N stale]
├─ Missing concepts [✓ 0 | ▸ N suggested]
├─ Log rotation [✓ OK | ⚠ N entries > 500]
├─ Missing v2 frontmatter [✓ 0 | ⚠ N of M pending]
├─ Unresolved contradictions [✓ 0 | ⚠ N pages]
├─ Stale high-confidence [✓ 0 | ⚠ N >180d]
├─ Hot pages (top 10) [▸ N have access_count > 0]
└─ Underused pages [✓ 0 | ▸ N untouched in 90+ days]
[If any issues found, list top 3 most actionable:]
━━━ Top Actions ━━━━━━━━━━━━━━━━━━━━━
1. [action — e.g., "Fix 2 broken links in entities/"]
2. [action — e.g., "Create entity page for 'attention' (mentioned 5×)"]
3. [action — e.g., "Review contradiction in transformer-architecture.md"]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Report: maintenance/lint-TODAY.md
Use ✓ for clean checks, ✗ for critical issues (broken links), ⚠ for warnings, ▸ for suggestions.
Add lint report to .wiki/index.md:
| maintenance/lint-TODAY.md | Lint report TODAY | TODAY |
Append to .wiki/log.md:
[TIMESTAMP] LINT lint-TODAY: N orphans, N broken links, N contradictions
What SKILL.md sets; muted values are Claude Code's defaults
sonnetOther plugins' skills for the same job
7 skills in this plugin
/proactive-researchHook-driven proactive research pipeline. Runs automatically via UserPromptSubmit
— there is no slash command to trigger it. This page documents how it works,
how to disable it, and the env-var knobs.
/wiki-ingestAdd a source to the project wiki. Spawns a background agent — the main conversation
continues immediately while the wiki builds async. Zero wait time.
AUTOMATICALLY INVOKE when: "ingest this", "add to wiki", "learn from this",
"process this document", "track this article", "add this URL to wiki",
"ingest this paper", "add this to the knowledge base"
NOT for: querying (use /wiki-query), loading context (use /wiki-load)
/wiki-initSet up an LLM wiki for this repository. Creates directory structure and SCHEMA.md.
The SessionStart hook auto-detects and injects the wiki from this point forward.
AUTOMATICALLY INVOKE when: "set up wiki", "wiki this repo", "create wiki",
"create knowledge base", "track what I read", "initialize wiki"
NOT for: querying (use /wiki-query), ingesting sources (use /wiki-ingest)
/wiki-loadJIT wiki-context loader: searches project wiki + global wiki for topic.
Loads raw pages — no synthesis. Unified retrieval interface for all knowledge tiers.
AUTOMATICALLY INVOKE when: "what do we know about", "load context for",
"pull in wiki context", "find in wiki", "look up in the wiki", "load the wiki page for",
"what's in the wiki about", "load knowledge about"
PROACTIVELY INVOKE when: wiki-notify injects WIKI_PARTIAL previews and current task
involves planning/designing/debugging/answering those topics — full-page retrieval
required before substantive work. Also invoke when entering plan-mode for features
touching wiki-documented domains.
NOT for: synthesized answers (/wiki-query), source ingestion (/wiki-ingest)
/wiki-processProcess pending wiki queue entries — spawns Sonnet to extract knowledge from session
transcripts and wiki changes. This is the engine that makes the wiki self-building.
AUTOMATICALLY INVOKE when: "process wiki queue", "wiki process", "extract sessions",
"process pending sessions", "run queue processing"
Subcommands: --status (show queue), --consolidate <topic> (merge sessions into topic)
NOT for: ingesting sources (use /wiki-ingest), querying (use /wiki-query)
/wiki-querySynthesize an answer from the project wiki with citations.
Optionally save the result as a new wiki page.
AUTOMATICALLY INVOKE when: "query the wiki", "what does the wiki say about",
"synthesize from wiki", "wiki answer for", "ask the wiki about"
NOT for: loading raw context (use /wiki-load), ingesting sources (use /wiki-ingest)
npx claudepluginhub whichguy/claude-craft --plugin wiki-suite