query

query is a skill for Claude Code, Codex from anishfyi/trove. It costs 49 tokens per session (308 once invoked), scanned A, original, MIT.

A search procedure for retrieving context from a Trove code index. It expands from the project architecture to subsystems, modules, and code symbols as needed.

In plain words
What is it for?
Use it before editing when you need context about a feature or subsystem. It checks whether an index exists, searches it, and can return structured JSON results.
Why use it?
It helps answer where code lives and what a subsystem does while limiting how much source material is loaded.

Skill for Claude CodeCodex

Part of the trove plugin — 5 skills, 2 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/anishfyi/trove/query
Any agent
npx skills add anishfyi/trove --skill query
Clone the repo
git clone --depth 1 https://github.com/anishfyi/trove

Made for: Claude Code, Codex.

Or install trove, the plugin that ships this one along with the rest of its 5 skills, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for query

README.md
[![agentmods](https://agentmods.dev/badge/skills/anishfyi/trove/query.svg)](https://agentmods.dev/skills/anishfyi/trove/query)
Your own site
<a href="https://agentmods.dev/skills/anishfyi/trove/query"><img src="https://agentmods.dev/badge/skills/anishfyi/trove/query.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 308 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00049 $0.00308
Opus 5 $0.00024 $0.00154
Sonnet 5 $0.00010 $0.00062
Haiku 4.5 $0.00005 $0.00031

Measured 3d ago against content hash c4e17db5317a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

query scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/trove/skills/query/SKILL.md · 46 lines

What it actually says

Query (progressive retrieval)

Retrieve the smallest useful context for a task from the Trove index.

Steps

  1. Check index exists. Run:

    cargo run -p trove-cli -- status
    

    If no index, run /trove:index first.

  2. Query with the user's intent:

    cargo run -p trove-cli -- query "vendor onboarding"
    

    Adjust --budget (default 200000 tokens) if the user specifies a context limit.

  3. Use the output progressively. The CLI returns layers in order:

    • L4 Architecture
    • L3 Subsystems
    • L2 Modules
    • L1 Symbols (signatures)
    • Dependency neighbors

    Stop expanding when you have enough detail. Do not open full source files unless summaries are insufficient.

  4. JSON mode for structured parsing:

    cargo run -p trove-cli -- query "auth middleware" --json
    

Each item includes confidence and retrieval path. Prefer higher-confidence, higher-layer items first.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 46 lines · 49 tokens per session scan A c4e17db5317a

Subscribe to this mod's changes

query is a skill published in the GitHub repository anishfyi/trove (1 stars, last pushed 8d ago), licensed MIT. It adds 49 tokens to every session and 308 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

setup

Scaffold a complete knowledge system. Detects platform, conducts conversation, derives configuration, generates everything. Validates against 15 kernel primitives. Triggers on "/setup", "/setup --advanced", "set up my knowledge system", "create my vault".

agenticnotetaking/arscontexta · 53 tokens

rethink

Challenge system assumptions against accumulated evidence. Triages observations and tensions, detects patterns, generates proposals. The scientific method applied to knowledge systems. Triggers on "/rethink", "review observations", "challenge assumptions", "what have I learned".

agenticnotetaking/arscontexta · 51 tokens

architect

Research-backed evolution advice for your knowledge system. Analyzes health reports, friction patterns, and derivation history to propose specific changes with research justification. Never auto-implements — proposals require your approval.

agenticnotetaking/arscontexta · 42 tokens

health

Run condition-based vault health diagnostics. 8 categories — schema compliance, orphan detection, link health, description quality, three-space boundaries, processing throughput, stale notes, MOC coherence. 3 modes — quick (schema+orphans+links), full (all 8), three-space (boundary violations only). Returns actionable…

agenticnotetaking/arscontexta · 100 tokens

graph

Interactive knowledge graph analysis. Routes natural language questions to graph scripts, interprets results in domain vocabulary, and suggests concrete actions. Triggers on "/graph", "/graph health", "/graph triangles", "find synthesis opportunities", "graph analysis".

agenticnotetaking/arscontexta · 50 tokens

refactor

Plan vault restructuring from config changes. Compares config.yaml against derivation.md, identifies dimension shifts, shows restructuring plan, executes on approval. Triggers on "/refactor", "restructure vault".

agenticnotetaking/arscontexta · 43 tokens