perf-fix-with-proof

Ships performance fixes as stacked PRs so CI proves the improvement against a baseline.

Updated Jul 28, 2026
Ready to run
npx skills add https://github.com/christian-byrne/comfy-skills --skill perf-fix-with-proof-christian-byrne
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: perf-fix-with-proof
Source: https://github.com/christian-byrne/comfy-skills/tree/main/skills/perf-fix-with-proof
Command: npx skills add https://github.com/christian-byrne/comfy-skills --skill perf-fix-with-proof-christian-byrne

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Performance optimizations merged without a baseline cannot be proven in CI, because a new perf test added in the same PR as the fix has no baseline on main to compare against. This Skill structures the work as two stacked PRs so the improvement is measured and verified automatically. ## Core Features & Use Cases - Stacked PR workflow: PR1 adds a perf test that establishes a baseline on main; PR2 adds the fix so CI reports the delta against that baseline. - Test design guidance: Provides a perf test structure, metric suggestions (style recalcs, forced layouts, JS execution time, memory), and determinism rules. - Diagnostic support: Includes a symptom-to-cause decision tree, Core Web Vitals targets, performance budgets, and common anti-pattern fixes. - Use Case: You identified that rendering a large list causes hundreds of style recalculations. Use this Skill to land a baseline perf test first, then ship the memoization fix in a second PR where CI shows a -97% delta. ## Quick Start Use the perf-fix-with-proof skill to ship my optimization for slow list rendering as two stacked PRs with a CI-proven performance delta.

Frequently Asked Questions about perf-fix-with-proof

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prove a performance fix works in CI?▼

Split the work into two stacked PRs: PR1 adds only the perf test so CI establishes a baseline on main, then PR2 adds the fix. CI compares the PR run against the baseline and posts a delta report showing the improvement.

Why does my perf test show no delta when added with the fix?▼

A new perf test merged in the same PR as the fix has no baseline on main, so CI has nothing to compare against. Merge the test first in its own PR, wait for the baseline to be recorded, then open the fix PR.

What metrics should a performance test measure?▼

Measure counts rather than durations for determinism: style recalculation count, forced layout count, main-thread JS execution time, and heap memory delta. Stress the specific bottleneck with enough iterations, such as 100+ frames or 50+ interactions.

How do I identify which performance bottleneck to fix?▼

Profile before writing any test. Use the symptom to guide investigation: slow first load points to bundle size and render-blocking resources, interaction jank points to main-thread work and re-renders, and slow APIs point to N+1 queries or missing indexes.

What are good Core Web Vitals targets for a web app?▼

Target LCP at or under 2.5 seconds, INP at or under 200 milliseconds, and CLS at or under 0.1 for a Good classification. Supporting budgets include JS bundles under 200KB gzipped and API p95 latency under 200ms.