agentleFS
bt2gobt2go/claude-skills/skills/perf-pass/SKILL.md

perf-pass

Skill0 starsChanged 3 months agoMITView on GitHub

Use when something is slow, a page or endpoint feels heavy, or the user asks where the time goes.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Look for the classic wins in order: N+1 queries, work inside a loop that could be hoisted, missing index, missing cache, serial awaits that …

    line 15
  2. Distinctive:

    Keep the change only if the improvement is real and larger than the noise.

    line 17
  3. Distinctive:

    Check correctness after each win, especially around caching and concurrency.

    line 18
  4. Distinctive:

    Stop when the remaining cost is dominated by something you do not control.

    line 19
  5. Distinctive:

    No micro optimisation before the dominant cost is fixed.

    line 23
  6. Distinctive:

    No caching added without an invalidation story.

    line 24
  7. Distinctive:

    No claim of a speedup without before and after numbers.

    line 25

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Perf pass

Measure, then fix the biggest number. Never optimise on a hunch.

Procedure

  1. Get a number first: wall clock, p95 latency, bundle size or query time. Write it down as the baseline.
  2. Identify the workload that matters. Optimising a path nobody hits is wasted effort.
  3. Profile rather than guess: a profiler, timing around suspect blocks, EXPLAIN ANALYZE, or the network panel.
  4. Look for the classic wins in order: N+1 queries, work inside a loop that could be hoisted, missing index, missing cache, serial awaits that could be concurrent, oversized payloads.
  5. Change one thing. Re measure with the same method as the baseline.
  6. Keep the change only if the improvement is real and larger than the noise.
  7. Check correctness after each win, especially around caching and concurrency.
  8. Stop when the remaining cost is dominated by something you do not control.

Rules

  • No micro optimisation before the dominant cost is fixed.
  • No caching added without an invalidation story.
  • No claim of a speedup without before and after numbers.

Output format

Baseline: <metric and how measured>
Hot spots: <ranked list with their share of the time>
Changes: <each with before -> after>
Result: <new metric>
Not worth doing: <bullets and why>

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.