- Coding
- Skill
- Intermediate
- Claude Code
- Claude
- Codex
- Published
Test-First Bug Fix Skill: Reproduce, Fix, Prove (SKILL.md)
A SKILL.md that forces your coding agent to reproduce a bug with a failing test before changing code, apply the smallest fix, and prove it with the test suite.
You get: Bug statement, failing test output and root cause
Ready to use: no blanks to fill in.
The prompt
Installs to .agents/skills/test-first-bug-fix-skill-reproduce-fix-prove-skill-md/
mkdir -p .agents/skills/test-first-bug-fix-skill-reproduce-fix-prove-skill-md && curl -sL "https://prompts-gpt.com/prompts/test-first-bug-fix-skill-reproduce-fix-prove-skill-md/raw" -o .agents/skills/test-first-bug-fix-skill-reproduce-fix-prove-skill-md/SKILL.mdTips and common edits
Save as .claude/skills/test-first-bugfix/SKILL.md in a repo, or ~/.claude/skills/test-first-bugfix/SKILL.md for every project. Claude Code loads it when the description matches; the same file works in Codex, Cursor and Gemini CLI, which also read SKILL.md.
Questions about this prompt
More like this
More in CodingRelease Notes From Git Log Skill for Users and Developers (SKILL.md)
A SKILL.md that writes release notes from the commits between two tags, split into a plain-language section for users and a technical changelog for developers.
Pre-Merge Code Review Checklist Skill (SKILL.md)
A save-ready SKILL.md that has your coding agent review a branch before merge: correctness, security, tests and migrations, with findings ranked by severity and no style nitpicks.
Conventional Commit and PR Description Writer Skill (SKILL.md)
A ready-to-save SKILL.md that makes your coding agent write Conventional Commits messages and pull request descriptions from the staged diff, never from guesses.
Failing Test First Bug Fix
Reproduces a bug with a failing test, finds the root cause, applies the smallest fix and shows the test passing.
Brand Voice Guard Skill That Checks Drafts Against VOICE.md (SKILL.md)
A SKILL.md that makes Claude write and edit in your brand's voice: it reads a VOICE.md in the project, or builds one from samples, then checks every draft against it.
Meeting Notes to Decisions and Action Items Skill (SKILL.md)
A SKILL.md that turns any meeting transcript or rough notes into a decision log, owner-and-date action items, open questions and a ready-to-send recap email.
Spreadsheet and CSV Cleanup Report Skill (SKILL.md)
A SKILL.md that has your agent profile a messy CSV or spreadsheet, fix it in a copy with a script, and report every change so the cleaned data can be trusted.
Debug an Error From the Message and the Code Around It
Finds the most likely cause of an error from the message and the relevant code, ranks other possible causes, and gives the smallest fix plus a way to prove it worked.
Edge-Case Test Suite for One Function in Your Existing Test Framework
Writes tests for a single function that cover normal inputs, boundaries, bad input and error paths, in the test framework your project already uses.
Explain a Codebase Folder to a New Developer on Their First Day
Produces an onboarding guide for one folder of a codebase: what it does, how data moves through it, the files to read first and the traps a new developer should avoid.
Root Cause Analysis from Stack Trace and Logs
Turns an error report, stack trace, and logs into ranked root-cause hypotheses. Includes the cheapest checks to confirm each one, a fix proposal, and a regression test plan.
Write a SKILL.md From a Workflow You Keep Repeating
Interviews you about a task you do over and over, then writes a complete, save-ready SKILL.md with a trigger description, steps, output format and stop conditions.