What problem does it solve?
This Skill automates the process of iterative optimization loops for improving measurable code metrics such as coverage, performance, and bundle size.
Core Features & Use Cases
- Automated Iterative Optimization: Executes a loop of N iterations against a specified metric, learning from git history, and automatically keeping or discarding changes.
- Use Case: Ideal for improving code quality by running automated tests, applying changes, and verifying improvements iteratively.
- Features: Configurable scope, verification commands, guard checks, and noise filtering.
Quick Start
To initiate an optimization loop to increase test coverage in the 'src/utils' directory, run the following command: /ck:loop Goal: Increase test coverage in src/utils Scope: src/utils/**/*.ts Verify: npx jest --coverage --json \| jq '.coverageMap \| .. \| .s? \| to_entries \| map(.value) \| (map(select(.>0)) \| length) / length * 100' \| tail -1 Guard: npx tsc --noEmit Direction: higher