一键导入
wiki-doctor
Use when the user asks for a health check, lint, audit, or wants to check for orphan pages, contradictions, or data gaps in the Wiki.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when the user asks for a health check, lint, audit, or wants to check for orphan pages, contradictions, or data gaps in the Wiki.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when the user notices a system, concept, person, project, decision, competitor, or problem is missing from the Wiki and wants to create a page for it.
Use when the user asks any question, requests research, or wants information from the knowledge base. This is the default action in this repository — when in doubt, search the Wiki. Use for "find me...", "what do we know about...", "tell me about...", "who is...", "what is...", or any general research question.
Use when the user asks to ground this conversation in the knowledge base, says "wiki-ground", asks to treat the KB as source of truth, or wants domain answers backed by the Wiki. Optional topic front-loads relevant knowledge base pages.
Use when the user asks to finalize an ingest, merge batch logs, or rebuild Wiki indexes after a batch import.
Use when about to process individual notes during Wiki ingestion — loaded as a required background skill by wiki-ingest and wiki-ingest-next-batch. Contains file conversion rules, topic assignment rules, WikiLink rules, and the session log format.
Use when the user asks to ingest, import, or process one or more notes; mentions a raw note file path; provides a Confluence URL or page title; or says "ingest note", "ingest notes", "ingest new notes", or "ingest files". NOT for Slack messages — use wiki-fetch-slack instead.
| name | wiki-doctor |
| description | Use when the user asks for a health check, lint, audit, or wants to check for orphan pages, contradictions, or data gaps in the Wiki. |
Run this command first — it auto-fixes trivial WikiLink mismatches and reports what remains broken:
python3 scripts/wiki-doctor.py --format json --fix-simple-errors --batch-mode
python3 scripts/wiki-doctor.py --format json --fix-orphans --batch-mode
--fix-simple-errors repairs WikiLinks where a unique normalized match exists (e.g. colons vs underscores in filenames), and relocates loose non-markdown files (in raw/, wiki/, INBOX/) into sibling _resources/ directories via the Obsidian CLI, converting them to companion .md notes. These are applied immediately without requiring user confirmation. Loose-file moves need Obsidian: the doctor starts it automatically when it is not running, and if it cannot be started the files are skipped with a WARNING in the output.--fix-orphans repairs orphaned pages by replacing matching plain text WikiLink names in files with an actual link.python3 scripts/wiki-doctor.py
Use this command to scan markdown files for stubs:
find wiki -name "*.md" -exec awk '/^---/{p++} p==1{print FILENAME": "$0} p==2{p=0; nextfile}' {} + | grep "stub:.*true"
If any exist, list them in a "Stubs still needing expansion" section so the user knows what gaps remain.
Use this command to scan markdown files for known contradictions:
find wiki -name "*.md" -exec awk '/^---/{p++} p==1{print FILENAME": "$0} p==2{p=0; nextfile}' {} + | grep "contradiction:.*true"
If any exist, list them in a "Contradictions that still need resolution" section so the user knows what gaps remain.
Run the supersession lint:
python3 scripts/system/wiki-supersession-lint.py
superseded_by targets, ambiguous targets, missing reciprocal supersedes back-links, or cycles. These should be fixed (the successor must exist and link back)..wiki-scratch/supersession-candidates.md: pages whose body says they were superseded/replaced/decommissioned but have no superseded_by field yet, with a guessed successor where one was found. Point the user to it. Do NOT auto-apply — each needs confirmation, then add superseded_by to the old page and reciprocal supersedes to the successor (see wiki-templates).Run the one-command freshness check when the user wants currentness/drift status, after fixing doctor findings, after ingest/finalize, or before a freshness-sensitive query/report:
scripts/wiki-freshness.sh --root .
Tell the user they can also simply ask for wiki-freshness or "freshness check". This is separate from doctor: doctor checks structural health; freshness checks provenance, drift candidates, and the coverage backlog.
Present recommendations only — never modify the Wiki for these without user confirmation.
wiki/index.md, suggest adding it.