Skip to content
Data
Command

/query

Ask a question of the research vault. Searches papers and findings, synthesizes an answer with wikilink citations.

From plugin
paperloom
954 skills4 agents4 commands

How it fires

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

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/query

Context preview

What this command does when you run it.

Ask a question of the research vault. Searches papers and findings, synthesizes an answer with wikilink citations.

Command definition

query.md
description: Ask a question of the research vault. Searches papers and findings, synthesizes an answer with wikilink citations.
argument-hint: "<question>"

/paperloom:query

`$ARGUMENTS` is a natural-language question about the vault's contents.

Vault path

Read `vault_path` from `${CLAUDE_PLUGIN_CONFIG:vault_path}` (default `~/PaperLoom`), expand `~` to an absolute path, and use that for every Read/Grep/Glob.

Steps

1. **Plan the search**. Identify likely fields/authors/claim types from the question (e.g. "transformer complexity" → field `nlp`, `complexity-analysis`). Note key entities. 2. **Scan**:

  • grep `<vault>/papers/` and `<vault>/findings/` for the key terms (titles, statements, frontmatter values).
  • Read the top candidates (papers: Key Takeaways + relevant sections; findings: statement + evidence).

3. **Synthesize**. Answer the question. **Cite** every factual statement with a wikilink — e.g. `[[2017-06-attention-is-all-you-need]]` or `[[finding-self-attention-is-O-n2]]`. If findings conflict, say so and cite both sides. 4. **Log** via the shared script:

   "${CLAUDE_PLUGIN_ROOT}/.venv/bin/python3" "${CLAUDE_PLUGIN_ROOT}/scripts/log.py" "<vault-path>" query "<one-line question>" "cited <n> files"

Guardrails

  • Never fabricate a citation. If you can't find evidence, say so and suggest which paper to ingest.
  • Prefer finding-level wikilinks over paper-level when a specific finding is relevant.
  • Keep answers tight. The user drills into the vault via the citations.
Read more
Ships withpaperloom

Claude Code Plugin for Self-maintaining research knowledge graph for Claude Code + Obsidian

Get the whole plugin
Stats
95
Stars
10
Forks
Maintained
Maintenance
JavaScript
Language
Apache-2.0
License
4mo ago
Last commit
4mo ago
Created

Repo: trapoom555/claude-paperloom

Other commands on paperloom.

lint
Command

lint

Scan the vault for orphan pages, frontmatter schema drift, duplicate findings, unmarked contradictions, and stale wikilinks. Reports issues without auto-fixing.