perf
Skill3 starsChanged 56 days agoMITView on GitHub
Use when the user asks to improve performance, find bottlenecks, optimize the backend, or speed something up.
24 other projects use a version of this.
Adopted by
Most recently taken up by
- Rune-kit/runetheir own version, first seen Nov 29, 2026
- gaboesquivel/keeltheir own version, first seen Nov 22, 2026
- aspectly-labs/Mikkatheir own version, first seen Nov 22, 2026
- swap-cameroon/kuro-antigravity-configtheir own version, first seen Nov 15, 2026
- alexj11324/Mikkatheir own version, first seen Nov 15, 2026
- jisuzzzz/haechitheir own version, first seen Nov 8, 2026
Used with
Projects with it also use incident, scaffold 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.
JkudjoSkillincident
Production incident response — structured triage, hypothesis tree, safe remediation, incident record
Also in 4 projects that use this
BerryKuipersSkillscaffold
Detect project stack, apply architecture patterns, wire quality gates, and scaffold features. Use when bootstrapping a project, adding a vertical slice, wiring CI/CD, adding Docker compose, or setting up quality gates.
Also in 3 projects that use this
Microsoft AzureSkilltest
Also in 6 projects that use this
GitHubSkillrefactor
Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.
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
NVIDIASkillpreflight
Use before a debugging workflow, when asked to check the environment, or when the local CLI tools needed for the requested task are not working.
Also in 3 projects that use this
Other versions24 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 24
- alamenai/terrae★ 245same name
- OutThisLife/brooklyn-skills★ 218same name
- zeuikli/claude-code-workspace★ 155same name
- microsoft/webui★ 107same name
- Rune-kit/rune★ 96same name
- alexj11324/Mikka★ 90same name
- aspectly-labs/Mikka★ 90same name
- epicsagas/epic-harness★ 22same name
- jmylchreest/aide★ 19same name
- jisuzzzz/haechi★ 17same name
14 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 19 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 19 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.

