← ClaudeAtlas

optimizelisted

Analyze a codebase for performance and produce an optimization report — where the program is slow, how to make it faster, and the expected speed impact, effort, and risk of each change. Use when the user asks to "optimize the program", "make it faster", "improve performance", "find bottlenecks", "why is this slow", or "reduce latency/memory". Reads and understands the code first, reasons from profiling and algorithmic complexity (not guesses), and reports recommendations ranked by impact — without rewriting hot code until asked.
POSTTTT/SKILLs · ★ 0 · Data & Documents · score 72
Install: claude install-skill POSTTTT/SKILLs
# Performance Optimization Report Guiding idea: **the fastest program is the one that does the least work on the most cache-friendly data — everything else is detail.** Your job is to find where the program does too much work or touches memory badly, and write a clear report on how to fix it and what speedup to expect. **Report first; don't rewrite hot code until the user approves** — performance changes can alter behavior and hurt readability. ## Step 0 — Measure, don't guess (most important rule) Optimization without measurement is superstition. The bottleneck is rarely where intuition says. Per **Amdahl's Law**, optimizing code that's 1% of runtime yields at most 1% — effort must go to the actual hot path. - Look for existing benchmarks/profiles. If none, **recommend how to profile this stack** (e.g. `cProfile`/`py-spy` for Python, `perf`/`flamegraph` for native, Chrome DevTools/`--prof` for JS, `pprof` for Go, JMH for Java) and what workload to measure under. - Be explicit about confidence: mark each finding as **measured** (backed by a profile/benchmark) vs **suspected** (inferred from reading the code). Never present a guess as a proven hotspot. ## Step 1 — Understand the codebase - Map the architecture, entry points, and the hot paths users actually wait on (request handlers, render loops, batch jobs, tight inner loops). - Identify the language/runtime — it changes what matters (GC pressure in managed langs, cache layout in native, event-loop blocki