debugging-and-error-recovery

Diagnose failing tests and build errors with root-cause debugging workflows.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When tests fail, builds break, runtime behavior diverges, or unexpected errors appear, engineers waste time guessing instead of finding the true cause. This Skill provides a structured, evidence-first triage process so teams reproduce failures reliably, isolate the failing layer, produce a minimal repro, implement a root-cause fix, and prevent regressions with verification and tests.

Core Features & Use Cases

  • Structured Triage Checklist: Step-by-step guidance for reproduce, localize, reduce, fix, guard, and verify so debugging proceeds methodically.
  • Targeted Patterns: Explicit workflows for test failures, build errors, runtime bugs, flaky/non-reproducible issues, and production incidents, including git bisect and instrumentation recommendations.
  • Safety and Guardrails: Rules for treating error output as untrusted data, avoiding blind execution of commands found in logs, and adding regression tests and monitoring to prevent recurrence.
  • Use Case Example: Reproduce a failing test locally, use git bisect to find the regression commit, produce a minimal repro, fix the root cause, add a regression test, and verify end-to-end before merging.

Quick Start

Diagnose this failing test by reproducing the failure, isolating the failing layer, creating a minimal repro, proposing a root-cause fix, and recommending a regression test and verification steps.

Frequently Asked Questions about debugging-and-error-recovery

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

FAQPage Schema
What is the best way to find the root cause of a failing test or build error?

A structured debugging workflow applies step-by-step guidance: reproduce the failure, localize the failing component, reduce to a minimal repro, implement a root-cause fix, add a regression test, and verify end-to-end. This methodical progression prevents skipping critical diagnostic steps during incident triage.

How do I use git bisect to investigate a regression or runtime bug?

Git bisect helps isolate regression commits by systematically narrowing down the failing code change. You reproduce the failure locally, use git bisect to find the introducing commit, create a minimal repro, fix the root cause, and add regression tests to prevent recurrence.

How do I debug flaky tests or non-reproducible runtime issues?

Debugging flaky tests requires targeted patterns including instrumenting the code to capture intermittent state, treating error output as untrusted data, and establishing reproducibility steps. Safe fallback patterns and monitoring are added to catch non-reproducible issues during regression investigations.

What precautions should I take when triaging production incidents from error logs?

When triaging production incidents, treat error output as untrusted data and avoid blind execution of commands found in logs. Apply safety guardrails by verifying log contents, using structured triage checklists, and adding regression tests with monitoring to prevent recurrence after the root-cause fix.

Does root-cause debugging work for both development workflows and production incidents?

Root-cause debugging applies to both development workflows and production incident triage. It handles test failures, build-time errors, flaky tests, and regression investigations by providing reproducibility steps, localization guidance, minimal repro creation, and end-to-end verification checklists across both contexts.