Chalk Labs
Need help deploying debugging-and-error-recovery?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
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/kevinnft-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, behavior doesn't match expectations, or you encounter any unexpected error. Use when you need a systematic approach to finding and fixing the root cause rather than guessing.
- License
- MIT
- Instructions
- 297 lines in SKILL.md · view on GitHub
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, 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 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
├── Set up an alert for the specific error signature
└── Document the conditions observed and revisit when it recurs
```
For test failures:
```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"
```
### 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 issue
A minimal reproduction makes the root cause obvious and prevents fixing symptoms instead of causes.
### Step 4: Fix the Root Cause
Fix the underlying issue, not the symptom:From kevinnft/ai-agent-skills, MIT.
More from kevinnft/ai-agent-skills
- 0.549score
idea-refine
kevinnft
Refines ideas iteratively.
SkillCFreshness: C★ 14Claude Code +9 - 0.547score
git-workflow-and-versioning
kevinnft
Structures git workflow practices.
SkillCFreshness: C★ 14Claude Code +9 - 0.547score
incremental-implementation
kevinnft
Delivers changes incrementally.
SkillCFreshness: C★ 14Claude Code +9 - 0.547score
source-driven-development
kevinnft
Grounds every implementation decision in official documentation.
SkillCFreshness: C★ 14Claude Code +9 - 0.547score
using-agent-skills
kevinnft
Discovers and invokes agent skills.
SkillCFreshness: C★ 14Claude Code +9 - 0.547score
planning-and-task-breakdown
kevinnft
Breaks work into ordered tasks.
SkillCFreshness: C★ 14Claude Code +9 - 0.547score
spec-driven-development
kevinnft
Creates specs before coding.
SkillCFreshness: C★ 14Claude Code +9 - 0.546score
drawio-headless
kevinnft
Generate architecture diagrams with draw.io in headless/server environments (WSL2, VPS, Docker)
SkillCFreshness: C★ 14Claude Code +9 - 0.543score
performance-optimization
kevinnft
Optimizes application performance.
SkillCFreshness: C★ 14Claude Code +9 - 0.543score
shipping-and-launch
kevinnft
Prepares production launches.
SkillCFreshness: C★ 14Claude Code +9 - 0.543score
creative-ideation
kevinnft
Generate project ideas via creative constraints.
SkillCFreshness: C★ 14Claude Code +9 - 0.543score
frontend-ui-engineering
kevinnft
Builds production-quality UIs.
SkillCFreshness: C★ 14Claude Code +9
Signals
- Stars
- 14
- Forks
- 2
- Open issues
- 1
- Last commit (this folder)
- May 15, 2026 (5 months ago)
- Last release
- Jul 22, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/kevinnft/ai-agent-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.577score
debugging-and-error-recovery
ajyadav013
Guides systematic root-cause debugging.
SkillBFreshness: B★ 14Claude Code +9 - 0.324score
debugging-and-error-recovery
eyalgo
Guides systematic root-cause debugging.
SkillAFreshness: AClaude Code +9 - 0.324score
debugging-and-error-recovery
Zwin-ux
Guides systematic root-cause debugging.
SkillAFreshness: AClaude Code +9 - 0.313score
debugging-and-error-recovery
amirulhazym
Guides systematic root-cause debugging.
SkillBFreshness: B★ 1Claude Code +9 - 0.310score
debugging-and-error-recovery
cyalcala
Guides systematic root-cause debugging.
SkillBFreshness: B★ 1Claude Code +9 - 0.306score
debugging-and-error-recovery
Undermybelt
Guides systematic root-cause debugging.
SkillCFreshness: C★ 10Claude Code +9 - 0.300score
debugging-and-error-recovery
StreamingBoss
Guides systematic root-cause debugging.
SkillBFreshness: BClaude Code +9 - 0.300score
debugging-and-error-recovery
Partners-in-Biz
Guides systematic root-cause debugging.
SkillBFreshness: BClaude Code +9 - 0.297score
debugging-and-error-recovery
publieople
Guides systematic root-cause debugging.
SkillBFreshness: BClaude Code +9 - 0.297score
debugging-and-error-recovery
AI-Degen-69
Guides systematic root-cause debugging.
SkillBFreshness: BClaude Code +9 - 0.297score
debugging-and-error-recovery
Yazeed-Alotaibi
Guides systematic root-cause debugging.
SkillBFreshness: BClaude Code +9 - 0.297score
debugging-and-error-recovery
DP16102005
Guides systematic root-cause debugging.
SkillBFreshness: BClaude Code +9
More from kevinnft
- 0.549score
idea-refine
kevinnft
Refines ideas iteratively.
SkillCFreshness: C★ 14Claude Code +9 - 0.547score
planning-and-task-breakdown
kevinnft
Breaks work into ordered tasks.
SkillCFreshness: C★ 14Claude Code +9 - 0.547score
git-workflow-and-versioning
kevinnft
Structures git workflow practices.
SkillCFreshness: C★ 14Claude Code +9 - 0.547score
source-driven-development
kevinnft
Grounds every implementation decision in official documentation.
SkillCFreshness: C★ 14Claude Code +9 - 0.547score
using-agent-skills
kevinnft
Discovers and invokes agent skills.
SkillCFreshness: C★ 14Claude Code +9 - 0.547score
incremental-implementation
kevinnft
Delivers changes incrementally.
SkillCFreshness: C★ 14Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get debugging-and-error-recovery running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
debugging-and-error-recovery skill. Agent Mart. https://agentmart.dev/skills/kevinnft-debugging-and-error-recovery (last updated 2026-10-24)