Skip to content
Skills Library
Programming · Analysis

performance-pass

/performance-pass

Fixes measured slowness by setting a budget, profiling to find where time actually goes, changing one thing, and measuring again. Use for a latency regression, an N+1 query, memory growth, a slow build or test suite, or a Core Web Vitals miss. Refuses to optimize anything without a baseline number.

Licence
MIT
Last repository change
26.09.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 26.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Fixes measured slowness by setting a budget, profiling to find where time actually goes, changing one thing, and measuring again. Use for a latency regression, an N+1 query, memory growth, a slow build or test suite, or a Core Web Vitals miss. Refuses to optimize anything without a baseline number.

Original author description

Fixes measured slowness by setting a budget, profiling to find where time actually goes, changing one thing, and measuring again. Use for a latency regression, an N+1 query, memory growth, a slow build or test suite, or a Core Web Vitals miss. Refuses to optimize anything without a baseline number.

How it works

  1. Process
  2. Frontend specifics
  3. Output
  4. Verification
  5. Red flags
Original SKILL.md headings · 83 lines, 580 words
SKILL.md preview
---
name: performance-pass
description: Fixes measured slowness by setting a budget, profiling to find where time actually goes, changing one thing, and measuring again. Use for a latency regression, an N+1 query, memory growth, a slow build or test suite, or a Core Web Vitals miss. Refuses to optimize anything without a baseline number.
license: MIT
metadata:
  phase: review
  owners: [performance-engineer]
  version: "0.1.0"
---

# Performance Pass

Measure, change one thing, measure again, keep the number. Without a baseline you are
guessing, and guessing usually makes the code worse and the program no faster.

Standing reference: `references/performance-checklist.md`.

## Process

1. **State the budget.** Which metric, at which percentile, under what load. "p95 search
   latency under 200 ms at 50 requests per second." Without a target there is no way to
   know when to stop, and optimisation has no natural end.

2. **Measure the baseline.** Warm up, discard the first runs, report p50 and p95. Save the
   command; it goes in the report and in the repository.

3. **Find where time actually goes.** A profile, a query log, a trace, a counter. Not
   intuition. The bottleneck is almost never where it feels like it is, which is why this
   step exists.

4. **Work the order.** Most real wins are in the first two:

   1. Work it does not need to do at all: redundant calls, work inside a loop that belongs
      outside it, recomputation of a stable value, over-fetching.
   2. Work done N times: N+1 queries and N+1 requests dominate real regressions. Count the
      queries in a test to prove it.
   3. Waiting: serial I/O that could be concurrent, a lock held across I/O, a missing
      timeout.
   4. The algorithm: a quadratic scan over a growing collection.
   5. Constant factors: allocation, copying, serialization.

5. **Change one thing. Measure again.** Two changes at once and you have learned nothing
   about either.

6. **Name what you traded.** Faster usually costs memory, complexity, or freshness. A cache
   without a stated invalidation rule is a bug that has not fired yet.

7. **Commit the benchmark** so the claim is reproducible and the regression is caught
   rather than rediscovered.

## Frontend specifics

Targets at the 75th percentile on real devices: LCP under 2.5 s, INP under 200 ms, CLS
under 0.1. Measure on a throttled connection and a mid-tier device profile, not on your
machine.

The usual causes: an unoptimized hero image or render-blocking resources for LCP; long
tasks and heavy handlers for INP; images without dimensions and late-loading fonts for CLS.

## Output

```markdown
## Performance: <target>
- **Budget:** <metric, percentile, load>
- **Baseline:** p50 <n> / p95 <n> — command: `<cmd>`
- **Profile said:** <quoted, the top cost>
- **Change:** <one sentence>
- **After:** p50 <n> / p95 <n> — same command, same data
- **Traded away:** <memory, complexity, staleness>
- **Benchmark committed at:** <path>
```

## Verification

- Before and after come from the same command, on the same data, on the same hardware.
- Numbers are absolute and include a percentile. A percentage alone hides that the
  baseline was 3 ms.
- The full test suite still passes. A faster wrong answer is not a win.
- The benchmark is in the repository.

## Red flags

| Thought | Reality |
|---------|---------|
| "This loop is obviously the problem" | Profile it. It usually is not. |
| "It feels faster" | Feels is not a percentile. |
| "I made five improvements" | You now know the effect of none of them. |
| "3x faster on my fixture" | A twelve-row fixture proves nothing about a twelve-million-row table. |
| "Caching fixed it" | What invalidates it? |
| "The average improved" | Averages hide the tail, and the tail is the user complaining. |
| "I'll optimize this while I'm in here" | Without a budget and a baseline, that is churn. |

Versions

The database has no other skills named performance-pass.

Database snapshot: 13.11.2026 · package version 535b508cb35d (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100performance-tuning
    Make software faster by measuring first and changing the thing that dominates. Use when the user says something is slow, asks how to optimise or speed up code, a page, an API or a service, asks about profiling, caching, latency, p99, throughput, memory usage, OOM, CPU at 100…
  • 100performance-audit
    Profiling, benchmarking, Web Vitals audit, N+1 detection, and performance optimization. Use when: performance, profiling, Web Vitals, N+1, slow, optimize, benchmark, latency, throughput.
  • 100performance-profiling
    Finds and fixes backend and application performance problems by measuring first - define the target metric, reproduce under realistic load, profile CPU, memory, I/O and locks, fix the biggest bottleneck, re-measure, and add a regression guard. Use when code or a service is slow,…
  • 100performance-investigation
    Diagnose a measured latency, memory, throughput, or resource regression and propose the smallest supported optimization. Use for performance questions; measure before tuning.
  • 100performance-optimization
    Measure, identify bottlenecks, fix, verify, and guard performance regressions. Use for web vitals, slow APIs, heavy notebooks/pipelines, or video/render workloads. Triggers: "performance", "optimize", "slow", "latency", "bundle size", "profiling".
  • 100performance-profiling
    Measures before optimizing: Core Web Vitals, Lighthouse, bundle, runtime and memory profiling. Use when diagnosing a slow page or app.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.