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.mdCopie 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
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
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
Comentários
- …
Mais skills deste repositório
afk
8,5 milPermite que seu agente continue trabalhando enquanto você está fora, guardando decisões para o seu retorno e enviando um resumo claro quando você voltar.
ahoy
8,5 milPermite que seu agente faça um resumo curto do que aconteceu na sessão e acompanhe com você as decisões que ainda estão esperando por você.
ask-user-authority
8,5 milAjuda seu agente a decidir sozinho perguntas de revisão quando elas se encaixam claramente no plano combinado, e a perguntar a você apenas quando a questão for incerta ou arriscada.
away-quiet-supervision
8,5 milDefine regras de segurança para supervisionar o trabalho em modo ausente ou silencioso, para que o agente mantenha as mensagens claras e guarde as decisões que dependem de você.
Skills parecidas
diffs
394 milPermite que seu agente gere um diff real e compartilhável das edições, como link de visualização ou arquivo de imagem, em vez de um resumo escrito à mão.
coding-agent
394 milAjuda seu agente a passar um trabalho grande de programação para o Codex, Claude Code ou OpenCode em segundo plano e acompanhar o andamento.
gh-issues
394 milAjuda seu agente a encontrar issues do GitHub, escolher quais resolver e abrir pull requests com correções, acompanhando os comentários de revisão.