Skip to content
Research
Command

/query

Ask read-only questions against the wiki. Supports quick, standard, deep, list, archived, supplementary-wiki, and resume modes with exact file citations.

From plugin
llm-wiki
1.6k28 skills28 commands
> /plugin marketplace add nvk/llm-wiki
> /plugin install wiki@llm-wiki

Command definition

query.md
description: "Ask read-only questions against the wiki. Supports quick, standard, deep, list, archived, supplementary-wiki, and resume modes with exact file citations."
argument-hint: "<question> [--quick|--deep] [--raw] [--list] [--include-archived] [--resume] [--tag <tag>] [--category concepts|topics|references] [--with <wiki>...] [--wiki <name>] [--local]"
allowed-tools: Read, Glob, Grep

Read-Only Wiki Query

Read `skills/wiki-manager/references/query-lite.md`, then answer `$ARGUMENTS` from the selected wiki. This command is always read-only: do not update indexes or append to `log.md`.

Parse

  • Everything that is not a flag is the question.
  • `--quick`: use index summaries only.
  • No depth flag: standard index-first query.
  • `--deep`: inspect all relevant compiled articles, links, and raw evidence.
  • `--raw`: allow targeted raw-source reads; implied by `--deep`.
  • `--list`: return ranked matching files instead of a synthesized answer.
  • `--include-archived`: explicitly permit archived reads and label them.
  • `--resume`: give a compact activity briefing before answering any question.
  • `--tag` and `--category`: constrain candidate selection.
  • `--with <wiki>`: use an active supplementary wiki as secondary context.
  • `--wiki <name>` and `--local`: select the primary wiki.

Depth

Quick

Read the primary `_index.md` and only the relevant branch indexes. Answer from their summaries and tags. If they are insufficient, say so and recommend the standard mode. Cite the index paths used.

Standard

Use the query-lite protocol: master index, relevant branch index, then the minimum exact articles. Use one bounded Grep only when indexes miss a likely match. Follow directly relevant See Also links. Cite exact files and surface confidence or evidence gaps that affect the answer.

Deep

Read all relevant branch indexes and articles, follow relevant cross-links, search `wiki/` and `raw/` with bounded patterns, and inspect active sibling indexes for overlap. Archived sibling indexes may be reported separately, but archived article bodies require `--include-archived`.

List Mode

Return a compact ranked list. Rank title matches above summary matches, summary above body matches, and multiple-term matches above single-term matches. Show title, exact path, summary, and tags. Include raw matches only with `--raw`. Keep archived results separate and only include them when explicitly allowed.

Resume Mode

Start with `<wiki-name> booted from <wiki-root-path>`. Read only the active session/checkpoint files, the recent tail of `log.md`, the master index stats, and the three most recently updated index entries. Report interrupted work, recent activity, stats, recent articles, and concrete next steps. If a question is present, answer it afterward using standard depth.

Supplementary and Archived Wikis

The primary wiki provides the subject. `--with` wikis provide secondary craft or domain context and must remain clearly attributed. Reject archived primary or supplementary targets unless `--include-archived` is present. Label every archived citation.

Output

Answer directly with exact file citations. For standard or deep answers, add short `Sources used` and `Knowledge gaps` sections only when useful. For list or resume-only output, omit those sections. Never use training data to fill a wiki gap and never mutate the wiki while answering.

Read more
@nvk
Ships withllm-wiki

LLM-compiled knowledge bases for any AI agent. Parallel multi-agent research, thesis-driven investigation, source ingestion, wiki compilation, querying, and artifact generation.

Stars on GitHub

Momentum

stars in total
1.6k
Star history of nvk/llm-wiki on GitHub, a chart by star-history.com

Other commands on llm-wiki.

adapter

adapter

Command

Route to, register, inspect, validate, and run explicitly trusted local private adapters without putting their code or bulk data…

@nvk@nvkInstall Command
archive

archive

Command

Archive or restore whole topic wikis so old interests stay preserved but out of default context. Archived topics move under…

@nvk@nvkInstall Command
assess

assess

Command

Assess a local repo against the active wiki's research body and the broader market. Gap analysis, opportunities, competitive…

@nvk@nvkInstall Command
audit

audit

Command

Truth-seeking umbrella audit for llm-wiki. Combines active wiki maintenance, output drift checks, provenance review, and fresh…

@nvk@nvkInstall Command
checkpoint

checkpoint

Command

Export, refresh, verify, or import a comprehensive cross-topic Project Knowledge Checkpoint for a repository, with privacy checks.

@nvk@nvkInstall Command
collect

collect

Command

Find, catalog, deduplicate, and optionally inventory bounded sets of artifacts, examples, resources, memes, tools, entities,…

@nvk@nvkInstall Command

More commands from other plugins.

discuss

discuss

Command

Deep Q&A on a paper already analyzed. Actively records valuable insights to the note file during the discussion, without waiting…

@aipoch@aipochInstall Command
delegate

delegate

Command

为代码/实验任务生成 Codex prompt,用户复制到新终端执行,结果自动落到共享文件

@ligphidonk@ligphidonkInstall Command