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

Comments

Join the conversation! Sign in to leave a comment.

No comments yet. Be the first to share your thoughts!

Povilas Korop

Get Weekly AI Coding News

You'll also get a free tutorial "Claude Code: My Favorite 10 Tips & Tricks"!

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