Skip to content
Back to skills

Diagnose

ASecurity

Disciplined diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose this" / "debug this", reports something broken/throwing/failing, or describes a performance regression.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 19, 2026
ai-agentsgoperformance

Security analysis

A100/100

Scanned September 19, 2026

npx -y skills add konstantinos-malavazos/claude-code-playbook --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/konstantinos-malavazos-diagnose/badge)](https://www.skillsdirectory.com/skills/konstantinos-malavazos-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: >-
  Disciplined diagnosis loop for hard bugs and performance regressions. Use when the user
  says "diagnose this" / "debug this", reports something broken/throwing/failing, or
  describes a performance regression.
---

# Diagnose — a disciplined loop

Don't guess-and-patch. Prove the cause, then fix the cause.

## The loop
1. **Reproduce.** Get a reliable, minimal repro. If you can't reproduce it, you can't
   claim to have fixed it. Say so, and gather more info instead of guessing.
2. **Minimise.** Strip the repro to the smallest input/state that still triggers it.
3. **Hypothesise.** State a specific, falsifiable hypothesis about the cause.
4. **Instrument.** Add logging/assertions/measurements that will confirm or refute the
   hypothesis. Let the data decide. Don't pattern-match to a "usual suspect".
5. **Fix the cause, not the symptom.** Once the data proves the cause, make the smallest
   change that addresses it.
6. **Regression-test.** Add a test that would have caught this (see the `tdd` skill).
   Confirm the repro is gone and nothing else broke.

## For performance regressions
- Measure first: find the actual hot path / bottleneck with data, not intuition.
- Compare against a known-good baseline (a prior commit / tag) where possible.
- Fix the dominant cost. Re-measure to confirm the win is real.

## Discipline
- Never assume. Prove from returned data / measurements.
- Never patch code you don't understand the failure of.
- If the evidence contradicts your first hypothesis, drop it. Don't defend it.

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.

Comments

Loading comments…

Newsletter

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