smart-query

smart-query is a skill for Claude Code from obsfx/trekker. It costs 10 tokens per session (394 once invoked), scanned A, original, MIT.

A natural-language query guide for finding information in Trekker, a task tracker. It maps questions such as what is in progress or what is blocked to task lists and keyword searches.

In plain words
What is it for?
Use it to inspect task status, priorities, blockers, urgent bugs, and recent or related work.
Why use it?
It helps agents answer task-status questions even though Trekker's search matches exact words rather than understanding meaning. It also recommends focused searches to find more relevant records.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the TodoWrite tool.

Part of the trekker plugin — 7 skills, 13 commands, 1 agent, 3 hooks shipped together

Good fit Use it to inspect task status, priorities, blockers, urgent bugs, and recent or related work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/obsfx/trekker/smart-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 obsfx/trekker --skill smart-query
Clone the repo
git clone --depth 1 https://github.com/obsfx/trekker

Made for: Claude Code.

Or install trekker, the plugin that ships this one along with the rest of its 7 skills, 13 commands, 1 agent, 3 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 smart-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/obsfx/trekker/smart-query/github.svg)](https://agentmods.dev/skills/obsfx/trekker/smart-query)
Your own site
<a href="https://agentmods.dev/skills/obsfx/trekker/smart-query"><img src="https://agentmods.dev/badge/skills/obsfx/trekker/smart-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 smart-query

Your own site · 80×15
<a href="https://agentmods.dev/skills/obsfx/trekker/smart-query"><img src="https://agentmods.dev/badge/skills/obsfx/trekker/smart-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 394 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.00010 $0.00394
Opus 5.5 $0.00004 $0.00158
Sonnet 5.5 $0.00002 $0.00079
Haiku 4.5 $0.00001 $0.00039

Measured yesterday against content hash 2bb73b9b4522, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

smart-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 yesterday.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/claude-code/skills/smart-query/SKILL.md · 60 lines

What it actually says

Critical Rule: Bidirectional Sync

Trekker and Claude's TodoWrite MUST stay in sync:

  • Trekker change: update TodoWrite
  • TodoWrite change: update Trekker
  • NEVER let them get out of sync

When to Use

User asks questions like:

  • "What's blocking the release?"
  • "What did we work on last week?"
  • "Are there urgent bugs?"
  • "What tasks are stuck?"

IMPORTANT: FTS5 Search Tips

Trekker search is FTS5 (not semantic). Use single keywords, not phrases:

  • Multi-word queries require ALL words to match (AND logic)
  • Single keywords have better recall
  • Search multiple times with different keywords for coverage

Query Translations

Natural Language Command
"What's in progress?" trekker task list --status in_progress
"Anything stuck?" trekker search "blocked"
"Urgent bugs" trekker search "bug" --status todo
"Everything about auth" trekker search "authentication" then trekker search "login"

Query Patterns

# Status queries
trekker task list --status todo
trekker task list --status in_progress
trekker task list --status completed

# Priority queries
trekker list --type task --priority 0,1 --status todo

# Search queries - use single keywords (FTS5, not semantic)
trekker search "performance"
trekker search "security"
trekker search "vulnerability"

# Filter search by type or status
trekker search "bug" --type task --status todo

# Relationship queries
trekker dep list TREK-10
trekker task list --epic EPIC-2
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. yesterday First seen · 60 lines · 10 tokens per session scan A 2bb73b9b4522

Subscribe to this mod's changes

smart-query is a skill published in the GitHub repository obsfx/trekker (84 stars, last pushed yesterday), licensed MIT. It adds 10 tokens to every session and 394 once invoked, about $0.0000 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-10-25.