ce-optimize

ce-optimize is a skill for Claude Code from EveryInc/compound-engineering-plugin. It costs 63 tokens per session (1,718 once invoked), scanned A, original, MIT.

A skill for improving a measurable result through repeated experiments and checks. It uses defined targets and stopping rules to decide when the work is finished.

In plain words
What is it for?
Use it to tune code, settings, or processes when success can be measured. It helps run experiments against several required targets and stop when the targets are met or progress is blocked.
Why use it?
It removes guesswork from optimization by showing whether each change improved the chosen measurements. It also records and verifies the final result.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the compound-engineering plugin — 37 skills, 1 command shipped together

Good fit Use it to tune code, settings, or processes when success can be measured. It helps run experiments against several required targets and stop when the targets are met or progress is blocked.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/everyinc/compound-engineering-plugin/ce-optimize
About the project

Compound Engineering is a plugin that organizes software work into brainstorming, planning, implementation, review, and recording lessons for future changes. It is used with AI coding agents including Claude Code, Cursor, and Codex, and the catalogue entries provide parts of its agent, skill, command, and hook workflow.

EveryInc/compound-engineering-plugin · 25,727 stars · on GitHub · every.to

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 EveryInc/compound-engineering-plugin --skill ce-optimize
Clone the repo
git clone --depth 1 https://github.com/EveryInc/compound-engineering-plugin

Made for: Claude Code.

Or install compound-engineering, the plugin that ships this one along with the rest of its 37 skills, 1 command.

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 ce-optimize

README.md
[![agentmods](https://agentmods.dev/badge/skills/everyinc/compound-engineering-plugin/ce-optimize/github.svg)](https://agentmods.dev/skills/everyinc/compound-engineering-plugin/ce-optimize)
Your own site
<a href="https://agentmods.dev/skills/everyinc/compound-engineering-plugin/ce-optimize"><img src="https://agentmods.dev/badge/skills/everyinc/compound-engineering-plugin/ce-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 ce-optimize

Your own site · 80×15
<a href="https://agentmods.dev/skills/everyinc/compound-engineering-plugin/ce-optimize"><img src="https://agentmods.dev/badge/skills/everyinc/compound-engineering-plugin/ce-optimize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,718 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
  • Socket warn 24 Oct 2026
  • Snyk pass 24 Oct 2026
  • 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.00063 $0.01718
Opus 5.5 $0.00025 $0.00687
Sonnet 5.5 $0.00013 $0.00344
Haiku 4.5 $0.00006 $0.00172

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

Security

Grade A, and why

ce-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 3d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/decide.mjs, scripts/experiment-worktree.sh, scripts/measure.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/ce-optimize/SKILL.md · 65 lines

How it starts

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

Optimize a measurable target

Outcome: confirmed improvements to the named target live on an optimize/<spec-name> branch, with a disk log. The user takes over at wrap-up.

Intent: the next action is the cheapest step that would change what gets implemented. Attribute the cost of a named workload before searching implementations. Search and keep a scored variant space without requiring a profile.

Done when: a stopping criterion was met, every declared required target is met or another stop was met first, the final state is written and verified on disk, and the user has been given the post-completion options. If the run instead stopped at a check it could not pass, say what blocked it.

Invoking this skill authorizes reading the repo, building the harness, and (after the Phase 1 approval gate) isolated experiments and keep/revert commits on optimize/<spec-name>. Ask when spend is uncapped, when a new dependency appears, when wrap-up would push or open a PR, or when only the user can choose among the post-completion options. Do not ask again to run the next experiment inside those limits.

Independent calls and dispatches go in one response; serialize only real dependencies.

Report findings, user decisions, blockers, and results. During longer work, give occasional updates on what was learned and what remains. Routine preparation and phase or batch transitions need no announcement. Keep accounting in the log and final recap unless it affects a current decision.

Explain the target, evidence, and decision in ordinary task language. Workflow labels (such as 'harness') belong in artifacts unless the user asks about those mechanics. State unknown duration or cost as unknown; caps are limits, not forecasts.

A step is done only after it ran. Describing a measurement, dispatch, or checkpoint is not doing it. Do not end a turn while in-scope work remains merely described. Outstanding work may outlive the turn only with a verified checkpoint and either bounded automatic resumption or an explicit manual-resume handback, as references/persistence.md defines.

Read the full file on GitHub · 65 lines

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. 3d ago Changed · +2 lines d44b1723df39
  2. 26d ago Changed 942ff8ce14c4
  3. 1mo ago Changed d8e18a7f4772
  4. 1mo ago Changed 771d822cab9c
  5. 1mo ago Changed · +9 lines · +44 tokens per session fb0bb36a9a98
  6. 1mo ago First seen · 54 lines · 19 tokens per session scan A e4733c2cec3b

Subscribe to this mod's changes

ce-optimize is a skill published in the GitHub repository EveryInc/compound-engineering-plugin (25,727 stars, last pushed today), licensed MIT. It adds 63 tokens to every session and 1,718 once invoked, about $0.0003 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-08-30.

Related

Other skills, from other repositories

add-community-extension

Add a community extension to the Spec Kit catalog from a GitHub issue submission. USE FOR: processing extension submission issues, validating catalog entries, updating catalog.community.json and docs/community/extensions.md, creating PRs. DO NOT USE FOR: creating new extensions from scratch, or first-party extension…

github/spec-kit · 63 tokens

openspec-explore

Enter OpenSpec explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements in a project that uses OpenSpec. Use when the user wants to think through something before or during an OpenSpec change. Also use when the user says "openspec explore" or "opsx explore".

Fission-AI/OpenSpec · 67 tokens

openspec-verify-change

Verify implementation matches OpenSpec change artifacts. Use when the user wants to validate that implementation is complete, correct, and coherent before archiving. Also use when the user says "openspec verify" or "opsx verify".

Fission-AI/OpenSpec · 51 tokens

openspec-apply-change

Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks. Also use when the user says "openspec apply", "opsx apply", or "openspec implement".

Fission-AI/OpenSpec · 53 tokens

openspec-update-change

Update an OpenSpec change by revising its existing planning artifacts and keeping them coherent with one another. Use when the user wants to revise a change's plan, fold new decisions into it, or reconcile its artifacts after an edit. Also use when the user says "openspec update change" or "opsx update". If the user…

Fission-AI/OpenSpec · 95 tokens

openspec-new-change

Start a new OpenSpec change using the experimental artifact workflow. Use when the user wants to create a new feature, fix, or modification with a structured step-by-step approach. Also use when the user says "openspec new change" or "opsx new".

Fission-AI/OpenSpec · 58 tokens