performance-investigation
Skill1 starsChanged 4 months agoMITView on GitHub
Use when investigating slowness, high resource usage, timeouts, or any optimization request. Enforces measure-first performance work — profile, prove the bottleneck, fix, measure again. No optimization based on guesses.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- adamentwistle/fable-skillstheir own version, first seen Sep 3, 2026
- motao123/dev-workflow-kittheir own version, first seen Jun 13, 2026
- microsoft/sre-agenttheir own version, first seen May 8, 2026
- gclm/super-stacktheir own version, first seen Mar 29, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- microsoft/sre-agent★ 170same name
- adamentwistle/fable-skills★ 98same name
- motao123/dev-workflow-kit★ 1same name
- gclm/super-stack★ 0same name
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.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- core/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- core/CLAUDE.mdCLAUDE.md
- bug-fixSkill
- code-reviewSkill
- dependency-upgradeSkill
- feature-developmentSkill
- integration-briefSkill
- record-decisionSkill
- safe-refactorSkill
- verify-workSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
3
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 52
Do not optimize code you haven't measured — no matter how obvious it looks.
- Distinctive: line 53
Do not trade readability for micro-gains that no measurement demanded.
- Distinctive: line 54
Do not accept "feels faster".
“Common” is measured: kept by at least 6 in 10 of the 4 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 Investigation
Goal: every performance claim comes with two numbers — before and after.
"It's probably the N+1 query" is a hypothesis, not a diagnosis. Optimizing unmeasured code is guessing with extra steps.
Steps
- Define the symptom as a number. What is slow, how slow, under what conditions, and what would "fixed" mean? ("List endpoint takes 4.2s at 10k rows; target under 500ms.") If the user can't give a target, propose one.
- Measure before touching anything. Profile, add timings, check query plans, reproduce under realistic data — whatever fits the stack. The goal is a proven bottleneck: evidence showing where the time/memory actually goes. If the measurement contradicts your intuition, the measurement wins.
- Propose with numbers. Send the Problem / Plan / Risk / Question message. The Problem line carries the measurement, the Plan targets the proven bottleneck only. Performance fixes that touch queries, caching, or concurrency are L2 — wait for approval.
- Fix one thing. The smallest change that addresses the proven bottleneck. Never bundle several optimizations in one step — you won't know which one worked, or which one broke something.
- Measure again, same conditions. Same data, same scenario, same tool. Report both numbers. If the fix didn't move the number, say so and revert it — an ineffective optimization is pure complexity cost.
- Guard the win where practical. A benchmark test, a query-count assertion, or at minimum the measurement commands recorded in the journal so the numbers can be reproduced.
- Record.
Journal entry:
docs/agent-journal/YYYY-MM-DD-perf-<slug>.mdwith the before/after numbers and how they were measured.
Do not
- Do not optimize code you haven't measured — no matter how obvious it looks.
- Do not trade readability for micro-gains that no measurement demanded.
- Do not accept "feels faster". Numbers or it didn't happen.
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.

