agentleFS
CaduS0uzaCaduS0uza/qa-supreme/skills/bug-repro/SKILL.md

bug-repro

Skill1 starsChanged 2 months agoMITView on GitHub

Turn a vague bug report into a minimal, deterministic reproduction and a failing regression test before any fix is attempted. Use when handed a bug report, a support ticket, a screenshot of an error, or "it doesn't work" with no steps.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Only now hand off to the fix.

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Bug Reproduction

A bug you cannot reproduce is a bug you cannot prove you fixed. This skill produces two artifacts: the smallest set of steps that trigger it, and a test that fails because of it.

Extract the report

From whatever you were given, fill these six fields. Missing fields are questions to ask, not blanks to imagine:

FieldExample
Environmentprod, Chrome 141, macOS, tenant acme
Account/roleadmin vs member — most "works for me" cases die here
Exact stepsnumbered, one action per line
Expectedwhat the user believed would happen
Actualincluding the exact error text and any request id
Frequencyalways / N of M / only after X

Reproduce, then minimize

  1. Reproduce it once, exactly as reported. Nothing is real until this happens.
  2. Minimize by bisection: remove one step, re-run. Keep removing while it still fails.
  3. Narrow the data: smallest payload, fewest rows, shortest string that still triggers it.
  4. Narrow the layer: does the API alone reproduce it without the UI? Then it is not a UI bug, and the regression test belongs at the API level — cheaper and faster forever.
  5. Record the minimal repro verbatim, including the seed data required.

Write the failing test first

RED   tests/api/orders.spec.ts:88  "webhook retry creates a second charge"
      -> 1 failed  ✓ (the bug is now encoded)

Only now hand off to the fix. After the fix, the same test must go green — and it must be possible to make it red again by reverting the fix (mutation-proof). Without that, you fixed something, but not provably this.

When it will not reproduce

Say so explicitly rather than guessing. Then attack the difference: data, permissions, timing, cache, feature flags, browser, locale, timezone. Add logging around the suspected boundary and ask for the request id from a real occurrence. An unreproduced bug stays open — never close it as "cannot reproduce" while users are hitting it; escalate it to root-cause-protocol with what you learned.

Output

REPRO  3 steps (from 11 reported), tenant seed: acme-min.sql
1. POST /webhooks/stripe with event id evt_1 -> 200
2. POST /webhooks/stripe with the same event id evt_1 -> 200
3. SELECT count(*) FROM charges WHERE event_id='evt_1' -> 2   (expected 1)
REGRESSION TEST  tests/api/orders.spec.ts:88 -> failing as required

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.