diagnose

Diagnose hard bugs and performance regressions with a six-phase debugging workflow.

228|68|Updated Sep 27, 2023
One-click install
npx skills add https://github.com/SwitchbackTech/compass-calendar --skill diagnose-switchbacktech
Or copy as Structured Prompt for Agentβ–Ό
Please help me install this Agent Skill.
Skill: diagnose
Source: https://github.com/SwitchbackTech/compass-calendar/tree/main/.agents/skills/diagnose
Command: npx skills add https://github.com/SwitchbackTech/compass-calendar --skill diagnose-switchbacktech

SYSTEM DOCUMENTATION & REQUIREMENTS

πŸ’‘ This Skill includes scripts (resource) components.

What problem does it solve?

Disciplined diagnosis loop for hard bugs and performance regressions. Reproduce β†’ minimise β†’ hypothesise β†’ instrument β†’ fix β†’ regression-test. Use when user says "diagnose this" / "debug this", reports a bug, says something is broken/throwing/failing, or describes a performance regression.

Core Features & Use Cases

  • Structured six-phase workflow guiding bug isolation from reproduction to verification.
  • Emphasis on deterministic loops, instrumentation, and test design to maximize reproducibility.
  • Helps teams triage, hypothesise, and converge on a fix with measurable signals.

Quick Start

Follow Phase 1 to Phase 6 steps to reproduce a bug, instrument behavior, and validate a fix.

Frequently Asked Questions about diagnose

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

FAQPage Schema
What is a structured debugging loop for diagnosing hard bugs and performance regressions?β–Ό

A structured debugging loop for hard bugs is a six-phase workflow: build a feedback loop, reproduce, hypothesise, instrument, fix, and regression-test. It maximizes reproducibility by enforcing deterministic signals and structured logs across unit, integration, and end-to-end scenarios.

How do I debug a hard bug that only appears in integration or end-to-end scenarios?β–Ό

To debug a hard bug across integration and end-to-end scenarios, start by building a deterministic reproduction loop. Once reproduced, form a hypothesis, instrument the code for measurable signals, implement the fix, and verify it with regression tests.

What's the best way to triage a bug and minimize its reproduction steps?β–Ό

The best way to triage a bug is to build a repeatable feedback loop and reproduce it deterministically. After reproduction, minimize the failing scenario and hypothesise the root cause before adding instrumentation to capture structured, measurable signals.

Does hypothesis-driven investigation work for performance regressions in large codebases?β–Ό

Hypothesis-driven investigation works for performance regressions in large codebases by applying deterministic reproduction and targeted instrumentation. You build a feedback loop, hypothesise the bottleneck, instrument for measurable signals, and validate the fix with regression tests.

How do I verify a bug fix and prevent future performance regressions?β–Ό

You verify a bug fix and prevent future regressions by executing the regression-test phase of the debugging loop. After hypothesising and fixing the issue, you design regression tests that run across unit, integration, and end-to-end scenarios to ensure deterministic verification.

When should I use a disciplined diagnosis loop instead of ad-hoc debugging?β–Ό

You should use a disciplined diagnosis loop instead of ad-hoc debugging when facing hard bugs or performance regressions that require deterministic reproduction. If the bug is difficult to consistently reproduce or needs structured instrumentation for measurable signals, this workflow converges on a fix faster.