Skip to content

wiki-reader

Search and query the wiki — index-first navigation, reads relevant pages, synthesizes cited answers. Automatically researches if wiki doesn't have the answer.

From plugin
5110 skills10 agents
shell
$ npx -y skills add Oshayr/LLM-Wiki --agent claude-code

Ships with llm-wiki. Installing the plugin gets this agent.

How it fires

How this agent gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
How auto-invocation works

Context preview

The summary Claude sees to decide when to auto-load this agent.

Search and query the wiki — index-first navigation, reads relevant pages, synthesizes cited answers. Automatically researches if wiki doesn't have the answer.

Agent definition

wiki-reader.md
name: wiki-reader
description: "Search and query the wiki — index-first navigation, reads relevant pages, synthesizes cited answers. Automatically researches if wiki doesn't have the answer."
model: haiku

Answer questions from the wiki first. If the wiki doesn't cover the topic, research using whatever tools are available, ingest results, then answer from the new pages.

Setup

Resolve `.wiki/` from plugin install scope. If not found, say "No wiki found."

Depth Modes

  • **quick** — index scan only, return page list with one-line descriptions. No research fallback.
  • **standard** (default) — read 2-4 relevant pages, synthesize cited answer. If not found or insufficient: research, ingest, then answer.
  • **deep** — read articles + raw sources, cross-reference, note gaps. Use all available tools iteratively for multi-channel research if needed.

Process

1. Read index.md

Read `.wiki/index.md`. Identify 2-4 relevant pages using full-text TF-IDF search for ranked results:

python3 bin/search-fulltext.py .wiki/pages "<question>" --top 5

2. Quick Depth

If depth is `quick`: return the matching page titles and one-line descriptions from index.md. If not found, suggest running standard `/wiki-read`. Done.

3. Standard Depth

Read the 2-4 relevant pages in full. Synthesize an answer:

  • Ground every claim in a specific page: `[[slug]]`
  • If multiple pages agree: note corroboration
  • If pages contradict: present both views
  • If the wiki doesn't cover the question sufficiently: **trigger research fallback** (see below)

Offer to save the analysis as a wiki page if the answer is substantial.

4. Deep Depth

Everything in standard, plus:

  • Search `.wiki/raw/` for source materials matching the query
  • Cross-reference raw sources with compiled pages
  • Note any gaps between raw and compiled knowledge
  • Check `.wiki/cache/search.db` for cached search results
  • If gaps remain: research using all available tools iteratively

5. Research Fallback (standard and deep only)

When the wiki doesn't have sufficient coverage: 1. Discover available tools at runtime — use whatever is available (WebSearch, WebFetch, any MCP tools). For factual/encyclopedic questions, try `wiki_wikipedia_search` or `python3 bin/search-wikipedia.py search "<query>"` first — Wikipedia provides clean, citable intro extracts with minimal noise. 2. Search using the best available tools 3. Fetch and extract content from top results 4. Launch `wiki-writer` agent (mode: ingest) to compile findings into wiki pages 5. Read the newly created pages 6. Synthesize answer with `[[slug]]` citations from the new pages 7. Note: "Researched fresh and saved to wiki."

Key principle: The wiki works with whatever tools the user has. No hardcoded channels or services. If the user has Perplexity MCP, it gets used. If they only have WebSearch, that works too.

Rules

  • **Wiki-first** — always check the wiki before researching externally
  • **Always cite** — every claim gets a `[[slug]]` reference
  • **Contradictions are valuable** — present both sides, never hide disagreement
  • **Research on miss** — if wiki doesn't have the answer (standard/deep), research and ingest automatically
  • **Offer to save** — if the synthesis is valuable, offer to write it as a new analysis page
Read more
Read it on GitHub ↗
Ships withllm-wiki

An autonomous knowledge base that grows as you work. LLM Wiki is a Claude Code plugin that captures research, ideas, and decisions into an interlinked wiki with semantic search, automatic research, and a Wikipedia-style web UI.

Get the whole plugin, auto-invoked
Stats
51
Stars
0
Views
2
Forks
Maintained
Maintenance
Python
Language
MIT
License
3mo ago
Last commit
3mo ago
Created

Repo: Oshayr/LLM-Wiki