debugging-and-error-recovery

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

5|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/PHenrique07/Sementis-IFSP-Pirituba --skill debugging-and-error-recovery-phenrique07
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: debugging-and-error-recovery
Source: https://github.com/PHenrique07/Sementis-IFSP-Pirituba/tree/main/.github/skills/debugging-and-error-recovery
Command: npx skills add https://github.com/PHenrique07/Sementis-IFSP-Pirituba --skill debugging-and-error-recovery-phenrique07

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When tests fail, builds break, or behavior stops matching expectations, developers often guess at fixes or patch symptoms instead of causes. This Skill enforces a systematic stop-the-line process that preserves evidence, localizes the failure, and fixes the actual root cause. ## Core Features & Use Cases - Structured Triage Checklist: A six-step ordered process covering reproduce, localize, reduce, fix root cause, guard against recurrence, and verify end-to-end. - Error-Specific Decision Trees: Dedicated triage flows for test failures, build failures, runtime errors, and non-reproducible bugs including timing, environment, and state-dependent issues. - Regression Guarding: Guidance on writing tests that fail without the fix, plus safe fallback patterns and instrumentation rules. - Use Case: A previously passing test suite breaks after a refactor. Follow the checklist to reproduce the failure, use git bisect to find the offending commit, reduce to a minimal case, fix the root cause, and add a regression test before resuming work. ## Quick Start Use the debugging-and-error-recovery skill to triage this failing test and find the root cause instead of guessing.

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 systematically?▼

Reproduce the failure reliably first, then localize which layer is failing, reduce to a minimal failing case, and fix the root cause rather than the symptom. Finish by adding a regression test that fails without the fix and verifying the full suite passes.

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

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

What should I do when a bug is not reproducible?▼

Classify it as 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 add defensive logging with alerts for recurring signatures.

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

Symptom fixes mask the underlying defect, so the bug 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.

When should I remove debug logging from my 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 error boundaries and API error logging with request context.