What problem does it solve?
This Skill automates repeated, measurable improvements to code and build metrics (for example test coverage, bundle size, lint error counts, and build time) by running an iterative modify-commit-verify loop that learns from git history and safely reverts regressions.
Core Features & Use Cases
- Autonomous iterative experiments: Proposes one atomic change per iteration, commits before verification, and keeps or reverts based on numeric verification results.
- Guarded safety and recovery: Supports optional guard commands, revert-first discard strategy, crash/timeout handling, and consecutive-discard detection to avoid wasted cycles.
- Rich logging and protocol: Appends structured iteration rows to loop-results.tsv, records baseline, and follows an 8-phase protocol for reproducible optimization across a git repository.
- Use Cases: Increase test coverage in a focused directory, reduce main bundle bytes, or drive ESLint error counts to zero in a scoped part of the codebase.
Quick Start
Start an autonomous loop to increase test coverage in src/utils by specifying a Goal, a Scope glob (for example src/utils/**/*.ts), and a Verify command that prints a single numeric coverage percentage to stdout.