query

GitHub

通过检索LLM Wiki知识库回答用户问题,基于证据提供综合解答并引用来源。若发现高置信度的新连接或矛盾解决,则生成新的Wiki页面以沉淀知识,确保回答有据可依且能丰富未来查询。

skills/query/SKILL.md jackwener/llm-wiki

Trigger Scenarios

用户调用 /query 命令 询问Wiki关于某主题的知识 需要基于现有Wiki页面的证据进行综合整理

Install

npx skills add jackwener/llm-wiki --skill query -g -y
More Options

Use without installing

npx skills use jackwener/llm-wiki@query

指定 Agent (Claude Code)

npx skills add jackwener/llm-wiki --skill query -a claude-code -g -y

安装 repo 全部 skill

npx skills add jackwener/llm-wiki --all -g -y

预览 repo 内 skill

npx skills add jackwener/llm-wiki --list

SKILL.md

Frontmatter
{
    "name": "query",
    "description": "Answer questions from an LLM Wiki vault. Use whenever the user invokes `\/query`, asks what the wiki knows about a topic, or needs an evidence-grounded synthesis of existing wiki pages and their links."
}

Query an LLM Wiki

Answer from the maintained wiki, then capture only durable synthesis that makes future queries more useful.

Workflow

  1. Find the vault and read wiki-purpose.md; confirm that the question falls within its intended scope. Read wiki-schema.md for local conventions.
  2. Search with llm-wiki search "<question>". Use --bm25-only only when vector search is unavailable or inappropriate. Scan wiki/ for exact terms if needed.
  3. Read the matched pages and follow relevant [[wikilinks]] and ## Related sections. Use the graph as context rather than treating search ranking as the answer.
  4. Give a direct answer grounded in the pages. Cite pages as [[slug]], state uncertainty, distinguish evidence from inference, and surface conflicts or gaps instead of guessing.
  5. If the wiki lacks enough evidence, say so and suggest specific material to ingest. Do not fill gaps from unsaved external knowledge.

When knowledge should compound

Write back only a non-trivial, high-confidence synthesis: for example, a new connection among at least three pages, a resolved contradiction, or a useful comparison absent from all source pages. Do not create a page for a simple lookup or speculative conclusion.

For a durable synthesis, create a focused wiki page with complete frontmatter:

---
title: Synthesis Title
description: One-line summary
tags: [synthesis]
sources: [contributing-page-slugs]
source_type: query-synthesis
created: YYYY-MM-DD
updated: YYYY-MM-DD
---

Link it to the contributing pages, append a query entry to wiki-log.md, and run llm-wiki sync. Do not modify anything under sources/.

Version History

  • cd54666 Current 2026-07-11 18:46

Same Skill Collection

skills/ingest/SKILL.md
skills/lint/SKILL.md
skills/llm-wiki/SKILL.md
skills/research/SKILL.md

Metadata

Files
0
Version
cd54666
Hash
82508f1b
Indexed
2026-07-11 18:46

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-08 22:55
浙ICP备14020137号-1 $Carte des visiteurs$