بنقرة واحدة
debugging
Use when investigating bugs - systematic root-cause analysis approach
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use when investigating bugs - systematic root-cause analysis approach
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| 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 |
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