profile-optimizerlisted
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