/para-knowledge-base:kb-queryfrom para-knowledge-base
Queries a PARA-organized Obsidian vault to find information, synthesize answers from documents, inspect recent activity, and record query telemetry. Supports folder, tag, backlink, index, and full-text search routes.
Ships in para-knowledge-base. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Answer vault-based questions by narrowing the search path before reading full documents. Cite sources with [[wikilinks]]. Do not answer from memory alone when the user asks about vault content.
kb-query operation before the first vault lookup and retain the returned operation_id.[[wikilinks]].QuerySummary; the runtime Stop hook then finalizes elapsed time and token deltas including answer generation.Keep source reading under a small budget by default. Expand only when evidence is insufficient.
Agents without a SessionStart hook: on the first vault question of a session, if .para-kb/config.json has schedules, run python3 <plugin>/scripts/para_kb_schedule.py due once. If a task is overdue, mention it in one line after the answer (for example "kb-dream missed Sunday's run; want me to run it?"). Never run it without asking.
| Route | Use when | First move |
|---|---|---|
| A. Direct folder | Target project/category is clear | Read the category index or project hub if present, then selected files |
| B. Tag/topic collection | Topic spans folders | Use tag inventory/search, then inspect matched candidates |
| C. Backlink/reference | User asks what cites or depends on something | Use Obsidian backlinks or targeted wikilink search |
| D. Index/log browse | User asks overview, recent activity, trend, or change history | Read relevant index and only the needed log window |
| E. Full-text search | User gives a term, phrase, error, or concept | Use short search/context results before opening files |
Complex questions can combine routes. Example: project status may use Route A for the project hub, Route D for recent _log.md, and Route E for a specific term.
0. Common/index.md; choose the route that best matches the question.1. Projects/<slug>/_index.md) or inspect 1. Projects/_index.md to resolve the slug. Do not run broad full-text search on the project name before checking indexes.search:context for specific terms, errors, phrases, or concepts. Avoid high-frequency broad queries such as category names, project names, or large OR patterns unless the output is capped._log.md files are usually newest-first when the vault uses them. Read from the top.0. Common/log.md, parse by [YYYY-MM-DD] records and inspect only the requested date range.summary field, read its first paragraph as a lightweight substitute before deciding whether the full document is needed.type: data (large data-style listings — raw exports, link dumps, telemetry-adjacent tables). Read only their frontmatter and summary (or first-paragraph fallback) to judge relevance; open the full body only if the user explicitly asks for its contents.Prefer Obsidian CLI when available because it returns resolved graph/search results cheaply.
obsidian vault="<vault name>" search:context query="term"
obsidian vault="<vault name>" tag name="#proj/example"
obsidian vault="<vault name>" backlinks file="Document Name"
obsidian vault="<vault name>" read path="1. Projects/example/_index.md"
If the active vault is reliable, the vault="..." argument may be omitted. If CLI reports that it cannot find Obsidian, retry once with vault="<vault name>"; then fall back to rg/limited file reads instead of debugging the CLI during the query.
Fallback hierarchy: index/hub -> tag or filename hit list -> short context snippet -> target section -> full document.
[[wikilinks]]; include file paths only when needed for disambiguation.kb-ingest/vault write rules only after the user wants that.Query telemetry is optional. This skill defines the record shape and semantic summary guidance; runtime hooks, wrappers, or local automation must perform any reliable numeric capture. When configured, write query-related operational records to 0. Common/.telemetry/query-telemetry.jsonl. Do not create multiple query-log files. The telemetry file is not a knowledge note, is not indexed, and is not read during normal vault search.
Hooks or wrappers should record numeric data when possible:
The skill should not hand-estimate numeric cost fields. It opens an explicit operation boundary before retrieval, then adds one compact semantic QuerySummary after synthesis is ready and immediately before returning the answer. This fills the fields hooks cannot infer well: route, entrypoints, inspected documents, coarse request type, and confidence. The helper measures the operation and the Stop hook emits QueryComplete, so a long unrelated agent turn is never relabeled as query latency.
One skill execution should stay under one operation_id, linked to its parent runtime request_id:
query-start creates the operation and prints its operation_id and parent request_id.query-summary reuses both exact ids and writes QuerySummary.QueryComplete with operation elapsed time and measured token delta.Do not omit the start call, invent ids, or recover them with latest_state() at completion. If start failed, write a semantic summary only when useful and leave operation timing unavailable.
QuerySummary semantic schema (numeric fields are added by the helper):
{"source":"kb-query-skill","operation_id":"exact id returned by query-start","request_id":"exact parent id returned by query-start","request_type":"lookup|synthesis|maintenance|write|mixed","route":["A:direct-folder","D:index-log"],"entrypoints":["1. Projects/foo/_index.md"],"documents_read_count":3,"documents_read_paths":["1. Projects/foo/_index.md","1. Projects/foo/overview.md"],"search_step_count":2,"confidence":"medium"}
Guidelines:
documents_read_paths: files actually opened/read and used for the answer. Do not include every search hit, directory, config file, telemetry file, or incidental path seen in tool output.AutoPathSummary; QuerySummary should be the concise semantic record, not a full trace.request_type to separate lookup/synthesis from write or maintenance requests.search_step_count as the number of distinct search/narrowing moves, not the number of files read.The plugin bundles one portable helper for both Claude Code and Codex. Resolve it from the plugin root; do not use a user-home script path. It discovers .para-kb/config.json from the vault working directory and fails closed outside a configured/detectable Obsidian vault.
Start it immediately after parsing the request and before the first vault lookup:
PARA_KB_PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-${PLUGIN_ROOT:-}}"
python3 "$PARA_KB_PLUGIN_ROOT/scripts/para_kb_telemetry.py" query-start <<'JSON'
{"source":"kb-query-skill"}
JSON
Retain the printed operation_id and request_id (query_id may also be printed as a one-release compatibility alias). After the final evidence set and synthesis are ready, write the semantic summary immediately before returning the answer:
PARA_KB_PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-${PLUGIN_ROOT:-}}"
python3 "$PARA_KB_PLUGIN_ROOT/scripts/para_kb_telemetry.py" query-summary <<'JSON'
{"source":"kb-query-skill","operation_id":"query-... returned by query-start","request_id":"parent id returned by query-start","request_type":"lookup","route":["E:full-text-search"],"entrypoints":["0. Common/index.md"],"documents_read_count":1,"documents_read_paths":["0. Common/index.md"],"search_step_count":1,"confidence":"medium"}
JSON
The legacy query-complete helper command remains a temporary alias for query-summary; new instructions and integrations must use the canonical name.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
obsidian, para-method, knowledge-base, vault-search, document-query
npx claudepluginhub ernestolee13/para-knowledge-base --plugin para-knowledge-base6 skills in this plugin
/kb-dreamOffline consolidation pass for a PARA Knowledge Base ("dreaming"). Re-checks volatile notes (next actions, status lines, indexes, agent memory notes) against recent logs and the files themselves, fixes what is mechanical, and writes proposals for the rest. Use on a schedule (weekly by default), when a scheduled run is reported overdue, or when the user asks to "dream", consolidate, refresh stale notes, or check whether the wiki is still true./kb-indexUpdate Knowledge Base indexes. Smart mode detects changes and updates only what's needed. Full rebuild available with --full flag. Use after adding/moving documents or when indexes feel stale./kb-ingestBuild and integrate documents in a PARA Knowledge Base. Classifies, creates or moves, summarizes, links, indexes, validates, and records new vault knowledge from Inbox, a specified path, or a direct request to create/update wiki content./kb-initInitialize or adopt a portable PARA Knowledge Base in an Obsidian vault. Detects numbered, standard, or configured roots; creates indexes and a log when requested; and installs shared rules/config for Claude Code, Codex, and local consumers./kb-lintHealth check for the PARA Knowledge Base. Detects orphan documents, broken links, index drift, tag issues, and stale content. Run periodically or as part of weekly review.Other plugins' skills for the same job