Skip to content
Back to skills

Diagnosing Bugs

ASecurity

Diagnose hard bugs, flakes, regressions, and performance issues through reproduction, minimization, hypothesis, instrumentation, fix, and regression testing. Use when root cause is unclear, behavior is intermittent, a first fix failed, or the user asks to debug/diagnose a problem rather than simply implement known behavior.

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 19, 2026
ai-agentsrailstestingperformance

Security analysis

A100/100

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

Scanned November 19, 2026

npx -y skills add AnonymXXX/agent-harness-engineering --skill diagnosing-bugs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Diagnosing Bugs?

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

Security grade badge for Diagnosing Bugs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anonymxxx-diagnosing-bugs/badge)](https://www.skillsdirectory.com/skills/anonymxxx-diagnosing-bugs)

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: diagnosing-bugs
description: Diagnose hard bugs, flakes, regressions, and performance issues through reproduction, minimization, hypothesis, instrumentation, fix, and regression testing. Use when root cause is unclear, behavior is intermittent, a first fix failed, or the user asks to debug/diagnose a problem rather than simply implement known behavior.
---

# Diagnosing Bugs

Do not guess. Build a tight feedback loop, then fix the smallest proven cause.

## Process

1. Reproduce the bug with one command or one clearly described manual path.
2. Minimize the reproduction until unrelated moving parts are removed.
3. Compare expected behavior against docs, tests, specs, and code.
4. Form one hypothesis at a time.
5. Instrument narrowly with logs, assertions, temporary probes, or focused tests.
6. Fix only after evidence supports the cause.
7. Add or update a regression test at the highest practical public seam.
8. Run focused validation and applicable project-required checks. Broaden only when the affected surface or unresolved evidence justifies it.

## Guardrails

- If reproduction is impossible, report what was tried and what evidence is missing.
- Do not perform broad refactors during diagnosis unless the lack of a seam blocks regression coverage; in that case, use `$codebase-design`.
- If the bug reveals a candidate durable invariant, apply the Harness Capture Gate before writing it; use `domain-modeling` when terminology or ownership needs clarification.
- Remove temporary instrumentation before finishing unless it is intentionally retained as useful observability.

## Completion

Report:

- reproduction command or path;
- root cause and evidence;
- fix summary;
- regression test added or why none was possible;
- validation commands run.

Files in this skill

  • LICENSE.txt1.1 KB
  • SKILL.md1.7 KB
  • agents/openai.yaml217 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.