diagnose

Diagnose hard bugs and performance regressions with a deterministic pass/fail feedback loop.

3|Updated May 11, 2026
One-click install
npx skills add https://github.com/JeromyJSmith/lattice-platform --skill diagnose-jeromyjsmith
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: diagnose
Source: https://github.com/JeromyJSmith/lattice-platform/tree/main/.agents/skills/diagnose
Command: npx skills add https://github.com/JeromyJSmith/lattice-platform --skill diagnose-jeromyjsmith

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps you systematically diagnose hard bugs and performance regressions by converting vague failures into a reproducible feedback loop with clear pass/fail signals.

Core Features & Use Cases

  • Reproduce → minimise: Builds a reliable way to trigger the exact failure and reduce it to the smallest useful repro.
  • Hypothesise → instrument: Generates ranked falsifiable hypotheses, then tests them by changing one variable at a time with targeted probes.
  • Fix → regression-test: Locks in the fix using the best available test seam and verifies the original scenario no longer fails.

Quick Start

Tell the AI to diagnose the issue you’re seeing and include the failing behavior, error messages or symptoms, and any commands or traces you already have.

Frequently Asked Questions about diagnose

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

FAQPage Schema
How do I debug flaky test failures that are hard to reproduce?

Debug flaky failures by building a deterministic feedback loop that produces a consistent pass/fail signal. You construct a reproduction via tests or scripts, confirm reproducibility, and then isolate variables to verify the fix.

What is hypothesis testing in software debugging and when should I use it?

Hypothesis testing in debugging is the process of generating ranked, falsifiable predictions about a failure and validating them with targeted instrumentation. Use it when reproduction is missing, failures are flaky, or you need evidence-based fixes.

How do I diagnose a performance regression with no clear trigger?

Diagnose a performance regression by building a fast feedback loop that captures the exact degradation as a pass/fail signal. Generate falsifiable hypotheses, isolate variables during instrumentation, and conclude with a regression test.

Can I use scripts to isolate variables when debugging intermittent issues?

Yes, scripts are used to construct the deterministic feedback loop and apply targeted probes. By changing one variable at a time within these scripts, you isolate the root cause of intermittent issues and confirm reproducibility.

What is the best way to fix hard bugs without a reliable reproduction case?

The best way to fix hard bugs without a reproduction is to build a deterministic loop that forces a clear pass/fail signal. You minimize the repro, generate ranked hypotheses, and isolate variables through targeted instrumentation.

Why does regression testing matter after fixing a flaky failure?

Regression testing matters because it locks in the fix using the best available test seam and verifies the original scenario no longer fails. This ensures the deterministic feedback loop confirms the issue is permanently resolved.