optimize

optimize is a skill for Claude Code, Codex from OutlineDriven/odin-claude-plugin. It costs 123 tokens per session (6,301 once invoked), scanned A, original, Apache-2.0.

A profiling and optimization process for making a selected code path faster or less wasteful. It measures candidate changes and keeps a fix only when the results support it.

In plain words
What is it for?
It profiles a target, tests possible hot-path changes, applies one verified improvement, and can add a CI check for an obvious bottleneck.
Why use it?
It replaces guesswork with benchmarks and protects against keeping an optimization that is smaller than measurement noise or fails to improve performance.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the odin-code plugin — 60 skills shipped together

Good fit It profiles a target, tests possible hot-path changes, applies one verified improvement, and can add a CI check for an obvious bottleneck.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/outlinedriven/odin-claude-plugin/optimize
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OutlineDriven/odin-claude-plugin --skill optimize
Clone the repo
git clone --depth 1 https://github.com/OutlineDriven/odin-claude-plugin

Made for: Claude Code, Codex.

Or install odin-code, the plugin that ships this one along with the rest of its 60 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for optimize

README.md
[![agentmods](https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/optimize/github.svg)](https://agentmods.dev/skills/outlinedriven/odin-claude-plugin/optimize)
Your own site
<a href="https://agentmods.dev/skills/outlinedriven/odin-claude-plugin/optimize"><img src="https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/optimize/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for optimize

Your own site · 80×15
<a href="https://agentmods.dev/skills/outlinedriven/odin-claude-plugin/optimize"><img src="https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/optimize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 123 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,301 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00123 $0.06301
Opus 5.5 $0.00049 $0.02520
Sonnet 5.5 $0.00025 $0.01260
Haiku 4.5 $0.00012 $0.00630

Measured 2mo ago against content hash ec80f3e79e42, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

optimize scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/odin-code/skills/optimize/SKILL.md · 157 lines

How it starts

The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Read the full file on GitHub · 157 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +75 lines · +82 tokens per session ec80f3e79e42
  2. 2mo ago Changed · -45 tokens per session e7dcd445c0d0
  3. 3mo ago First seen · 82 lines · 86 tokens per session scan A ceed2a7f5efa

Subscribe to this mod's changes

optimize is a skill published in the GitHub repository OutlineDriven/odin-claude-plugin (40 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 123 tokens to every session and 6,301 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

optimize compared with skills from other repositories

optimize next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
optimizeOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A123Claude Code, Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82kyesterdayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill332k6d agoMITA21Claude Code