debugging-and-error-recovery

Diagnose test failures, build errors, and runtime bugs through systematic root-cause triage.

Updated Apr 28, 2026
One-click install
npx skills add https://github.com/visdomtech/skills --skill debugging-and-error-recovery-visdomtech
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: debugging-and-error-recovery
Source: https://github.com/visdomtech/skills/tree/main/debugging-and-error-recovery
Command: npx skills add https://github.com/visdomtech/skills --skill debugging-and-error-recovery-visdomtech

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When tests fail, builds break, or behavior stops matching expectations, guessing at fixes wastes time and compounds errors. This Skill enforces a structured debugging process that finds and fixes the root cause instead of patching symptoms. ## Core Features & Use Cases - Structured Triage Checklist: A six-step process covering reproduce, localize, reduce, fix root cause, guard against recurrence, and verify end-to-end. - Error-Specific Decision Trees: Targeted triage flows for test failures, build failures, runtime errors, and non-reproducible bugs including timing, environment, and state-dependent issues. - Regression Prevention: Guidance on writing tests that fail without the fix, using git bisect for regression hunting, and safe fallback patterns for graceful degradation. - Use Case: A test suite fails after a refactor. Instead of guessing, you follow the checklist: reproduce the failure in isolation, bisect to the offending commit, reduce to a minimal case, fix the actual cause, and add a regression test before resuming feature work. ## Quick Start Ask the AI to systematically debug the failing test or broken build by following the triage checklist to find the root cause.

Frequently Asked Questions about debugging-and-error-recovery

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug a failing test after a code change?▼

Reproduce the failure reliably first, then localize which layer is failing and reduce to a minimal failing case. Fix the root cause rather than the symptom, add a regression test that fails without the fix, and verify the full suite passes before continuing.

How to find which commit introduced a bug with git bisect?▼

Run git bisect start, mark the current commit as bad and a known working commit as good, then test each midpoint checkout. You can automate it with git bisect run followed by your focused test command to identify the offending commit.

What should I do when a bug cannot be reproduced?▼

Classify whether it is timing-dependent, environment-dependent, state-dependent, or truly random. Add timestamps or artificial delays for race conditions, compare environments and data states, run scenarios in isolation, and set up logging or alerts for the error signature.

Why is fixing symptoms instead of root causes a problem?▼

Symptom fixes mask the underlying issue, which resurfaces elsewhere and compounds with later changes. Asking why the failure happens until reaching the actual cause, such as fixing a duplicating JOIN query rather than deduplicating in the UI, prevents recurrence.

Should I skip a flaky test to keep working on features?▼

No. Flaky tests mask real bugs, and pushing past failures compounds errors across subsequent work. Stop adding changes, investigate the timing, order dependence, or external dependencies causing flakiness, and fix it before resuming.

When should debugging instrumentation be removed?▼

Remove temporary logging once the bug is fixed and regression tests guard against recurrence, or when logs are only useful during development. Always remove logs containing sensitive data, but keep permanent instrumentation like error boundaries and API error logging.