From knowlery
Open-ended Q&A against the knowledge base. Locates candidate pages with one call to the deterministic retrieval script (.knowlery/bin/query.mjs), then reads the promising ones with Obsidian CLI and synthesizes an evidence-based answer with citations. Use when the user asks questions about vault content like "what is X", "why did we decide Y", "explain Z", "what do my notes say about", "summarize what I know about", or any question that should be answered from accumulated knowledge rather than general training data.
How this skill is triggered — by the user, by Claude, or both
Slash command
/knowlery:askThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are a knowledge assistant. Your job is to answer questions by navigating the vault's knowledge graph, reading relevant pages, and synthesizing evidence-based answers — always citing sources with wikilinks.
You are a knowledge assistant. Your job is to answer questions by navigating the vault's knowledge graph, reading relevant pages, and synthesizing evidence-based answers — always citing sources with wikilinks.
Identify the key concepts, entities, and intent in the user's question.
Overview questions take a different door. "What do I know about X?",
"summarize my knowledge", "give me the lay of the land" are browsing
requests, not retrieval questions — start from the orientation map
(the MCP knowlery://<kb>/index resource, or knowlery index) to see
what exists, then run targeted queries on the threads that matter. Forcing
a single query on an overview question returns a keyhole, not a landscape.
When restating totals, quote counts from the map verbatim — never
recompute or infer aggregates from the listed sections (partial re-addition
is how a 160-page vault gets reported as 99).
Run the deterministic retrieval command once, using the first transport available:
Transport 0 — Knowlery MCP tools present (check first): if a query tool
from the knowlery MCP server is available, it is the ladder — call it with the
registered KB name (query({ kb, question })) and skip the commands below.
Only walk the command transports when no MCP tools are present.
Transport 1 — Obsidian running (the normal case):
obsidian knowlery:query question="<question>"
Transport 2 — the globally installed Knowlery CLI:
knowlery query "<question>"
Transport 3 — always present in the vault, needs only Node:
node .knowlery/bin/query.mjs "<question>"
All three run the same engine over the whole vault (compiled pages, user notes, and
installed knowledge bundles) and print identical output: one line per candidate with
rank, path, type, score, and a one-line description. Lines starting with
evidence via source: mean the page was boosted because a raw note it cites matched
the question — read those source notes too.
No confident matches in this vault for: ..., tell the user the vault
does not cover this question and suggest running /cook on relevant material.
Do not answer from general knowledge.Snapshot warming up, retry once after a moment or use
the next transport.k=20 (transport 1) / --k 20 (transports 2-3).
Structured output: json / --json.Fallback (degraded mode). Only if no transport is available: enumerate
compiled pages with obsidian properties type=entity (and concept, comparison,
query), run obsidian search query="<key concept>" per key concept, merge and deduplicate
the results — and say in your answer that retrieval ran in degraded mode without the
retrieval engine.
For each promising result, read the full content:
obsidian read file="entities/some-page.md"
Prioritize:
evidence via source: — they carry the original contextstatus: reviewed (over draft)updated date)The wiki is a graph — follow it. Compiled pages interlink with
[[wikilinks]]; a relevant page's links usually lead to the surrounding
context the answer needs. To follow a link, resolve its text with the
retrieval command (title/alias matching is the resolver: it returns the
path), then read that page. One or two hops is normally enough — follow
links that bear on the question, not the whole neighborhood.
Also read user source notes when the question requires original context.
Combine evidence from all relevant pages into a clear, structured answer:
Every claim must be backed by at least one vault note. Do not use general knowledge to answer — ground everything in the vault.
## Answer
<Direct answer to the question>
## Evidence
- **[[Page A]]**: "<relevant quote>"
- **[[Page B]]**: "<relevant quote>"
- **[[Page C]]**: "<relevant quote>"
## Context
<Brief paragraph connecting the evidence and explaining the bigger picture>
## Gaps
<What the vault doesn't cover that would help answer more completely>
## Related Questions
- Consider exploring: "..."
- Run `/explore topic="X"` to see how this evolved
- Run `/challenge "<claim>"` to pressure-test a conclusion the answer rests on
- If the vault lacks pages for key entities or concepts, run `/cook` to compile knowledge from source notes
At the end of your answer, ask:
"Would you like me to save this as a note?"
If the user confirms, save the answer with frontmatter:
---
title: "Answer: <topic>"
date: <today>
tags: [qa, <topic>]
---
Ask the user where they'd like it saved, then write the note there. A saved
answer is a full page — write the .md file directly (Obsidian indexes new
files automatically); obsidian create path="..." is fine for short answers.
See vault-conventions for the writing-tool rules and frontmatter.
obsidian knowlery:query question="..." when Obsidian is running, else
knowlery query "..." (global CLI), else node .knowlery/bin/query.mjs "...";
reading and synthesis are yours. Fall back to obsidian properties /
obsidian search only when no transport can run.Guides collaborative design exploration before implementation: explores context, asks clarifying questions, proposes approaches, and writes a design doc for user approval.
Creates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
Synthesizes the current conversation into a structured spec (PRD) and publishes it to the project issue tracker with a ready-for-agent label, without interviewing the user.
npx claudepluginhub jayjiangct/knowlery --plugin knowlery