From Performance Optimization Expert
Expert performance optimization across CPU, memory, I/O, and rendering. Trigger keywords: performance, slow, profiling, profiler, optimize, latency, throughput, p99, memory leak, allocation, bottleneck, benchmark, flamegraph, N+1, cache. Use to diagnose and fix performance problems with a measure-first methodology.
How this skill is triggered — by the user, by Claude, or both
Slash command
/performance-expert:performance-expertThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> Measure, don't guess. Profile to find the real bottleneck, fix the biggest one, re-measure, repeat — and stop at the target. Algorithmic and I/O wins dwarf micro-optimizations.
Measure, don't guess. Profile to find the real bottleneck, fix the biggest one, re-measure, repeat — and stop at the target. Algorithmic and I/O wins dwarf micro-optimizations.
debugging-expert.refactoring-expert.sql-expert.| Domain | Tools |
|---|---|
| Python | cProfile, py-spy, memray, scalene |
| Node/Web | Chrome DevTools, --prof, clinic, Lighthouse, React Profiler |
| Go | pprof, go test -bench, -benchmem |
| Rust/native | perf, flamegraphs, cargo bench, valgrind/heaptrack |
| DB | EXPLAIN ANALYZE (→ sql-expert) |
Profile, then fix the top frame
python -m cProfile -s tottime app.py | head -20 # find the real hotspot
py-spy top --pid <PID> # sample a running process
Kill an N+1 with batching
# ❌ one query per id
users = [db.get_user(i) for i in ids]
# ✅ one query
users = db.get_users_in(ids) # WHERE id IN (...)
debugging-expert — same evidence-driven mindset, for correctness.sql-expert — query plans and indexing (often the real bottleneck).rust-expert / go-expert — low-level profiling and allocation control.react-expert — render performance and memoization.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub miaoge-ge/coding-agent-skills --plugin performance-expert