ce-simplify-code
Ce qu’il fait
Cette skill rend le code existant plus facile à lire et à maintenir sans changer ce qu'il fait. Elle s'adresse aux développeurs qui veulent un nettoyage après avoir écrit du code et avant une relecture.
Quand l’utiliser
- ✓Quand vous avez terminé une fonctionnalité et voulez que le code soit rangé avant la relecture.
- ✓Quand vous voulez vérifier une partie du projet pour y trouver du code, des tests ou des commentaires superflus.
- ✓Lorsque vous avez un bogue à corriger, cette skill ne convient pas, car elle ne fait que nettoyer le code.
Lien du skill
https://github.com/EveryInc/compound-engineering-plugin/blob/main/skills/ce-simplify-code/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
“Peux-tu simplifier le code que j'ai modifié aujourd'hui et t'assurer que rien ne casse ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
Elle lit le code concerné, repère les parties qui peuvent être plus claires ou plus courtes, et applique ces changements en gardant le même comportement.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
Simplify code for clarity, reuse, quality, and efficiency, and prune tests and comments that carry no value, while preserving exact behavior. Prioritize readable, explicit code over compact code — fewer lines is not the goal.
Mode
Strip a mode:pipeline token and every proof-test:<path> token from the input before reading the rest as the scope. The proof-test path is context for Step 3, never scope; a caller may pass several.
- Pipeline when
mode:pipelineis present, or when no one asked for this run in their own current message: a step of another skill, or a run the agent starts itself, such as at a completion boundary. Work only on the current work, apply fixes without asking or waiting, and return the Step 5 summary to the caller. That summary is for the caller's record; never paste it into a commit, PR body, or other artifact. - Standalone when the user's own current message asked for this run. Their request sets the scope and focus. Report findings before editing anything, unless the request says to just fix them. Read
references/standalone-report.mdnow, and again before applying any reported finding.
Step 1: Identify scope
Resolve the scope in this order:
- User-named scope is authoritative; do not widen it. In standalone mode it may be the whole repo, an area, or a path.
- Otherwise, in git, use the current branch versus its base. Without a usable base, use staged and unstaged changes (
git diff HEAD). - Outside git or without a diff, use files the user named or that were edited earlier in the conversation.
In pipeline mode the scope is what the caller passed, else the branch diff. Within it, prune only tests and comments the current work added or changed.
If none of the above produces a non-empty scope, pipeline mode reports "nothing to simplify" and returns. Standalone mode asks the user what to simplify, as references/standalone-report.md describes.
Preflight. If the scope has no substantive human-authored code — only documentation, generated or vendored files, dependencies or lockfiles, or mechanical churn — report that there is nothing to simplify and stop without reviewers. For mixed scopes, retain only the code and its tests. This check is about the kind of change, never its size: explicit small scopes still run, and any size or cost threshold is the caller's to set.
When the platform's task-tracking capability is available, show the review, apply, and verification outcomes without creating one task per reviewer. Otherwise continue without simulating a task list in chat.
Step 2: Launch review agents in parallel
Dispatch generic subagents via the platform's subagent primitive (Agent/Task in Claude Code, spawn_agent in Codex) where available; otherwise run the reviews inline or serially. For each reviewer, read its prompt asset from this skill's directory and pass the full file content as the subagent's prompt, together with the resolved scope (the full diff or file set), the mode, any proof test, the user's constraints, and the project standards governing the scope (or their file paths):
references/personas/code-reuse-reviewer.mdreferences/personas/code-quality-reviewer.mdreferences/personas/efficiency-reviewer.mdreferences/personas/test-value-reviewer.md, when the scope holds testsreferences/personas/comment-reviewer.md, when the scope holds comments
A standalone request about only tests or only comments runs only that reviewer.
Do not paraphrase these rubrics from memory. Read each file and pass it verbatim, or the reviewer loses the rules that keep the pass behavior-preserving.
Read references/reviewer-dispatch.md before dispatching; it covers a full harness, releasing review agents, and the permission mode.
Model selection. Use the platform's balanced mid-tier model for these reviewers when the current harness exposes a known override. In Claude Code this is the Sonnet class. In Codex, apply this tier only when the active dispatch primitive exposes an explicit model or custom-agent selector; task wording alone does not select a different model. Otherwise omit the override and inherit the parent model -- a working pass on the parent model beats a broken dispatch.
If the user's or project's active instructions or the live prompt name a model for this subagent, use that model instead of the default tier above. They can name it by the subagent's tier, by its prompt-asset name, or for the subagents bei
Questions fréquentes
Cela modifiera-t-il le comportement de mon code ?
Il est conçu pour garder exactement le même comportement et seulement rendre le code plus clair ou plus efficace.
Corrige-t-elle les bogues ?
Non. La skill se concentre sur le nettoyage, et la correction de bogues relève d'une skill de débogage distincte.
Peut-elle n'examiner qu'une partie de mon projet ?
Oui. Vous pouvez indiquer un dossier ou un chemin, et le travail reste dans ce périmètre.
Détails
Description originale de l’auteur
Simplify code for clarity, reuse, quality, and efficiency while preserving behavior, and prune tests and comments that carry no value. Use after implementation and before review, or to audit tests or comments in any part of a repo; use ce-debug for bugs.
Popularité
- Étoiles GitHub
- 26k
- Position au classement
- #10046
- 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.