Check patterns.md for known gotchas matching the error
Cross-reference with common patterns: null pointer, race condition, resource leak, config error
Rate root cause confidence (>=80% to proceed with fix)
Evidence Collection
Stack traces with full call chain
Error messages with context
Exit codes from reproduction attempts
Git blame/log for change correlation
Environment differences (if applicable)
When to Use
During DEBUG workflow investigation phase
When BUILD tests fail unexpectedly
When reviewing error handling gaps
Agents Used
bug-investigator (primary consumer)
silent-failure-hunter (pattern reference)
1---2name: debugging-patterns3description: Pattern-Based Diagnosis4---56## Pattern-Based Diagnosis78- Check patterns.md for known gotchas matching the error9- Cross-reference with common patterns: null pointer, race condition, resource leak, config error10- Rate root cause confidence (>=80% to proceed with fix)1112## Evidence Collection1314- Stack traces with full call chain15- Error messages with context16- Exit codes from reproduction attempts17- Git blame/log for change correlation18- Environment differences (if applicable)1920## When to Use2122- During DEBUG workflow investigation phase23- When BUILD tests fail unexpectedly24- When reviewing error handling gaps2526## Agents Used2728- `bug-investigator` (primary consumer)29- `silent-failure-hunter` (pattern reference)
Run npx skillmds@latest add a5c-ai/debugging-patterns in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Pattern-Based Diagnosis It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
a5c-ai (@a5c-ai) published this skill. Their other Agent Skills are listed on their SkillMD profile.