/crewforth:performancefrom Crewforth
Guides performance optimization with a measurement-first methodology: set targets, profile bottlenecks, fix the hottest path, and verify improvements against noise. Stack-agnostic.
Ships in Crewforth. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Trigger phrases: "performance", "slow", "optimization", "profiling", "N+1", "latency", "memory leak", "leaked memory", "load test", "seconds to open", "seconds to respond", "anything slower", "make it slower"
Core rule: measure first, optimize later. Optimization without measurement is a guess; it usually speeds up the wrong place and adds complexity. Stack-agnostic; do a web search when you need the profiling tool/library.
Set a target — what is "acceptable"? (p95 latency, throughput, memory ceiling). Numeric.
Measure — find the real bottleneck with a profiler/APM/benchmark; don't start from a guess.
Fix the single most expensive thing — Amdahl: speeding up a 5% path by 2x is wasted; target the hot path.
Measure again — did it actually improve, is there a regression. Run each side enough times to see the run-to-run noise, then decide:
| Result against the noise | Decision |
|---|---|
| Better by more than the noise | Keep |
| Within the noise | Revert: no measured gain is no gain |
| Worse, or a test went red | Revert |
A reverted attempt is written down (in the PR, or the doc that holds the measurements) with its number, so a discarded idea stays discarded. 4b. Same answers before same speed. An optimisation of a pure function is kept only after a differential check: the original and the new version run on generated inputs (empty, one item, repeated values, sorted, reverse-sorted, extreme sizes, typical) and return the same results. Then time the new one on its own worst input shape, not only the benchmark's.
Stop — once you hit the target, finish; no endless micro-optimization.
Catalog of common bottlenecks + fixes to consult: references/bottlenecks.md.
references/web-vitals.md.| Symptom | Usual cause | Fix |
|---|---|---|
| List page gets slower as data grows | N+1 queries, or no pagination | one query with a join or batch load; paginate |
| Fast locally, slow in production | the data volume, or a missing index | measure with production-sized data; EXPLAIN the query |
| Typing or scrolling stutters | work on every keystroke or render | debounce, memoize, virtualize long lists |
| Memory grows until a restart | listeners, timers or caches never released | remove them on teardown; bound every cache |
| First load slow, later loads fine | a large bundle or an unoptimised hero image | split the bundle, lazy-load below the fold, size the image |
What SKILL.md sets; muted values are Claude Code's defaults
60 skills in this plugin
/a11yUse when building or changing UI, before shipping a user-facing screen, and when something cannot be
reached with a keyboard, read by a screen reader, or seen at low contrast.
/adrArchitecture Decision Record: context-decision-consequences, for decisions that are expensive to reverse.
Written under docs/adr/.
/api-designUse when an API contract is designed or changed: a new endpoint or resource, how its errors and pages
are returned, a field to add or remove, or a version to cut without breaking a consumer.
npx claudepluginhub crewforth/crewforth --plugin crewforthOther plugins' skills for the same job