Habilidades flow-debugging
🔍

flow-debugging

Seguro

Debug Code with Systematic Methodology

Developers often guess at bug fixes, leading to regressions and wasted time. This skill enforces a rigorous 4-phase debugging process that requires root cause investigation before any code changes.

Suporta: Claude Codex Code(CC)
📊 70 Adequado
1

Baixar o ZIP da skill

2

Upload no Claude

Vá em Configurações → Capacidades → Skills → Upload skill

3

Ative e comece a usar

Testar

A utilizar "flow-debugging". Help me debug: My API returns 500 errors intermittently for user login requests.

Resultado esperado:

Let's start Phase 1: Root Cause Investigation.

## Step 1: Record Error Details
- Error type: HTTP 500 Internal Server Error
- Frequency: Intermittent (not every request)
- Impact: Users cannot log in during failures

## Step 2: Stable Reproduction
What conditions precede this error?
- Time of day? Load level? Specific user types?

## Step 3: Check Recent Changes
Run: git log --oneline -20
Run: git diff HEAD~5

What changed around when this started?

## Step 4: Trace Data Flow
Where does the login request flow break?
- Check logs for stack traces
- Identify the exact line throwing 500

STOP. Do NOT implement fixes yet. First, confirm root cause.

A utilizar "flow-debugging". I'm stuck. I've tried 3 fixes but the bug keeps coming back.

Resultado esperado:

Three failed fix attempts detected. This is a red flag. STOP and apply the methodology.

## Go Back to Phase 1
You likely fixed symptoms, not root cause.

## Questions to Answer
1. Did you reproduce before each fix?
2. Did you write failing tests first?
3. Did you verify root cause with evidence?

## Recommendation
- Roll back all recent changes
- Re-run Phase 1 systematically
- Only then proceed to Phase 2-4

The Iron Law applies: NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.

Auditoria de Segurança

Seguro
v6 • 1/21/2026

Documentation-only skill describing a 4-phase debugging methodology. All static findings are false positives: markdown code blocks flagged as shell execution, SHA256 hash strings flagged as crypto vulnerabilities, and relative documentation paths flagged as path traversal. No executable code exists.

2
Arquivos analisados
632
Linhas analisadas
0
achados
6
Total de auditorias
Nenhum problema de segurança encontrado
Auditado por: claude Ver Histórico de Auditoria →

Pontuação de qualidade

38
Arquitetura
100
Manutenibilidade
87
Conteúdo
22
Comunidade
100
Segurança
91
Conformidade com especificações

O Que Você Pode Construir

Fix Complex Bugs Systematically

When encountering difficult bugs that have resisted multiple fix attempts, use this skill to step back and apply rigorous root cause analysis before making more changes.

Learn Systematic Debugging

Junior developers can use this skill to learn professional debugging techniques that emphasize evidence-based investigation over guesswork.

Prevent Debugging Anti-Patterns

When you catch yourself saying 'let me try this', use this skill to reset and apply structured debugging methodology instead of random attempts.

Tente Estes Prompts

Start Debug Session
I'm encountering a bug: [describe the error]. Help me debug this systematically using the 4-phase process. Start with Phase 1: Root Cause Investigation. What should I look for and record?
Reproduce Before Fixing
I think I understand the bug. Before I implement a fix, guide me through creating a stable reproduction case and checking recent changes with git commands.
Analyze Patterns
I've reproduced the bug. Now help me with Phase 2: Pattern Analysis. How do I find similar working examples and compare them with the broken code?
Test Hypothesis with TDD
My hypothesis is: [state hypothesis]. Guide me through Phase 3: Hypothesis Testing and Phase 4: TDD Implementation. Help me write a failing test first.

Melhores Práticas

  • Always complete Phase 1 (Root Cause Investigation) before writing any fix code. Resistance to this is a red flag.
  • Write a failing test that reproduces the bug before implementing any fix. This is your 'red light' in Phase 4.
  • When 3+ fix attempts fail, stop immediately and restart from Phase 1. The problem is deeper than you think.
  • Document your investigation using the structured template. Clear documentation prevents revisiting solved issues.

Evitar

  • Shotgun debugging: Trying random changes until something works. This is not debugging, it's guessing.
  • Fix-first methodology: Implementing fixes before understanding the root cause. This leads to regressions.
  • Skipping reproduction: Attempting fixes without first establishing reliable reproduction steps.
  • Documentation skipping: Saying 'I know what's wrong' without evidence-based investigation.

Perguntas Frequentes

What is the Iron Law in this skill?
The Iron Law is the core principle: NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST. Every bug fix must be preceded by systematic investigation to understand the root cause.
How long should Phase 1 take?
Phase 1 should take as long as needed to establish a clear root cause hypothesis with evidence. Resist the urge to skip this phase. A thorough investigation saves time overall by preventing wrong fix attempts.
What if I cannot reproduce the bug?
If you cannot reproduce the bug, do not attempt fixes. Instead, gather more information: check logs, monitor production, add instrumentation, and review recent deployments. Reproduction is a prerequisite for confident fixes.
How do I know when I'm done with Phase 3?
Phase 3 (Hypothesis Testing) is complete when you have a single, verifiable hypothesis that, when fixed, consistently resolves the issue. If tests pass and the hypothesis is confirmed, proceed to Phase 4.
Can I skip the testing steps?
No. Writing failing tests before fixes is mandatory in Phase 4. Tests provide confidence that your fix works and prevent regressions. Skipping tests means you don't know if the issue is truly resolved.
How does this skill integrate with flow-fix?
This skill is the core methodology for the /flow-fix command. The skill provides the detailed 4-phase process that flow-fix enforces. Use this skill for deep debugging guidance, or /flow-fix for a more automated bug-fixing workflow.

Detalhes do Desenvolvedor

Estrutura de arquivos

📄 SKILL.md