Skip to content
Back to skills

Diagnose

ASecurity

Diagnose Yuzu bugs and performance regressions with a disciplined reproduce-minimize-hypothesize-instrument-fix-regression-test loop. Use when the user says `/diagnose`, "debug this", reports a failure, flake, broken behavior, or performance regression.

  • 19 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 16, 2026
testingperformance

Works with

  • cli

Security analysis

A100/100

Scanned November 16, 2026

npx -y skills add DevNullLtd/Yuzu --skill diagnose --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Diagnose?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Diagnose
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/devnullltd-diagnose/badge)](https://www.skillsdirectory.com/skills/devnullltd-diagnose)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: diagnose
description: Diagnose Yuzu bugs and performance regressions with a disciplined reproduce-minimize-hypothesize-instrument-fix-regression-test loop. Use when the user says `/diagnose`, "debug this", reports a failure, flake, broken behavior, or performance regression.
---

# Diagnose

Build a feedback loop before guessing. Read `CONTEXT.md` and relevant ADRs so hypotheses use Yuzu's domain vocabulary.

## Loop First

Create the fastest deterministic signal that reproduces the user-visible failure:

- focused unit or integration test
- `scripts/start-UAT.sh` plus REST/gRPC/CLI probe
- gateway EUnit/CT/Dialyzer command
- replayed log, request, proto payload, or DB fixture
- reduced harness around a store, handler, plugin, or gateway module
- repeated stress loop for flakes
- perf measurement before changing code

If no loop is possible, stop and ask for the missing artifact or environment. Do not proceed on vibes.

## Phases

1. Reproduce: confirm the loop shows the same symptom the user reported.
2. Minimize: reduce the input, fixture, test, or command until the signal is sharp.
3. Hypothesize: list 3-5 ranked falsifiable hypotheses and the prediction each makes.
4. Instrument: probe one hypothesis at a time. Use debugger/REPL first, targeted logs second.
5. Fix: add the regression test at the correct seam before the fix when possible.
6. Verify: run the original loop, the regression test, and the relevant targeted suite.
7. Cleanup: remove temporary probes and `[DEBUG-...]` logs; delete throwaway harnesses unless intentionally kept under a debug path.

## Yuzu Checks

- For Erlang failures, source `scripts/ensure-erlang.sh`; remember `rebar3 eunit --module` is not isolation.
- For build/test selection, invoke `$yuzu-build`.
- For Meson/proto/plugin/Windows boundaries, invoke the matching Yuzu skill.
- For performance, use measurement scripts such as `scripts/test/perf-gate.sh` or a narrow harness before and after. Perf gates are measure-only unless the specific test enforces a threshold.

## Final Report

State the reproduced symptom, the hypothesis that won, the fix, the regression test, exact validation commands, and any architectural gap that prevented a clean regression test.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.