healer
Heal the wiki knowledge base — fix orphans, broken links, missing tags, empty pages, index desyncs. Use when the user wants to repair or clean up the wiki.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Heal the wiki knowledge base — fix orphans, broken links, missing tags, empty pages, index desyncs. Use when the user wants to repair or clean up the wiki.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Remove information from the wiki knowledge base — forget projects, entities, or concepts. Use when the user wants to delete or remove wiki content.
Install and verify Python dependencies for JanusLM wiki tools. Invoked automatically when the UserPromptSubmit hook detects missing dependencies, or manually via /setup.
Wiki knowledge base maintenance — health checks, build knowledge graph, view stats. Use for wiki integrity and graph operations. For ingest use /wiki-ingest, for queries use /wiki-query.
Ingest source documents into the wiki knowledge base. Full pipeline from queue management to validation. Use when the user wants to add new documents to the KB.
Query the wiki knowledge base and synthesize an answer. Use when the user asks about topics, projects, people, or concepts that could be in the KB.
Convert non-markdown files to markdown for wiki ingest. Use when the ingest workflow encounters a file that is not .md (docx, xlsx, pptx, pdf, txt, csv, json, html, xml, etc.).
| name | healer |
| description | Heal the wiki knowledge base — fix orphans, broken links, missing tags, empty pages, index desyncs. Use when the user wants to repair or clean up the wiki. |
You are the wiki healer. Your job is to fix problems in the knowledge base using deterministic scripts for detection and state management, and your own reasoning for the actual corrections.
Triggered by: "heal", "fix the wiki", "repair", or /heal
Run: python tools/heal.py --status
"status": "active" with pending items → resume from where you left off (go to Step 3)"status": "empty" → run detection (go to Step 2)Run: python tools/heal.py --detect
This scans the entire wiki using health.py and build_graph.py, then populates
heal_queue.json with all detected problems.
Read the output. If total_pending is 0, tell the user:
"Wiki is healthy — no problems detected."
If problems were found, continue to Step 3.
Run: python tools/heal.py --next 5
This returns the next 5 pending items as JSON. Read them carefully.
For each item in the batch, apply the appropriate correction:
| Type | How to fix |
|---|---|
orphan | Read the file. Find related pages in the wiki (by topic, tag, or content). Add [[wikilinks]] in both directions — in this page and in the related pages. |
phantom_hub | This is a page referenced by others but that doesn't exist. Create it as an entity or concept page via python tools/ingest.py --new-page. Then run python tools/wiki_index.py update --path "<path>" --description "<description>" to complete the index entry. |
missing_tag | Read the file. Deduce the project tag from content, position in the wiki, or related pages. Add the tag to the YAML frontmatter. |
empty_file | Read who links to this page ([[wikilinks]] pointing here). Use that context to populate the page with meaningful content following the page format from the maintainer skill. |
index_desync_stale | Run python tools/wiki_index.py remove --path "<path>" — the file doesn't exist anymore. |
index_desync_missing | Run python tools/wiki_index.py add --section <Section> --name "<Name>" --path "<path>" --description "<description>". |
singleton_tag | Check if it's a typo of an existing tag (e.g., proect-alpha vs project-alpha). If typo: correct it. If legitimate: skip with reason. |
log_missing | Add the missing ingest entry via python tools/log_write.py --op ingest --title "<source title>" --tag <tag>. Use the file's frontmatter for title and tag. |
Ambiguity rule: if you cannot determine the correct fix with confidence (e.g., an orphan
that could belong to multiple projects, a tag that could be either a typo or intentional),
ask the user. Do not guess. Use --skip with a reason if the user declines.
After fixing all items in the batch, mark them:
python tools/heal.py --done id1 id2 id3 id4 id5
For any items you skipped due to ambiguity:
python tools/heal.py --skip id1 --reason "could belong to project-alpha or project-beta"
Run: python tools/log_report.py --json
Read the output and communicate progress factually:
/heal again to continue."heal_queue.json directly.--done or --skip after processing items. The queue is the source of truth./wiki-ingest skill when creating or editing pages.For log entry format and field meanings, see the "Log Format & Contract" section
in the /maintainer skill. Heal entries are written automatically by heal.py --done.