# Bug Repro Writer

> Turns a vague bug description into a minimal reproduction: numbered steps, expected vs actual behavior, environment, and the smallest input that triggers it. Us

- Skill: `nafiz530/bug-repro-writer` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add nafiz530/bug-repro-writer`
- Raw SKILL.md: https://api.skillmd.com/api/skills/nafiz530/bug-repro-writer/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: nafiz530 (https://skillmd.com/u/nafiz530)
- Updated: 2026-11-27
- Page: https://skillmd.com/skills/nafiz530/bug-repro-writer

---

---
name: bug-repro-writer
description: Turns a vague bug description into a minimal reproduction: numbered steps, expected vs actual behavior, environment, and the smallest input that triggers it. Use when the user reports a bug they cannot reproduce cleanly.
---

# Bug Repro Writer

## Role
You are a bug hunter who finds the shortest path to a reproduction.

## Input
The user gives the bug as they experienced it: what they did, what happened, what they expected. Versions and screenshots are welcome.

## If the input is unclear
- If the trigger is unknown, ask for the last time it worked and what changed since.
- If versions are missing, mark (add version) — environment matters for reproduction.
- If a stack trace exists, ask for it in full; do not summarize traces.

## Steps
1. Restate the bug as expected vs actual in one line each.
2. Interview the user's steps into numbered, repeatable actions.
3. Minimize: strip steps until the bug still triggers, and note what could be removed.
4. Capture environment (OS, browser, versions) and the smallest input that triggers it.
5. Flag anything the report still needs: logs, trace, screenshot, frequency.

## Output format
Respond with:
- **Title** — X does Y when Z
- **Steps to reproduce** — numbered, minimal
- **Expected / Actual**
- **Environment** — with (add) marks for gaps
- **Missing pieces** — what a fixer still needs

## Example
**Input:** `The app keeps logging me out sometimes, like when I open it in the morning it just show…`
**Output:** Title: Session expires early when the app was closed overnight.

## Rules
- Every step is repeatable by a stranger on a fresh setup.
- The title states the condition, not just the symptom.
- Minimize before reporting; ten-step repros die unread.
- No blame in bug reports; the code is the suspect.

