Pular para o conteúdo
Skillpedia
Código em geral8,5 mil · #12433

diagnostic-reasoning

O que ela faz

Esta skill é um método passo a passo para entender um bug relatado antes que alguém tente corrigi-lo. Ela serve para quem quer correções de bugs confiáveis, e não palpites.

Quando usar

  • ✓Quando alguém relata um bug e ninguém consegue dizer exatamente o que o dispara.
  • ✓Quando um relatório de diagnóstico sugere uma causa que você quer checar antes de agir.
  • ✓Quando um bug aparece só às vezes e você quer entender o porquê.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/diagnostic-reasoning/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Os usuários dizem que a página de checkout às vezes quebra. Me ajude a descobrir o que realmente dispara isso antes de mudarmos qualquer coisa.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente primeiro reproduz o problema do jeito que um usuário real o faria. Depois separa três coisas: o que inicia o problema, o que o esconde ou o expõe, e o que o usuário realmente vê.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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.

Perguntas frequentes

Por que não corrigir a primeira mensagem de erro?

Uma mensagem de erro pode não ser a causa real, então a skill começa pelo que o usuário experimenta.

E se eu não conseguir reproduzir o bug?

O agente registra o limite e usa o teste seguro mais próximo, sem afirmar que ele é igual ao caso real.

Funciona para qualquer tipo de bug?

Ela foi escrita como um método geral, então pode ser usada para muitos tipos de problemas relatados.

Detalhes

Descrição original do autor

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

repo: kunchenguid/firstmate

Popularidade

Estrelas no GitHub
8,5 mil
Posição no ranking
#12433
Licença
MIT
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas