query

query is a skill for Claude Code 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 Code

Written for Claude Code: allowed-tools in frontmatter.

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

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anishfyi/trove/query
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.

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.

Or install trove, the plugin that ships this one along with the rest of its 7 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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for query

Your own site · 80×15
<a href="https://agentmods.dev/skills/anishfyi/trove/query"><img src="https://agentmods.dev/badge/skills/anishfyi/trove/query.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00049 $0.00308
Opus 5.5 $0.00020 $0.00123
Sonnet 5.5 $0.00010 $0.00062
Haiku 4.5 $0.00005 $0.00031

Measured 1mo ago against content hash c4e17db5317a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 3d ago), licensed MIT. It adds 49 tokens to every session and 308 once invoked, about $0.0002 per session on Opus 5.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

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

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

remember

Capture friction as methodology notes. Three modes — explicit description, contextual (review recent corrections), session mining (scan transcripts for patterns). Triggers on "/remember", "/remember [description]".

agenticnotetaking/arscontexta · 40 tokens

seed

Add a source file to the processing queue. Checks for duplicates, creates archive folder, moves source from inbox, creates extract task, and updates queue. Triggers on "/seed", "/seed [file]", "queue this for processing".

agenticnotetaking/arscontexta · 49 tokens

reflect

Find connections between notes and update MOCs. Requires semantic judgment to identify genuine relationships. Use after /reduce creates notes, when exploring connections, or when a topic needs synthesis. Triggers on "/reflect", "/reflect [note]", "find connections", "update MOCs", "connect these notes".

agenticnotetaking/arscontexta · 62 tokens

okf

Author, maintain, and consume Open Knowledge Format (OKF) knowledge bundles — portable markdown + YAML frontmatter that both humans and agents read. Use when capturing project knowledge (services, APIs, schemas, metrics, runbooks, decisions) into an OKF bundle, when updating one after code or docs change, or when a…

scaccogatto/okf-skills · 127 tokens