namewiki-lintdescriptionHealth-check the compiled OKF knowledge bundle: consistency, freshness, coverage, connection discovery, gap analysis, and concept size. Outputs a lint report with issues and suggestions. Config-driven via okf.config.json; works for both okf-pure (markdown links) and obsidian (wikilinks) dialects. Trigger when the user says "lint wiki", "wiki检查", "知识库健康检查", "check the knowledge base", or "wiki 查一下有没有问题".
Wiki Health Check (Lint)
Find inconsistencies, staleness, missing coverage, and improvement opportunities
in the bundle. Read-only on concept articles (it only writes the lint report).
Prerequisites
The bundle exists and has compiled concepts. If empty, suggest /wiki-compile.
How to run
Two scripts cover all six categories (paths/dialect come from okf.config.json):
bash
# Categories 1–5: CONSISTENCY, FRESHNESS, COVERAGE, CONNECTIONS, GAPS
python ~/.pi/agent/skills/wiki-lint/scripts/structural_check.py --vault . --pretty
# Category 6: SIZE (reuses wiki-compile's guardrail)
python ~/.pi/agent/skills/wiki-compile/scripts/size_check.py --vault . --pretty
Both emit JSON by default (drop --pretty). structural_check.py accepts
--aged-days, --overconcentrated-n, --short-words. The script already
handles the dialect's link form, escaped pipes in tables, and broken-link
classification — don't hand-roll these checks; extend structural_check.py if a
new check is needed.
If only the wiki-lint skill is installed (no ), run SIZE from
this skill's sibling copy or skip it — categories 1–5 are self-contained here.