What problem does it solve?
This Skill automates the process of optimizing code and AI models, saving time and effort in the iterative improvement process.
Core Features & Use Cases
- Autonomous Optimization Loop: Automatically modifies a target, measures the result, and repeats until improvements are no longer found.
- Metric Mode: Optimizes code targets that produce a number (e.g., latency, bundle size).
- Eval Mode: Optimizes skills, prompts, or agents judged by LLM-as-judge binary evals.
- Use Case: Optimize the performance of a web application by automatically adjusting code to improve page load time.
Quick Start
Run the optimize skill to start an optimization loop for your target, using the following command:
/optimize --metric "lighthouse_score" --higher-is-better --measure "npx lighthouse http://localhost:3000 --output=json" --extract "jq '.categories.performance.score * 100' lighthouse.json" --files "src/**/*.tsx,src/**/*.css" --budget 120