ce-optimize
Ce qu’il fait
Cette compétence lance une boucle d'optimisation mesurée sur une partie précise d'un système. Elle s'adresse aux développeurs qui veulent améliorer une métrique et ont besoin de preuves que chaque changement aide.
Quand l’utiliser
- ✓Quand la vitesse ou le coût d'un système en fonctionnement doit s'améliorer et que la meilleure modification n'est pas encore connue.
- ✓Quand vous voulez trouver d'où provient la majeure partie du coût d'une charge de travail.
- ✓Quand vous voulez évaluer plusieurs variantes et ne conserver que les gagnantes.
Lien du skill
https://github.com/EveryInc/compound-engineering-plugin/blob/main/skills/ce-optimize/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Pouvez-vous trouver ce qui ralentit notre export de rapports et tester des changements qui l'accélèrent réellement ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
La compétence attribue d'abord le coût de la charge de travail, puis teste des variantes dans des expériences isolées. Elle conserve les changements qui se mesurent mieux, annule les autres et consigne les résultats sur une branche distincte.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes
Modifie-t-elle ma branche principale ?
Non. Les expériences et les changements conservés vont sur une branche d'optimisation distincte.
Demande-t-elle l'autorisation avant de dépenser ?
Oui. Elle demande lorsque la dépense n'est pas plafonnée ou lorsqu'une nouvelle dépendance apparaît.
Sert-elle à trouver des bugs ?
Non. Le débogage est une autre tâche ; cette compétence vise l'amélioration mesurée.
Détails
Description originale de l’auteur
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.
Popularité
- Étoiles GitHub
- 26k
- Position au classement
- #10034
- Licence
- MIT
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
ce-babysit-pr
26kAide votre agent à faire avancer une pull request GitHub ouverte vers la fusion, en traitant dans le temps les commentaires de revue, les vérifications en échec et les branches obsolètes.
ce-bakeoff
26kAide votre agent à élaborer plusieurs solutions concurrentes à un problème, à les comparer et à combiner les meilleures parties en une seule approche recommandée.
ce-brainstorm
26kAide votre agent à transformer une idée vague en un ensemble d'exigences clair et bien dimensionné avant tout travail, grâce à un bref échange guidé.
ce-code-review
26kAide votre agent à relire une modification de code ou une pull request donnée pour détecter les bugs, les régressions, les tests manquants et les problèmes de normes, puis à présenter des constats clairs.
Skills similaires
diffs
394kPermet à votre agent de produire un diff réel et partageable de vos modifications, sous forme de lien ou d'image, plutôt qu'un résumé écrit à la main.
coding-agent
394kAide votre agent à confier une tâche de programmation plus importante à Codex, Claude Code ou OpenCode comme travailleur en arrière-plan, puis à suivre sa progression.
gh-issues
394kAide votre agent à trouver des tickets GitHub, choisir ceux à traiter et ouvrir des pull requests avec des correctifs, y compris le suivi des commentaires de relecture.