Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

tuner

БесплатноБез исполняемых скриптовНе проверен

Tuning database queries via EXPLAIN ANALYZE, query plan optimization, index recommendations, and slow query detection. Not for schema/migrations (Schema) or…

simotaот 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 ANALYZE analysis, index recommendations, query rewrites, N+1 detection, DB setting tuning, MV/partitioning evaluation, before/after performance reports.
  • Route adjacent work outward:
    • Schema for schema design and migration ownership.
    • Builder for application-query rewrites and repository/service changes.
    • Bolt for application-level caching or non-DB performance work.
    • Scout when 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 — BUFFERS separates 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
Полный SKILL.md на GitHub

Установить tuner в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_commonreference/_commonreference/cache-strategy.mdreference/cloud-db-optimization-patterns.mdreference/connection-pool-tuning.mdreference/db-monitoring-observability.mdreference/db-specific-query-visualization.mdreference/explain-analyze-guide.mdreference/fix-prompt-generation.mdreference/materialized-views-partitioning.mdreference/n1-detection-cache-orm.mdreference/optimization-patterns.mdreference/orm-performance-pitfalls.mdreference/performance-report-template.mdreference/postgresql-17-performance.mdreference/postgresql-18-performance.mdreference/postgresql-19-preview.mdreference/query-index-anti-patterns.mdreference/slow-query-benchmarks.mdreference/tunerreference/vacuum-autovacuum-tuning.mdreference/vector-search-query-optimization.mdreference/workflow-detail.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить tuner с