investigate
investigate
Catalogue généré le 2026-05-11
En une phrase
SystematicUne debuggingméthode withrigoureuse rootpour débugger en quatre phases : Claude refuse de réparer un bug sans avoir d'abord trouvé sa cause investigation.profonde.
Quand l'utiliser
UseQuandwhenunaskedtructo«"debugmarchaitthis",hier"fixetthisnebug",marche"whyplusis»thisetbroken",que"investigatetuthisneerror",comprendsorpas"rootpourquoi
Comment l'invoquer
- Slash command :
/investigate(siàexposétaper danstonClaudeCLI)Code) - Phrases déclencheurs (texte) :
voir"debuglathis"description/complète"fixci-dessousthis bug" / "why is this broken" / "investigate this error" / "root cause analysis" - Auto-invocation : ✅
ProactivelyOuiinvoke—thisClaude invoque ce skill(doautomatiquementNOTquanddebugtudirectly)signaleswhenunetheerreur,user reports errors, 500 errors,une stacktraces,trace,unexpectedunbehavior,comportement"itbizarre,wasouworkingunyesterday", or is troubleshooting why something stopped working. (gstack)dysfonctionnement.
Description complètedétaillée
Systematic/investigate debuggingapplique withune rootrègle stricte appelée « Iron Law » : pas de correctif sans cause investigation.profonde Fouridentifiée. phases:C'est investigate,la analyze,différence hypothesize,entre implement.éteindre Ironla Law:flamme noet fixestrouver withoutla rootfuite cause.de Usegaz. whenClaude askedsuit toquatre "debugphases this": enquête (lire les symptômes, les logs, les changements récents), "fixanalyse this(matcher bug"avec des patterns connus comme race condition, cache obsolète, null propagé), "whyhypothèse is(vérifier thisl'idée broken"avant d'écrire du code), "investigateimplémentation this(le error",correctif orminimal "root+ causeun analysis"test de régression).
Le skill (doverrouille NOTaussi debugautomatiquement directly)le whenpérimètre thede usermodification reportsau errors,dossier 500concerné errors,par stackle traces,bug, unexpectedpour behavior,t'éviter "itde waschanger workingdu yesterday",code ornon islié. troubleshootingIl whyvérifie somethingles stopped working.enseignements (gstack)« learnings ») accumulés par Claude sur tes projets précédents — si tu as déjà rencontré un bug similaire, il s'en sert.
Pour
Règle allerdes trois échecs : si trois hypothèses successives sont fausses, Claude s'arrête et te demande s'il faut continuer, escalader, ou ajouter du logging et observer. À la fin tu obtiens un rapport structuré (symptôme, cause, correctif, preuve que ça marche, test de non-régression). C'est plus loinlent
Preambleque (run« first)
répare-moi Plança Modevite Safe» Operations
mais Inça planévite mode,les allowedbugs becausequi they inform the plan: $B, $D, codex exec/codex review, writes to ~/.gstack/, writes to the plan file, and open for generated artifacts.
Skill Invocation During Plan Mode
If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. Treat the skill file as executable instructions, not reference. Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — mcp__*__AskUserQuestion or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, the skill is BLOCKED — stop and report BLOCKED — AskUserQuestion unavailable per the AskUserQuestion Format rule. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.
(extrait — voir le SKILL.md complet pour la suite)reviennent.
Source
- Plugin :
gstack - Nom interne :
investigate - Fichier :
/home/thymon/.claude/skills/gstack/investigate/SKILL.md