Back to Articles
Prompts

Ming Tang: "When I report a bug, start by reproducing it."

March 17, 2026
1 min read

This is a prompt that resembles the classical TDD approach and the idea that we need to reproduce the bug first with a failed test, before fixing it.

The author suggests to add this to CLAUDE.md or AGENTS.md:

When I report a bug, don't start by trying to fix it. Instead, start by writing a test that reproduces the bug. Then, try to fix the bug and prove it with a passing test.

In the original tweet, Ming also had the part to use subagents, but in my opinion/testing, this is an optional overkill.

I've also shot a video with this prompt in action:

Share this article

Povilas Korop

Get Weekly AI Coding News

You'll also get TWO free tutorials:
"My Favorite 10 Tips & Tricks" on Claude Code and Codex CLI!

Sent every Wednesday. No spam, ever. Unsubscribe anytime.