performance-engineering
Installation
SKILL.md
Performance Engineering
Measure first, change one meaningful bottleneck, then measure again.
Workflow
- Define the user/system symptom and target metric: latency percentile, throughput, startup time, memory, CPU, IO, battery, or unit cost as appropriate.
- Establish a representative baseline and workload. Avoid synthetic microbenchmarks that do not exercise the reported bottleneck.
- Profile or instrument enough to localize the dominant cost before proposing optimization.
- Form a hypothesis and change the smallest meaningful factor.
- Re-measure under comparable conditions and check counter-metrics/correctness.
- If the problem is load/headroom rather than code-path efficiency, model demand, capacity units, scaling trigger, and cost without assuming a provider.
- Preserve readability/reliability unless the measured gain justifies the complexity.
Stop
Stop when the target symptom has before/after evidence, the bottleneck/result is understood, and remaining tradeoffs are explicit.