Logo de Diagnosing Bugs

Diagnosing Bugs

Comunidade
Dark-Alex-17
diagnosing-bugs

Disciplina de depuração que prioriza o ciclo de feedback para bugs difíceis no código e regressões de desempenho. Crie um ciclo de reprodução curto que possa falhar ANTES de formular qualquer hipótese e reduza-o ao mínimo; depois, teste de 3 a 5 hipóteses refutáveis com instrumentação identificada e consolide a correção com um teste de regressão no ponto de extensão adequado. Carregue esta habilidade quando a causa de uma falha não estiver clara, um bug persistir após a primeira tentativa de correção, o comportamento for intermitente ou o usuário relatar algo quebrado, com falha ou lento. Complementa diagnostics, responsável pela resolução de problemas operacionais e de sistemas — serviços, redes e contêineres; esta habilidade cuida de bugs no código. Concede acesso ao shell para executar ciclos de reprodução.

Visão geral

Publicado porDark-Alex-17
Repositóriocoyote
Nome da habilidadediagnosing-bugs
Estrelas
56
Forks
2
Arquivos incluídos
Somente instruções
LicençaAGPL-3.0
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por Dark-Alex-17 no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Diagnosing Bugs no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/Dark-Alex-17/coyote/tree/main/assets/skills/diagnosing-bugs
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Dark-Alex-17/coyote.git /tmp/coyote
mkdir -p .claude/skills
cp -r /tmp/coyote/assets/skills/diagnosing-bugs .claude/skills/diagnosing-bugs
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Diagnosing Bugs em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Diagnosing Bugs automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Diagnosing Bugs não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

You are hunting a bug in code. The failure mode this skill prevents is the one every debugger falls into: reading code, forming a theory, and "fixing" the theory instead of the bug. The discipline: no hypothesis until a feedback loop exists. Skip phases only when you can say why.

Redact every secret in commands, outputs, and captured artifacts you show — write <REDACTED>; keep credentials in env vars, not in what you print. Quote only the lines of captured artifacts that carry signal.

Phase 1: Build the feedback loop (this IS the skill)

Everything else is mechanical. A tight pass/fail signal — one that goes red on this bug — makes bisection, hypothesis-testing, and instrumentation trivial. Without one, no amount of code-reading will save you. Spend disproportionate effort here.

Ways to construct one, in rough order of preference:

  1. Failing test at whatever seam reaches the bug: unit, integration, e2e.
  2. curl / HTTP script against a running dev server.
  3. CLI invocation with a fixture input, diffing output against a known-good snapshot.
  4. Headless browser script driving the UI and asserting on DOM/console/network.
  5. Replay a captured trace — save a real request/payload/event log, replay it through the code path in isolation.
  6. Throwaway harness — a minimal subset of the system (one service, mocked deps) exercising the bug path with a single call.
  7. Property/fuzz loop — for "sometimes wrong output", run 1000 random inputs and hunt the failure mode.
  8. Bisection harness — bug appeared between two known states? Automate "boot at X, check" so git bisect run can consume it.
  9. Differential loop — same input through old vs new version (or two configs), diff the outputs.

Once you have a loop, tighten it: faster (cache setup, narrow scope), sharper (assert the specific symptom, not "didn't crash"), more deterministic (pin time, seed RNG, isolate filesystem, freeze network). A 2-second deterministic loop is a debugging superpower; a 30-second flaky one is barely better than nothing.

Non-deterministic bugs: the goal is a higher reproduction rate, not a clean repro. Loop the trigger 100×, parallelise, add stress, inject sleeps to widen timing windows. A 50% flake is debuggable; 1% is not.

Phase 1 is complete when you can name ONE command you have already run at least once (show the invocation and output, redacted) that is:

  • Red-capable — drives the actual bug path and asserts the user's exact symptom; it can go red on this bug and green once fixed.
  • Deterministic — same verdict every run (or a pinned, high reproduction rate).
  • Fast — seconds, not minutes.
  • Agent-runnable — you can run it unattended.

If you catch yourself reading code to build a theory before this command exists — STOP. That is the exact failure this skill exists to prevent. If you genuinely cannot build a loop: say so explicitly, list what you tried, and ask the user for environment access, a redacted captured artifact (HAR, log dump, recording), or permission to add temporary instrumentation. Do NOT proceed to hypothesise without a loop.

Phase 2: Reproduce + minimise

Run the loop; watch it go red. Confirm it produces the failure the USER described — not a nearby different failure (wrong bug = wrong fix) — and capture the exact symptom for later verification.

Then minimise: shrink to the smallest scenario that still goes red. Cut inputs, callers, config, and steps one at a time, re-running after each cut. Done when every remaining element is load-bearing (removing any one goes green). A minimal repro shrinks the Phase 3 hypothesis space and becomes the Phase 5 regression test.

Phase 3: Hypothesise

Generate 3-5 ranked hypotheses before testing ANY of them — single-hypothesis generation anchors on the first plausible idea. Each must be falsifiable: "if X is the cause, then changing Y makes the bug disappear / changing Z makes it worse." Can't state the prediction? It's a vibe — discard or sharpen.

Show the ranked list to the user before testing — they often re-rank instantly ("we just deployed a change to #3") — but don't block on them; proceed with your ranking if they're away.

Phase 4: Instrument

Every probe maps to a specific Phase 3 prediction. One variable at a time.

  1. Prefer a debugger/REPL if the environment supports it — one breakpoint beats ten logs.
  2. Otherwise targeted logs at the boundaries that DISTINGUISH hypotheses. Never "log everything and grep".
  3. Tag every debug log with a unique prefix (e.g. [DEBUG-a4f2]) so cleanup is a single grep. Untagged logs survive into production; tagged logs die.

Performance regressions: logs are usually the wrong tool. Establish a baseline measurement first (timing harness, profiler, query plan), then bisect. Measure first, fix second.

Phase 5: Fix + regression test

Write the regression test BEFORE the fix — but only at a correct seam: one where the test exercises the real bug pattern as it occurs at the call site. A test at a too-shallow seam (unit test that can't replicate the triggering chain) gives false confidence.

If no correct seam exists, that itself is a finding — the architecture is preventing the bug from being locked down. Document it; don't fake the test.

With a correct seam: turn the minimised repro into a failing test → watch it fail → apply the fix → watch it pass → re-run the Phase 1 loop against the ORIGINAL un-minimised scenario.

Phase 6: Cleanup (required before declaring done)

  • Original repro no longer reproduces (re-run the Phase 1 loop, show the output)
  • Regression test passes — or the absence of a correct seam is documented
  • All [DEBUG-...] instrumentation removed (grep the prefix to prove it)
  • Throwaway harnesses/prototypes deleted
  • The winning hypothesis stated in the commit/report, so the next debugger learns

Anti-patterns

  • Hypothesising from code-reading before a red-capable loop exists.
  • "Fixing" until the loop goes green without ever confirming the loop reproduced the USER's symptom.
  • Shotgun instrumentation — untargeted logs that distinguish nothing.
  • Declaring victory on the minimised repro without re-running the original scenario.
  • Deleting or weakening the failing test to get green.

Perguntas frequentes

O que a habilidade de IA Diagnosing Bugs faz?

Disciplina de depuração que prioriza o ciclo de feedback para bugs difíceis no código e regressões de desempenho. Crie um ciclo de reprodução curto que possa falhar ANTES de formular qualquer hipótese e reduza-o ao mínimo; depois, teste de 3 a 5 hipóteses refutáveis com instrumentação identificada e consolide a correção com um teste de regressão no ponto de extensão adequado. Carregue esta habilidade quando a causa de uma falha não estiver clara, um bug persistir após a primeira tentativa de correção, o comportamento for intermitente ou o usuário relatar algo quebrado, com falha ou lento. C...

Por que usar Diagnosing Bugs no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Diagnosing Bugs é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Diagnosing Bugs no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/Dark-Alex-17/coyote/tree/main/assets/skills/diagnosing-bugs. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Diagnosing Bugs?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Diagnosing Bugs?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Diagnosing Bugs com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Diagnosing Bugs é gratuita?

Sim. A habilidade é publicada no GitHub por Dark-Alex-17 sob a licença AGPL-3.0. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇