debug-error
Skill1 starsChanged 7 months agoMITView on GitHub
Systematically debug and fix errors using structured investigation. Use when the user asks to "debug", "fix an error", "troubleshoot", "investigate a bug", or shares an error message or stack trace.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- kensaurus/skillstheir own version, first seen Oct 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- kensaurus/skills★ 9same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architectSkill
- arenaSkill
- autopilotSkill
- blast-radiusSkill
- brainstormSkill
- clarifySkill
- code-reviewSkill
- diagram-designSkill
- explain-codeSkill
- java-coderSkill
- owasp-securitySkill
- pdfSkill
- pretty-mermaidSkill
- refactor-codeSkill
- reflectSkill
- skill-hunterSkill
- teachSkill
- technical-writingSkill
- test-coverageSkill
- typesafe-aiSkill
- typescript-coderSkill
- unslopSkill
- write-testsSkill
- wrongSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
38 rules. About 0 are common, 38 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈38
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Follow this comprehensive debugging methodology to resolve: $ARGUMENTS
- Distinctive: line 22
Create a minimal test case that reproduces the error consistently
- Distinctive: line 23
Document the exact steps needed to trigger the error
- Distinctive: line 24
Test in different environments if possible
- Distinctive: line 28
Read the stack trace from bottom to top to understand the call chain
- Distinctive: line 31
Look for any obvious issues in the failing code
- Distinctive: line 35
Check recent changes that might have introduced the bug
- Distinctive: line 51
Use debugger, profiler, or logging as needed
- Distinctive: line 56
Test each hypothesis methodically
- Distinctive: line 57
Use binary search approach to isolate the problem
- Distinctive: line 58
Add strategic logging or print statements
- Distinctive: line 59
Check data flow and transformations step by step
- Distinctive: line 62
Verify input data format and validity
- Distinctive: line 63
Check for edge cases and boundary conditions
- Distinctive: line 65
Test with different data sets to isolate patterns
- Distinctive: line 68
Check external dependencies and their versions
- Distinctive: line 69
Verify network connectivity and API availability
- Distinctive: line 71
Test database connections and query execution
- Distinctive: line 74
Check for memory leaks or excessive memory usage
- Distinctive: line 77
Check for resource deadlocks or contention
- Distinctive: line 80
Look for race conditions in multi-threaded code
- Distinctive: line 81
Check synchronization mechanisms and locks
- Distinctive: line 83
Test under different load conditions
- Distinctive: line 89
Consider if similar issues exist elsewhere
- Distinctive: line 93
Consider multiple solution approaches and trade-offs
- Distinctive: line 95
Add validation and defensive programming where needed
- Distinctive: line 98
Test the fix against the original error case
- Distinctive: line 99
Test edge cases and related scenarios
- Distinctive: line 100
Run regression tests to ensure no new issues
- Distinctive: line 101
Test under various load and stress conditions
- Distinctive: line 104
Add appropriate unit and integration tests
- Distinctive: line 106
Add input validation and defensive checks
- Distinctive: line 107
Update documentation and code comments
- Distinctive: line 111
Add metrics and health checks
- Distinctive: line 116
Document the error, investigation process, and solution
- Distinctive: line 119
Update code comments with context
- Distinctive: line 124
Consider improvements to prevent similar issues
- Distinctive: line 125
Update coding standards or guidelines if needed
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Systematically Debug and Fix Errors
Systematically debug and fix errors.
Instructions
Follow this comprehensive debugging methodology to resolve: $ARGUMENTS
- Error Information Gathering
- Collect the complete error message, stack trace, and error code
- Note when the error occurs (timing, conditions, frequency)
- Identify the environment where the error happens (dev, staging, prod)
- Gather relevant logs from before and after the error
- Reproduce the Error
- Create a minimal test case that reproduces the error consistently
- Document the exact steps needed to trigger the error
- Test in different environments if possible
- Note any patterns or conditions that affect error occurrence
- Stack Trace Analysis
- Read the stack trace from bottom to top to understand the call chain
- Identify the exact line where the error originates
- Trace the execution path leading to the error
- Look for any obvious issues in the failing code
- Code Context Investigation
- Examine the code around the error location
- Check recent changes that might have introduced the bug
- Review variable values and state at the time of error
- Analyze function parameters and return values
- Hypothesis Formation
- Based on evidence, form hypotheses about the root cause
- Consider common causes:
- Null pointer/undefined reference
- Type mismatches
- Race conditions
- Resource exhaustion
- Logic errors
- External dependency failures
- Debugging Tools Setup
- Set up appropriate debugging tools for the technology stack
- Use debugger, profiler, or logging as needed
- Configure breakpoints at strategic locations
- Set up monitoring and alerting if not already present
- Systematic Investigation
- Test each hypothesis methodically
- Use binary search approach to isolate the problem
- Add strategic logging or print statements
- Check data flow and transformations step by step
- Data Validation
- Verify input data format and validity
- Check for edge cases and boundary conditions
- Validate assumptions about data state
- Test with different data sets to isolate patterns
- Dependency Analysis
- Check external dependencies and their versions
- Verify network connectivity and API availability
- Review configuration files and environment variables
- Test database connections and query execution
- Memory and Resource Analysis
- Check for memory leaks or excessive memory usage
- Monitor CPU and I/O resource consumption
- Analyze garbage collection patterns if applicable
- Check for resource deadlocks or contention
- Concurrency Issues Investigation
- Look for race conditions in multi-threaded code
- Check synchronization mechanisms and locks
- Analyze async operations and promise handling
- Test under different load conditions
- Root Cause Identification
- Once the cause is identified, understand why it happened
- Determine if it's a logic error, design flaw, or external issue
- Assess the scope and impact of the problem
- Consider if similar issues exist elsewhere
- Solution Implementation
- Design a fix that addresses the root cause
- Consider multiple solution approaches and trade-offs
- Implement the fix with appropriate error handling
- Add validation and defensive programming where needed
- Testing the Fix
- Test the fix against the original error case
- Test edge cases and related scenarios
- Run regression tests to ensure no new issues
- Test under various load and stress conditions
- Prevention Measures
- Add appropriate unit and integration tests
- Improve error handling and logging
- Add input validation and defensive checks
- Update documentation and code comments
- Monitoring and Alerting
- Set up monitoring for similar issues
- Add metrics and health checks
- Configure alerts for error thresholds
- Implement better observability
- Documentation
- Document the error, investigation process, and solution
- Update troubleshooting guides
- Share learnings with the team
- Update code comments with context
- Post-Resolution Review
- Analyze why the error wasn't caught earlier
- Review development and testing processes
- Consider improvements to prevent similar issues
- Update coding standards or guidelines if needed
Remember to maintain detailed notes throughout the debugging process and consider the wider implications of both the error and the fix.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

