chszlab
An agent skill that validates code optimizations with hypotheses and benchmarks, then produces patches and reports.
What does it do?
At the start, users define the agent, benchmark, performance metrics, correctness checks, and work budget. The agent states the expected effect as a hypothesis, commits a small code change to Git, then runs the benchmark and correctness checks. It keeps only changes that are faster and produce correct results, reverting the rest. Accepted changes remain as reviewable patches, and the full experiment process is summarized in a PDF report.
Key features
- Write the expected performance effect as a testable hypothesis before each experiment
- Run benchmarks and correctness checks after changes
- Revert changes that show no improvement or fail correctness checks
- Produce a reviewable patch for each accepted change
- Document the session's experiments in a PDF report