What problem does it solve?
Performance optimizations are hard to prove in CI because a new @perf test added in the same PR as the fix has no baseline on main, so no delta can be computed. This Skill solves that by splitting the work into two stacked PRs: one that establishes the baseline test on main, and one that lands the fix so CI automatically reports the improvement.
Core Features & Use Cases
- Stacked PR workflow: Guides creation of PR1 (test-only, establishes baseline on main) and PR2 (the fix, compared against that baseline by the ci-perf-report.yaml workflow).
- @perf test authoring: Provides templates and helpers (comfyPage.perf.startMeasuring/stopMeasuring, nextFrame, workflow loading) for writing Playwright performance tests that capture style recalcs, layouts, task duration, and heap delta.
- CI verification: Explains how the ci-perf-report.yaml workflow posts a delta report comment proving the improvement.
- Use Case: You are fixing DOM widget reactive mutation overhead (backlog #8). You write a @perf test that idles 120 frames measuring style recalcs, merge it as PR1, then land the fix as PR2 and let CI show the -97% style recalc delta.
Quick Start
Ask the AI to create a stacked PR pair that adds a @perf baseline test for your bottleneck first and then ships the optimization fix with CI-proven improvement.