com um clique
debugging
Use when investigating bugs - systematic root-cause analysis approach
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Use when investigating bugs - systematic root-cause analysis approach
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Use when creating, modifying, or reviewing a cliagents provider adapter for a CLI tool such as Codex, Claude Code, Gemini CLI, Qwen CLI, or OpenCode.
Use when operating as a supervised root that delegates work to child sessions through cliagents
Use when reducing prompt size for roots and child sessions without losing the information needed to execute well
Use when passing work between agents with context preservation
Use when exploring design options or solving open-ended problems
Use when reviewing code for quality, bugs, security, and maintainability
| name | debugging |
| description | Use when investigating bugs - systematic root-cause analysis approach |
| tags | ["debugging","troubleshooting","workflow"] |
A systematic approach to finding and fixing bugs efficiently.
Before fixing anything, ensure you can reliably reproduce the issue:
Key Question: Can you make the bug happen on demand?
Collect data about what's happening:
Key Question: What is the system actually doing vs what you expect?
Based on gathered information, form theories:
Key Question: What could explain all the observed symptoms?
Systematically validate or eliminate each theory:
Key Question: Does the evidence support or refute this hypothesis?
Once you've identified the root cause:
Key Question: Does this fix the root cause, not just a symptom?
Ensure the bug doesn't return:
| Category | Symptoms | Investigation |
|---|---|---|
| Off-by-one | Wrong counts, missing items | Check loop bounds, indices |
| Null/undefined | "Cannot read property" | Trace data flow to source |
| Race condition | Intermittent failures | Check async timing, locks |
| State mutation | Unexpected side effects | Find all state modifications |
| Type coercion | Surprising comparisons | Use strict equality, check types |