profile-optimizer

Solid

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".

Data & Documents 13 stars 2 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
38
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# 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...

Details

Author
mthines
Repository
mthines/agent-skills
Created
4 months ago
Last Updated
yesterday
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category