smart-query

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

A natural-language task search tool that turns questions about work into searches and task-list filters. It uses keyword matching, so searches with one word at a time work best.

In plain words
What is it for?
Use it to ask what is in progress, what is blocking a release, what changed last week, or whether urgent bugs exist.
Why use it?
It removes the need to remember task commands and helps you find blocked, urgent, unfinished, or recently completed work. It also keeps the task tracker and the agent's task list aligned.

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, 4 hooks shipped together

Good fit Use it to ask what is in progress, what is blocking a release, what changed last week, or whether urgent bugs exist.

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

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, 4 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-claude-code/smart-query/github.svg)](https://agentmods.dev/skills/obsfx/trekker-claude-code/smart-query)
Your own site
<a href="https://agentmods.dev/skills/obsfx/trekker-claude-code/smart-query"><img src="https://agentmods.dev/badge/skills/obsfx/trekker-claude-code/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-claude-code/smart-query"><img src="https://agentmods.dev/badge/skills/obsfx/trekker-claude-code/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 100% copy Near-identical to another mod 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 today against content hash 61f624ef5d09, 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 today.

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

This is a copy

100% identical to smart-query — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

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. today First seen · 60 lines · 10 tokens per session scan A 61f624ef5d09

Subscribe to this mod's changes

smart-query is a skill published in the GitHub repository obsfx/trekker-claude-code (4 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. It is 100% identical to smart-query, differing in 4 lines, and is treated as a copy.

Related

Other skills, from other repositories

flow-next-flow

Use first in a Flow-Next repo for a spec id, change, bug, issue, slow code or metric, cleanup, design fork, dump to explain, repeated mistake, prompt change, what could break, what next. No quick asks.

gmickel/flow-next · 53 tokens

flow-next-tracker-sync

Project a flow-next spec to a tracker issue (Linear, GitHub, GitLab, Jira) and reconcile two-way. Use when asked to sync to a tracker. NOT plan-sync.

gmickel/flow-next · 44 tokens

flow-next-plan

Plan a feature into a flow-next spec with tasks in .flow/. Use when asked to plan, spec out, or break down work (fn-N ids).

gmickel/flow-next · 36 tokens

flow-next

Manage .flow/ tasks and specs. Use for show or list tasks, task status, what is ready, show fn-N. NOT for planning or executing (use the plan and work skills).

gmickel/flow-next · 42 tokens

backlog

Read, work, and maintain a Git repo's deferred-work items in docs/backlog/, one file per item. Use when the user says "backlog", "check backlog", "what's on my backlog", "work the backlog", "address the backlog", "add to backlog", "clean up backlog", or when a review or task produced items that are real but not being…

umputun/cc-thingz · 96 tokens

execute-round

Use when a planned round handoff exists and needs to be implemented end-to-end via the 4-commit chain (entry-admin → BA design → dev body with inline CR + SE → state refresh + self-audit). Dispatches ba-designer / developer / cr-reviewer / se-contract sequentially.

Arch1eSUN/Arcgentic · 65 tokens