query

GitHub

基于LLM Wiki知识库回答用户查询。通过搜索和阅读相关页面提供证据支持的解答,并在发现高置信度的新关联或矛盾时,将综合信息写回Wiki以增强知识积累。

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

Trigger Scenarios

用户调用 /query 命令 询问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-07-17 03:26
浙ICP备14020137号-1 $Carte des visiteurs$