agent-skills-debugging-and-error-recovery

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When tests fail, builds break, or runtime behavior goes wrong, developers often guess at fixes or patch symptoms instead of root causes. This Skill enforces a disciplined stop-the-line debugging process that preserves evidence, localizes failures, and prevents regressions. ## Core Features & Use Cases - Structured Triage Checklist: Six ordered steps—reproduce, localize, reduce, fix root cause, guard with a regression test, and verify end-to-end. - Error-Specific Decision Trees: Dedicated triage flows for test failures, build failures, and runtime errors, plus guidance for non-reproducible and flaky bugs. - Safe Fallback & Instrumentation Patterns: Graceful degradation code patterns, rules for when to add or remove logging, and a checklist for verifying fixes. - Use Case: A CI build fails after a dependency update. Follow the build failure triage tree to classify the error type, use git bisect to find the offending commit, fix the root cause, and add a regression test before resuming feature work. ## Quick Start Ask the agent to systematically debug the failing test or broken build using the root-cause triage process instead of guessing at a fix.

Frequently Asked Questions about agent-skills-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 systematically?

Start by reproducing the failure reliably, 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.

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 test command to identify the exact offending commit.

What should I do when a bug is not reproducible?

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, and set up logging or alerts to capture the error signature when it recurs.

Why is fixing symptoms instead of root causes a problem?

Symptom fixes mask the underlying defect, which resurfaces elsewhere and compounds with later changes. Asking why the failure happens until reaching the actual cause ensures the fix is durable and the regression test guards the real issue.

When should I remove debug logging from code?

Remove instrumentation once the bug is fixed and a regression test guards 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.