spectra-debug

Reproduce, isolate, and confirm root causes with a four-phase debugging workflow.

Updated Mar 26, 2024
One-click install
npx skills add https://github.com/SHUSHU010829/shushu.tw --skill spectra-debug-shushu010829
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spectra-debug
Source: https://github.com/SHUSHU010829/shushu.tw/tree/main/.claude/skills/spectra-debug
Command: npx skills add https://github.com/SHUSHU010829/shushu.tw --skill spectra-debug-shushu010829

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enforces a disciplined, multi-phase approach to debugging that eliminates guessing and unstructured trial-and-error.

Core Features & Use Cases

  • Structured four-phase workflow: Reproduce, Isolate, Root Cause, and Fix with guardrails.
  • Evidence-based debugging: Requires explicit steps, tests, and logging to validate hypotheses.
  • Use Case: When investigating a flaky bug in a large codebase, follow the phases to reliably identify the root cause and implement a minimal fix.

Quick Start

Run the spectra-debug command with a description of the bug to trigger the guided four-phase debugging process.

Frequently Asked Questions about spectra-debug

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

FAQPage Schema
How do I reproduce a flaky bug reliably in a large codebase?

To debug systematically, follow a four-phase workflow: Reproduce, Isolate, Root Cause, and Fix. This enforces a disciplined approach that eliminates guessing and unstructured trial-and-error.

How do I isolate a bug using binary search across modules?

Isolate a bug by performing binary search across modules, functions, and boundaries. This process involves adding targeted logging and using git bisect when applicable to systematically narrow down the problematic code.

What is the best way to confirm a root cause before applying a fix?

Confirm a root cause by testing hypotheses, predicting outcomes, and designing a failing test that proves the issue. This evidence-based debugging requires explicit steps and tests to validate hypotheses before applying a fix.

Does evidence-based debugging work without git bisect?

Yes, evidence-based debugging works without git bisect by adding targeted logging and testing hypotheses across module boundaries. Git bisect is used only when applicable to further isolate the bug.

Why should I use a structured workflow for root cause analysis instead of trial-and-error?

A structured workflow for root cause analysis eliminates guessing and unstructured trial-and-error. It enforces a disciplined, multi-phase approach requiring explicit steps, tests, and logging to validate hypotheses.