agentleFS
michael-muirmichael-muir/agentic-dev-kit/skills/performance-review/SKILL.md

performance-review

Skill1 starsChanged 13 days agoMITView on GitHub

Use when a change touches hot paths, data volume, latency, memory, frame time or any performance budget in the spec, to measure it against the budget and the base branch with repeatable benchmarks instead of guessing.

33 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ci-cd-pipeline, architecture-review and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • nanvixSkill

    ci-cd-pipeline

    Guide for Nanvix CI and GitHub Actions workflow behavior, including local pipeline execution and matrix coverage. Use this when asked about CI checks, workflow failures, or release flow.

    Also in 3 projects that use this

  • SentrySkill

    architecture-review

    Staff-level codebase health review. Finds monolithic modules, silent failures, type safety gaps, test coverage holes, and LLM-friendliness issues.

    Also in 7 projects that use this

  • vindreshsinghSkill

    review-gate

    Reviews a change across correctness, design, readability, security, and performance before it merges. Use when reviewing a PR, self-reviewing your own diff, or sanity-checking an AI-generated change prior to shipping.

    Also in 3 projects that use this

  • SentrySkill

    security-review

    Finds exploitable application security vulnerabilities in code changes. Use for Warden security scans, appsec review, OWASP-style checks, authentication or authorization bugs, injection, XSS, SSRF, path traversal, secrets, unsafe crypto, webhook verification, open redirects, or sensitive data exposure.

    Also in 9 projects that use this

  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 29 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Find the budgets: Read the spec's Constraints for latency (p50/p95/p99), throughput, memory, allocations, start-up time, binary or bundle …

    line 11
  2. Distinctive:

    Leave the benchmark: Commit the benchmarks so the measurement can be repeated.

    line 38

“Common” is measured: kept by at least 6 in 10 of the 29 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

Performance review

Opinions about speed are usually wrong. Measure, compare, and leave a benchmark behind.

Steps

  1. Find the budgets. Read the spec's Constraints for latency (p50/p95/p99), throughput, memory, allocations, start-up time, binary or bundle size, and frame time per platform. Done when: each relevant budget is listed with its number and unit, or marked missing.
  2. Find what the change makes hot. In the diff, look for loops over unbounded input, nested iteration (O(n²)), per-item I/O or queries (N+1), allocation in hot loops, locks on hot paths, blocking calls in async code, unbounded caches or queues, and large copies. Done when: you have a list of suspect paths, each with the input size that matters.
  3. Measure the base and the head with the stack's benchmark tool, on the same machine, with warm-up, several iterations and realistic input sizes (including the largest the spec allows).
    StackBenchmarkProfile
    pythonpytest-benchmark, pyperfcProfile, py-spy, tracemalloc
    javascript / typescriptvitest bench, tinybenchnode --cpu-prof, Chrome DevTools
    rustcriterion, divancargo flamegraph, heaptrack
    gogo test -bench -benchmempprof
    dotnetBenchmarkDotNetdotnet-trace, dotnet-counters
    cppGoogle Benchmark, nanobenchperf, VTune, Tracy
    luaos.clock loops, LuaJIT -jpLuaJIT profiler
    Unrealstat unit / stat gpu, automation perf testsUnreal Insights
    Done when: each suspect path has a base number and a head number, with the variance.
  4. Judge with the numbers.
    • Over budget → major, or critical if users or safety are affected.
    • A regression of more than 10% against base on a budgeted path, even within budget → minor, with the trend noted.
    • A difference within the measurement noise → no finding. Say so. Done when: each finding cites the base, the head, the budget and the benchmark name.
  5. Leave the benchmark. Commit the benchmarks so the measurement can be repeated. If CI can run them reliably, propose a gate step to the retro agent (an advisory step first). Done when: the benchmarks are committed, and their run command is in the findings.

Notes

  • Fix the input, the seed and the environment. Report the CPU, OS and build mode (always measure release/optimised builds).
  • Microbenchmarks can mislead. Confirm a big claim with an end-to-end measurement.

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.