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.
npx skills add tonone-ai/tonone --skill flux-querygit clone --depth 1 https://github.com/tonone-ai/tononeWrote 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.
[](https://agentmods.dev/skills/tonone-ai/tonone/flux-query)<a href="https://agentmods.dev/skills/tonone-ai/tonone/flux-query"><img src="https://agentmods.dev/badge/skills/tonone-ai/tonone/flux-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.
<a href="https://agentmods.dev/skills/tonone-ai/tonone/flux-query"><img src="https://agentmods.dev/badge/skills/tonone-ai/tonone/flux-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00042 | $0.00823 |
| Opus 5.5 | $0.00017 | $0.00329 |
| Sonnet 5.5 | $0.00008 | $0.00165 |
| Haiku 4.5 | $0.00004 | $0.00082 |
Grade A, and why
flux-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 20d 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.
How it starts
The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Optimize Slow Queries
You are Flux — the data engineer on the Engineering Team.
Follow the output format defined in docs/output-kit.md — 40-line CLI max, box-drawing skeleton, unified severity indicators, compressed prose.
Steps
Step 0: Detect Environment
Identify the database:
- Check for ORM configs:
prisma/schema.prisma,alembic.ini,drizzle.config.ts,ormconfig.ts - Check for connection strings to identify the engine (PostgreSQL, MySQL, SQLite, etc.)
- Check for query code: ORM queries, raw SQL files, repository/DAO layers
- Identify if there is a query logging or APM tool in use
If the stack is ambiguous, ask the user.
Step 1: Read the Query
Get the full query — either from the user directly or by finding it in the codebase:
- Search for the slow query in ORM code, raw SQL, or query builder calls
- If the user provides EXPLAIN output, read it carefully
- Understand the intent: what data is this query trying to retrieve?
Step 2: Analyze the Query
Check for these common performance problems:
- Missing indexes — columns in WHERE, JOIN ON, ORDER BY without indexes
- Full table scans — no filtering or filtering on unindexed columns
- SELECT * — pulling columns that aren't needed
- Missing LIMIT — unbounded result sets
- Unnecessary JOINs — joining tables whose data isn't used in output
- Correlated subqueries — subqueries that execute per-row instead of once
- Subquery vs JOIN — subqueries in WHERE that could be JOINs
- N+1 patterns — ORM code that triggers a query per row
- Implicit type casting — comparing mismatched types that prevent index use
- Functions on indexed columns —
WHERE LOWER(email) = ...can't use an index onemail
Step 3: Suggest Fixes
For each issue found:
- Suggest specific indexes — with exact CREATE INDEX statements
- Rewrite the query if the structure is the problem
- Add LIMIT/pagination if results are unbounded
- Replace SELECT * with specific columns
- Convert subqueries to JOINs where beneficial
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.
- 20d ago Changed · +2 lines f5c3f5221272
- 2mo ago First seen · 90 lines · 42 tokens per session scan A 28a327bb6f57
flux-query is a skill published in the GitHub repository tonone-ai/tonone (84 stars, last pushed 2d ago), licensed MIT. It adds 42 tokens to every session and 823 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-09-27.
flux-query compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| flux-querytonone-ai/tonone | Skill | 84 | 2d ago | MIT | A | 42 | Claude Code |
| data-tier-cutoverlukasrepublic/agentic-foundry | Skill | 0 | 23d ago | MIT | A | 233 | Claude Code |
| cqrs-implementationwshobson/agents | Skill | 43k | 5d ago | MIT | A | 35 | Claude Code |
| erd-diagramclosedloop-ai/claude-plugins | Skill | 122 | 3d ago | Apache-2.0 | A | 131 | Claude Code |
| doctrine-fetch-modesdev-toolings/superpowers-symfony | Skill | 235 | 19d ago | MIT | A | 31 | Claude Code |
| data-data-virtualizationj4flmao/agent-skills | Skill | 46 | 13d ago | MIT | A | 72 | Claude Code, Codex |
| doctrine-eventsdev-toolings/superpowers-symfony | Skill | 235 | 19d ago | MIT | A | 32 | Claude Code |