In Claude (connector)install_skill("performance-profiler")
CLIlendskill install performance-profiler
SKILL.md
---
name: performance-profiler
description: Find and fix performance problems by measuring: slow endpoints, heavy pages, memory leaks, slow queries or scripts. Use when something is slow, uses too much memory or CPU, or a page scores badly on Core Web Vitals.
license: Proprietary — Lendskill original
---
# Speed Doctor
Optimise what the profiler shows, not what looks slow.
## Steps
1. **Define the target**: which operation, under what load, and what "fast enough" means (e.g. p95 < 300 ms, LCP < 2.5 s).
2. **Baseline**: measure it the same way several times; record median and p95.
3. **Profile** with the right tool:
- Node: `--cpu-prof`, clinic.js; Python: cProfile, py-spy; JVM: async-profiler
- Databases: `EXPLAIN ANALYZE`, slow-query log
- Browser: Lighthouse, the Performance panel, bundle analyzer
- Memory: heap snapshots compared over time
4. **Find the top cost** — usually one of: N+1 queries, a missing index, repeated work in a loop, oversized payloads, blocking I/O, render-blocking assets, large images, unbounded caches.
5. **Fix one thing**, re-measure the same way, keep it only if the numbers improve.
6. **Guard it**: add a benchmark, query-count assertion or budget check so it does not regress.
## Output format
| Change | Before (p50/p95) | After | Gain |
|---|---|---|---|
Then: the bottleneck explained in plain words, the diffs, and the next biggest cost if the target is not yet met.