agentsclimarketplace

Obsidian query agent

Skill richfrem/agent-plugins-skills/plugins/obsidian-wiki-engine/skills/obsidian-query-agent

repo for reusable plugins and skills

Install
npx -y skills add richfrem/agent-plugins-skills --skill obsidian-query-agent

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Progressive-disclosure query against the Obsidian LLM wiki. Returns RLM summary first, expands to bullets, then full wiki node on demand. Use when looking up concepts, searching the wiki, or getting instant context from the knowledge graph.

SKILL.md

4.0 KB, as published. Nobody here has run it

Dependencies

Requires Python 3.8+ and pyyaml.

pip install -r requirements.txt

Obsidian Query Agent

Status: Active Author: Richard Fremmerlid Domain: Obsidian Wiki Engine

Purpose

Progressive-disclosure query interface for the Obsidian LLM wiki. Returns the cheapest useful answer first: a 1-5 sentence RLM summary. The caller can then request bullets, then the full wiki node — expanding context only as needed.

Progressive Disclosure Levels

LevelContentCost
summary1-5 sentence distilled answer~50 tokens
bullets6-10 key idea bullets~150 tokens
fullComplete wiki node + wikilinks~800 tokens
rawOriginal source file contentvariable

Usage

Quick summary (default)

python ./scripts/query_wiki.py --wiki-root /path/to/wiki-root "authentication flow"

Bullet-level detail

python ./scripts/query_wiki.py --wiki-root /path/to/wiki-root "authentication flow" --level bullets

Full wiki node

python ./scripts/query_wiki.py --wiki-root /path/to/wiki-root "authentication flow" --level full

File result back into wiki (Karpathy's "outputs always add back" loop)

python ./scripts/query_wiki.py --wiki-root /path/to/wiki-root "rlm design" \
    --level full --save-as my-rlm-research

Use specific vector DB profile for Phase 2

python ./scripts/query_wiki.py --wiki-root /path/to/wiki-root "attention mechanism" \
    --vdb-profile research

Use shared .agent/learning/ RLM cache

python ./scripts/query_wiki.py --wiki-root /path/to/wiki-root "auth flow" \
    --rlm-cache-dir /path/to/project/.agent/learning/rlm_wiki_cache

List all indexed concepts

python ./scripts/query_wiki.py --wiki-root /path/to/wiki-root --list

JSON output (for programmatic use / agent pipelines)

python ./scripts/query_wiki.py --wiki-root /path/to/wiki-root "api design" --json

Search Strategy (3-Phase)

Phase 1 — Slug/token match (O(1), always runs):

  1. Exact concept slug match
  2. Slug is a prefix/substring of a concept name
  3. Shared word-token overlap (e.g. "auth" matches "authentication-flow")

Phase 2 — Vector DB semantic search (O(log N), requires vector-db installed):

  • Calls vector-db plugin's query.py as a subprocess
  • Resolves vector DB config from .agent/learning/vector_profiles.json
  • Default profile: wiki (override with --vdb-profile)
  • Maps semantic results back to concept slugs via meta/agent-memory.json
  • Gracefully skipped if vector-db is not installed

Phase 3 — Full-text keyword scan (O(N), always available):

  • Grep-style scan of wiki/*.md content as final fallback

--save-as: Filing Results Back Into the Wiki

Karpathy's key insight: "I end up filing the outputs back into the wiki to enhance it."

The --save-as flag writes the query result as a new wiki node:

wiki/{concept-slug}.md  ← new concept page derived from the query result

The saved node includes:

  • YAML frontmatter with query_derived: true and derived_from attribution
  • Original content at the requested disclosure level
  • ## See Also link back to the source concept

This means every query session can grow the wiki, not just read from it.

When to Use

  • Any time you need fast context about a concept in the wiki
  • Before reading a full raw source file (use summary first)
  • When /wiki-ingest has been run and nodes are populated
  • As a pre-flight check before expensive agent operations

Related Scripts

  • query_wiki.py — progressive-disclosure query engine
  • raw_manifest.pyWikiSourceConfig for path resolution
  • audit.py — reports missing or stale nodes

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.