ce-optimize
O que ela faz
Esta skill executa um ciclo de otimização medido em uma parte nomeada de um sistema. Ela é indicada para desenvolvedores que querem melhorar uma métrica e precisam de prova de que cada mudança ajuda.
Quando usar
- ✓Quando a velocidade ou o custo de um sistema que funciona deve melhorar e a melhor mudança ainda não é conhecida.
- ✓Quando você quer descobrir de onde vem a maior parte do custo de uma carga de trabalho.
- ✓Quando você quer que várias variantes sejam pontuadas e somente as vencedoras sejam mantidas.
Link da skill
https://github.com/EveryInc/compound-engineering-plugin/blob/main/skills/ce-optimize/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Você pode descobrir o que deixa nossa exportação de relatórios lenta e testar mudanças que realmente a acelerem?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill atribui primeiro o custo da carga de trabalho e depois testa variantes em experimentos isolados. Ela mantém as mudanças que medem melhor, reverte as demais e registra os resultados em uma branch separada.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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.
Interaction Method
Use the host's blocking question tool already in the current tool list (match by capability, not by a host-specific name). Presence in the current tool list is proof the tool exists; never call a user-facing question tool to discover whether it exists. If a matching tool is listed but unloaded, use the host's tool-discovery primitive to load that capability: do not search for another host's tool name. Fall back to numbered options on the host's chat surface only when no such tool is in the list or a real question call errors. Never skip the question silently.
Execution Surface
Three capabilities decide where run state lives, how the loop waits, and where experiments run. A durable state root is a writable location the harness names that persists across turns and context resets, outside the repo checkout; without one, state lives under .context/compound-engineering/ce-optimize/<spec-name>/. A wake after turn end is a way to be re-invoked by an external event or timer without holding a tool call open; without one, the loop runs inside this session, and a wait it cannot hold ends the turn as a checkpoint with a resume invocation. A detached worker is a dispatch whose result arrives as a pushed ref, a store file, or a host-delivered message, not as edits in the local tree; execution.backend: remote needs one; without one that spec runs on worktree. Presence in the current tool list, or in context the harness gave you, is proof; a missing binary or environment variable proves nothing. Take a fallback without asking.
Artifact Root
<!-- ce-docs-root:start -->Resolve the CE artifact root <root> before composing any artifact path.
- Read
docs_rootfrom<repo-root>/.compound-engineering/config.yamlonly (<repo-root>=git rev-parse --show-toplevel). Do not read it fromconfig.local.yaml. Unset -><root>isdocs, exactly as before. - Validate a set value: a repo-relative directory whose real, symlink-resolved path stays inside the repo and is neither the repo root nor under
.git/. Otherwise stop with an error namingdocs_rootand the value -- never fall back todocs. - Use
<root>as the sole artifact location: create it if absent, compose each path as<root>/<subdir>with this skill's own subdirectory, and never also readdocs.
Persistence
Perguntas frequentes
Ela altera minha branch principal?
Não. Os experimentos e as mudanças mantidas ficam em uma branch de otimização separada.
Ela pede permissão antes de gastar dinheiro?
Sim. Ela pergunta quando o gasto não tem limite ou quando surge uma nova dependência.
Ela serve para encontrar bugs?
Não. Depuração é outro trabalho, e esta skill serve para melhorias medidas.
Detalhes
Descrição original do autor
Optimize a named target with a measured loop: attribute a workload's cost, or score variants and keep winners. Use when a working system's metric should move and the winning change is not already known. Use ce-debug when the job is diagnosis; use ce-work when the change is already known.
Popularidade
- Estrelas no GitHub
- 26 mil
- Posição no ranking
- #10034
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
ce-babysit-pr
26 milAjuda seu agente a levar um pull request aberto até o merge, tratando comentários de revisão, checks com falha e branches desatualizadas ao longo do tempo.
ce-bakeoff
26 milAjuda seu agente a criar várias soluções concorrentes para um problema, compará-las e combinar as partes mais fortes em uma abordagem recomendada.
ce-brainstorm
26 milAjuda seu agente a transformar uma ideia vaga em requisitos claros e bem dimensionados antes de qualquer trabalho, por meio de uma conversa guiada e curta.
ce-code-review
26 milAjuda seu agente a revisar uma mudança de código ou pull request indicado em busca de bugs, regressões, testes ausentes e problemas de padrões, relatando achados claros.
Skills parecidas
diffs
394 milPermite que seu agente gere um diff real e compartilhável das edições, como link de visualização ou arquivo de imagem, em vez de um resumo escrito à mão.
coding-agent
394 milAjuda seu agente a passar um trabalho grande de programação para o Codex, Claude Code ou OpenCode em segundo plano e acompanhar o andamento.
gh-issues
394 milAjuda seu agente a encontrar issues do GitHub, escolher quais resolver e abrir pull requests com correções, acompanhando os comentários de revisão.