# Debugging And Error Recovery

> Diagnose and fix backend/API failures with a structured reproduce-isolate-fix-verify workflow.

- Skill: `counterpointconsulting/debugging-and-error-recovery-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add counterpointconsulting/debugging-and-error-recovery-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/counterpointconsulting/debugging-and-error-recovery-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: CounterpointConsulting (https://skillmd.com/u/counterpointconsulting)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/counterpointconsulting/debugging-and-error-recovery-2

---


# Debugging and Error Recovery (TypeScript API)

## Overview
Use a controlled workflow to fix failures without expanding scope or introducing regressions.

## When to Use
- Failing tests or runtime errors
- Behavior deviating from requirements
- Regression reports after recent changes

## When NOT to Use
- Greenfield implementation without a specific failure signal

## Inputs
- Error output and reproduction steps
- Relevant code paths and recent changes
- Existing tests around failing behavior

## Process
1. Reproduce issue reliably.
2. Isolate failing boundary.
3. Add/adjust failing test for issue.
4. Implement minimal targeted fix.
5. Verify fix and regression safety.

## Verification Checklist
- [ ] Reproduction exists before fix
- [ ] Root cause identified clearly
- [ ] Fix is minimal and scoped
- [ ] Related tests pass post-fix

## Failure Modes to Avoid
- Guess-based fixes without reproduction
- Broad refactors during incident response
- Closing issue without regression checks

## Output Requirements
- Use `summarize` for final output.
- Include root cause, fix summary, and verification evidence.

