Agentic Optimization Loop
Automates the iterative optimization of code complexity and SQL performance through a verifiable evaluator-optimizer loop that guarantees behavioral correctness.
The Optimize Loop skill implements a rigorous agentic workflow designed to minimize specific technical costs—such as cyclomatic complexity in code or execution latency in SQL queries—while strictly maintaining behavioral integrity. By applying focused, single-step changes and verifying them against a non-negotiable correctness gate (like a test suite or result-set hash), it ensures that every optimization is safe and measurable. This skill is ideal for developers refactoring legacy code or tuning database performance, as it autonomously snapshots files, benchmarks improvements, and maintains a detailed ledger of every attempt until it reaches a performance plateau or a predefined iteration budget.