/tonone:flux-queryfrom tonone
Optimize slow database queries by analyzing execution plans, adding indexes, and rewriting SQL. Activates on 'slow query', 'query performance', or 'explain this query'.
Ships in tonone. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
Identify the database:
prisma/schema.prisma, alembic.ini, drizzle.config.ts, ormconfig.tsIf the stack is ambiguous, ask the user.
Get the full query — either from the user directly or by finding it in the codebase:
Check for these common performance problems:
WHERE LOWER(email) = ... can't use an index on emailFor each issue found:
Present findings in plain English:
## Query Analysis
### Problems Found
- [problem] — [impact on performance]
### Recommended Indexes
- `CREATE INDEX idx_name ON table(column)` — supports [query pattern]
### Rewritten Query
[new query if applicable]
### Before vs After
- Before: [estimated behavior — full scan, nested loop, etc.]
- After: [expected improvement — index scan, hash join, etc.]
Keep explanations accessible. Not everyone reads EXPLAIN output fluently.
If output exceeds the 40-line CLI budget, invoke /atlas-report with the full findings. The HTML report is the output. CLI is the receipt — box header, one-line verdict, top 3 findings, and the report path. Never dump analysis to CLI.
What SKILL.md sets; muted values are Claude Code's defaults
2 plugins ship this exact skill · first indexed Jun 16, 2026
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin tonone189 skills in this plugin
/apexEngineering lead — hand Apex any task and it routes internally. New features, planning, reviews, status, orientation, or system takeovers./apex-planPlan and scope a project — discovery, challenge assumptions, present S/M/L options with token and cost estimates. Use when asked to "plan this", "scope this", "how should we build X", or when a new project/feature request comes in./apex-reconEngineering lead reconnaissance — inventory the project before planning. Use when asked to "understand this project", "orient me on this codebase", "what's the state of the repo", "what's in progress", or before starting work on an unfamiliar codebase./apex-reviewCross-cutting review of recent work — catches gaps between specialists. Use when asked to "review what we built", "check the work", "pre-launch review", or after completing a significant chunk of work./apex-statusCTO-level project status from git and codebase state. Use when asked "where are we", "project status", "what's done", or at the start of a work session./apex-takeoverSystem takeover — take ownership of an existing codebase or inherited system. Use when "we acquired this", "previous team left", "take over this system", "inherited this codebase".Other plugins' skills for the same job