<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[MadGPT Blog]]></title><description><![CDATA[MadGPT Blog]]></description><link>https://madgpt.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/6aebb15544bbf5baf912a74c/0ab403f4-ff50-416a-a037-87639932a675.png</url><title>MadGPT Blog</title><link>https://madgpt.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 15:34:00 GMT</lastBuildDate><atom:link href="https://madgpt.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[7 prompts that turn your AI from a yes-man into a real code reviewer]]></title><description><![CDATA[Ask an AI "is this code good?" and you'll get "Looks good! A few minor suggestions..." almost every time. That's not a review. That's politeness. The model…]]></description><link>https://madgpt.hashnode.dev/7-prompts-that-turn-your-ai-from-a-yes-man-into-a-real-code-reviewer</link><guid isPermaLink="true">https://madgpt.hashnode.dev/7-prompts-that-turn-your-ai-from-a-yes-man-into-a-real-code-reviewer</guid><category><![CDATA[AI]]></category><category><![CDATA[Programming Tips]]></category><category><![CDATA[Productivity]]></category><category><![CDATA[chatgpt]]></category><dc:creator><![CDATA[madgpt]]></dc:creator><pubDate>Wed, 04 Nov 2026 22:40:42 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6aebb15544bbf5baf912a74c/5b660ce2-8799-4bc5-928a-053a24b337ed.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Ask an AI "is this code good?" and you'll get "Looks good! A few minor suggestions..." almost every time. That's not a review. That's politeness.</p>
<p>The model isn't lying. You asked a yes/no question with a friendly tone, and it gave you a friendly yes. Change the question and you get a different tool. Here are seven prompts I use every day.</p>
<h2>1. Ask how it breaks, not whether it's good</h2>
<blockquote>
<p>What are the 3 most likely ways this code breaks in production? Rank them by impact and give a fix for each.</p>
</blockquote>
<p>This forces the model to look for failure modes instead of confirming your work. Ranking by impact stops it from burying the one real bug under five style nits.</p>
<h2>2. Paste three things before asking for a fix</h2>
<p>Most "the AI gave me wrong code" complaints come from missing context. Before asking, paste:</p>
<ol>
<li><strong>The exact error.</strong> Copied, not paraphrased.</li>
<li><strong>The function that throws it.</strong> Not the whole repo.</li>
<li><strong>What you expected to happen.</strong> This is the one people skip, and it's the one that matters most.</li>
</ol>
<h2>3. Ask for a plan before the code</h2>
<blockquote>
<p>Before writing any code, list the files you'd change and why. Wait for my OK.</p>
</blockquote>
<p>A wrong plan is cheap to fix. A wrong 200-line diff is not.</p>
<h2>4. Make it explain its own diff</h2>
<blockquote>
<p>Explain this diff line by line. Point out anything you're unsure about.</p>
</blockquote>
<p>If the model can't explain a change clearly, the change is probably wrong. This catches hallucinated APIs fast.</p>
<h2>5. Give it a role with a grudge</h2>
<blockquote>
<p>Review this as a senior engineer who has been paged at 3 a.m. by this service twice this month.</p>
</blockquote>
<p>Sounds silly, works well. It shifts the review from style to reliability: timeouts, retries, logging, error handling.</p>
<h2>6. Ask for the result, not for permission</h2>
<p>Compare:</p>
<blockquote>
<p>Could you maybe help me write a migration for this table?</p>
</blockquote>
<p>and</p>
<blockquote>
<p>Write a migration that adds a nullable <code>archived_at</code> timestamp to <code>orders</code>. Output only the SQL.</p>
</blockquote>
<p>The second one gets you working output on the first try. Hedged prompts get hedged answers.</p>
<h2>7. Reset when it starts "forgetting"</h2>
<p>After a long session the model mixes up old decisions and repeats itself. Don't fight it. Open a new chat and paste a five-line summary:</p>
<ol>
<li>Goal</li>
<li>Constraints</li>
<li>Decisions made so far</li>
<li>Current state</li>
<li>Next step</li>
</ol>
<p>Fresh context beats a long, polluted one every time.</p>
<hr />
<p><strong>What's your go-to review prompt?</strong> Drop it in the comments. I'm collecting the good ones.</p>
<hr />
<p><em>Disclosure: I work on <a href="https://madgpt.io">MadGPT</a>, an AI workspace with 7 models and a VS Code agent. The prompts above work with any assistant. This article was drafted with AI assistance and edited by a human. Originally published on <a href="https://dev.to/madgpt/7-prompts-that-turn-your-ai-from-a-yes-man-into-a-real-code-reviewer-4514">DEV</a>.</em></p>
]]></content:encoded></item></channel></rss>