bug-reproduction-test-generator
Installation
SKILL.md
Bug Reproduction Test Generator
A bug you can't reliably reproduce is a bug you can't reliably fix. This skill turns prose ("it crashes when I upload a big file") into an executable test that is red on the buggy code and will be green once it's fixed.
Step 1 — Classify the input you have
| Input available | First move |
|---|---|
| Stack trace | Top project-code frame → target function; exception → assertion |
| "Steps to reproduce" prose | Translate each step to a setup line; last step → action |
| Log excerpt | Find the first anomalous line; grep for the producer |
| Failing production request (curl, HAR) | Replay against a test harness; wrap in an assertion |
| Screenshot / "it looks wrong" | Not machine-checkable — ask for the data, not the UI |
| "It's intermittent" | Do not write a test yet — first stabilize (Step 4) |
Step 2 — Identify the triple
Every reproduction test is (setup, action, assertion). Extract each: