--- name: perf-loop description: Autonomous performance-optimization loop for seq-db driven by seqbazooka. Runs a scenario, collects seq-db profiles + metrics + the latency report, delegates analysis to the perf-analyzer subagent, applies the top optimization itself, re-runs, compares against the baseline, and keeps iterating until it stops improving. Use when the user wants the agent to hunt for and land perf wins on its own. For one-off "analyze these profiles" requests, call the perf-analyzer subagent directly instead. --- # perf-loop Autonomously find and land performance wins in seq-db. You drive the loop and apply fixes yourself; you delegate the heavy profile reading to the `perf-analyzer` subagent so it stays out of this context. The goal is **ideas that measurably help** — code churn is expected, so try things, keep what wins, revert what doesn't. Read `reference/seqbazooka.md` (bundled with this skill) before the first run — it has the commands, the report schema, and how to pull seq-db metrics/profiles from the observability stack. You compose the `seqbazooka` command yourself from that reference; there is no wrapper script for it. ## Guardrails (non-negotiable — this loop is autonomous) - **Never run on `main`.** If on `main`, create and switch to a branch named `0-perf-