debug
Skill1 starsChanged 7 months agoMITView on GitHub
Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.
192 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- PeanutGT/NutsSkillstheir own version, first seen Nov 8, 2026
- jskswamy/skillstheir own version, first seen Nov 8, 2026
- Firzus/agent-skillstheir own version, first seen Nov 8, 2026
- domengabrovsek/agent-configtheir own version, first seen Nov 8, 2026
- domengabrovsek/claudetheir own version, first seen Nov 8, 2026
- microsoft/veronatheir own version, first seen Nov 8, 2026
Used with
Projects with it also use add-discord, add-slack and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkilladd-discord
Add Discord bot channel integration via Chat SDK.
Also in 11 projects that use this
MicrosoftSkilladd-slack
Add Slack channel integration via Chat SDK.
Also in 11 projects that use this
- +10 more from microsoft
Other versions192 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- anthropics/knowledge-work-plugins★ 35k11% same
Wrote their own version · 191
- Yeachan-Heo/oh-my-claude-sisyphus★ 41ksame name
- Yeachan-Heo/oh-my-claudecode★ 41ksame name
- gavrielc/nanoclaw★ 31ksame name
- nanocoai/nanoclaw★ 31ksame name
- qwibitai/nanoclaw★ 31ksame name
- openai/symphony★ 27ksame name
- FalkorDB/FalkorDB★ 10ksame name
- NVIDIA/TensorRT-Model-Optimizer★ 5.6ksame name
- NVIDIA/Model-Optimizer★ 5.6ksame name
- thinking-machines-lab/tinker-cookbook★ 4.2ksame name
181 more not listed
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 repository164 other files it gives its agents.
- instrument-data-to-allotropeSkill
- literature-reviewSkill
- nextflow-developmentSkill
- scientific-problem-selectionSkill
- scvi-toolsSkill
- single-cell-rna-qcSkill
- discover-brandSkill
- enforce-voiceSkill
- generate-guidelinesSkill
- csat-reportSkill
- customer-escalationSkill
- customer-researchSkill
- draft-responseSkill
- kb-articleSkill
- sentiment-analysisSkill
- ticket-triageSkill
- analyzeSkill
- build-dashboardSkill
- create-vizSkill
- data-context-extractorSkill
- data-modelingSkill
- data-pipelineSkill
- etl-designSkill
- explore-dataSkill
- sql-queriesSkill
- statistical-analysisSkill
- validate-dataSkill
- write-querySkill
- accessibility-reviewSkill
- component-librarySkill
- design-critiqueSkill
- design-handoffSkill
- design-systemSkill
- frontend-designSkill
- research-synthesisSkill
- user-researchSkill
- ux-copySkill
- wireframingSkill
- Agent DevelopmentSkill
- CLAUDE.md ManagementSkill
- MCP Server BuilderSkill
- Plugin DevelopmentSkill
- Prompt EngineeringSkill
- Skill CreatorSkill
- curriculum-designSkill
- lesson-planningSkill
- quiz-generatorSkill
- study-guideSkill
- tutoringSkill
- api-designSkill
- architectureSkill
- ci-cd-pipelineSkill
- code-reviewSkill
- database-migrationSkill
- dependency-auditSkill
- deploy-checklistSkill
- documentationSkill
- error-handlingSkill
- git-workflowSkill
- incident-responseSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
29 rules. 0 are common, 29 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 175 edited versions we read keep these.
29
Distinctive
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 32
What is the error?: Read the full error message and stack trace carefully.
- Distinctive: line 33
When did it start?: Check recent deploys, config changes, dependency updates.
- Distinctive: line 34
How often does it happen?: Always, intermittently, under specific conditions?
- Distinctive: line 35
What is the expected behavior?: Make sure we know what "working" looks like.
- Distinctive: line 45
Before diagnosing, establish a reliable reproduction:
- Distinctive: line 48
If the user provides steps, follow them exactly.
- Distinctive: line 49
If there are no steps, work backward from the error to construct a minimal reproduction.
- Distinctive: line 50
Check logs around the time of the error for additional context.
- Distinctive: line 66
If the issue is environment-specific:
- Distinctive: line 68
Check for differences in dependency versions (lock files).
- Distinctive: line 69
Look for configuration differences (feature flags, database endpoints).
- Distinctive: line 76
If the issue started after a deploy, use git bisect or review the diff between the last known good state and current.
- Distinctive: line 77
Check each changed file for relevance to the symptom.
- Distinctive: line 83
If disproved, move to the next hypothesis.
- Distinctive: line 87
Add targeted logging around the suspected area.
- Distinctive: line 88
Test with simplified inputs to rule out data-dependent issues.
- Distinctive: line 89
Check if the issue exists on a clean branch (rules out local changes).
- Distinctive: line 101
Read the relevant source code carefully.
- Distinctive: line 105
Write the fix, targeting the root cause, not the symptom.
- Distinctive: line 106
Verify the fix resolves the original reproduction.
- Distinctive: line 107
Check for related code that might have the same bug.
- Distinctive: line 108
Add or update tests to prevent regression.
- Distinctive: line 109
Consider if the fix could have unintended side effects.
- Distinctive: line 155
Action: Check CI environment (OS, runtime version, timezone).
- Distinctive: line 159
Read the FULL error message and stack trace before doing anything else.
- Distinctive: line 160
Do not guess at fixes. Understand the root cause first.
- Distinctive: line 162
Check the recent git history.
- Distinctive: line 164
When stuck, take a step back and question your assumptions.
- Distinctive: line 166
If a fix seems too simple for the symptom, verify extra carefully.
“Common” is measured: kept by at least 6 in 10 of the 175 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Structured Debugging
Work through bugs systematically: reproduce, isolate, diagnose, and fix. Avoid the common trap of guessing at fixes before understanding the root cause.
Workflow
Step 1: Understand the Symptom
Gather all available information:
- What is the error? Read the full error message and stack trace carefully.
- When did it start? Check recent deploys, config changes, dependency updates.
- How often does it happen? Always, intermittently, under specific conditions?
- What is the expected behavior? Make sure we know what "working" looks like.
- What environment? Local, staging, production? OS, runtime version, dependencies?
Parse the stack trace to identify:
- The exact file and line where the error originates.
- The call chain that led to the error.
- Whether the error is in application code, a library, or framework.
Step 2: Reproduce the Issue
Before diagnosing, establish a reliable reproduction:
- Try to reproduce locally using the same inputs, environment, and configuration.
- If the user provides steps, follow them exactly.
- If there are no steps, work backward from the error to construct a minimal reproduction.
- Check logs around the time of the error for additional context.
Useful commands:
# Check recent git changes
git log --oneline -20
git diff HEAD~5 -- <relevant files>
# Check application logs
tail -n 100 <log file>
# Check environment
node --version / python --version / etc.
env | grep -i <relevant vars>If the issue is environment-specific:
- Compare environment variables between working and broken environments.
- Check for differences in dependency versions (lock files).
- Look for configuration differences (feature flags, database endpoints).
Step 3: Isolate the Cause
Narrow down the source systematically:
Binary search through changes:
- If the issue started after a deploy, use
git bisector review the diff between the last known good state and current. - Check each changed file for relevance to the symptom.
Eliminate hypotheses:
- Form a hypothesis about the cause.
- Design a test that would prove or disprove it.
- Run the test.
- If disproved, move to the next hypothesis. Do not guess-and-check fixes.
Common isolation techniques:
- Comment out or disable suspected code to confirm the source.
- Add targeted logging around the suspected area.
- Test with simplified inputs to rule out data-dependent issues.
- Check if the issue exists on a clean branch (rules out local changes).
Step 4: Diagnose the Root Cause
Once isolated, understand WHY the bug exists:
- Is it a logic error? Trace the actual values through the code path.
- Is it a timing issue? Look for race conditions, missing awaits, stale caches.
- Is it a data issue? Check for unexpected null values, encoding problems, schema mismatches.
- Is it an environment issue? Missing env vars, wrong versions, network connectivity.
- Is it a dependency issue? Breaking change in an update, incompatible versions.
Read the relevant source code carefully. Understand the intended behavior, not just the failing behavior.
Step 5: Implement and Verify the Fix
- Write the fix, targeting the root cause, not the symptom.
- Verify the fix resolves the original reproduction.
- Check for related code that might have the same bug.
- Add or update tests to prevent regression.
- Consider if the fix could have unintended side effects.
Step 6: Document Findings
Briefly summarize what went wrong and why, so the team can learn from it.
Output Format
## Debugging Report
### Symptom
<What was observed — the error, unexpected behavior, or failure>
### Root Cause
<What actually caused the issue and why>
### Investigation Path
1. <First hypothesis tested and result>
2. <Second hypothesis tested and result>
3. <How root cause was confirmed>
### Fix
<What was changed and why this addresses the root cause>
```<language>
// the fix, with a brief explanationVerification
<How the fix was verified><What tests were added or updated>
Prevention
- <How to prevent similar issues: better tests, linting rules, monitoring>
## Examples
**User**: Posts a stack trace showing `TypeError: Cannot read properties of undefined`
**Action**: Parse the stack trace to find the exact line. Read that code and its callers. Identify which variable is undefined and trace back to where it should have been set. Check for missing null checks, incorrect destructuring, or async timing issues.
**User**: "This API endpoint returns 500 in prod but works locally"
**Action**: Compare environment configs. Check for missing env vars, database connectivity, or dependency differences. Look at prod logs for the actual error. Investigate differences in data between environments.
**User**: "Tests pass locally but fail in CI"
**Action**: Check CI environment (OS, runtime version, timezone). Look for test ordering dependencies, file system assumptions, or timing-sensitive assertions. Compare CI logs with local output.
## Best Practices
- Read the FULL error message and stack trace before doing anything else. The answer is often right there.
- Do not guess at fixes. Understand the root cause first. A wrong fix can mask the real problem and create harder bugs later.
- One change at a time. If you change three things and it works, you don't know which one fixed it.
- Check the recent git history. Most bugs are caused by recent changes.
- Rubber duck the problem. Explaining the issue step-by-step often reveals the answer.
- When stuck, take a step back and question your assumptions. The bug might not be where you think it is.
- Intermittent bugs are almost always timing, caching, or data-dependent. Look for race conditions and stale state.
- If a fix seems too simple for the symptom, verify extra carefully. You may be fixing a symptom, not the cause.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.

