systematic-debugging
O que ela faz
Esta skill faz sua IA investigar um bug de forma planejada, em vez de chutar correções rápidas. Ela é para desenvolvedores que enfrentam falhas em testes, bugs em produção ou comportamentos inesperados.
Quando usar
- ✓Quando um teste falha ou o programa se comporta de forma inesperada e a causa não está clara.
- ✓Quando uma correção rápida já falhou e você precisa entender o problema real.
- ✓Quando um build falha ou uma integração quebra e você quer encontrar a causa raiz primeiro.
Link da skill
https://github.com/NousResearch/hermes-agent/blob/main/skills/software-development/systematic-debugging/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
“A página de login só falha em produção, e minhas correções rápidas não funcionaram. Me ajude a encontrar a causa raiz antes de mudarmos qualquer coisa.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill faz sua IA primeiro criar um teste rápido que mostre o problema, depois reunir evidências e formular uma hipótese. Só depois que a causa raiz é confirmada ela propõe e testa uma correção.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Systematic Debugging
Overview
Random fixes waste time and create new bugs. Quick patches mask underlying issues.
Core principle: ALWAYS find root cause before attempting fixes. Symptom fixes are failure.
Violating the letter of this process is violating the spirit of debugging.
The Iron Law
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
If you haven't completed Phase 1, you cannot propose fixes.
The Feedback Loop Rule
The feedback loop is the debugging work. Before reading code to build a theory, create or identify a tight command that can go red on the user's exact symptom and green when the bug is fixed. A tight loop is fast, deterministic, agent-runnable, and specific enough to catch this bug — not merely "doesn't crash".
When a clean repro is hard, spend disproportionate effort building the loop. Guessing without a red-capable loop is the failure mode this skill exists to prevent.
When to Use
Use for ANY technical issue:
- Test failures
- Bugs in production
- Unexpected behavior
- Performance problems
- Build failures
- Integration issues
Use this ESPECIALLY when:
- Under time pressure (emergencies make guessing tempting)
- "Just one quick fix" seems obvious
- You've already tried multiple fixes
- Previous fix didn't work
- You don't fully understand the issue
Don't skip when:
- Issue seems simple (simple bugs have root causes too)
- You're in a hurry (rushing guarantees rework)
- Someone wants it fixed NOW (systematic is faster than thrashing)
The Four Phases
You MUST complete each phase before proceeding to the next.
Phase 1: Root Cause Investigation
BEFORE attempting ANY fix:
1. Read Error Messages Carefully
- Don't skip past errors or warnings
- They often contain the exact solution
- Read stack traces completely
- Note line numbers, file paths, error codes
Action: Use read_file on the relevant source files. Use search_files to find the error string in the codebase.
2. Build a Tight Feedback Loop
- Can you trigger the user's exact symptom with one command?
- Does the command fail for this bug and only pass once the bug is fixed?
- Is it fast enough to run repeatedly?
- Is it deterministic? For flaky bugs, can you raise the reproduction rate high enough to debug?
- If not reproducible → gather more data, don't guess.
Ways to construct a loop — try in roughly this order:
- Failing test at the seam that reaches the bug: unit, integration, or end-to-end.
- HTTP script / curl against a running dev server.
- CLI invocation with fixture input, diffing stdout/stderr against expected output.
- Headless browser script (Playwright/Puppeteer) asserting on DOM, console, or network.
- Replay a captured trace: HAR, request payload, event log, queue message, or webhook body.
- Throwaway harness that boots the smallest useful slice of the system and calls the failing path.
- Property / fuzz loop when the bug is intermittent wrong output over a broad input space.
- Bisection harness suitable for
git bisect runwhen the bug appeared between two known states. - Differential loop comparing old vs new version, two configs, two providers, or two datasets.
- Human-in-the-loop script only as a last resort: script the human steps and capture their result so the loop stays structured.
Tighten the loop once it exists:
- Make it faster: cache setup, narrow scope, skip unrelated initialization.
- Make the signal sharper: assert the exact symptom, not generic success.
- Make it more deterministic: pin time, seed randomness, isolate filesystem, freeze network.
For non-deterministic bugs, the immediate goal is a higher reproduction rate, not perfection. Run the trigger 100x, parallelize, add stress, narrow timing windows, or inject sleeps. A 50% flake is debuggable; a 1% flake usually is not.
Action: Use the terminal tool to run the tight loop:
# Run a specific failing test
pytest tests/test_module.py::test_name -v
# Or run a scripted repro
python scripts/repro_bug.py
# Or run a high-repetition flaky repro
for i in {1..100}; do pytest tests/test_flake.py::test_name -q || break; done
3. Check Recent Changes
- What changed that could cause this?
- Git diff, recent commits
- New dependencies, config changes
Action:
# Recent commits
git log --oneline -10
# Uncommitted changes
git diff
# Changes in specific file
git log -p --follow src/problem
Perguntas frequentes
Por que não tentar logo uma correção rápida?
A skill diz que correções aleatórias desperdiçam tempo e podem criar novos bugs, então a causa raiz vem primeiro.
O que é um ciclo de feedback?
A skill descreve como um comando rápido que falha quando o bug está presente e passa quando ele é corrigido.
Ela se aplica a bugs simples?
A skill diz que até bugs simples devem seguir o processo, já que podem esconder causas reais.
Detalhes
Descrição original do autor
4-phase root cause debugging: understand bugs before fixing.
Popularidade
- Estrelas no GitHub
- 260 mil
- Posição no ranking
- #625
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
agent-merge-conflict-arbiter
260 milResolve um conflito de merge no git entre as branches de dois agentes como terceiro neutro, produzindo um único resultado unificado para o repositório.
antigravity-cli
260 milOrienta você na instalação, atualização e solução de problemas da ferramenta de linha de comando Antigravity, incluindo plugins, login e sandbox.
blackbox
260 milPermite que seu agente entregue uma tarefa de programação para a ferramenta de linha de comando Blackbox AI, que roda vários modelos de IA e escolhe o melhor resultado.
dynamic-workflow
260 milEnsina seu agente a rodar grandes lotes de trabalhos semelhantes como um script salvo, de modo que só resultados verificados voltem para a conversa principal.
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.