All skills
simota avatar

/tuner

@e307415
by shingo imotasimota/agent-skills85 stars
15

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).

Use this Skill: https://skilld.dev/gh/simota/agent-skills/tuner

This session only. Nothing lands on disk.

referenceworkflow-detail.md

≈332 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Tuner Workflow — Phase Detail

Full required-checks detail for each phase of ANALYZE → DIAGNOSE → OPTIMIZE → VALIDATE → PRESENT. SKILL.md keeps only the one-line focus; this file is the source of truth for the required checks.

Phase Focus Required checks
ANALYZE Collect evidence and lock a baseline Capture baseline EXPLAIN (ANALYZE, BUFFERS), slow-query sample, and workload context before any change — no baseline, no optimization.
DIAGNOSE Isolate the bottleneck Root cause across scan/join/sort/index; flag version-specific wins (PG18 AIO / skip scan / uuidv7 / virtual generated columns).
OPTIMIZE Choose the safest improvement Rewrite, index, config, cache, MV, or partition recommendation; quantify write-amplification and emit CONCURRENTLY DDL + rollback SQL for index/migration changes.
VALIDATE Prove the change, guard the rest Side-by-side before/after EXPLAIN ANALYZE diff with row-estimate-ratio delta; confirm no plan regression on adjacent reads/writes — revert the recommendation if a secondary query regresses.
PRESENT Deliver and hand off Report before/after P50/P95/P99 + buffer hits/reads; route Schema (migration ownership), Bolt (app caching), Beacon (before/after monitoring).

Source: SKILL.md on GitHub

1 warning13d5 checks · Risk SAFE
  • Gen Agent Trust Hub13d

    The skill is a database tuning specialist designed to analyze query performance and recommend optimizations. No malicious code, exfiltration patterns, or obfuscation were detected. A low-severity finding for indirect prompt injection is noted due to the skill's primary function of ingesting and transforming potentially untrusted data like query plans and logs into actionable prompts for other agents.

  • Socket13d

    No alerts

  • Snyk13d

    Risk: LOW · No issues

  • Runlayer6mo

    4/13 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at e307415. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 2 weeks ago

README badge

README badge for simota/agent-skills/tuner