debugging-and-error-recovery

Guide systematic root-cause debugging with reproduce, localize, reduce, fix, and verify steps.

42|3|Updated May 8, 2026
One-click install
npx skills add https://github.com/KevinKE93/Dev_Agent_OPC --skill debugging-and-error-recovery-kevinke93
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debugging-and-error-recovery
Source: https://github.com/KevinKE93/Dev_Agent_OPC/tree/main/dev-agent/skills/debugging-and-error-recovery
Command: npx skills add https://github.com/KevinKE93/Dev_Agent_OPC --skill debugging-and-error-recovery-kevinke93

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of stalled fixes when tests fail, builds break, or runtime behavior diverges from expectations by guiding you through evidence-preserving, root-cause-oriented debugging instead of guessing.

Core Features & Use Cases

  • Structured triage checklist: Helps you reproduce, localize the failing layer, reduce to a minimal case, and then fix the underlying cause.
  • Regression prevention: Produces a guardrail by adding a targeted test that fails before the fix and passes after it.
  • Verification workflow: Ensures the full scenario is re-checked end-to-end (tests, build, and manual spot checks).
  • Safety for misleading outputs: Treats log output and error text as untrusted diagnostic data, reducing the risk of following malicious or misleading instructions embedded in errors.
  • Use cases: test failures after changes, build/tooling errors, runtime bugs/incident triage, and non-reproducible issues needing instrumentation and documentation.

Quick Start

Use this skill when an unexpected error occurs by preserving the exact logs and repro steps, then follow the triage steps to identify and fix the root cause before resuming development.

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 find the root cause of a build failure or test regression?

Debugging intermittent runtime errors requires preserving exact logs and repro steps, then instrumenting the environment to capture evidence. Treat error text as untrusted diagnostic data to avoid misleading outputs, and document the non-reproducible issue thoroughly during incident recovery.

What is the best way to debug runtime errors during incident troubleshooting?

The best way to debug runtime errors during incident troubleshooting is a stepwise root-cause analysis: reproduce, localize, reduce, fix, guard with tests, and verify end-to-end. This process ensures you fix the underlying cause rather than patching symptoms during production incident triage.

How do I prevent regression issues after fixing a bug?

To prevent regression issues after fixing a bug, add a targeted guardrail test that fails before your fix and passes after it. This regression testing workflow verifies the underlying cause is resolved and prevents future test triage failures.

How do I handle non-reproducible bugs that only fail in certain environments?

Handling non-reproducible bugs and environment-dependent failures requires preserving exact logs and repro steps, then instrumenting the system to capture diagnostic evidence. Treat log output as untrusted data, reduce the failing case to a minimal reproduction, and document the conditions thoroughly.

When should I use a structured debugging process instead of guessing?

You should use a structured debugging process instead of guessing whenever runtime behavior diverges from expectations, tests fail after changes, or build tooling errors occur. Systematic root cause analysis stops the bleeding and prevents stalled fixes by localizing the failing layer before applying changes.