Agent skill
Debugging Report
How to debug a codebase when a test case fails to pass. If you cannot figure it out, how to report the bug through a Github Issue.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/debug-report
SKILL.md
If you failed to pass a test case, you should:
- Read the name of the test case to understand what is functionality is tested.
- Backtrace the call stack to find the function where the error occurs.
- Check if you give the correct input to this function.
- Feel free to add
printstatements to have the intermediate values printed to:- locate where it goes to the wrong branch?
- where the value started to deviate from expected value and what is the right value at that point?
- If you still cannot figure it out, stop and dump the phenomenon to user for help. This report should include:
- The name of the test case that fails.
- The error message and the call stack trace.
- The input values to the function where the error occurs.
- What is the value you observed at that point?
- What is the expected value at that point?
- Any other relevant information you think might help.
- If this bug is related to an issue implementation (which can be found on your branch name), please upload this bug to this issue for user intervention.
- If not, dump the above to the screen.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?