ce-debug
Ce qu’il fait
Cette compétence examine une fonctionnalité défaillante ou un bug pour trouver la cause réelle, appuyée par des preuves tirées du code. Elle s'adresse aux développeurs qui veulent qu'un bug soit diagnostiqué avec soin avant d'être corrigé.
Quand l’utiliser
- ✓Quand quelque chose casse et que la cause n'est pas évidente.
- ✓Quand un comportement est lent ou n'échoue que dans un réglage précis, comme la production.
- ✓Quand une tâche de pipeline ou une vérification de pull request continue d'échouer.
Lien du skill
https://github.com/EveryInc/compound-engineering-plugin/blob/main/skills/ce-debug/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
“Notre page de paiement échoue depuis le dernier déploiement. Pouvez-vous trouver la cause première et la corriger ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
La compétence reproduit le problème, teste une hypothèse à la fois et remonte la cause jusqu'à des lignes précises. Lorsque vous choisissez de corriger, elle écrit d'abord un test qui échoue, puis réalise la correction.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
Debug and Fix
Find the root cause of a failure, then — when the user chooses to — fix it with test-first discipline.
Done when: the causal chain from trigger to symptom is stated with no gaps and file:line evidence, and either a verified fix has been handed off (PR, commit, or the user's chosen stop) or a diagnosis-only summary has been delivered. Escalate rather than persist: 2-3 hypotheses exhausted without confirmation, or 3 failed fix attempts, means diagnose why instead of trying again — that is the smart escalation references/investigate.md describes. One hypothesis, one change at a time; changing several to see what helps is shotgun debugging.
<bug_description> is whatever this skill was invoked with — a failure description, a mode: token, or an issue reference (#123, org/repo#123, an issue URL) — from the user or from a calling skill (ce-babysit-pr / lfg in mode:pipeline pass the failing jobs and log tails; lfg's defect route passes mode:return-to-caller and the user's own reference). Blank if nothing was provided.
Mode
Default is interactive: investigate, run the Phase 2 fix-choice gate, then the Phase 4 handoff.
mode:pipeline (set by an orchestrator such as ce-babysit-pr or lfg): run fully non-interactively and never call the blocking-question tool. Strip the token from <bug_description>, then read references/pipeline-mode.md and follow it — it overrides every "ask the user" point with a conservative default, replaces the Phase 2 fix-gate with "fix convergent bugs, defer divergent ones", and replaces the Phase 4 handoff with a structured return whose status is exactly one of fixed-and-pushed | fixed-not-pushed | diagnosed-no-fix | flaky-infra | needs-human. The caller branches on those exact spellings, so never rename, abbreviate, or add to them.
mode:return-to-caller (set by lfg on its defect route): run non-interactively, but the caller owns everything after the fix. Strip the token, then read references/return-to-caller.md and follow it — it keeps Phases 0-3 and the convergent-or-defer fix boundary, applies the Phase 3 branch rule so the fix lands on a feature branch, commits the fix-owned files without pushing, skips the post-fix polish and review steps, and returns a structured result whose status is exactly one of fixed | diagnosed-no-fix | needs-human | blocked. The same spelling rule applies.
Blocking questions
Wherever this skill asks the user something, 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 silently skip the question, and never end a phase without a response.
Secrets in evidence
Debugging surfaces raw output constantly — command results, captured payloads, log excerpts — and the harness may render a command's output the moment it runs, so check secrets when you construct the command, not afterward. Keep credentials in env vars rather than on the command line; when a command's output may carry a secret (verbose HTTP traces, dumped headers, config or environment prints), capture it to a file and surface only sanitized excerpts, writing <REDACTED> in place of each secret. No secret (credential, token, auth header, connection string) appears in anything shown, written, or committed. If sanitizing removes what the diagnosis needs, say so and ask the user rather than un-redacting.
Artifact Root
Resolve <root> only when you first compose a <root>/ path — a run that composes none skips this entirely.
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 n
Questions fréquentes
Corrige-t-elle toujours le bug ?
Non. Vous pouvez choisir un simple résumé du diagnostic à la place d'une correction.
Que se passe-t-il si les premières suppositions sont fausses ?
La compétence s'arrête après quelques hypothèses infirmées et examine pourquoi elles ne tenaient pas.
Peut-elle fonctionner sans poser de questions ?
Oui. En mode pipeline, elle s'exécute sans surveillance et ne s'arrête pas pour vous interroger.
Détails
Description originale de l’auteur
Diagnosis loop for bugs and failing behavior. Use when asked to debug or fix failing or slow behavior.
Popularité
- Étoiles GitHub
- 26k
- Position au classement
- #10026
- 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.