Individual skill
optimize
Use when asked to optimize code, reduce allocations, profile a target, or investigate a performance regression or measured bottleneck. Supports quick fixes, full or `extremely-optimize` measured-floor campaigns, `fastopt` hypothesis-only analysis, and `fastopt-extreme` complexity-neutral estimates. Not for remote, credential, publish, deploy, or irreversible changes.
.devin/skills/optimize/SKILL.md
Source commit b0e8ce89a19fac880251dc3ea1babfeb4503a4fe
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 4, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 55
- Repository last updated
- Sep 28, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- odd Repository topic
- odin Repository topic
- outline Repository topic
- outlines Repository topic
- coding-paradigm Repository topic
- outline-driven-development Repository topic
- claude-plugins Repository topic
- codex-cli Repository topic
- gemini-cli-extensions Repository topic
- outline-driven Repository topic
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 30,337 bytesSKILL.mdcore · 30,337 bytesSKILL.mdcore · 30,337 bytesagents/openai.yamlasset · 196 bytesreferences/experiment-mode.mddoc · 6,480 bytesreferences/lenses.mddoc · 10,570 bytesreferences/state-and-resume.mddoc · 2,707 bytesreferences/tooling.mddoc · 7,611 bytes
Read excerpt
# Optimize
Five mode names share one authority: reversible local writes to the resolved target, never push, tag, publish, deploy, or mutate a remote. Full and `extremely-optimize` intentionally select the same measured-floor campaign route, rather than separate procedures; the retired name remains an explicit compatibility mode value. That route runs an isolated five-lens search with an integrated 1.05x gate and an atomic commit. Quick mode runs a single measure-identify-fix-verify loop with a noise-aware keep/revert and a CI guard for the obvious-bottleneck case. `fastopt` mode reports suspected-hot-path hypotheses without mutating code. `fastopt-extreme` mode reports estimated hot paths and complexity-neutral cold-path simplifications while refusing complexity theater.
## Contract
| Field | Bound contract |
|---|---|
| Trigger | The user asks to optimize code, make a path faster, make this as fast as possible, reduce allocations, fix a performance regression, profile and optimize a path, symbol, or diff, or a performance requirement, slowness report, Core Web Vitals miss, or profiling evidence identifies a bottleneck; asks for a measured-floor campaign, hypothesis-only suspected-hot-path analysis, or estimated hot/cold analysis that refuses complexity theater; or says "extremely optimize" or "grill every inefficiency". |
| Authority | Full and `extremely-optimize` modes write only the exact VCS-tracked source-target set shown before mutation plus `.outline/optimize/<target>/` (destructive; rollback is version control); quick mode writes only the named target and an authorized CI performance-budget or field-monitor guard; `fastopt` and `fastopt-extreme` modes are read-only with no file, VCS, credential, paid, published, deployed, or remote mutation. Full mode may commit one winning optimization, but no mode tags, publishes, deploys, or mutates a remote. |
| Side effect | Full and `extremely-optimize` modes append measurements and decisions to `.outline/optimize/<target>/log.jsonl`, benchmark isolated candidates, gate all boundary surfaces before touch, revert non-wins, apply the winner, and create one atomic commit. Quick mode applies one targeted fix and may add a CI performance budget or field monitor. `fastopt` mode emits labeled hypotheses and benchmark designs. `fastopt-extreme` mode emits hot-path hypotheses, benchmark designs, cold-path simplifications, and complexity-theater refusals. |
| Done | Full and `extremely-optimize` modes rebuild hot units with a measured 1.05x-or-better win, grade cold units fixed/at-floor/left, remove residue, pass the verifier, and land the target atomically. Quick mode: the identified bottleneck is measurably improved past noise, tests remain green, no new regressions exist, and a CI budget or field monitor guards the metric. `fastopt` mode: every named path has a labeled hypothesis and benchmark design, with no mutation or speed claim. `fastopt-extreme` mode: every hot estimate has a falsifiable benchmark, every cold candidate is complexity-neutral or rejected, and every complexity-theater proposal is refused. |
| Inputs | The required mode-specific inputs are listed below; the `mode` input selects exactly one route and must not combine a mutating route with a read-only route. |