Skip to content
Back to skills

diagnose

ASecurity

Debug coding failures through reproduction, ranked hypotheses, narrow fixes, and verification. Use when a bug, regression, flaky test, performance failure, or inconsistent behavior is broken, slow, throwing, or hard to reproduce and the task needs disciplined diagnosis instead of guessed fixes.

  • 16 stars
  • 0 votes
  • 2 copies
  • 10 views
  • Added June 15, 2026
ai-agentsperformance

Works with

  • cli

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned June 15, 2026

npx -y skills add markoblogo/abvx-agent-skills --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/markoblogo-diagnose/badge)](https://www.skillsdirectory.com/skills/markoblogo-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: Debug coding failures through reproduction, ranked hypotheses, narrow fixes, and verification. Use when a bug, regression, flaky test, performance failure, or inconsistent behavior is broken, slow, throwing, or hard to reproduce and the task needs disciplined diagnosis instead of guessed fixes.
license: MIT
metadata:
  abvx_status: experimental
  abvx_origin: adapted
---

# Diagnose

The core job is to build a reliable feedback loop. Without one, hypotheses are weak.

## Phase 1: Feedback Loop

Create the smallest useful pass/fail signal:

- failing test;
- CLI command with fixture;
- HTTP request against local server;
- browser script;
- replayed trace or payload;
- small harness around the relevant function;
- repeated flake trigger with counted failure rate.

If no loop can be built, state what was tried and ask for logs, traces, access, or permission to instrument.

## Phase 2: Reproduce

Confirm the loop matches the user's symptom, not a nearby failure. Capture exact error text, wrong output, timing, network failure, or UI state.

For nondeterministic issues, raise the reproduction rate with repetition, stress, seeded randomness, timing controls, and isolation.

## Phase 3: Hypothesize

Write 3-5 ranked hypotheses before editing. Each must include:

```text
Hypothesis:
Prediction:
Probe:
Result:
Status:
```

Test one variable at a time. Update rankings as evidence arrives.

## Phase 4: Instrument

- Prefer debugger, REPL, targeted logs, traces, or profiler over broad logging.
- Tag temporary instrumentation with a unique marker such as `[DEBUG-7b3c]`.
- Remove all temporary instrumentation before finalizing.
- For performance regressions, measure first and fix second.

## Phase 5: Fix And Regression Test

If a correct seam exists, turn the minimized repro into a failing regression check before the fix. If no correct seam exists, document that as an architecture gap.

Apply the smallest fix supported by evidence, then rerun:

- the regression check;
- the original feedback loop;
- relevant project checks.

## Final Report

Include root cause, winning hypothesis, files changed, verification, debug cleanup, and residual risk.

Files in this skill

  • SKILL.md2.1 KB
  • SKILL_CARD.md1.1 KB
  • agents/openai.yaml218 B

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 ai-agents →

Comments

Loading comments…

Newsletter

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