<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: MadGPT</title>
    <description>The latest articles on DEV Community by MadGPT (@madgpt).</description>
    <link>https://dev.to/madgpt</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4227210%2Fc4f3e348-ef81-485e-a95e-15293fbc8569.png</url>
      <title>DEV Community: MadGPT</title>
      <link>https://dev.to/madgpt</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/madgpt"/>
    <language>en</language>
    <item>
      <title>7 prompts that turn your AI from a yes-man into a real code reviewer</title>
      <dc:creator>MadGPT</dc:creator>
      <pubDate>Wed, 04 Nov 2026 21:33:18 +0000</pubDate>
      <link>https://dev.to/madgpt/7-prompts-that-turn-your-ai-from-a-yes-man-into-a-real-code-reviewer-4514</link>
      <guid>https://dev.to/madgpt/7-prompts-that-turn-your-ai-from-a-yes-man-into-a-real-code-reviewer-4514</guid>
      <description>&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Ask how it breaks, not whether it's good
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;What are the 3 most likely ways this code breaks in production? Rank them by impact and give a fix for each.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Paste three things before asking for a fix
&lt;/h2&gt;

&lt;p&gt;Most "the AI gave me wrong code" complaints come from missing context. Before asking, paste:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The exact error.&lt;/strong&gt; Copied, not paraphrased.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The function that throws it.&lt;/strong&gt; Not the whole repo.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What you expected to happen.&lt;/strong&gt; This is the one people skip, and it's the one that matters most.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  3. Ask for a plan before the code
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Before writing any code, list the files you'd change and why. Wait for my OK.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A wrong plan is cheap to fix. A wrong 200-line diff is not.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Make it explain its own diff
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Explain this diff line by line. Point out anything you're unsure about.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If the model can't explain a change clearly, the change is probably wrong. This catches hallucinated APIs fast.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Give it a role with a grudge
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Review this as a senior engineer who has been paged at 3 a.m. by this service twice this month.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Sounds silly, works well. It shifts the review from style to reliability: timeouts, retries, logging, error handling.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Ask for the result, not for permission
&lt;/h2&gt;

&lt;p&gt;Compare:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Could you maybe help me write a migration for this table?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;and&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Write a migration that adds a nullable &lt;code&gt;archived_at&lt;/code&gt; timestamp to &lt;code&gt;orders&lt;/code&gt;. Output only the SQL.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The second one gets you working output on the first try. Hedged prompts get hedged answers.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Reset when it starts "forgetting"
&lt;/h2&gt;

&lt;p&gt;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:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Goal&lt;/li&gt;
&lt;li&gt;Constraints&lt;/li&gt;
&lt;li&gt;Decisions made so far&lt;/li&gt;
&lt;li&gt;Current state&lt;/li&gt;
&lt;li&gt;Next step&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Fresh context beats a long, polluted one every time.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;What's your go-to review prompt?&lt;/strong&gt; Drop it in the comments. I'm collecting the good ones.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: I work on &lt;a href="https://madgpt.io" rel="noopener noreferrer"&gt;MadGPT&lt;/a&gt;, 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.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>productivity</category>
      <category>codereview</category>
    </item>
  </channel>
</rss>
