understand-issue
Ce qu’il fait
Cette skill guide une enquête rigoureuse sur une issue GitHub ou un rapport de bug. Elle s'adresse aux mainteneurs et développeurs qui doivent comprendre ce qui ne va pas avant de corriger.
Quand l’utiliser
- ✓Quand vous voulez décider si un bug signalé est réel et quelle en est la cause.
- ✓Quand un fil d'issue contient de nombreuses hypothèses et que vous voulez une réponse claire fondée sur le code.
- ✓Quand vous avez besoin d'un bref point qui indique quoi corriger et où, avant tout travail.
Lien du skill
https://github.com/mastra-ai/mastra/blob/main/.mastracode/skills/understand-issue/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
“Examine cette issue GitHub, dis-moi ce qui cause réellement le bug et propose-moi une façon de le corriger.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent se fait d'abord sa propre idée à partir du code, vérifie l'historique, lance un petit test si c'est utile, puis rend un bref verdict.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
Understand Issue
Investigate the issue as a maintainer deciding what is actually wrong and what should happen next. Help the human understand it without turning the investigation into a walkthrough. Run uninterrupted to a concise front page, then stay available inside the goal until the human says the investigation is finished.
The issue follows ARGUMENTS: at the end of the objective. If absent, infer it from the conversation or the checked-out branch name (fix/1234, issue-567, gh-890). If no issue can be resolved and no bug is described, ask once.
What matters
- Independent model before the thread's theories. Understand the symptom and form your own hypothesis from the code before reading commenters' diagnoses, workarounds, or linked fix attempts. The gap between your model and theirs exposes anchoring in both directions.
- Depth proportional to stakes. Data loss, security, silent misbehavior, wide blast radius, and uncertainty determine how hard to look—not a fixed checklist.
- Verify the diagnosis. Read code deeply and run the smallest useful probe. A diagnosis needs real evidence and pointers; a plausible story is not evidence.
- A verdict, not a survey. Say what the issue is and what causes it. Do not present a menu of candidates when the evidence supports one.
- Complete, not padded. Everything you established or still suspect is in the briefing; length follows from findings, never the other way around. Lead with what matters most and cut narration, not conclusions. Preserve supporting detail in one record file for follow-up questions.
Investigation record
Use one ignored file: .mastracode/scratch/issues/<owner>-<repo>-<n>.md. Never stage or commit it.
Start the record with a short Own model:
- the symptom as reported, in your words;
- how the relevant code currently works;
- your hypothesis for the cause;
- what evidence would confirm or kill it.
Append the investigation beneath it and leave it unchanged afterward. Capture decisive evidence as you work so it survives context compression—a ledger, not command transcripts. Use references/templates.md as an example, not a schema.
1. Build your own model
Resolve the issue with the minimal recipe in references/recipes.md. The metadata tells you whether the thread has anything to anchor you: comment count and cross-referenced PRs.
If the thread has comments or linked PRs, form your model before reading them. Use only the issue title, body, reproduction, error text, and the current code on the default branch; do not consult mastra_expert or another source that may already hold a diagnosis. Other people's theories are cheap to read later and expensive to un-read—a maintainer's "I think it's X" tends to become the investigation. Write the model, then open the thread.
If the thread is empty, there is nothing to seal. Investigate directly and write the model whenever you have one; it still records what you believed before verification.
Either way: start from the symptom, find the entry point, trace the mechanism to where the observed behavior is produced, and identify every area that could contribute—shared state, upstream data, configuration, callers, ordering. Stop when you can name a hypothesis and the evidence that would settle it.
If the report is too thin to trace (no symptom, no surface, no version), say so in the front page and draft the exact questions to ask—but still investigate whatever can be investigated.
2. Read the thread and prior art
Read every comment, linked PR, and related issue. Then:
- Treat proposed causes and workarounds as hypotheses to test, not conclusions to repeat. A maintainer's lead deserves tracing; it does not deserve deference.
- Note "me too" reports with different repros—they may reveal a broader mechanism or a different bug sharing a symptom.
- Search open and closed issues and PRs for the same symptom under other words. A closed fix for the same symptom means regression or incomplete fix; say which.
- Check whether an in-flight PR already addresses it.
Author context (first-time reporter vs. core contributor) informs where you look first, never whether you trust the report.
3. Diagnose like a maintainer
Use these questions where they apply. They shape judgment; they are not rows to fill.
- Is the issue what it claims to be? Genuine bug, working as designed, configuration or usage error, documentation gap, or XY problem (asking for X while
Questions fréquentes
Corrige-t-il le bug à ma place ?
Non. Il enquête et rend un verdict ainsi qu'une piste de correction. La modification est une étape distincte.
Lit-il les commentaires de l'issue ?
Oui, mais seulement après s'être fait sa propre opinion, afin de comparer son idée avec le fil.
Combien de temps dure une enquête ?
La skill adapte la profondeur au risque : un problème grave reçoit un examen plus approfondi qu'un petit.
Détails
Description originale de l’auteur
Investigate a GitHub issue or reported bug the way a seasoned maintainer would — form an independent model before reading the thread's theories, trace the mechanism and history, verify the diagnosis, and return a concise briefing with a verdict and fix direction. Use for triage, root-cause analysis, or re-investigation.
repo: mastra-ai/mastra
Popularité
- Étoiles GitHub
- 29k
- Position au classement
- #9370
- Licence
- —
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
debugging-difficult-bugs
29kAide votre agent à déboguer un bug difficile en journalisant ce que fait réellement le programme à l'exécution, plutôt que de deviner à partir des seuls tests.
mastra-frontend
29kAide votre agent à construire les écrans d'une application avec le système de design du playground Mastra, en combinant ses composants prêts à l'emploi.
pr-explainer
29kAide votre agent à transformer une pull request en page HTML claire et autonome, qui explique la modification aux relecteurs.
pr-splitter
29kAide votre agent à découper une grande pull request confuse en plusieurs pull requests plus petites et relisibles, tout en protégeant le travail d'origine.
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.