debugging-and-error-recovery
Guides systematic root-cause debugging with the Stop-the-Line rule and a reproduce → localize → reduce → fix → guard → verify triage checklist.
Skill by jankneumann
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/jankneumann-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
Use cases: testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/debugging-and-error-recovery
What's inside
- Skill name
debugging-and-error-recovery- Description
- Guides systematic root-cause debugging with the Stop-the-Line rule and a reproduce → localize → reduce → fix → guard → verify triage checklist. Use when tests fail, builds break, behavior doesn't match expectations, or you encounter any unexpected error. Trigger phrases: "test is failing", "build is broken", "I'm seeing an error", "find the root cause", "git bisect", "regression", "stop the line".
- License
- MIT
- Instructions
- 464 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- files: referenced but missing: references/security-checklist.md, references/testing-patterns.md
Files (1)
- SKILL.md
SKILL.md (first lines)
# 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-10 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, asyncio.sleep, time.sleep) to widen race windows
│ └── Run under load or concurrency to increase collision probability
├── Environment-dependent?
│ ├── Compare Node/Python/browser versions, OS, environment variables
│ ├── Check for differences in data (empty vs populated database)
│ └── Try reproducing in CI where the environment is clean
├── 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 (console.error / logging.exception)
├── Set up an alert for the specific error signature
└── Document the conditions observed and revisit when it recurs
```
For **JavaScript / TypeScript** test failures:
```bash
# Run a single failing test by name
npm test -- --grep "test name"
npx jest -t "test name"
# Verbose output
npm test -- --verbose
# Run in isolation (rules out test pollution)
npx jest --testPathPattern="specific-file" --runInBand
```
For **Python** test failures (pytest):
```bash
# Run a specific failing test by node id
pytest tests/tasks/test_task_service.py::test_complete_task_sets_completed_at
# Filter by keyword
pytest -k "complete_task and not legacy"
# Verbose, show locals on failure, stop on first failure
pytest -vv --showlocals -x
# Drop into the debugger at the point of failure
pytest --pdb
# Reproduce a flake by replaying the same random seed (with pytest-randomly)
pytest -p randomly --randomly-seed=12345
```
For **Python** runtime issues, drop a breakpoint and step through:
```bash
python -m pdb script.py
# Inside the program, use breakpoint() (Python 3.7+) at the suspected line
```
```python
# Inline breakpoint — modern equivalent of `import pdb; pdb.set_trace()`
def complete_task(task_id: str) -> Task:
breakpoint() # debugger stops here
...
```
### Step 2: Localize
Narrow down WHERE the failure happens:From jankneumann/agentic-coding-tools, MIT.
More from jankneumann/agentic-coding-tools
- 0.611score
bug-scrub
jankneumann
Comprehensive project health diagnostic — collects signals from CI tools, reports, deferred work, code markers, and open GitHub issues
SkillAFreshness: A★ 4Claude Code +9 - 0.608score
autopilot-roadmap
jankneumann
Execute roadmap items iteratively with policy-aware vendor routing and learning feedback
SkillAFreshness: A★ 4Claude Code +9 - 0.608score
coordination-bridge
jankneumann
HTTP fallback bridge for coordinator when MCP transport is unavailable
SkillAFreshness: A★ 4Claude Code +9 - 0.605score
bao-vault
jankneumann
OpenBao/Vault credential seeding and management scripts
SkillAFreshness: A★ 4Claude Code +9 - 0.599score
autopilot
jankneumann
Orchestrate the full plan-review-implement-validate-PR lifecycle with multi-vendor review convergence
SkillAFreshness: A★ 4Claude Code +9 - 0.571score
collect-transcripts
jankneumann
Ingest raw session transcripts from coding-agent harnesses via vendor-specific adapters, normalize to a common event schema, triage for struggle signals, and…
SkillBFreshness: B★ 4Claude Code +9 - 0.571score
audit-choices
jankneumann
Independent, read-only audit of implementation-time decisions made where the spec was silent, producing a schema-valid choices ledger
SkillBFreshness: B★ 4Claude Code +9 - 0.571score
codebase-atlas
jankneumann
Render the architecture graph as a single self-contained interactive HTML page — foldable structure tree, animated dependency graph, and cross-connection…
SkillBFreshness: B★ 4Claude Code +9 - 0.568score
archive-roadmap
jankneumann
Archive a completed roadmap workspace to openspec/roadmaps/archive/<date>-<id>/
SkillBFreshness: B★ 4Claude Code +9 - 0.568score
coordinator-task-status-renderer
jankneumann
Render and seed coordinator-owned task status block in OpenSpec tasks.md
SkillBFreshness: B★ 4Claude Code +9 - 0.566score
agent-ergonomics
jankneumann
Refine a system design or plan to be maximally agent-intuitive, agent-ergonomic, and agent-accretive — grounded in simulated agent journeys and real friction…
SkillBFreshness: B★ 4Claude Code +9 - 0.565score
context-engineering
jankneumann
Curates the right context for an agent at the right time.
SkillBFreshness: B★ 4Claude Code +9
Signals
- Stars
- 4
- Forks
- 1
- Open issues
- 129
- Last commit (this folder)
- Jul 27, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from jankneumann
- 0.611score
bug-scrub
jankneumann
Comprehensive project health diagnostic — collects signals from CI tools, reports, deferred work, code markers, and open GitHub issues
SkillAFreshness: A★ 4Claude Code +9 - 0.608score
autopilot-roadmap
jankneumann
Execute roadmap items iteratively with policy-aware vendor routing and learning feedback
SkillAFreshness: A★ 4Claude Code +9 - 0.608score
coordination-bridge
jankneumann
HTTP fallback bridge for coordinator when MCP transport is unavailable
SkillAFreshness: A★ 4Claude Code +9 - 0.605score
bao-vault
jankneumann
OpenBao/Vault credential seeding and management scripts
SkillAFreshness: A★ 4Claude Code +9 - 0.599score
autopilot
jankneumann
Orchestrate the full plan-review-implement-validate-PR lifecycle with multi-vendor review convergence
SkillAFreshness: A★ 4Claude Code +9 - 0.571score
audit-choices
jankneumann
Independent, read-only audit of implementation-time decisions made where the spec was silent, producing a schema-valid choices ledger
SkillBFreshness: B★ 4Claude Code +9
Cite this page
debugging-and-error-recovery skill. Agent Mart. https://agentmart.dev/skills/jankneumann-debugging-and-error-recovery (last updated 2026-10-24)