troubleshoot

Diagnose failures through hypothesis-driven testing, root-cause fixes, and verification loops.

1|Updated May 12, 2026
One-click install
npx skills add https://github.com/mystilleef/spae-framework --skill troubleshoot-mystilleef
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: troubleshoot
Source: https://github.com/mystilleef/spae-framework/tree/main/skills/troubleshoot
Command: npx skills add https://github.com/mystilleef/spae-framework --skill troubleshoot-mystilleef

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Debugging often devolves into guesswork, speculative changes, and fixes that mask symptoms instead of resolving root causes. This Skill enforces a disciplined observe-hypothesize-test-fix-verify cycle so failures are reproduced, root causes are proven with evidence, and fixes are validated before being persisted. ## Core Features & Use Cases - Hypothesis-driven diagnosis: Tests one root-cause hypothesis at a time, escalating to data-flow tracing after three rejections. - Evidence-gated fixes: Requires a failing test reproducing the root cause before applying the smallest safe fix. - Self-cleanup enforcement: Audits the task's own git diff for debug output, dead code, and orphan files before persisting. - Use Case: A CI build fails with a flaky test. Invoke the Skill with the failing test output; it reproduces the failure, isolates the race condition, writes a regression test, applies the fix, and verifies the full suite passes. ## Quick Start Ask the agent to troubleshoot the failing test or error message you are seeing and find the root cause.

Frequently Asked Questions about troubleshoot

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

FAQPage Schema
How do I troubleshoot a failing test systematically?▼

Start by reproducing the failure, then state one likely root cause and a targeted check to confirm or reject it. Test one hypothesis at a time, write a failing test that reproduces the root cause, and apply the smallest safe fix only after evidence confirms it.

What should I do when debugging hypotheses keep failing?▼

After three rejected hypotheses, stop generating new ones and trace the data flow from the entry point instead. This shifts debugging from speculation to direct observation of how data actually moves through the system.

Can this approach handle flaky tests and intermittent failures?▼

Yes, flaky behavior is an explicit use case. The workflow requires reproducing the failure with evidence before fixing, and verification demands the strongest relevant checks pass, which exposes timing and isolation issues.

Why does debugging sometimes leave the codebase worse?▼

Speculative changes, debug prints, and dead code accumulate when fixes are not audited. The cleanup guide mandates auditing the task's own git diff for debug output, unused imports, orphan files, and commented-out code before persisting.

What are the limitations of hypothesis-driven debugging?▼

It requires an actionable symptom such as an error, trace, or failing command; without one, the process halts and asks for clarification. It also forbids editing build configuration or suppressing linter diagnostics, so environment-level issues may be out of scope.