ce-optimize
Qué hace
Esta skill ejecuta un ciclo de optimización medido sobre una parte concreta de un sistema. Está pensada para desarrolladores que quieren mejorar una métrica y necesitan pruebas de que cada cambio ayuda.
Cuándo usarla
- ✓Cuando la velocidad o el coste de un sistema que funciona deben mejorar y no se conoce aún el mejor cambio.
- ✓Cuando quieres encontrar de dónde viene la mayor parte del coste de una carga de trabajo.
- ✓Cuando quieres puntuar varias variantes y conservar solo las ganadoras.
Link de la skill
https://github.com/EveryInc/compound-engineering-plugin/blob/main/skills/ce-optimize/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Puedes averiguar qué hace lenta nuestra exportación de informes y probar cambios que la aceleren de verdad?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill primero atribuye el coste de la carga de trabajo y después prueba variantes en experimentos aislados. Conserva los cambios que miden mejor, revierte los demás y registra los resultados en una rama separada.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Cambia mi rama principal?
No. Los experimentos y los cambios conservados van en una rama de optimización separada.
¿Pregunta antes de gastar dinero?
Sí. Pregunta cuando el gasto no tiene límite o cuando aparece una dependencia nueva.
¿Sirve para encontrar errores?
No. Depurar es un trabajo distinto, y esta skill sirve para mejorar de forma medida.
Detalles
Descripción original del 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.
Popularidad
- Estrellas en GitHub
- 26 mil
- Posición en el ranking
- #10034
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
ce-babysit-pr
26 milAyuda a tu agente a llevar una pull request de GitHub hacia la fusión: comentarios de revisión, comprobaciones fallidas y ramas desactualizadas.
ce-bakeoff
26 milAyuda a tu agente a construir varias soluciones que compitan entre sí para un problema, compararlas y combinar las partes más sólidas en un enfoque recomendado.
ce-brainstorm
26 milAyuda a tu agente a convertir una idea vaga en requisitos claros y bien dimensionados antes de empezar, mediante una breve conversación guiada.
ce-code-review
26 milAyuda a tu agente a revisar un cambio de código o una pull request por errores, regresiones, pruebas que faltan y estándares, con hallazgos claros.
Skills parecidas
diffs
394 milPermite que tu agente genere un diff real y compartible de los cambios, como enlace de visualización o archivo de imagen, en lugar de un resumen escrito a mano.
coding-agent
394 milAyuda a tu agente a pasar un trabajo de programación grande a Codex, Claude Code u OpenCode como trabajador en segundo plano, y después revisar su progreso.
gh-issues
394 milAyuda a tu agente a encontrar incidencias de GitHub, elegir cuáles trabajar y abrir pull requests con correcciones, incluido el seguimiento de los comentarios de revisión.