What problem does it solve?
This Skill solves slow Kova CI test runtime and developer feedback delays by identifying and removing performance bottlenecks while preserving coverage and test integrity.
Core Features & Use Cases
- Benchmark-driven optimization: Measures full-suite and targeted Vitest performance to find the highest-return areas to change first.
- Import and setup hotspot reduction: Targets slow imports, broad barrel usage, repeated module resets, and duplicated fixture construction to reduce per-test overhead.
- CI-safe coverage preservation: Verifies improvements by re-running the proving test lane and broader gates as needed, explicitly avoiding tactics that weaken assertions or reduce coverage.
Use case example: When Kova PRs spend too long in the test lane, use this Skill to pinpoint import/setup hotspots and apply production-quality refactors (e.g., narrowing runtime seams or improving fixture reuse), then confirm the result with the same benchmark evidence.
Quick Start
Use the optimizetests skill to benchmark slow Kova test hotspots, apply performance-focused refactors that preserve coverage, and re-run the proving lane to confirm reduced wall time and Vitest duration.