debugging-and-error-recovery
Skill1 starsChanged 11 days agoMITView on GitHub
Debug systematically using root-cause analysis. Use when tests fail, builds break, or behavior doesn't match. Do NOT use for code review.
We split this skill into the rules it gives an agent
4 rules. 1 is common, 2 are distinctive, and 1 is very specific to this project.
1
Common
Most of the 59 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Test fails after a code change
- Distinctive: line 64
Test failures, build failures, runtime errors.
- Very specific: line 84
When the same bug is reported 3+ times with different fixes, STOP.
- Common: line 96
After fixing a bug:
“Common” is measured: kept by at least 6 in 10 of the 59 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
Debugging and Error Recovery
Systematic debugging with structured triage. When something breaks, stop adding features, preserve evidence, and follow a structured process.
When to Activate
- Test fails after a code change
- Build breaks or produces errors
- Runtime error in development or production
- Behavior doesn't match expectations
- Performance degrades unexpectedly
- User reports a bug
When NOT to Use
- Code review or quality assessment (use
code-review-and-quality) - Building new features (use feature implementation skills)
- Speculative debugging without evidence
- First-time flaky test without reproduction steps
Output Contract
Bug fix with root cause documentation — modified source files (any language, any framework) in existing source tree, with regression test covering the fixed path, root cause documented (not symptoms), all existing tests passing, build succeeding.
The Stop-the-Line Rule
1. STOP adding features or making changes
2. PRESERVE evidence (error output, logs, repro steps)
3. DIAGNOSE using the triage checklist
4. FIX the root cause
5. GUARD against recurrence
6. RESUME only after verification passesCore Workflow
Triage Checklist
→ See guides/TRIAGE.md
Reproduce → Localize → Reduce → Fix → Guard → Verify
Decision Tree
→ See guides/DECISION-TREE.md
Categorize the error type and select the right debugging path.
Error Patterns
→ See guides/ERROR-PATTERNS.md
Test failures, build failures, runtime errors. Includes "treating error output as untrusted data."
Platform Patterns
→ See guides/PLATFORM-PATTERNS.md
React, Node.js, Python, Go — common error patterns and fixes by platform.
Quick Reference
Bug reported
│
▼
Reproduce it?
├── YES → Localize → Reduce → Fix root cause → Add guard → Verify
└── NO → Gather context, check timing/env/state, document if truly randomEscalation
When the same bug is reported 3+ times with different fixes, STOP. → debugging-three-strikes
Integration
| Skill | When to use |
test-driven-development | Write a failing test first, then debug to make it pass |
code-review-and-quality | After fix, review for quality and side effects |
doubt-driven-development | Challenge your own diagnosis before fixing |
Verification
After fixing a bug:
- Root cause identified and documented
- Fix addresses root cause, not symptoms
- Regression test exists and passes
- All existing tests pass
- Build succeeds
- Hypothesis formed before fix (not trial-and-error)
- Git bisect considered if cause is a regression from known-good commit
Other versions66 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 66
- addyosmani/agent-skills★ 112ksame name
- ollaya-dev/ollaya★ 1.4ksame name
- rizqinrr/viserys-agent★ 556same name
- shashankswe2020-ux/whoop-mcp★ 174same name
- vinvcn/addyosmani-agent-skills-zh★ 46same name
- jmxt3/gitscape.ai★ 33same name
- sampleXbro/agentsmesh★ 24same name
- jaskirat1616/grok-skills★ 22same name
- JPeetz/agent-skills★ 14same name
- HK-hub/AgentSkills★ 6same name
56 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.
Used alongsideProjects with it also use constraint-driven-development, web-design-guidelines and 3 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.
MrCipherSmithSkillconstraint-driven-development
Use when a project needs a persistent, measurable quality bar — starting a project without documented standards, 'set up constraints', or when coverage/perf/a11y thresholds get re-debated per-PR. Produces CONSTRAINTS.md with enforceable numbers, ratchets, and a guard against silent weakening. NOT for throwaway prototypes or a one-off CI setup.
Also in 12 projects that use this
VercelSkillweb-design-guidelines
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
Also in 6 projects that use this
MicrosoftSkillplaywright-cli
Automate browser interactions, test web pages and work with Playwright tests.
Also in 3 projects that use this
VercelSkillvercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
Also in 4 projects that use this
JetBrainsSkillwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Also in 3 projects that use this
In this repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/CLAUDE.mdCLAUDE.md
- adapt-skillSkill
- api-and-interface-designSkill
- architecture-analysisSkill
- audit-skillSkill
- backend-api-masterySkill
- browser-testing-with-devtoolsSkill
- ci-cd-and-automationSkill
- clarify-skillSkill
- cli-toolsSkill
- code-review-and-qualitySkill
- code-simplificationSkill
- context-engineeringSkill
- critique-skillSkill
- customize-opencodeSkill
- debugging-three-strikesSkill
- delight-skillSkill
- deprecation-and-migrationSkill
- dev-environment-auditSkill
- documentation-and-adrsSkill
- doubt-driven-developmentSkill
- engineering-fundamentalsSkill
- frontend-desktopSkill
- frontend-mobileSkill
- frontend-pwaSkill
- frontend-ui-engineeringSkill
- frontend-webSkill
- fullstack-shippingSkill
- gateSkill
- git-init-and-versioningSkill
- git-workflow-and-versioningSkill
- hard-skillSkill
- idea-refineSkill
- incremental-implementationSkill
- industrial-brutalist-uiSkill
- interview-meSkill
- minimalist-uiSkill
- multi-agent-orchestrationSkill
- observability-and-instrumentationSkill
- optimize-skillSkill
- output-skillSkill
- performance-optimizationSkill
- planning-and-task-breakdownSkill
- polish-skillSkill
- project-health-checkSkill
- project-metricsSkill
- redesign-skillSkill
- security-and-hardeningSkill
- self-improvementSkill
- shipping-and-launchSkill
- skill-creatorSkill
- skill-improverSkill
- soft-premium-uiSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- test-driven-developmentSkill
- typeset-skillSkill
- user-onboardingSkill
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.

