diagnose

Diagnose hard bugs and performance regressions through a structured reproduce-hypothesise-fix workflow.

Updated May 10, 2026
One-click install
npx skills add https://github.com/rexshihaoren/rexy_vibing_setup --skill diagnose-rexshihaoren
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: diagnose
Source: https://github.com/rexshihaoren/rexy_vibing_setup/tree/main/docs/ai/skills/diagnose
Command: npx skills add https://github.com/rexshihaoren/rexy_vibing_setup --skill diagnose-rexshihaoren

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Hard bugs and performance regressions stall when developers stare at code without a reliable reproduction signal. This Skill enforces a disciplined six-phase loop — build a feedback loop, reproduce, hypothesise, instrument, fix, and clean up — so debugging becomes systematic instead of guesswork. ## Core Features & Use Cases - Feedback-loop construction: Ten ranked strategies for building a deterministic pass/fail signal, from failing tests and curl scripts to headless browser runs, replayed traces, fuzz loops, and git bisect harnesses. - Ranked falsifiable hypotheses: Generates 3–5 hypotheses with explicit predictions before testing, avoiding single-hypothesis anchoring. - Tagged instrumentation and cleanup: Every debug log gets a unique [DEBUG-xxxx] prefix so removal is a single grep, and the post-mortem phase captures the root cause in the commit message. - Use Case: A user reports that an export button intermittently throws an error. The Skill guides the agent to build a reproduction loop (using the included human-in-the-loop bash template if needed), reproduce the failure, test ranked hypotheses one variable at a time, write a regression test at the correct seam, and verify the fix. ## Quick Start Ask the agent to diagnose the bug where the export button intermittently throws an error and have it build a reproduction loop first.

Frequently Asked Questions about diagnose

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

FAQPage Schema
How do I debug an intermittent or flaky bug?▼

Raise the reproduction rate instead of chasing a clean repro: loop the trigger 100 times, parallelise, add stress, narrow timing windows, or inject sleeps. A 50%-flake bug is debuggable; keep increasing the rate until hypothesis testing becomes practical.

How to reproduce a bug that only a human can trigger in the UI?▼

Use the included human-in-the-loop bash template (scripts/hitl-loop.template.sh). It prompts the user through structured steps, captures their answers as KEY=VALUE output, and feeds the results back to the agent so the loop stays structured.

What should I do before writing a fix for a bug?▼

Build a deterministic feedback loop, reproduce the exact user-reported symptom, and write 3–5 ranked falsifiable hypotheses with explicit predictions. Then write the regression test before the fix, but only if a correct test seam exists.

How do I debug a performance regression?▼

Establish a baseline measurement first using a timing harness, profiler, or query plan, then bisect against it. Logs are usually the wrong tool for performance work; measure first and fix second.

What if I cannot build any reproduction loop for a bug?▼

Stop and say so explicitly, listing what you tried. Ask the user for environment access, a captured artifact such as a HAR file or core dump, or permission to add temporary production instrumentation rather than hypothesising blindly.

When should a regression test not be written?▼

Skip it when no correct seam exists — for example when a unit test cannot replicate the multi-caller chain that triggered the bug. A shallow test gives false confidence; document the missing seam as an architectural finding instead.