The "write the failing test first" debugging prompt
Make the model reproduce the bug before it touches the fix. Kills the confident patch that solves a problem you don't have.
Make the model reproduce the bug before it touches the fix. Kills the confident patch that solves a problem you don't have.
The single highest-leverage prompt I use. It forces the model to understand code before changing it, which kills the confident-but-wrong rewrites that waste your afternoon.