一键导入
debugging
Systematic debugging workflow for isolating root causes before applying fixes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Systematic debugging workflow for isolating root causes before applying fixes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Defines a reusable procedure. Source: xcaf/skills/<name>/skill.xcaf. Compiled to skills/<name>/SKILL.md per provider.
Performs thorough code review.
Deep search across files and symbols
Test-driven development workflow
Systematic code review workflow
Search the web
| name | debugging |
| description | Systematic debugging workflow for isolating root causes before applying fixes. |
| allowed-tools | ["Bash","Read","Grep","Glob"] |
| when-to-use | Use when encountering any bug, test failure, or unexpected behavior. |
| disable-model-invocation | false |
Reproduce the failure with a minimal, deterministic test case. If the failure is intermittent, identify the conditions that trigger it. Never guess — observe.
go test ./... -run TestFailing -v -count=1
Narrow the scope using binary search. Comment out half the code path. Does the failure persist? Keep narrowing until you find the exact line or function responsible.
Use grep to trace function calls:
grep -rn "functionName" internal/ cmd/
Read the code around the failure point. Trace the data flow from input to the failure. Check recent changes with git log -p --follow -- path/to/file.go. Understand WHY it fails, not just WHERE.
Apply the minimal fix that addresses the root cause. Do not refactor, clean up, or add features in the same change. Write a regression test that would have caught the bug.
Run the failing test. Run the full test suite. Check for regressions in related functionality. Confirm the fix does not mask a deeper issue.