perf
Skill3 starsChanged 2 months agoMITView on GitHub
Use when the user asks to improve performance, find bottlenecks, optimize the backend, or speed something up. Also trigger on "/foreman:perf" or "/perf".
19 other projects use a version of this.
Adopted by
Most recently taken up by
- AllThingsSmitty/proven-skillstheir own version, first seen Oct 6, 2026
- wangqiqi/cursor-aitheir own version, first seen Sep 23, 2026
- its-ash/skillstheir own version, first seen Sep 14, 2026
- jircdev/crew-plugintheir own version, first seen Sep 7, 2026
- epicsagas/epic-harnesstheir own version, first seen Sep 4, 2026
- QAInsights/perf-skillstheir own version, first seen Aug 29, 2026
Used with
Projects with it also use metrics, incident and 8 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.
GoogleSkillmetrics
Expertise in analyzing time-series repository health metrics, investigating root causes, and proposing proactive workflow improvements.
Also in 3 projects that use this
pvnarpSkillincident
Guides incident response and post-mortem analysis. Covers triage, mitigation, root cause analysis, and prevention. Use when responding to active incidents, writing post-mortems, or improving incident processes.
Also in 3 projects that use this
xiaobei930Skillapi
RESTful API design patterns and best practices. Use when creating endpoints, designing APIs, or implementing routes.
Also in 3 projects that use this
Microsoft AzureSkilltest
Also in 6 projects that use this
AnthropicSkilldebug
Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.
Also in 7 projects that use this
Microsoft AzureSkilldesign
Design rules and conventions for the API Center Portal. Use when editing detail pages, card components, badges, layout, navigation, sidebars, or headers. Covers badge styling, metadata placement, page navigation patterns, and layout alignment.
Also in 5 projects that use this
Other versions19 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 19
- OutThisLife/brooklyn-skills★ 197same name
- zeuikli/claude-code-workspace★ 156same name
- microsoft/webui★ 93same name
- Rune-kit/rune★ 88same name
- lightpointventures/claude-code-starter★ 36same name
- epicsagas/epic-harness★ 19same name
- jmylchreest/aide★ 18same name
- QAInsights/perf-skills★ 16same name
- vshrinath/virtual-product-factory★ 16same name
- Dragoon0x/dragoon-skills★ 4same name
9 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
5
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
- Distinctive: line 38
Read replicas or caching layers for read-heavy workloads.
- Distinctive: line 43
Always name what a design change costs (consistency, complexity, operational surface) alongside what it buys.
- Distinctive: line 47
Don't micro-optimize code that isn't on a hot path.
- Distinctive: line 48
Don't recommend a caching layer, queue, or read replica as a first move if the actual problem is a missing index or an N+1 query, fix the …
- Distinctive: line 49
Don't sacrifice correctness or readability for a speedup that hasn't been shown to matter.
“Common” is measured: kept by at least 6 in 10 of the 14 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.
Files
Performance Review
Measure before you change anything, and change the thing that's actually slow, not the thing that's easiest to rewrite.
What to look at
$ARGUMENTS, when that is not empty. It is usually an endpoint (GET /reports), a function name, or a
path. Find the code that serves it before theorizing about it.
With no argument, ask what is slow. "Optimize this codebase" has no measurable answer, and guessing at one is how you spend a day on a function called once at startup.
Method
- Find the bottleneck, don't guess it. Look for profiling data, logs, query timings, or APM traces first. If none exist, say so and either ask for a profile or reason from the code's structure (loop nesting, query patterns) while being explicit that this is an estimate, not a measurement.
- Prioritize by impact x frequency, not by what looks inelegant. A slightly ugly function called once at startup matters less than a mediocre one called per-request.
- Fix, then re-measure. A performance fix without a before/after number is a guess that happened to compile.
Backend patterns to check, roughly by how often they're the real cause
- N+1 queries - a loop that issues one query per iteration instead of one batched query (
SELECTin a loop over an ORM relationship is the classic case). Usually the single highest-impact fix available. - Missing or wrong indexes - slow queries on columns used in
WHERE,JOIN, orORDER BYwithout a supporting index; also indexes that exist but aren't used because of a function wrapped around the column or a type mismatch. - Unbounded result sets - loading an entire table into memory instead of paginating, streaming, or filtering at the database layer.
- Synchronous I/O blocking a request path that doesn't need it - sequential awaited calls to independent services instead of concurrent ones; blocking calls on an async runtime's event loop.
- Missing caching for expensive, repeatable work - the same computation or query re-run per request when the result is stable for some useful window. Also check the inverse: caching that's gone stale or is invalidated incorrectly, which is worse than no cache.
- Algorithmic complexity - an O(n^2) pass over data that's routinely large, where a hash map or a single sorted pass gets it to O(n) or O(n log n). Only worth flagging where n is actually large in practice.
- Connection/resource churn - opening a new DB connection, HTTP client, or thread pool per request instead of reusing a pool.
- Serialization overhead - large payloads serialized/deserialized in full when only a subset of fields is needed downstream.
Design-level changes (bigger lever, bigger cost, mention with the tradeoff attached)
- Read replicas or caching layers for read-heavy workloads.
- Moving work off the request path into a background job/queue when the caller doesn't need the result synchronously.
- Denormalizing a hot-path read to avoid an expensive join, at the cost of write complexity and eventual-consistency risk, state that cost explicitly.
- Batching/debouncing high-frequency writes.
Always name what a design change costs (consistency, complexity, operational surface) alongside what it buys. A recommendation without the tradeoff isn't a complete recommendation.
What not to do
- Don't micro-optimize code that isn't on a hot path; that's wasted effort and adds noise to the diff.
- Don't recommend a caching layer, queue, or read replica as a first move if the actual problem is a missing index or an N+1 query, fix the cheap thing first.
- Don't sacrifice correctness or readability for a speedup that hasn't been shown to matter. The fastest code is often also the simplest, but not always: when speed and clarity genuinely trade off, say so explicitly instead of quietly picking one.
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
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.

