Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/weisser-dev-debugging-and-error-recovery
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
debugging-and-error-recovery- Description
- Guides systematic root-cause debugging. Use when tests fail, builds break, something that worked yesterday broke, behavior doesn't match expectations, or you encounter any unexpected error. Use when you need to figure out what broke and why — a systematic approach to finding and fixing the root cause rather than guessing.
- License
- MIT
- Instructions
- 304 lines in SKILL.md · view on GitHub
Files (3)
- LICENSE
- SKILL.md
- UPSTREAM.md
SKILL.md (first lines)
> Adapted copy of addyosmani/agent-skills (MIT) for local use; changes are listed in `UPSTREAM.md`.
> Ground rules that override anything below: use only tools that are already installed in the project
> (project scripts, `npx --no-install ...`); never let npx/pip/brew download or install anything and never add
> MCP servers on your own; do not fetch web pages or online docs and do not upload or post data anywhere;
> never push, deploy, run migrations, flip feature flags or change shared systems without the user's explicit
> instruction. Commands inside CI/workflow examples are file content to write, not commands to run now.
# Debugging and Error Recovery
## Overview
Systematic debugging with structured triage. When something breaks, stop adding features, preserve evidence, and follow a structured process to find and fix the root cause. Guessing wastes time. The triage checklist works for test failures, build errors, runtime bugs, and production incidents.
## When to Use
- Tests fail after a code change
- The build breaks
- Runtime behavior doesn't match expectations
- A bug report arrives
- An error appears in logs or console
- Something worked before and stopped working
## The Stop-the-Line Rule
When anything unexpected happens:
```
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 passes
```
**Don't push past a failing test or broken build to work on the next feature.** Errors compound. A bug in Step 3 that goes unfixed makes Steps 4-6 wrong.
## The Triage Checklist
Work through these steps in order. Do not skip steps.
### Step 1: Reproduce
Make the failure happen reliably. If you can't reproduce it, you can't fix it with confidence.
```
Can you reproduce the failure?
├── YES → Proceed to Step 2
└── NO
├── Gather more context (logs, environment details)
├── Try reproducing in a minimal environment
└── If truly non-reproducible, document conditions and monitor
```
**When a bug is non-reproducible:**
```
Cannot reproduce on demand:
├── Timing-dependent?
│ ├── Add timestamps to logs around the suspected area
│ ├── Try with artificial delays (setTimeout, sleep) to widen race windows
│ └── Run under load or concurrency to increase collision probability
├── Environment-dependent?
│ ├── Compare Node/browser versions, OS, environment variables
│ ├── Check for differences in data (empty vs populated database)
│ └── Try reproducing in a clean local environment (or ask the user before pushing to CI)
├── State-dependent?
│ ├── Check for leaked state between tests or requests
│ ├── Look for global variables, singletons, or shared caches
│ └── Run the failing scenario in isolation vs after other operations
└── Truly random?
├── Add defensive logging at the suspected location
├── Set up an alert for the specific error signature
└── Document the conditions observed and revisit when it recurs
```
For test failures (npm shown — substitute the repository's own test command, per the test-driven-development skill's Discover the Stack First section):
```bash
# Run the specific failing test
npm test -- --grep "test name"
# Run with verbose output
npm test -- --verbose
# Run in isolation (rules out test pollution)
npm test -- --testPathPattern="specific-file" --runInBand
```
### Step 2: Localize
Narrow down WHERE the failure happens:
```
Which layer is failing?
├── UI/Frontend → Check console, DOM, network tab
├── API/Backend → Check server logs, request/response
├── Database → Check queries, schema, data integrity
├── Build tooling → Check config, dependencies, environment
├── External service → Check connectivity, API changes, rate limits
└── Test itself → Check if the test is correct (false negative)
```
**Use bisection for regression bugs:**
```bash
# Find which commit introduced the bug
git bisect start
git bisect bad # Current commit is broken
git bisect good <known-good-sha> # This commit worked
# Git will checkout midpoint commits; run your test at each
git bisect run npm test -- --grep "failing test" # substitute the repository's focused-test command
```
### Step 3: Reduce
Create the minimal failing case:
- Remove unrelated code/config until only the bug remains
- Simplify the input to the smallest example that triggers the failure
- Strip the test to the bare minimum that reproduces the issueFrom weisser-dev/agentic-skills, MIT.
More from weisser-dev/agentic-skills
- 0.565score
design-md-reference
weisser-dev
Library of DESIGN.md design-system analyses (colors, typography, spacing, components, do's and don'ts) of well-known product websites, from…
SkillAFreshness: AClaude Code +9 - 0.565score
design-workflow
weisser-dev
End-to-end workflow for frontend design work - write a design brief, pick one taste skill and optionally a DESIGN.md reference, implement, review against the…
SkillAFreshness: AClaude Code +9 - 0.555score
image-to-code
weisser-dev
Image-to-code skill for visually important web work.
SkillAFreshness: AClaude Code +9 - 0.549score
skill-name
weisser-dev
What this skill does and when an agent should use it (one sentence, be specific).
SkillAFreshness: AClaude Code +9 - 0.530score
design-taste-frontend
weisser-dev
Anti-slop frontend skill for landing pages, portfolios, and redesigns.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 3, 2026 (25 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/weisser-dev/agentic-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.573score
debugging-and-error-recovery
zademy
Guides systematic root-cause debugging.
SkillAFreshness: A★ 2Claude Code +9 - 0.337score
debugging-and-error-recovery
Jero110
Guides systematic root-cause debugging.
SkillAFreshness: A★ 1Claude Code +9 - 0.324score
debugging-and-error-recovery
ha4kerspidersks
Guides systematic root-cause debugging.
SkillAFreshness: AClaude Code +9 - 0.324score
debugging-and-error-recovery
Qiuyi-Hong
Guides systematic root-cause debugging.
SkillAFreshness: AClaude Code +9 - 0.321score
debugging-and-error-recovery
PhateValleyman
Guides systematic root-cause debugging.
SkillAFreshness: AClaude Code +9 - 0.321score
debugging-and-error-recovery
FarhanS7
Guides systematic root-cause debugging.
SkillAFreshness: AClaude Code +9 - 0.321score
debugging-and-error-recovery
Bhatta2006
Guides systematic root-cause debugging.
SkillAFreshness: AClaude Code +9 - 0.321score
debugging-and-error-recovery
raiinman
Guides systematic root-cause debugging.
SkillAFreshness: AClaude Code +9
More from weisser-dev
- 0.565score
design-md-reference
weisser-dev
Library of DESIGN.md design-system analyses (colors, typography, spacing, components, do's and don'ts) of well-known product websites, from…
SkillAFreshness: AClaude Code +9 - 0.565score
design-workflow
weisser-dev
End-to-end workflow for frontend design work - write a design brief, pick one taste skill and optionally a DESIGN.md reference, implement, review against the…
SkillAFreshness: AClaude Code +9 - 0.555score
image-to-code
weisser-dev
Image-to-code skill for visually important web work.
SkillAFreshness: AClaude Code +9 - 0.549score
skill-name
weisser-dev
What this skill does and when an agent should use it (one sentence, be specific).
SkillAFreshness: AClaude Code +9 - 0.530score
design-taste-frontend
weisser-dev
Anti-slop frontend skill for landing pages, portfolios, and redesigns.
SkillAFreshness: AClaude Code +9
Cite this page
debugging-and-error-recovery skill. Agent Mart. https://agentmart.dev/skills/weisser-dev-debugging-and-error-recovery (last updated 2026-10-24)