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/qiuyi-hong-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
- 300 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
<!-- Generated from upstream/agent-skills/skills/debugging-and-error-recovery/SKILL.md by scripts/generate-command-skills.ts; do not edit. -->
> **Pi compatibility:** Upstream `/command` references map to generated `/skill:command` skills.
# 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 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 (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 issue
A minimal reproduction makes the root cause obvious and prevents fixing symptoms instead of causes.
### Step 4: Fix the Root CauseFrom Qiuyi-Hong/pi-addyosmani-skills, MIT.
More from Qiuyi-Hong/pi-addyosmani-skills
- 0.558score
code-simplify
Qiuyi-Hong
Simplify code for clarity and maintainability — reduce complexity without changing behavior
SkillAFreshness: AClaude Code +9 - 0.558score
constraints
Qiuyi-Hong
Define and enforce this project's quality bar — interview, sane defaults, CONSTRAINTS.md
SkillAFreshness: AClaude Code +9 - 0.558score
ship
Qiuyi-Hong
Run the pre-launch checklist via parallel fan-out to specialist personas, then synthesize a go/no-go decision
SkillAFreshness: AClaude Code +9 - 0.558score
build
Qiuyi-Hong
Implement tasks incrementally — build, test, verify, commit.
SkillAFreshness: AClaude Code +9 - 0.553score
spec
Qiuyi-Hong
Start spec-driven development — write a structured specification before writing code
SkillAFreshness: AClaude Code +9 - 0.553score
plan
Qiuyi-Hong
Break work into small verifiable tasks with acceptance criteria and dependency ordering
SkillAFreshness: AClaude Code +9 - 0.553score
review
Qiuyi-Hong
Conduct a five-axis code review — correctness, readability, architecture, security, performance
SkillAFreshness: AClaude Code +9 - 0.528score
test
Qiuyi-Hong
Run TDD workflow — write failing tests, implement, verify.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 2, 2026 (28 days ago)
- Last release
- Sep 28, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- 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
weisser-dev
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 Qiuyi-Hong
- 0.558score
code-simplify
Qiuyi-Hong
Simplify code for clarity and maintainability — reduce complexity without changing behavior
SkillAFreshness: AClaude Code +9 - 0.558score
constraints
Qiuyi-Hong
Define and enforce this project's quality bar — interview, sane defaults, CONSTRAINTS.md
SkillAFreshness: AClaude Code +9 - 0.558score
ship
Qiuyi-Hong
Run the pre-launch checklist via parallel fan-out to specialist personas, then synthesize a go/no-go decision
SkillAFreshness: AClaude Code +9 - 0.558score
build
Qiuyi-Hong
Implement tasks incrementally — build, test, verify, commit.
SkillAFreshness: AClaude Code +9 - 0.553score
spec
Qiuyi-Hong
Start spec-driven development — write a structured specification before writing code
SkillAFreshness: AClaude Code +9 - 0.553score
plan
Qiuyi-Hong
Break work into small verifiable tasks with acceptance criteria and dependency ordering
SkillAFreshness: AClaude 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/qiuyi-hong-debugging-and-error-recovery (last updated 2026-10-24)