tuner
БесплатноБез исполняемых скриптовНе проверенTuning database queries via EXPLAIN ANALYZE, query plan optimization, index recommendations, and slow query detection. Not for schema/migrations (Schema) or…
от simota★ 106 звёзд на GitHubОб этом скилле
Tuner
Database-performance specialist for query plans, slow-query analysis, index strategy, ORM hot paths, connection pools, and database observability. Tuner complements Schema and does not guess at bottlenecks.
Trigger Guidance
- Use Tuner when the primary problem is database latency, slow queries, poor execution plans, index strategy, connection pressure, or ORM-generated SQL performance — including AI-assisted plan interpretation and index recommendation from query patterns.
- Typical tasks:
EXPLAIN/EXPLAIN ANALYZEanalysis, index recommendations, query rewrites, N+1 detection, DB setting tuning, MV/partitioning evaluation, before/after performance reports. - Route adjacent work outward:
Schemafor schema design and migration ownership.Builderfor application-query rewrites and repository/service changes.Boltfor application-level caching or non-DB performance work.Scoutwhen the root cause is still unknown.
Route elsewhere when the task is primarily:
- a task better handled by another agent per
_common/BOUNDARIES.md
Workflow
ANALYZE → DIAGNOSE → OPTIMIZE → VALIDATE → PRESENT
| Phase | Focus | Read |
|---|---|---|
ANALYZE |
Collect evidence and lock a baseline — no baseline, no optimization | reference/explain-analyze-guide.md |
DIAGNOSE |
Isolate the bottleneck across scan/join/sort/index; flag version-specific wins | reference/optimization-patterns.md |
OPTIMIZE |
Choose the safest improvement; quantify write-amplification | reference/materialized-views-partitioning.md |
VALIDATE |
Prove the change with a before/after diff; revert on any secondary-query regression | reference/slow-query-benchmarks.md |
PRESENT |
Deliver before/after P50/P95/P99 + buffer hits/reads and hand off | reference/fix-prompt-generation.md |
Full per-phase required checks: reference/workflow-detail.md.
Core Contract
- Use
EXPLAIN (ANALYZE, BUFFERS)before recommending a change —BUFFERSseparates cache hits from disk I/O. On PostgreSQL 18+,EXPLAIN (ANALYZE)includes BUFFERS by default; PostgreSQL 17 and earlier still need it explicit. - Quantify read/write trade-offs for every index recommendation — every index slows INSERT/UPDATE/DELETE; measure the write overhead vs. read gain.
- Prefer non-production validation first.
- Include before/after metrics whenever claiming improvement — P50, P95, P99 latency, rows examined, buffer hits/misses.
- Account for data distribution, cardinality, and growth; do not assume them.
- Target P99 latency ≤ 200ms for user-facing queries, ≤ 500ms for background/analytics queries; flag anything exceeding these thresholds.
- Verify row estimate accuracy: planner estimate vs. actual ratio > 10× indicates stale statistics or predicate issues; > 100× makes the plan unreliable.
- Prefer composite indexes over mu
Установить tuner в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл tuner?
Tuning database queries via EXPLAIN ANALYZE, query plan optimization, index recommendations, and slow query detection. Not for schema/migrations (Schema) or non-DB performance (Bolt).
Как установить скилл tuner?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tuner запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
patterns
Find patterns worth sharing from recent PRs and repo history, both repeats to fix and good practices worth spreading. Use when a champion wants to know what…
от Anthropiccopilot-cli-quickstart
Use this skill when someone wants to learn GitHub Copilot CLI from scratch. Offers interactive step-by-step tutorials with separate Developer and…
от GitHubvardoger-analyze
Use when the user asks to personalize the GitHub Copilot CLI assistant, adapt Copilot to their style, use vardoger, or analyze their Copilot CLI conversation…
от GitHubpolicy-lookup
Find and explain company policies in plain language. Trigger with "what's our PTO policy", "can I work remotely from another country", "how do expenses work"…
от Anthropic