debugging
Skill7 starsChanged 9 months agoMITView on GitHub
Use when encountering any bug, test failure, error, or unexpected behavior - before proposing fixes. Requires root cause investigation first.
81 other projects use a version of this, 3 of them edited.
Adopted by
Most recently taken up by
- JetBrains/intellij-communitytheir own version, first seen Oct 3, 2026
- iliaal/ai-skillstheir own version, first seen Oct 3, 2026
- kapadias/nonnatheir own version, first seen Oct 1, 2026
- JetBrains/MPStheir own version, first seen Oct 1, 2026
- kynn-dev/agent-skillstheir own version, first seen Sep 30, 2026
- geeks-accelerator/in-bed-aitheir own version, first seen Sep 29, 2026
Used with
Projects with it also use media-processing, databases and 9 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.
mrgoonieSkillmedia-processing
Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration) and ImageMagick (image manipulation, format conversion, batch processing, effects, composition). Use when converting media formats, encoding videos with specific codecs (H.264, H.265, VP9), resizing/cropping images, extracting audio from video, applying filters and effects, optimizing file sizes, creating streaming manifests (HLS/DASH), generating thumbnails, batch processing images, creating composite images, or implementing media processing pipelines. Supports 100+ formats, hardware acceleration (NVENC, QSV), and complex filtergraphs.
Also in 4 projects that use this
mrgoonieSkilldatabases
Work with MongoDB (document database, BSON documents, aggregation pipelines, Atlas cloud) and PostgreSQL (relational database, SQL queries, psql CLI, pgAdmin). Use when designing database schemas, writing queries and aggregations, optimizing indexes for performance, performing database migrations, configuring replication and sharding, implementing backup and restore strategies, managing database users and permissions, analyzing query performance, or administering production databases.
Also in 5 projects that use this
ShopifySkillprofiling
Profile Rubydex indexer performance — CPU flamegraphs, memory usage, phase-level timing. Use this skill whenever the user mentions profiling, performance, flamegraphs, benchmarking, "why is X slow", bottlenecks, hot paths, memory usage, or wants to understand where time is spent during indexing/resolution. Also trigger when comparing performance before/after a change.
Also in 3 projects that use this
sarveshtaleleSkilltest-generation
Generate a test strategy and starter test stubs for given modules across unit, integration, and e2e layers (pytest/jest/playwright). Trigger on: generate tests, test plan, test strategy, coverage plan, test scaffolding.
Also in 3 projects that use this
MicrosoftSkillusing-skills
Describes how to use abilities. Read before any conversation.
Also in 3 projects that use this
NVIDIASkilldeployment
Serve a quantized or unquantized LLM checkpoint as an OpenAI-compatible API endpoint using vLLM, SGLang, or TRT-LLM. Use when user says "deploy model", "serve model", "start vLLM server", "launch SGLang", "TRT-LLM deploy", "AutoDeploy", "benchmark throughput", "serve checkpoint", or needs an inference endpoint from a HuggingFace or ModelOpt-quantized checkpoint. Do NOT use for quantizing models (use ptq) or evaluating accuracy (use evaluation).
Also in 5 projects that use this
- +5 more from mrgoonie
Other versions81 projects use a version of this.
Word for word · 0
None found.
Edited · 3
- mrgoonie/claudekit-skills★ 2.2k11% same
- hnikoloski/imlazy★ 338% same
- CarolZ1/debugging★ 010% same
Wrote their own version · 78
- JetBrains/intellij-community★ 21ksame name
- JetBrains/MPS★ 1.7ksame name
- notque/vexjoy-agent★ 424same name
- idavidov13/agentic-playwright★ 222same name
- block/ai-rules★ 137same name
- duongthinh03/portfolio★ 85same name
- matteing/opal★ 61same name
- ratacat/claude-skills★ 56same name
- andreaswasita/copilot-agents-dojo★ 54same name
- Tariux/AI-Skills-Not-Awesome★ 47same name
68 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 repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- atlas-completeSkill
- atlas-executeSkill
- atlas-initSkill
- atlas-planSkill
- atlas-reviewSkill
- atlas-statusSkill
- atlas-syncSkill
- atlas-triageSkill
- brainstormingSkill
- committingSkill
- creating-prSkill
- explaining-codeSkill
- frontend-designSkill
- mcp-builderSkill
- receiving-feedbackSkill
- refactoringSkill
- scaffoldingSkill
- security-auditSkill
- skill-creatorSkill
- testingSkill
- verifyingSkill
- webapp-testingSkill
- web-artifacts-builderSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 12 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 73 edited versions we read keep these.
12
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 16
If you haven't completed Phase 1, you cannot propose fixes.
- Distinctive: line 47
Don't skip past errors or warnings
- Distinctive: line 49
Read stack traces completely
- Distinctive: line 56
If not reproducible → gather more data, don't guess
- Distinctive: line 65
When error is deep in call stack:
- Distinctive: line 68
Keep tracing up until you find the source
- Distinctive: line 74
When system has multiple components (API → service → database):
- Distinctive: line 92
Compare Against References: - Read reference implementation COMPLETELY, don't skim
- Distinctive: line 102
One Variable at a Time: - Don't fix multiple things at once
- Distinctive: line 113
Verify Fix: - Test passes? No other tests broken?
- Distinctive: line 114
If Fix Doesn't Work: - STOP. If ≥3 fixes failed, question the architecture
- Distinctive: line 118
If you catch yourself thinking:
“Common” is measured: kept by at least 6 in 10 of the 73 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
Systematic Debugging
Diagnose and fix errors using scientific method with disciplined root cause analysis.
The Iron Law
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRSTIf you haven't completed Phase 1, you cannot propose fixes. Symptom fixes are failure.
When to Use
Use for ANY technical issue:
- Test failures
- Bugs in production
- Unexpected behavior
- "It doesn't work" problems
- Build/compilation failures
- Performance problems
Use ESPECIALLY when:
- Under time pressure (emergencies make guessing tempting)
- "Just one quick fix" seems obvious
- You've already tried multiple fixes
- Previous fix didn't work
Don't skip when:
- Issue seems simple (simple bugs have root causes too)
- You're in a hurry (systematic is faster than thrashing)
The Four Phases
Complete each phase before proceeding to the next.
Phase 1: Root Cause Investigation
BEFORE attempting ANY fix:
1. Read Error Messages Carefully
- Don't skip past errors or warnings
- They often contain the exact solution
- Read stack traces completely
- Note line numbers, file paths, error codes
2. Reproduce Consistently
- Can you trigger it reliably?
- What are the exact steps?
- Does it happen every time?
- If not reproducible → gather more data, don't guess
3. Check Recent Changes
- What changed that could cause this?
git diff, recent commits- New dependencies, config changes
- Environmental differences
4. Trace Data Flow
When error is deep in call stack:
- Where does the bad value originate?
- What called this with the bad value?
- Keep tracing up until you find the source
- Fix at source, not at symptom
See root-cause-tracing.md for the complete backward tracing technique.
5. Gather Evidence in Multi-Component Systems
When system has multiple components (API → service → database):
For EACH component boundary:
- Log what data enters component
- Log what data exits component
- Verify environment/config propagation
Run once to gather evidence showing WHERE it breaks
THEN analyze evidence to identify failing component
THEN investigate that specific componentPhase 2: Pattern Analysis
Find the pattern before fixing:
- Find Working Examples - Locate similar working code in same codebase
- Compare Against References - Read reference implementation COMPLETELY, don't skim
- Identify Differences - List every difference between working and broken
- Understand Dependencies - What settings, config, environment does it need?
Phase 3: Hypothesis and Testing
Scientific method:
- Form Single Hypothesis - State clearly: "I think X is the root cause because Y"
- Test Minimally - Make the SMALLEST possible change to test hypothesis
- One Variable at a Time - Don't fix multiple things at once
- Verify Before Continuing
- Did it work? → Phase 4
- Didn't work? → Form NEW hypothesis, don't add more fixes
Phase 4: Implementation
Fix the root cause, not the symptom:
- Create Failing Test Case - Simplest possible reproduction, automated if possible
- Implement Single Fix - ONE change at a time, no "while I'm here" improvements
- Verify Fix - Test passes? No other tests broken? Issue actually resolved?
- If Fix Doesn't Work - STOP. If ≥3 fixes failed, question the architecture
Red Flags - STOP and Return to Phase 1
If you catch yourself thinking:
- "Quick fix for now, investigate later"
- "Just try changing X and see if it works"
- "Add multiple changes, run tests"
- "It's probably X, let me fix that"
- "I don't fully understand but this might work"
- Proposing solutions before tracing data flow
- "One more fix attempt" (when already tried 2+)
ALL of these mean: STOP. Return to Phase 1.
Common Rationalizations
| Excuse | Reality |
| "Issue is simple, don't need process" | Simple issues have root causes too. Process is fast for simple bugs. |
| "Emergency, no time for process" | Systematic debugging is FASTER than guess-and-check thrashing. |
| "Just try this first, then investigate" | First fix sets the pattern. Do it right from the start. |
| "Multiple fixes at once saves time" | Can't isolate what worked. Causes new bugs. |
| "I see the problem, let me fix it" | Seeing symptoms ≠ understanding root cause. |
Quick Reference
| Phase | Key Activities | Success Criteria |
| 1. Root Cause | Read errors, reproduce, check changes, trace data | Understand WHAT and WHY |
| 2. Pattern | Find working examples, compare | Identify differences |
| 3. Hypothesis | Form theory, test minimally | Confirmed or new hypothesis |
| 4. Implementation | Create test, fix, verify | Bug resolved, tests pass |
Debugging Commands
# Git bisect for regressions
git bisect start
git bisect bad HEAD
git bisect good <last-known-good-commit>
# Find recent changes to a file
git log --oneline -10 path/to/file
# Search for error message
grep -r "error message" --include="*.ts"Common Fixes by Error Type
| Error Pattern | Likely Root Cause | Investigation |
Cannot read property 'x' of undefined | Missing data, async timing | Trace where null originates |
Module not found | Path issues, missing export | Check exact path, case sensitivity |
CORS error | Backend config | Check Network tab, test with curl |
Timeout | Slow operation, connection issue | Profile, check network |
| Works locally, fails in CI | Environment diff | Compare env vars, versions, permissions |
| Intermittent failures | Race conditions, timing | Look for shared state, async issues |
Real-World Impact
From debugging sessions:
- Systematic approach: 15-30 minutes to fix
- Random fixes approach: 2-3 hours of thrashing
- First-time fix rate: 95% vs 40%
See Also
- root-cause-tracing.md - Trace bugs backward to original trigger
- strategies.md - Detailed strategies by error type
- examples.md - Real debugging case studies
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.

