Skip to content
Back to skills

Diagnose

ASecurity

Finds the root cause of a failure before any fix: reproduces it, reads the full error, traces where it starts, tests one hypothesis at a time, then fixes the cause and records the reproduction passing. Use when a test fails or tests that passed before are now red, an error or stack trace appears, something that worked before now throws an error, a build breaks, users report wrong results or a regression after a change or deploy, something got slow, or the user asks why something fails or beha...

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 29, 2026
ai-agentsgo

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add Mouad1/moskills --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/mouad1-diagnose/badge)](https://www.skillsdirectory.com/skills/mouad1-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: "Finds the root cause of a failure before any fix: reproduces it, reads the full error, traces where it starts, tests one hypothesis at a time, then fixes the cause and records the reproduction passing. Use when a test fails or tests that passed before are now red, an error or stack trace appears, something that worked before now throws an error, a build breaks, users report wrong results or a regression after a change or deploy, something got slow, or the user asks why something fails or behaves unexpectedly, even if they do not say diagnose or debug. Not for building a new feature; use tdd."
---

# Diagnose

Primary goal: Find root cause before fixing.

## Steps

1. Reproduce the issue with exact command, input, or user path.
2. Read the full error output.
3. Identify what changed recently.
4. Trace where the bad value, state, or behavior starts.
5. Form one hypothesis.
6. Test that hypothesis with the smallest check.
7. Fix the root cause.
8. Run the reproduction again and record the result.

## Report Format

```text
Symptom:
Reproduction:
Evidence:
Root Cause:
Fix:
Verification:
```

## Rules

- Do not stack random fixes.
- Do not fix symptoms when the cause is still unknown.
- If three fixes fail, stop and question the approach.
- Use `/tdd` when a regression test can capture the issue.

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.