← ClaudeAtlas

profile-optimizerlisted

Analyzes React DevTools Profiler exports, Chrome DevTools Performance traces, and Chrome heap snapshots / heap-timelines / heap-profiles. Identifies the highest-impact bottlenecks (long tasks, expensive renders, layout thrash, wasted memoisation, blocking scripts, retained memory, leaks) and proposes concrete code fixes ranked by measured impact. Auto-detects the input format (React `.json` profile, Chrome trace `.json` / `.cpuprofile`, or `.heapsnapshot` / `.heaptimeline` / `.heapprofile`). Iterates via the `/confidence` skill — if root-cause certainty is below 90%, it digs deeper before recommending a fix. Use when handed a profile file, asked "why is this slow?", "why is memory growing?", or asked to optimise a hot path with evidence. Triggers on "analyze profile", "react profiler", "chrome performance", "optimize from profile", "profile this", "why is this slow", "memory leak", "heap snapshot", "/profile-optimizer".
mthines/agent-skills · ★ 5 · Data & Documents · score 83
Install: claude install-skill mthines/agent-skills
# Profile Optimizer Turn a profile file into a ranked, evidence-backed optimisation plan. > **Index file.** Detailed analysis rules, optimisation patterns, and report > templates live under `rules/`, `references/`, and `templates/`. Load only > what the current phase needs — the body of `SKILL.md` is a thin orchestrator. --- ## Inputs The user passes one or more profile files. Accept any of: | Format | Extension | Detection signal | | -------------------------- | ------------------------ | ----------------------------------------------------------------- | | React DevTools Profiler | `.json` (often `.reactprofile`) | Top-level keys include `dataForRoots` and `rendererID` / `version` | | Chrome Performance trace | `.json` / `.json.gz` | Top-level `traceEvents` array (or NDJSON with `ph`, `ts`, `cat`) | | Chrome CPU profile (legacy)| `.cpuprofile` | Top-level `nodes`, `samples`, `timeDeltas` | | Chrome heap snapshot | `.heapsnapshot` | Top-level `snapshot.meta.node_fields` + `nodes`/`edges`/`strings` | | Chrome heap timeline | `.heaptimeline` | Heap snapshot shape + `samples` array | | Chrome heap profile (sampled allocations) | `.heapprofile` | Top-level `head` + `samples` (V8 sampling-allocation profile) | If the file is gzipped, decompress with `gunzip -k` before parsing. If mu