wiki-query
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.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
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.
用 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.
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.
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.
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 | wiki-query |
| description | 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. |
You are the wiki query handler. Follow this workflow to search the knowledge base and synthesize an answer.
Triggered by: "what do we know about X?", "summarize project Y", or /wiki-query
Before searching, classify the user's question into one of three patterns:
| Pattern | Trigger | Example |
|---|---|---|
| Project search (vertical) | User mentions a specific project or tag | "summarize project-alpha", "what is BP59 in project-beta?" |
| Concept search (horizontal) | User asks about a concept/entity without specifying a project | "what is RAG?", "what do we know about OpenAI?" |
| Cross-project search | User asks about connections or comparisons across projects | "which projects use RAG?", "compare how alpha and beta use OpenAI" |
Before using any tool, reason about the query on your own:
--tag filteringThis is pure reasoning — no tools, no file reads. You must think first so the deterministic search can cast a wide net without anchoring your judgment.
Aim for 10-30 terms. More is better — the tool handles volume efficiently.
Pipe ALL terms from Step 2 into wiki_search.py, one per line:
echo "term1
term2
term3" | python tools/wiki_search.py --json [--tag TAG]
Use --tag TAG for project searches (vertical pattern).
Omit --tag for concept and cross-project searches.
The tool scans every wiki page mechanically and returns a ranked list with: page path, title, description, type, tags, matched_terms, match_count, wikilinks.
If the tool returns no results, the wiki may be empty or the terms too narrow. Try broader terms, or inform the user that no KB content matches.
match_count >= 2 OR whose title/description is clearly
pertinent to the query, read the full file — do NOT skip pagesIf the wiki is empty, say so and suggest running /wiki-ingest first.
Before delivering the answer, check whether your own synthesis introduced terms you didn't search for:
wiki_search.py --json (same --tag as Step 3 if applicable)Single pass only — do not re-search recursively.
[[PageName]] wikilinks## Sources section at the end listing pages drawn from