Aller au contenu
Skillpedia
Programmation générale8.5k · #12433

diagnostic-reasoning

Ce qu’il fait

Ce skill est une méthode pas à pas pour comprendre un bug signalé avant que quiconque tente de le corriger. Il s'adresse aux personnes qui veulent des corrections fiables plutôt que des suppositions.

Quand l’utiliser

  • ✓Quand quelqu'un signale un bug et que personne ne peut dire exactement ce qui le déclenche.
  • ✓Lorsqu'un rapport de diagnostic suggère une cause que vous voulez vérifier avant d'agir.
  • ✓Quand un bug n'apparaît que par moments et que vous voulez comprendre pourquoi.

Lien du skill

https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/diagnostic-reasoning/SKILL.md

Copiez-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

Utilise ce skill pour m’aider : https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/diagnostic-reasoning/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Des utilisateurs disent que la page de paiement plante parfois. Aide-moi à trouver ce qui le déclenche vraiment avant de modifier quoi que ce soit.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent commence par reproduire le problème comme le ferait un vrai utilisateur. Il distingue ensuite trois choses : ce qui déclenche le problème, ce qui le masque ou le révèle, et ce que l'utilisateur voit réellement.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

diagnostic-reasoning

Use this procedure before scoping a reported bug and before acting on a diagnostic report. This skill is the single owner of Firstmate's bug-diagnosis reasoning procedure. Firstmate applies it when briefing delegated investigation and evaluating the resulting evidence, without taking over project-specific investigation itself.

Establish the observed behavior

Start from the end user's experience rather than an internal error string or an implementation hypothesis. Require an end-to-end reproduction aligned with the real user path whenever it is feasible and safe. If a faithful reproduction is not feasible, record the exact limitation and use the closest representative path without presenting it as equivalent evidence. Capture the expected behavior, observed behavior, setup, inputs, and repeatability before assigning a cause.

Separate these three facts explicitly:

  • The initiating trigger is the event, input, or transition that starts the faulty behavior.
  • The masking condition is the independent state, environment, timing, cache, configuration, or path difference that hides or exposes the fault.
  • The visible symptom is what the end user or operator can actually observe.

Do not collapse those facts into one label. A masking condition may explain why a fault appears only sometimes without being the initiating cause, and the visible symptom may be several layers downstream from both.

Test the causal explanation

Inspect the failing path and a proven path where the intended behavior is known to work. Compare their inputs, state transitions, dependencies, timing, and control flow to find the earliest meaningful divergence. Inspect relevant history, including blame, commits, migrations, and prior implementations, when it can explain why the paths diverged or which invariant was intended. Do not treat the most recent nearby change as causal without evidence.

Identify the smallest counterfactual that should change the outcome if the leading explanation is true. Change one condition at a time where practical, and record whether the symptom appears, disappears, or remains unchanged. Seek disconfirming evidence deliberately: name what observation would falsify the leading explanation, run that check when feasible, and retain contradictory results instead of explaining them away. Compare the final explanation against the proven path and show why the proposed causal boundary accounts for both the failure and the success.

Scope and act on the result

A diagnosis brief should ask for the reproduction, trigger/mask/symptom separation, divergent and proven path comparison, relevant history, smallest counterfactual, and disconfirming evidence in the report. A diagnostic report should distinguish observed facts from hypotheses and state any unresolved uncertainty that could change the recommended scope. Before acting on the report, verify that its claimed cause explains the end-user reproduction and the proven path without relying on an untested masking condition. If a load-bearing element is missing, route a focused follow-up investigation instead of treating confidence or implementation detail as proof. A diagnosis or implementation-ready recommendation is evidence, not authorization to change code. Implementation still requires the captain's request or another existing lifecycle authority, and the reproduction should become the regression test when a fix is authorized.

Questions fréquentes

Pourquoi ne pas corriger d'abord le premier message d'erreur ?

Un message d'erreur n'est pas forcément la vraie cause, le skill part donc de ce que vit l'utilisateur.

Et si je ne parviens pas à reproduire le bug ?

L'agent note la limite et utilise le test sûr le plus proche, sans prétendre qu'il équivaut au cas réel.

Fonctionne-t-il pour tous les types de bugs ?

C'est une méthode générale, utilisable pour de nombreux types de problèmes signalés.

Détails

Description originale de l’auteur

Load before scoping a reported bug and before acting on a diagnostic report.

repo: kunchenguid/firstmate

Popularité

Étoiles GitHub
8.5k
Position au classement
#12433
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires