Skip to content
Back to skills

Debugging

ASecurity

How to make a bug fail on demand, by bug class - races, flakes, data bugs, performance regressions - plus bisecting, reading logs and read-only data forensics. Load in the bug flow when writing the reproducing test, and when investigating a confirmed failure.

  • 13 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 6, 2026
ai-agentsgospringdockerdebuggingperformance

Security analysis

A100/100

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

Scanned November 6, 2026

npx -y skills add MiladNalbandi/keel-v2 --skill debugging --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Debugging?

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

Security grade badge for Debugging
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/miladnalbandi-debugging/badge)](https://www.skillsdirectory.com/skills/miladnalbandi-debugging)

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: debugging
description: How to make a bug fail on demand, by bug class - races, flakes, data bugs, performance regressions - plus bisecting, reading logs and read-only data forensics. Load in the bug flow when writing the reproducing test, and when investigating a confirmed failure.
user-invocable: false
---

# Making a bug fail on demand

The hard part of a bug flow is almost never the fix. It is getting the thing to fail
reliably, because until it does there is nothing to confirm at Gate R and no way to know
the fix worked.

Reproduction technique depends on the **class** of bug, and that is the only thing this
skill routes on.

## Load one reference

| The symptom looks like | Class | Read |
|---|---|---|
| Passes alone, fails under load or alongside other work; timing words in the report | race | `references/reproduce-race.md` |
| Passes on rerun, fails in CI, fails only in a certain order | flaky | `references/reproduce-flaky.md` |
| Wrong rows, wrong counts, a constraint or migration involved | data | `references/reproduce-data.md` |
| Slow, timing out, fine with ten rows and not with ten thousand | perf | `references/reproduce-perf.md` |
| Wrong output for a known input, deterministic | plain logic | No reference needed. Write the unit or slice test directly. |

Then, for the investigation itself:

| Need | Read |
|---|---|
| Find the commit that introduced it | `references/bisect.md` |
| Read application logs and a trimmed stack | `references/logs-and-traces.md` |
| Inspect the data without changing it | `references/data-forensics.md` |

## The rule that outranks every technique

**A test that passes for the wrong reason is worse than no test.** A reproducing test has
to fail *because of the bug*, not because of a fixture, a stubbed clock or a coincidence.
If you cannot tell which, you do not have a reproduction yet.

keel refuses a red run that failed on a compile error, a Spring context failure or Docker,
and says which pattern it matched. That refusal is doing its job —
fix the setup rather than arguing with it.

## When it will not reproduce

Say so, and stop. Do not weaken the assertion until something goes red, and do not commit
a test that fails for a reason you cannot name. "Not reproducible yet" is a real answer:
the evidence you gathered is what the next, read-only investigation starts from.

Files in this skill

  • SKILL.md2.3 KB
  • references/bisect.md2.7 KB
  • references/data-forensics.md2.9 KB
  • references/logs-and-traces.md2.9 KB
  • references/reproduce-data.md2.9 KB
  • references/reproduce-flaky.md2.6 KB
  • references/reproduce-perf.md3 KB
  • references/reproduce-race.md2.7 KB

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.