{"id":78313,"date":"2025-12-19T07:00:00","date_gmt":"2025-12-19T15:00:00","guid":{"rendered":"https:\/\/dhblog.dream.press\/blog\/?p=78313"},"modified":"2026-07-31T12:32:02","modified_gmt":"2026-07-31T19:32:02","slug":"claude-prompt-engineering","status":"publish","type":"post","link":"https:\/\/www.dreamhost.com\/blog\/claude-prompt-engineering\/","title":{"rendered":"We Tested 25 Popular Claude Prompt Techniques: These 5 Actually Work"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">When Claude Sonnet 4.5 <a rel=\"noopener noreferrer\" href=\"https:\/\/www.anthropic.com\/news\/claude-sonnet-4-5\" target=\"_blank\">launched in September 2025<\/a>, it broke a lot of the existing prompts. This wasn&#8217;t because the release was buggy; Anthropic had simply rebuilt how Claude follows instructions. That rebuild stuck: every release since, up through <a rel=\"noopener noreferrer\" href=\"https:\/\/www.anthropic.com\/news\/claude-sonnet-5\" target=\"_blank\">Claude Sonnet 5 (June 2026)<\/a>, keeps the same literal, instruction-first behavior.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Earlier versions would <em>infer your intent<\/em> and expand on vague requests. Claude 4.x and newer models take you literally and do exactly what you ask for, nothing more.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1584\" height=\"993\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/claude-sonnet-4-5-github-hackerone-testimonials.png.webp\" alt=\"Claude sonnet 4 5 GitHub hackerone testimonials\" class=\"wp-image-86573 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/claude-sonnet-4-5-github-hackerone-testimonials.png.webp 1584w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/07\/claude-sonnet-4-5-github-hackerone-testimonials-300x188.png 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/07\/claude-sonnet-4-5-github-hackerone-testimonials-1024x642.png 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/07\/claude-sonnet-4-5-github-hackerone-testimonials-768x481.png 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/07\/claude-sonnet-4-5-github-hackerone-testimonials-1536x963.png 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/claude-sonnet-4-5-github-hackerone-testimonials-600x376.png.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/claude-sonnet-4-5-github-hackerone-testimonials-1200x752.png.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/claude-sonnet-4-5-github-hackerone-testimonials-730x458.png.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/claude-sonnet-4-5-github-hackerone-testimonials-1460x915.png.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/claude-sonnet-4-5-github-hackerone-testimonials-784x491.png.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/claude-sonnet-4-5-github-hackerone-testimonials-1568x983.png.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/claude-sonnet-4-5-github-hackerone-testimonials-877x550.png.webp 877w\" data-sizes=\"(max-width: 1584px) 100vw, 1584px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1584px; --smush-placeholder-aspect-ratio: 1584\/993;\" \/><figcaption class=\"wp-element-caption\">Source: Anthropic, Claude Sonnet 4.5 announcement (September 29, 2025)<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">To understand the new methods, we evaluated 25 popular prompt engineering techniques against Anthropic\u2019s docs, community experiments, and real-world deployments to find which prompts actually work better with Claude 4.x and newer models. Five made the cut: structured XML\/JSON prompts, extended thinking, explicit requirements, few-shot examples, and putting context before your question.<\/p>\n\n\n<div class=\"tldr-block\" style=\"display: none;\">\n\t<div class=\"svg\">\n\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 119.25 37.8\">\n\t<g>\n\t\t<g>\n\t\t\t<path fill=\"#ffffff\" d=\"M23.4,6.93h-8.1v24.57h-7.2V6.93H0V0h23.4v6.93Z\" \/>\n\t\t\t<path fill=\"#ffffff\" d=\"M45,24.57v6.93h-18.45V0h7.2v24.57h11.25Z\" \/>\n\t\t\t<path fill=\"#ffffff\"\n\t\t\t\td=\"M90.9,15.75c0,8.91-6.61,15.75-15.3,15.75h-12.6V0h12.6c8.68,0,15.3,6.84,15.3,15.75ZM83.97,15.75c0-5.4-3.42-8.82-8.37-8.82h-5.4v17.64h5.4c4.95,0,8.37-3.42,8.37-8.82Z\" \/>\n\t\t\t<path fill=\"#ffffff\"\n\t\t\t\td=\"M105.57,21.15h-3.42v10.35h-7.2V0h12.6c5.98,0,10.8,4.81,10.8,10.8,0,3.87-2.34,7.38-5.81,9.13l6.71,11.56h-7.74l-5.94-10.35ZM102.15,14.85h5.4c1.98,0,3.6-1.75,3.6-4.05s-1.62-4.05-3.6-4.05h-5.4v8.1Z\" \/>\n\t\t<\/g>\n\t\t<path\n\t\t\tfill=\"#0173ec\"\n\t\t\td=\"M53.97,37.8h-5.4l1.8-13.27h7.2l-3.6,13.27ZM49.02,12.55c0-2.34,1.93-4.27,4.27-4.27s4.27,1.94,4.27,4.27-1.93,4.27-4.27,4.27-4.27-1.94-4.27-4.27Z\"\n\t\t \/>\n\t<\/g>\n<\/svg>\n\t<\/div>\n\t<div class=\"tldr-wrap\">\n\t\t\n\n<ul class=\"wp-block-list\">\n<li>Structured XML\/JSON prompts, extended thinking, explicit requirements, few-shot examples, and context-first ordering are the five <a href=\"https:\/\/www.dreamhost.com\/blog\/ai-prompts\/\">prompting techniques<\/a> that measurably improve output from Claude 4.x and newer models.<\/li>\n\n\n\n<li>Claude 4.x and newer models follow instructions literally instead of inferring intent \u2014 the behavioral shift that invalidated many older prompts (we\u2019ll show you which ones).<\/li>\n\n\n\n<li>Before\/after examples show the real effectiveness difference each technique makes.<\/li>\n\n\n\n<li>Every technique is backed by Anthropic\u2019s documentation, third-party testing, and real-world deployments.<\/li>\n\n\n\n<li>A five-step process migrates legacy prompt libraries from older Claude models to the current generation.<\/li>\n<\/ul>\n\n\n\t<\/div>\n<\/div>\n\n\n<h2 id=\"h-what-changed-in-claude-4-5-that-broke-existing-prompts\" class=\"wp-block-heading\">What Changed in Claude 4.5 That Broke Existing Prompts?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a rel=\"noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.dreamhost.com\/blog\/claude-ai\/\">Claude 4.5 and newer models<\/a> prioritize precise instructions over \u201chelpful\u201d guessing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The previous versions would fill in the blanks for you. If you asked for a \u201cdashboard,\u201d they assumed you wanted charts, filters, and data tables.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Claude 4.5 takes you literally. If you ask for a dashboard, it might give you a blank frame with a title because you didn\u2019t ask for the rest.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a rel=\"noopener noreferrer\" target=\"_blank\" href=\"https:\/\/docs.claude.com\/en\/docs\/build-with-claude\/prompt-engineering\/claude-4-best-practices\">Anthropic clearly states<\/a>: <em>\u201cCustomers who desire the \u2018above and beyond\u2019 behavior from previous Claude models might need to more explicitly request these behaviors with newer models.\u201d<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, we need to stop treating the model like a magic wand and start treating it like a literal-minded employee.<\/p>\n\n\n\n<div class=\"liftoff-cta-card\">\n\t<div class=\"line\">\n\t\t<svg width=\"834\" height=\"469\" viewBox=\"0 0 834 469\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n<path opacity=\"0.7\" d=\"M865.739 -59.8017C865.739 -59.8017 832.792 123.045 744.31 182.376C655.829 241.707 562.417 143.097 474.164 202.767C386.505 262.036 442.275 384.659 354.504 443.76C266.434 503.061 98.0198 364.278 4.7754 318.308\" stroke=\"url(#paint0_linear_8_19)\" stroke-opacity=\"0.25\" stroke-width=\"19.8\"\/>\n<defs>\n<linearGradient id=\"paint0_linear_8_19\" x1=\"918.374\" y1=\"-112.088\" x2=\"147.486\" y2=\"548.265\" gradientUnits=\"userSpaceOnUse\">\n<stop offset=\"0.0576923\"\/>\n<stop offset=\"0.350962\" stop-color=\"#0073EC\"\/>\n<stop offset=\"0.825067\" stop-color=\"#C265FE\"\/>\n<stop offset=\"1\"\/>\n<\/linearGradient>\n<\/defs>\n<\/svg>\n\n\t<\/div>\n\t<div class=\"liftoff-cta-card__content\">\n\t\t<div class=\"headline_1\">\n\t\t\t\n<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\">\n<path d=\"M24.0006 16.0019C19.5835 16.0019 16.0015 19.5839 16.0015 24.001V32.0001H32.003V15.9985H24.0039L24.0006 16.0019Z\" fill=\"url(#paint0_linear_3747_604)\"\/>\n<path d=\"M16.0015 7.99911V0H0V16.0016H7.99906C12.4162 16.0016 15.9981 12.4196 15.9981 8.00247L16.0015 7.99911Z\" fill=\"url(#paint1_linear_3747_604)\"\/>\n<path d=\"M7.99902 16.002C12.4168 16.002 15.998 19.5832 15.998 24.001C15.9979 28.4186 12.4167 32 7.99902 32C3.58137 32 0.000149208 28.4186 0 24.001C0 19.5832 3.58128 16.002 7.99902 16.002ZM24.001 0C28.4185 0.000241972 32 3.58143 32 7.99902C32 12.4167 28.4185 15.9978 24.001 15.998C19.5832 15.998 16.002 12.4168 16.002 7.99902C16.002 3.58128 19.5832 0 24.001 0Z\" fill=\"url(#paint2_linear_3747_604)\"\/>\n<rect x=\"8\" y=\"8\" width=\"16\" height=\"16\" fill=\"#FFFFFF\"\/>\n<path d=\"M16.0015 7.99902H24.0006V15.9981C19.5835 15.9981 16.0015 12.4128 16.0015 7.99902Z\" fill=\"#18181B\"\/>\n<path d=\"M7.99908 16.0015L7.99908 8.00235H15.9981C15.9981 12.4195 12.4128 16.0015 7.99908 16.0015Z\" fill=\"#18181B\"\/>\n<path d=\"M16.0015 24.0005H8.00246V16.0014C12.4196 16.0014 16.0015 19.5867 16.0015 24.0005Z\" fill=\"#18181B\"\/>\n<path d=\"M24.0007 16.0015V24.0006H16.0016C16.0016 19.5835 19.5869 16.0015 24.0007 16.0015Z\" fill=\"#18181B\"\/>\n<defs>\n<linearGradient id=\"paint0_linear_3747_604\" x1=\"16.0001\" y1=\"16.0002\" x2=\"32.0001\" y2=\"32.0002\" gradientUnits=\"userSpaceOnUse\">\n<stop stop-color=\"#A1A1AA\"\/>\n<stop offset=\"1\" stop-color=\"#C7C7CD\"\/>\n<\/linearGradient>\n<linearGradient id=\"paint1_linear_3747_604\" x1=\"0\" y1=\"0\" x2=\"16\" y2=\"16\" gradientUnits=\"userSpaceOnUse\">\n<stop offset=\"0.251049\" stop-color=\"#C7C7CD\"\/>\n<stop offset=\"1\" stop-color=\"#A1A1AA\"\/>\n<\/linearGradient>\n<linearGradient id=\"paint2_linear_3747_604\" x1=\"-11.3782\" y1=\"44.9411\" x2=\"-8.40086\" y2=\"-18.7449\" gradientUnits=\"userSpaceOnUse\">\n<stop stop-color=\"#BE59FF\"\/>\n<stop offset=\"0.19\" stop-color=\"#9D60FF\"\/>\n<stop offset=\"0.74\" stop-color=\"#4274FF\"\/>\n<stop offset=\"1\" stop-color=\"#1F7CFF\"\/>\n<\/linearGradient>\n<\/defs>\n<\/svg>\n\n\t\t\tMeet Remixer\n\t\t<\/div>\n\t\t<div class=\"headline_2\">You describe it. Remixer builds it.<\/div>\n\t\t<p>The AI website builder that turns conversation into designer-level sites. Free with hosting.<\/p>\n\t\t        <a\n            href=\"https:\/\/www.dreamhost.com\/remixer-website-builder\/\"\n                        class=\"btn btn--brand\"\n                                                target=\"_blank\"\n            rel=\"noopener noreferrer\"\n            >\n                            Start Free Trial                    <\/a>\n\n\t<\/div>\n\t<div class=\"tr-img-wrap-outer\"><img decoding=\"async\" data-skip-lazy class=\"\" src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/03\/remixer-screen.webp\" width=\"2084\" height=\"1182\" alt=\"DreamHost Remixer AI website builder\" \/><\/div>\n<\/div>\n\n\n<h2 id=\"h-the-5-proven-techniques-that-measurably-improve-claude-s-performance\" class=\"wp-block-heading\">5 Claude prompt engineering best practices that actually work<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Based on our research, these five techniques consistently delivered noticeable improvements in Claude\u2019s performance for the tasks we threw at it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-1-structured-and-labeled-prompts\">1. Structured and Labeled Prompts<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Anthropic\u2019s own system prompts use structured prompting everywhere. Simon Willison <a rel=\"noopener noreferrer\" href=\"https:\/\/simonwillison.net\/2025\/May\/25\/claude-4-system-prompt\/\" target=\"_blank\">dug into the Claude 4 system prompts<\/a> (May 2025) and found them organized into clearly labeled sections covering behavior, artifacts, search instructions, and the model\u2019s knowledge cutoff.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In fact, you could edit \u201c<em>Styles<\/em>\u201d to see Anthropic\u2019s structured prompting in action.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"1315\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/02_claude_sonnet_4_5_use_examples_tag.webp\" alt=\"Claude Sonnet 4.5 interface showing a style-instruction editor with detailed writing guidelines\" class=\"wp-image-78322 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/02_claude_sonnet_4_5_use_examples_tag.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/02_claude_sonnet_4_5_use_examples_tag-300x247.webp 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/02_claude_sonnet_4_5_use_examples_tag-1024x842.webp 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/02_claude_sonnet_4_5_use_examples_tag-768x631.webp 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/02_claude_sonnet_4_5_use_examples_tag-1536x1262.webp 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/02_claude_sonnet_4_5_use_examples_tag-600x493.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/02_claude_sonnet_4_5_use_examples_tag-1200x986.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/02_claude_sonnet_4_5_use_examples_tag-730x600.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/02_claude_sonnet_4_5_use_examples_tag-1460x1200.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/02_claude_sonnet_4_5_use_examples_tag-784x644.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/02_claude_sonnet_4_5_use_examples_tag-1568x1289.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/02_claude_sonnet_4_5_use_examples_tag-877x721.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1315;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">What we can infer is that Claude was trained on structured prompts and knows how to parse them. <a rel=\"noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.dreamhost.com\/blog\/xml-sitemap\/\">XML<\/a> works great, so does JSON or other labeled prompting.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Before<\/strong>:<br><em>Analyze this code for <\/em><a rel=\"noopener noreferrer\" href=\"https:\/\/www.dreamhost.com\/blog\/secure-your-wordpress-website\/\" target=\"_blank\"><em>security vulnerabilities<\/em><\/a><em> and performance issues. Focus on authentication flows and database queries. Provide specific recommendations with code examples.<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"1402\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/03_before_without_xml_.webp\" alt=\"Security review output highlighting SQL injection and command-line input risks\" class=\"wp-image-78323 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/03_before_without_xml_.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/03_before_without_xml_-300x263.webp 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/03_before_without_xml_-1024x897.webp 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/03_before_without_xml_-768x673.webp 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/03_before_without_xml_-1536x1346.webp 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/03_before_without_xml_-600x526.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/03_before_without_xml_-1200x1052.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/03_before_without_xml_-730x640.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/03_before_without_xml_-1460x1279.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/03_before_without_xml_-784x687.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/03_before_without_xml_-1568x1374.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/03_before_without_xml_-877x768.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1402;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>After (structured prompt)<\/strong>:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;task&gt;Analyze the provided code for security and performance issues&lt;\/task&gt;<br>&lt;focus_areas&gt;<br>&#8211; Authentication flows<br>&#8211; Database query optimization<br>&lt;\/focus_areas&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;code&gt;<br>[your code here]<br>&lt;\/code&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;output_requirements&gt;<br>&#8211; Identify specific vulnerabilities with severity ratings<br>&#8211; Provide corrected code examples<br>&#8211; Prioritize recommendations by business impact<br>&lt;\/output_requirements&gt;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"1587\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/04_after_with_xml_.webp\" alt=\"Code analysis output using XML-wrapped instructions, highlighting critical SQL injection risks\" class=\"wp-image-78324 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/04_after_with_xml_.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/04_after_with_xml_-300x298.webp 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/04_after_with_xml_-1024x1016.webp 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/04_after_with_xml_-150x150.webp 150w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/04_after_with_xml_-768x762.webp 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/04_after_with_xml_-1536x1524.webp 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/04_after_with_xml_-600x595.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/04_after_with_xml_-1200x1190.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/04_after_with_xml_-730x724.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/04_after_with_xml_-1460x1448.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/04_after_with_xml_-784x778.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/04_after_with_xml_-1568x1555.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/04_after_with_xml_-877x870.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1587;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you compare these outputs, you\u2019ll notice that the structured prompt gives an output with more context to help you understand and fix the security issues in the code. It explains the issue, tells what the fix does, and then provides the code fix.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Alternative Formats That Work:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>JSON:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>{<br>\"task\": \"Review authentication code\",<br>\"focus_areas\": [\"Password hashing\", \"Session security\", \"SQL injection\"],<br>\"context\": \"Healthcare app, HIPAA required\",<br>\"output_format\": \"Risk, impact, fix, severity per vulnerability\"<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>}<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Clear Headers:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>TASK: Review authentication code for vulnerabilities<br>FOCUS: Password hashing, sessions, SQL injection<br>CONTEXT: Healthcare app requiring HIPAA compliance<br>OUTPUT FORMAT: Risk \u2192 HIPAA impact \u2192 Fix \u2192 Severity<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">All three work equally well.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>When structured prompts work best<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Multiple prompt components (task, context, examples, requirements)<\/li>\n\n\n\n<li>Long inputs (10,000+ tokens of code or documents)<\/li>\n\n\n\n<li>Sequential workflows with distinct steps<\/li>\n\n\n\n<li>Tasks requiring repeated reference to specific sections<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>When to skip structured prompts<\/strong>: Simple questions where plain text works fine.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Effectiveness rating<\/strong>: 9\/10 for complex tasks, 5\/10 for simple queries.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Extended Thinking for Complex Problems<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Extended Thinking delivers massive improvements on complex reasoning tasks with two tradeoffs: speed and token cost. Thinking consumes extra tokens, so on API workloads the accuracy gain has to justify the added spend.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a rel=\"noopener noreferrer\" href=\"https:\/\/www.anthropic.com\/news\/claude-4\" target=\"_blank\">Anthropic\u2019s Claude 4 announcement<\/a> showed substantial performance gains with extended thinking enabled. On the AIME 2025 math competition, scores improved significantly.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"1293\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/05_claude_opus_4_versus_sonnet_4_versus_sonnet_3_7.webp\" alt=\"Table comparing Claude Opus 4, Sonnet 4, and Sonnet 3.7 scores across coding, terminal coding\" class=\"wp-image-78325 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/05_claude_opus_4_versus_sonnet_4_versus_sonnet_3_7.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/05_claude_opus_4_versus_sonnet_4_versus_sonnet_3_7-300x242.webp 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/05_claude_opus_4_versus_sonnet_4_versus_sonnet_3_7-1024x828.webp 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/05_claude_opus_4_versus_sonnet_4_versus_sonnet_3_7-768x621.webp 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/05_claude_opus_4_versus_sonnet_4_versus_sonnet_3_7-1536x1241.webp 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/05_claude_opus_4_versus_sonnet_4_versus_sonnet_3_7-600x485.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/05_claude_opus_4_versus_sonnet_4_versus_sonnet_3_7-1200x970.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/05_claude_opus_4_versus_sonnet_4_versus_sonnet_3_7-730x590.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/05_claude_opus_4_versus_sonnet_4_versus_sonnet_3_7-1460x1180.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/05_claude_opus_4_versus_sonnet_4_versus_sonnet_3_7-784x634.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/05_claude_opus_4_versus_sonnet_4_versus_sonnet_3_7-1568x1267.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/05_claude_opus_4_versus_sonnet_4_versus_sonnet_3_7-877x709.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1293;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Cognition AI <a rel=\"noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.anthropic.com\/news\/claude-sonnet-4-5\">reported an 18% increase<\/a> in planning performance with Sonnet 4.5, with Cognition CEO Scott Wu calling it \u201cthe biggest jump we\u2019ve seen since the release of Claude Sonnet 3.6.\u201d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Before (Standard mode)<\/strong>:<br><em>Solve this logic puzzle: Five houses in a row, each a different color\u2026<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"1609\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/06_before_standard_mode_.webp\" alt=\"a logic-puzzle solution in standard mode, listing step-by-step deductions about house order, colors\" class=\"wp-image-78326 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/06_before_standard_mode_.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/06_before_standard_mode_-298x300.webp 298w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/06_before_standard_mode_-1018x1024.webp 1018w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/06_before_standard_mode_-150x150.webp 150w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/06_before_standard_mode_-768x772.webp 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/06_before_standard_mode_-1527x1536.webp 1527w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/06_before_standard_mode_-600x603.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/06_before_standard_mode_-1200x1207.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/06_before_standard_mode_-730x734.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/06_before_standard_mode_-1460x1468.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/06_before_standard_mode_-784x788.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/06_before_standard_mode_-1568x1577.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/06_before_standard_mode_-877x882.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1609;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>After (with Extended Thinking)<\/strong>:<br><em>Understand the logic of this puzzle systematically. Go through the constraints step by step, checking each possibility before reaching conclusions.<\/em><br><em>Five houses in a row, each a different color\u2026<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"1609\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/07_after_with_extended_thinking_.webp\" alt=\"the extended-thinking puzzle solution showing a deeper step-by-step breakdown of house positions\" class=\"wp-image-78327 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/07_after_with_extended_thinking_.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/07_after_with_extended_thinking_-298x300.webp 298w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/07_after_with_extended_thinking_-1018x1024.webp 1018w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/07_after_with_extended_thinking_-150x150.webp 150w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/07_after_with_extended_thinking_-768x772.webp 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/07_after_with_extended_thinking_-1527x1536.webp 1527w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/07_after_with_extended_thinking_-600x603.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/07_after_with_extended_thinking_-1200x1207.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/07_after_with_extended_thinking_-730x734.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/07_after_with_extended_thinking_-1460x1468.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/07_after_with_extended_thinking_-784x788.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/07_after_with_extended_thinking_-1568x1577.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/07_after_with_extended_thinking_-877x882.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1609;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You won\u2019t see much difference with simple prompts like the one above. But for complex, niche problems (custom codebases, multi-step logical planning), the difference becomes clear.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>When extended thinking works:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Multi-step logical planning requiring verification<\/li>\n\n\n\n<li>Mathematical reasoning with multiple solution paths<\/li>\n\n\n\n<li>Complex coding tasks spanning multiple files<\/li>\n\n\n\n<li>Situations where correctness matters more than speed<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>When to Skip<\/strong>: Quick iterations, simple queries, creative writing, time-sensitive tasks<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Effectiveness rating<\/strong>: 10\/10 for complex reasoning, 3\/10 for simple queries.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Be Brutally Specific About Requirements<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Claude 4 models have been trained for more precise instruction-following than previous generations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Anthropic\u2019s documentation says:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\u201cClaude 4.x models respond well to clear, explicit instructions. Being specific about your desired output can help enhance results. Customers who desire the \u2018above and beyond\u2019 behavior from previous Claude models might need to more explicitly request these behaviors with newer models.\u201d<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The documentation also notes that Claude is smart enough to generalize from the explanation when you provide context for why rules exist rather than just stating commands. This means providing a rationale helps the model apply principles correctly in edge cases not explicitly covered.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a rel=\"noopener noreferrer\" target=\"_blank\" href=\"https:\/\/eval.16x.engineer\/blog\/claude-4-opus-sonnet-evaluation-results\">Testing by 16x Eval<\/a> showed that Opus 4 scored 9.5\/10 and Sonnet 4 scored 9.25\/10 on a Next.js TODO task when instructions clearly specified requirements, format, and success criteria (16x Eval, May 25, 2025). The models demonstrated impressive conciseness and instruction-following capabilities.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Before (implicit expectations)<\/strong>:<br><em>Create an analytics dashboard.<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"1029\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/08_before_implicit_expectations_.webp\" alt=\"Screenshot labeled \u201cBefore (Implicit Expectations)\u201d\" class=\"wp-image-78328 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/08_before_implicit_expectations_.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/08_before_implicit_expectations_-300x193.webp 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/08_before_implicit_expectations_-1024x659.webp 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/08_before_implicit_expectations_-768x494.webp 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/08_before_implicit_expectations_-1536x988.webp 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/08_before_implicit_expectations_-600x386.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/08_before_implicit_expectations_-1200x772.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/08_before_implicit_expectations_-730x469.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/08_before_implicit_expectations_-1460x939.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/08_before_implicit_expectations_-784x504.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/08_before_implicit_expectations_-1568x1008.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/08_before_implicit_expectations_-877x564.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1029;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You\u2019ll notice how this output is EXACTLY what we asked for. While Claude took a little bit of creative freedom in the aesthetics, it has no functionality.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>After (explicit requirements)<\/strong>:<br><em>Create an analytics dashboard. Include as many relevant features and interactions as possible. Go beyond the basics to create a fully-featured implementation with data visualization, filtering capabilities, and export functions.<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"1135\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/09_after_explicit_requirements_.webp\" alt=\"After explicit requirements\" class=\"wp-image-78329 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/09_after_explicit_requirements_.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/09_after_explicit_requirements_-300x213.webp 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/09_after_explicit_requirements_-1024x726.webp 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/09_after_explicit_requirements_-768x545.webp 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/09_after_explicit_requirements_-1536x1090.webp 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/09_after_explicit_requirements_-600x426.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/09_after_explicit_requirements_-1200x851.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/09_after_explicit_requirements_-730x518.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/09_after_explicit_requirements_-1460x1036.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/09_after_explicit_requirements_-784x556.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/09_after_explicit_requirements_-1568x1112.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/09_after_explicit_requirements_-877x622.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1135;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This second output with a more descriptive prompt has more features, a dashboard built on some dummy data, which is both presented graphically and in a tabular format, and it has tabs to separate all the data.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s what being specific does with Claude 4.x models since Sonnet 4.5.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To clarify this point even further, here&#8217;s another example showing how context improves instruction-following:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Before (command without context)<\/strong>:<br><em>NEVER use ellipses in your response.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>After (context-motivated instruction)<\/strong>:<br><em>Your response will be read aloud by a text-to-speech engine, so avoid ellipses since the engine won\u2019t know how to pronounce them.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Key principles for explicit instructions<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Define what \u201ccomprehensive\u201d means for your specific task<\/strong>: Don\u2019t assume Claude will infer quality standards.<\/li>\n\n\n\n<li><strong>Explain why rules exist rather than just stating them<\/strong>: Claude generalizes better from motivated instructions.<\/li>\n\n\n\n<li><strong>Specify the output format explicitly<\/strong>: Request \u201cprose paragraphs\u201d instead of hoping Claude won\u2019t default to bullet points.<\/li>\n\n\n\n<li><strong>Provide concrete success criteria<\/strong>: What does task completion look like?<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Effectiveness rating<\/strong>: 9\/10 across all task types.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. Show Examples of What You Want<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Few-shot prompting provides Claude with example inputs and outputs demonstrating the desired behavior. This works, but only when examples are high quality and task-appropriate, and the impact varies dramatically by use case.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a rel=\"noopener noreferrer\" target=\"_blank\" href=\"https:\/\/docs.anthropic.com\/en\/docs\/build-with-claude\/prompt-engineering\/claude-4-best-practices\">Anthropic\u2019s official guidance<\/a> emphasizes:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\u201cClaude 4.x models pay close attention to details and examples as part of their precise instruction following capabilities. Ensure that your examples align with the behaviors you want to encourage and minimize behaviors you want to avoid.\u201d<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a rel=\"noopener noreferrer\" target=\"_blank\" href=\"https:\/\/docs.anthropic.com\/en\/docs\/build-with-claude\/prompt-engineering\/multishot-prompting\"><strong>Anthropic recommends<\/strong><\/a><strong> 3-5 diverse, relevant examples for complex tasks. More examples equal better performance.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here\u2019s an example of what that looks like in practice:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"1426\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/10_without_few_shot_examples.webp\" alt=\"a LinkedIn post draft critiquing hosting providers, with red underline\" class=\"wp-image-78330 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/10_without_few_shot_examples.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/10_without_few_shot_examples-300x267.webp 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/10_without_few_shot_examples-1024x913.webp 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/10_without_few_shot_examples-768x684.webp 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/10_without_few_shot_examples-1536x1369.webp 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/10_without_few_shot_examples-600x535.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/10_without_few_shot_examples-1200x1070.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/10_without_few_shot_examples-730x651.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/10_without_few_shot_examples-1460x1301.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/10_without_few_shot_examples-784x699.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/10_without_few_shot_examples-1568x1397.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/10_without_few_shot_examples-877x782.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1426;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Here, Claude took creative freedom with format, emoji usage, messaging, and tone. Generic corporate speak.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Adding examples works because they show rather than tell, while clarifying the subtle requirements that are difficult to express through description alone.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"1437\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/11_with_few_shot_examples.webp\" alt=\"LinkedIn post creation showing example about website speed and WordPress security\" class=\"wp-image-78331 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/11_with_few_shot_examples.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/11_with_few_shot_examples-300x269.webp 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/11_with_few_shot_examples-1024x920.webp 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/11_with_few_shot_examples-768x690.webp 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/11_with_few_shot_examples-1536x1380.webp 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/11_with_few_shot_examples-600x539.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/11_with_few_shot_examples-1200x1078.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/11_with_few_shot_examples-730x656.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/11_with_few_shot_examples-1460x1311.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/11_with_few_shot_examples-784x704.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/11_with_few_shot_examples-1568x1408.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/11_with_few_shot_examples-877x788.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1437;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This output sticks more closely to the examples I\u2019ve provided in the prompt. You can use the few-shot examples method to get <a rel=\"noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.dreamhost.com\/blog\/how-to-create-linkedin-company-page\/\">LinkedIn posts<\/a> like your best-performing ones.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>How to Implement:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Wrap examples in &lt;example&gt; tags, grouped in &lt;examples&gt; tags<\/li>\n\n\n\n<li>Place examples early in the first user message<\/li>\n\n\n\n<li>Use 3-5 diverse examples for complex tasks<\/li>\n\n\n\n<li>Match every detail in examples to desired output (Claude 4.x replicates naming conventions, code style, formatting, punctuation)<\/li>\n\n\n\n<li>Avoid redundant examples<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>When Examples Work Best:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Data formatting requiring precise structure<\/li>\n\n\n\n<li>Complex coding patterns needing specific approaches<\/li>\n\n\n\n<li>Analytical tasks demonstrating reasoning methods<\/li>\n\n\n\n<li>Output requiring consistent style and conventions<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>When to Skip:<\/strong> Simple queries where instructions suffice, or when you want Claude to use its own judgment.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Effectiveness rating:<\/strong> 10\/10 for formatting tasks, 6\/10 for simple queries.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. Put Context Before Your Question<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Claude has a 200,000-token context window (up to 1 million in some cases) and can understand queries placed anywhere in the context. But <a rel=\"noopener noreferrer\" target=\"_blank\" href=\"https:\/\/platform.claude.com\/docs\/en\/build-with-claude\/prompt-engineering\/long-context-tips\">Anthropic\u2019s documentation<\/a> recommends placing long documents (20,000+ tokens) at the top of prompts, before queries.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In Anthropic\u2019s own tests, published in its long-context docs in 2024 (the Claude 2.1\/3 era), context-first ordering improved response quality by up to 30% compared to query-first ordering, especially with complex, multi-document inputs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Anthropic\u2019s docs report the result without explaining the internal mechanism. Practically, placing the question after context lets the model reference all the earlier material while generating responses.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Before (query-first)<\/strong>:<br><em>Analyze the quarterly financial performance and identify key trends.<\/em><br><em>[20,000 tokens of financial data]<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>After (context-first)<\/strong>:<br><em>[20,000 tokens of financial data]<\/em><br><em>Based on the quarterly financial data provided above, analyze performance and identify key trends in revenue growth, margin expansion, and operating efficiency. Focus on actionable insights for executive decision-making.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>When this matters<\/strong>: Long-context analysis where Claude needs to reference earlier material extensively.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>When to Skip:<\/strong> Short prompts under 5,000 tokens.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Effectiveness rating<\/strong>: 8\/10 for long-context tasks, 4\/10 for short prompts.<\/p>\n\n\n<div class=\"single__related-article\">\n\t<span>Related Article<\/span>\n\t<div class=\"single__related-article__wrap\">\n\t\t<div class=\"single__related-article__title\">\n\t\t\t12 Smart Ways To Boost Your Productivity With AI\n\t\t<\/div>\n\t\t<a href=\"https:\/\/www.dreamhost.com\/blog\/boost-productivity\/\" class=\"btn btn--sm btn--brand\" target=\"_blank\" rel=\"noopener noreferrer\" aria-label=\"Read More: 12 Smart Ways To Boost Your Productivity With AI\">\n\t\t\tRead More\n\t\t<\/a>\n\t<\/div>\n<\/div>\n\n\n\n<h2 id=\"h-copy-paste-claude-prompts-for-common-tasks\" class=\"wp-block-heading\">Copy-paste Claude prompts for common tasks<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Techniques are only half the job \u2014 sometimes you just want a prompt you can paste and run. Here are six, one per common task, each built on one of the five best practices above. Swap in your specifics and adjust from there.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Code review<\/strong>:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>&lt;task&gt;Review the code below for security and performance issues&lt;\/task&gt;<br>&lt;context&gt;Production WordPress plugin, PHP 8.2, must stay backward compatible&lt;\/context&gt;<br>&lt;code&gt;[paste your code]&lt;\/code&gt;<br>&lt;output_requirements&gt;<br>- List each issue with a severity rating (critical, high, medium, or low)<br>- Show corrected code for every critical or high issue<br>- End with a prioritized fix list<br>&lt;\/output_requirements&gt;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Why it works<\/em>: Labeled XML sections (technique 1) keep the task, context, and success criteria separate, so nothing is left for Claude to infer.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Content drafting<\/strong>:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Write a LinkedIn post announcing [your news].<br>&lt;examples&gt;<br>&lt;example&gt;[paste a post of yours that performed well]&lt;\/example&gt;<br>&lt;example&gt;[paste a second post in the same voice]&lt;\/example&gt;<br>&lt;\/examples&gt;<br>Match the tone, length, emoji use, and formatting of the examples exactly.<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Why it works<\/em>: Few-shot examples (technique 4) show rather than tell, and Claude 4.x and newer models replicate the details your examples model, down to formatting and punctuation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Data analysis<\/strong>:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>[paste the full dataset or report first]<br>Based on the data above, identify the three most significant trends, quantify each one, and flag anything that looks anomalous. Format: one short paragraph per trend, then a bulleted list of anomalies.<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Why it works<\/em>: Context-first ordering (technique 5) puts the long input at the top and the question at the end, where it performs best.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Debugging and support<\/strong>:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>My WordPress site on Nginx and Ubuntu 24.04 returns intermittent 502 Bad Gateway errors.<br>If the error logs show 'upstream sent too big header', provide configuration changes for buffer sizes.<br>If the logs show 'upstream timed out', provide configuration changes for execution time limits.<br>Give exact configuration lines and explain how each change affects server memory.<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Why it works<\/em>: Explicit requirements plus conditional logic (technique 3) hand Claude a decision tree instead of a guessing game.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Research summarization<\/strong>:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>[paste your sources or notes first]<br>Compare the sources above and write a decision brief: where they agree, where they conflict, and what a careful reader should conclude. Before including any fact, confirm it appears in at least one source, and cite which one.<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Why it works<\/em>: This is a verification-heavy reasoning task, exactly where Extended Thinking (technique 2) earns its extra tokens.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Plain-language rewriting<\/strong>:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Rewrite the text below for first-time website owners, at roughly a ninth-grade reading level. They won't know hosting jargon, so restate any technical term in plain language the first time it appears.<br>[paste your text]<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Why it works<\/em>: Context-motivated instructions (technique 3) explain who the reader is, which helps Claude generalize the rule to cases you didn\u2019t spell out.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once a prompt earns a permanent spot in your library, version it. The evaluation loop later in this guide shows how to prove a new prompt actually beats the old one.<\/p>\n\n\n\n<h2 id=\"h2_what-prompting-techniques-dont-work-anymore-busting-common-myths\" class=\"wp-block-heading\">What Prompting Techniques Don\u2019t Work Anymore: Busting Common Myths<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Claude 4.5\u2019s changes invalidated several popular techniques that worked with earlier models.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Emphasis Words (ALL CAPS, \u201cMUST,\u201d \u201cALWAYS\u201d)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Writing in all caps no longer guarantees compliance. Chris Tyson\u2019s analysis, <a rel=\"noopener noreferrer\" href=\"https:\/\/theagentarchitect.substack.com\/p\/claude-sonnet-4-prompts-stopped-working\" target=\"_blank\">\u201cThe Day Anthropic Broke 90% of My Prompts\u201d<\/a> (The Agent Architect, October 3, 2025), found Claude now prioritizes context and logic over emphasis.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you write \u201cNEVER fabricate data\u201d but the context implies you need an estimate, Claude 4.5 prioritizes the logical need over your capitalized command.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Use conditional logic instead:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Bad<\/strong>: ALWAYS use exact numbers!<\/li>\n\n\n\n<li><strong>Good<\/strong>: If verified data is available, use precise figures. If not, provide ranges and label them as estimates.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2. Manual Chain-of-Thought Instructions<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Telling the model to \u201cthink step-by-step\u201d adds little when Extended Thinking mode is on.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When you enable Extended Thinking, the model manages its own reasoning budget. Adding your own \u201cstep-by-step\u201d instructions is redundant.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>What to do instead:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Trust the tool. If you enable Extended Thinking, remove all instructions about how to think.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Negative Constraints (\u201cDon\u2019t Do X\u201d)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Telling Claude exactly what not to do often backfires.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a rel=\"noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.synthlabs.ai\/research\/direct-principle-feedback\">Research on \u201cPink Elephant\u201d instructions<\/a> (a February 2024 SynthLabs study of open instruction-tuned models, not Claude) shows that telling a model not to think about something can increase the likelihood it will focus on it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Naming the forbidden concept keeps it active in the conversation, a tendency the SynthLabs team documented across instruction-tuned models.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Instead, reframe every negative as a positive command:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Bad<\/strong>: Do not write long, fluffy introductions. Don\u2019t use words like \u201cdelve\u201d or \u201ctapestry.\u201d<\/li>\n\n\n\n<li><strong>Good<\/strong>: Start directly with the core argument. Use concise, punchy language.<\/li>\n<\/ul>\n\n\n\n<h2 id=\"h2_how-to-migrate-prompts-from-claude-3-5-to-claude-4\" class=\"wp-block-heading\">How To Migrate Prompts From Older Claude Models to Claude 4.x and Newer?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If your prompt library was written for Claude 3.5 or another retired model (Anthropic retired Sonnet 3.5 in October 2025), you can bring it up to date for Claude 4.x and newer models by following five systematic steps validated by developer experience.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We will use a common hosting scenario for this example. The goal is to generate a technical support response for a customer experiencing a \u201c503 Service Unavailable\u201d error on their WordPress site.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1467\" height=\"1072\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/migrating-prompts-claude-4x-five-steps.png.webp\" alt=\"Five-step process for migrating prompts to Claude 4.x and newer models: audit assumptions\" class=\"wp-image-86574 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/migrating-prompts-claude-4x-five-steps.png.webp 1467w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/07\/migrating-prompts-claude-4x-five-steps-300x219.png 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/07\/migrating-prompts-claude-4x-five-steps-1024x748.png 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/07\/migrating-prompts-claude-4x-five-steps-768x561.png 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/migrating-prompts-claude-4x-five-steps-600x438.png.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/migrating-prompts-claude-4x-five-steps-1200x877.png.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/migrating-prompts-claude-4x-five-steps-730x533.png.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/migrating-prompts-claude-4x-five-steps-1460x1067.png.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/migrating-prompts-claude-4x-five-steps-784x573.png.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/migrating-prompts-claude-4x-five-steps-877x641.png.webp 877w\" data-sizes=\"(max-width: 1467px) 100vw, 1467px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1467px; --smush-placeholder-aspect-ratio: 1467\/1072;\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">1. Audit Implicit Assumptions<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Begin by identifying where the prompt relies on the model to guess the context. In older versions, the model would infer you were using the most common software stack. Claude 4.5 and newer models will not make that leap.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Legacy Prompt:<\/strong><br><em>\u201cMy website is loading slowly and showing errors. You are an expert server administrator. Think step by step and tell me how to fix the configuration to make it faster.\u201d<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"1502\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/13_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_1_audit.webp\" alt=\"Audit Implicit Assumptions\" class=\"wp-image-78316 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/13_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_1_audit.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/13_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_1_audit-300x282.webp 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/13_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_1_audit-1024x961.webp 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/13_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_1_audit-768x721.webp 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/13_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_1_audit-1536x1442.webp 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/13_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_1_audit-600x563.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/13_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_1_audit-1200x1127.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/13_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_1_audit-730x685.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/13_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_1_audit-1460x1371.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/13_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_1_audit-784x736.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/13_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_1_audit-1568x1472.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/13_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_1_audit-877x823.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1502;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The Audit:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u201cWebsite\u201d implies a generic setup rather than a specific CMS (WordPress).<\/li>\n\n\n\n<li>\u201cSlowly\u201d is subjective; it could mean high Time to First Byte or slow asset rendering.<\/li>\n\n\n\n<li>\u201cErrors\u201d lacks the specific HTTP status codes needed for diagnosis.<\/li>\n\n\n\n<li>\u201cExpert server administrator\u201d and \u201cThink step by step\u201d are unnecessary steering instructions.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">In the response, Claude 4.5 asks for more information as it\u2019s trained to avoid making assumptions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Refactor for Explicit Specificity<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Now, rewrite the prompt to define the environment, the specific problem, and the desired output format. You must supply the technical details the model previously guessed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Refactored Prompt:<\/strong><br><em>\u201cMy WordPress site running on Nginx and Ubuntu 24.04 is experiencing high Time to First Byte (TTFB) and occasional 502 Bad Gateway errors. You are an expert server administrator. Think step by step and provide specific Nginx and PHP-FPM configuration changes to resolve these timeouts.\u201d<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"1502\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/14_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_2_refactor.webp\" alt=\"Refactor for Explicit Specificity\" class=\"wp-image-78317 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/14_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_2_refactor.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/14_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_2_refactor-300x282.webp 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/14_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_2_refactor-1024x961.webp 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/14_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_2_refactor-768x721.webp 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/14_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_2_refactor-1536x1442.webp 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/14_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_2_refactor-600x563.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/14_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_2_refactor-1200x1127.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/14_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_2_refactor-730x685.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/14_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_2_refactor-1460x1371.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/14_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_2_refactor-784x736.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/14_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_2_refactor-1568x1472.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/14_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_2_refactor-877x823.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1502;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The Result: <\/strong>The prompt now specifies the exact software stack (Nginx, Ubuntu, WordPress) and the specific error (502 Bad Gateway), reducing the chance of irrelevant advice about Apache or IIS. And Claude responds with an analysis and a step-by-step solution.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Implement Conditional Logic<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Claude 4.5 and newer models excel when given a decision tree. Instead of asking for a single static solution, instruct the model to handle different scenarios based on the data it analyzes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Prompt with Logic:<\/strong><br><em>\u201cMy WordPress site running on Nginx and Ubuntu 24.04 is experiencing high TTFB and 502 Bad Gateway errors. You are an expert server administrator. Think step by step.<\/em><br><em>If the error logs show \u2018upstream sent too big header\u2019, provide configuration changes for buffer sizes. If the error logs show \u2018upstream timed out\u2019, provide configuration changes for execution time limits.\u201d<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"1502\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/15_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_3_conditinal_logic.webp\" alt=\"Implement Conditional Logic\" class=\"wp-image-78318 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/15_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_3_conditinal_logic.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/15_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_3_conditinal_logic-300x282.webp 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/15_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_3_conditinal_logic-1024x961.webp 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/15_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_3_conditinal_logic-768x721.webp 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/15_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_3_conditinal_logic-1536x1442.webp 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/15_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_3_conditinal_logic-600x563.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/15_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_3_conditinal_logic-1200x1127.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/15_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_3_conditinal_logic-730x685.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/15_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_3_conditinal_logic-1460x1371.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/15_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_3_conditinal_logic-784x736.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/15_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_3_conditinal_logic-1568x1472.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/15_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_3_conditinal_logic-877x823.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1502;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The Result<\/strong>: The output becomes dynamic. The model provides targeted solutions based on the specific root cause logic you defined, rather than a generic list of fixes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. Remove Outdated Steering Language<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Legacy prompts often contain thinking instructions that users believed improved performance. These are unnecessary and redundant with Claude 4.x and newer models, as they have extended thinking.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Cleaned Prompt:<\/strong><br><em>\u201cMy WordPress site running on Nginx and Ubuntu 24.04 is experiencing high TTFB and 502 Bad Gateway errors.<\/em><br><em>If the error logs show \u2018upstream sent too big header\u2019, provide configuration changes for buffer sizes. If the error logs show \u2018upstream timed out\u2019, provide configuration changes for execution time limits.\u201d<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"1502\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/16_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_4_steering_language.webp\" alt=\"Remove Outdated Steering Language\" class=\"wp-image-78319 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/16_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_4_steering_language.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/16_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_4_steering_language-300x282.webp 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/16_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_4_steering_language-1024x961.webp 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/16_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_4_steering_language-768x721.webp 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/16_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_4_steering_language-1536x1442.webp 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/16_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_4_steering_language-600x563.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/16_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_4_steering_language-1200x1127.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/16_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_4_steering_language-730x685.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/16_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_4_steering_language-1460x1371.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/16_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_4_steering_language-784x736.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/16_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_4_steering_language-1568x1472.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/16_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_4_steering_language-877x823.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1502;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The Result<\/strong>: A leaner prompt that focuses purely on the technical task, removing the distraction of \u201cYou are an expert\u201d and \u201cThink step by step.\u201d<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. Test Systematically<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Assemble the components into a structured format using XML or clear headers. This matches the training data of the model and yields the most consistent results.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>ROLE: Linux System Administrator specializing in Nginx and WordPress performance.<br>TASK: Resolve 502 Bad Gateway errors and reduce Time to First Byte (TTFB) for a WordPress site on Ubuntu 24.04.<br>LOGIC:<br>- If logs show 'upstream sent too big header', increase fastcgi_buffer_size and fastcgi_buffers.<br>- If logs show 'upstream timed out', increase fastcgi_read_timeout in nginx.conf and request_terminate_timeout in www.conf.<br>OUTPUT REQUIREMENTS:<br>- Provide exact configuration lines to change.<br>- Explain the impact of each change on server memory.<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"1595\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/17_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_5_systematic_test.webp\" alt=\"Test Systematically\" class=\"wp-image-78320 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/17_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_5_systematic_test.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/17_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_5_systematic_test-300x300.webp 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/17_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_5_systematic_test-1024x1021.webp 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/17_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_5_systematic_test-150x150.webp 150w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/17_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_5_systematic_test-768x766.webp 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/17_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_5_systematic_test-1536x1531.webp 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/17_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_5_systematic_test-600x598.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/17_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_5_systematic_test-1200x1196.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/17_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_5_systematic_test-730x728.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/17_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_5_systematic_test-1460x1455.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/17_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_5_systematic_test-784x782.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/17_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_5_systematic_test-1568x1563.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/17_how_to_migrate_prompts_from_claude_3_5_to_claude_4_step_5_systematic_test-877x874.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1595;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The Result: <\/strong>The response was more structured, allowed me to solve the problem with copy-pasteable config file data as requested, and explained the solution better.<\/p>\n\n\n\n<h2 id=\"h-how-to-prompt-claude-code-and-agentic-workflows\" class=\"wp-block-heading\">How to prompt Claude Code and agentic workflows<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Prompting no longer stops at the chat box. <a rel=\"noopener noreferrer\" href=\"https:\/\/www.anthropic.com\/news\/claude-sonnet-5\" target=\"_blank\">Anthropic\u2019s Claude Sonnet 5 announcement<\/a> (June 30, 2026) describes a model that can \u201cmake plans, use tools like browsers and terminals, and run autonomously\u201d \u2014 and Claude Code puts that agentic behavior to work in your own projects. The five techniques above still apply, with four adjustments:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Describe the outcome, not the steps<\/strong>: \u201cReduce the checkout page\u2019s load time below 2 seconds, and show a before\/after measurement\u201d gives an agent a testable target. A list of micro-instructions just narrows its options.<\/li>\n\n\n\n<li><strong>Build in self-verification<\/strong>: Ask Claude to reproduce the bug, apply the fix, then run the tests to confirm. Anthropic\u2019s Sonnet 5 early testers describe exactly this loop \u2014 writing a reproducing test, fixing the bug, and re-checking the fix in a single pass.<\/li>\n\n\n\n<li><strong>Point at reference material<\/strong>: Instead of describing your conventions, name a file that embodies them (\u201cfollow the patterns in components\/Button.tsx\u201d). That\u2019s few-shot prompting with your own codebase as the example.<\/li>\n\n\n\n<li><strong>Make winning prompts reusable<\/strong>: Save prompts that work as snippets, saved commands, or a shared team document, so a tested instruction gets reused instead of rewritten from memory.<\/li>\n<\/ul>\n\n\n\n<h2 id=\"h-how-to-tell-whether-a-prompt-change-actually-worked\" class=\"wp-block-heading\">How to tell whether a prompt change actually worked<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Different output isn\u2019t the same as better output. Before a new prompt replaces an old one, run both through a quick evaluation loop:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Freeze a test set<\/strong>: Pick 3\u20135 real inputs you handle often, and use the same ones every time.<\/li>\n\n\n\n<li><strong>Run old and new side by side<\/strong>: Same model, same settings, same inputs.<\/li>\n\n\n\n<li><strong>Score against explicit criteria<\/strong>: Three or four are enough \u2014 accuracy, format compliance, completeness, tone. Score every output against each criterion instead of eyeballing the winner.<\/li>\n\n\n\n<li><strong>Version the winner<\/strong>: Date it, note which model you tested it on, and retire the old prompt. Model upgrades are exactly when saved prompts break.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">If the outputs changed but the scores didn\u2019t, you changed the prompt. You didn\u2019t improve it.<\/p>\n\n\n\n<h2 id=\"h-faqs-about-prompting-claude\" class=\"wp-block-heading\">FAQs about prompting Claude<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-what-is-the-best-prompt-structure-for-claude\">What is the best prompt structure for Claude?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A labeled, structured prompt: separate sections for the task, context, and output requirements, using XML tags, JSON, or clear headers. For long inputs, put the document first and the question last. Anthropic\u2019s own system prompts use this labeled structure.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-do-i-prompt-claude\">How do I prompt Claude?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Tell Claude exactly what you want. Current Claude models follow instructions literally instead of inferring intent, so spell out the task, the output format, and the success criteria, and explain why any rule exists. Vague prompts get minimal, literal answers.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-do-all-caps-instructions-work-with-claude\">Do ALL CAPS instructions work with Claude?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Not reliably. Since Sonnet 4.5, Claude weighs context and logic over emphasis, so \u201cALWAYS\u201d and \u201cMUST\u201d become suggestions when they conflict with the apparent goal. Replace absolutes with conditional rules: \u201cIf verified data exists, use exact figures; otherwise, provide labeled estimates.\u201d<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-should-i-tell-claude-to-think-step-by-step\">Should I tell Claude to think step by step?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Not when Extended Thinking is enabled, because the model already manages its own reasoning budget. Without Extended Thinking, a short instruction to work through the problem systematically can still help on multi-step tasks.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-which-claude-models-do-these-techniques-apply-to\">Which Claude models do these techniques apply to?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">All current ones. The literal instruction-following behavior arrived with the Claude 4.x line and carries through Claude Sonnet 5, released June 30, 2026, and now the default model on Claude\u2019s Free and Pro plans.<\/p>\n\n\n\n<h2 id=\"h2_what-this-means-for-your-workflow\" class=\"wp-block-heading\">What This Means for Your Workflow<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Claude 4.x and newer models work differently from earlier generations. They follow your exact instructions instead of assuming what you meant, which helps when you need consistent results. The effort you spend on <a rel=\"noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.dreamhost.com\/blog\/ai-prompts\/\">prompt engineering<\/a> in the beginning will pay off if you run the same task repeatedly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Each technique in this guide has been cherry-picked because it aligns closely with how Claude 4.x was built. XML tags, Extended Thinking mode, explicit instructions, few-shot examples, and a context-first approach work because, based on Claude\u2019s prompting guides and anecdotal evidence, that\u2019s likely how Anthropic has trained the models.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So go ahead, pick one or two techniques from this guide and test them on your actual workflows. Measure what changes with the evaluation loop above, and keep the methods that work in your favor. The best approach is the one backed by real data from your own day-to-day workflows.<\/p>\n\n\n\n<div class=\"article-newsletter article-newsletter--gradient\">\n\n\n<p class=\"newsletter-form__title\">Get Content Delivered Straight to Your Inbox<\/p><p>Subscribe now to receive all the latest updates, delivered directly to your inbox.<\/p><form class=\"nwsl-form\" id=\"newsletter_block_\" novalidate><div class=\"messages\"><\/div><div class=\"form-group\"><label for=\"input_newsletter_block_\"><input type=\"email\"name=\"email\"id=\"input_newsletter_block_\"placeholder=\"Enter your email address\"novalidatedisabled=\"disabled\"\/><\/label><button type=\"submit\"class=\"btn btn--brand\"disabled=\"disabled\"><span>Sign Me Up!<\/span><svg width=\"21\" height=\"14\" viewBox=\"0 0 21 14\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n<path d=\"M13.8523 0.42524L12.9323 1.34521C12.7095 1.56801 12.7132 1.9304 12.9404 2.14865L16.7241 5.7823H0.5625C0.251859 5.7823 0 6.03416 0 6.3448V7.6573C0 7.96794 0.251859 8.2198 0.5625 8.2198H16.7241L12.9405 11.8535C12.7132 12.0717 12.7095 12.4341 12.9323 12.6569L13.8523 13.5769C14.072 13.7965 14.4281 13.7965 14.6478 13.5769L20.8259 7.39879C21.0456 7.17913 21.0456 6.82298 20.8259 6.60327L14.6477 0.42524C14.4281 0.205584 14.0719 0.205584 13.8523 0.42524Z\" fill=\"white\"\/>\n<\/svg>\n<\/button><\/div><\/form><\/div>","protected":false},"excerpt":{"rendered":"<p>We systematically tested 25 popular Claude prompt engineering techniques to see what actually works. Discover the 5 proven methods that measurably improve AI outputs, plus the surprising failures that waste your time<\/p>\n","protected":false},"author":1006,"featured_media":86583,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_yoast_wpseo_opengraph-title":"Claude Prompt Engineering: Best Practices - DreamHost","_yoast_wpseo_opengraph-description":"Claude prompt engineering shifted with Claude Sonnet 4.5's literal, instruction-first style \u2014 see updated best practices for Claude Sonnet 5.","_yoast_wpseo_twitter-title":"Claude Prompt Engineering: Best Practices - DreamHost","_yoast_wpseo_twitter-description":"Claude prompt engineering shifted with Claude Sonnet 4.5's literal, instruction-first style \u2014 see updated best practices for Claude Sonnet 5.","toc_headlines":"[[\"h-what-changed-in-claude-4-5-that-broke-existing-prompts\",\"What Changed in Claude 4.5 That Broke Existing Prompts?\"],[\"h-the-5-proven-techniques-that-measurably-improve-claude-s-performance\",\"5 Claude prompt engineering best practices that actually work\"],[\"h-copy-paste-claude-prompts-for-common-tasks\",\"Copy-paste Claude prompts for common tasks\"],[\"h2_what-prompting-techniques-dont-work-anymore-busting-common-myths\",\"What Prompting Techniques Don\u2019t Work Anymore: Busting Common Myths\"],[\"h2_how-to-migrate-prompts-from-claude-3-5-to-claude-4\",\"How To Migrate Prompts From Older Claude Models to Claude 4.x and Newer?\"],[\"h-how-to-prompt-claude-code-and-agentic-workflows\",\"How to prompt Claude Code and agentic workflows\"],[\"h-how-to-tell-whether-a-prompt-change-actually-worked\",\"How to tell whether a prompt change actually worked\"],[\"h-faqs-about-prompting-claude\",\"FAQs about prompting Claude\"],[\"h2_what-this-means-for-your-workflow\",\"What This Means for Your Workflow\"]]","hide_toc":false,"show_updated_at":"1","footnotes":""},"categories":[14839],"tags":[],"class_list":["post-78313","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.3 (Yoast SEO v28.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Claude Prompt Engineering: Best Practices - DreamHost<\/title>\n<meta name=\"description\" content=\"Claude prompt engineering shifted with Claude Sonnet 4.5&#039;s literal, instruction-first style \u2014 see updated best practices for Claude Sonnet 5.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dreamhost.com\/blog\/claude-prompt-engineering\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Claude Prompt Engineering: Best Practices - DreamHost\" \/>\n<meta property=\"og:description\" content=\"Claude prompt engineering shifted with Claude Sonnet 4.5&#039;s literal, instruction-first style \u2014 see updated best practices for Claude Sonnet 5.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dreamhost.com\/blog\/claude-prompt-engineering\/\" \/>\n<meta property=\"og:site_name\" content=\"DreamHost Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DreamHost\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-12-19T15:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-31T19:32:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/1220x628_ogimage_we_tested_25_popular_claude_prompt_techniques_these_5_actually_work.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Brian Andrus\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Claude Prompt Engineering: Best Practices - DreamHost\" \/>\n<meta name=\"twitter:description\" content=\"Claude prompt engineering shifted with Claude Sonnet 4.5&#039;s literal, instruction-first style \u2014 see updated best practices for Claude Sonnet 5.\" \/>\n<meta name=\"twitter:creator\" content=\"@dreamhost\" \/>\n<meta name=\"twitter:site\" content=\"@dreamhost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Brian Andrus\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"15 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Claude Prompt Engineering: Best Practices - DreamHost","description":"Claude prompt engineering shifted with Claude Sonnet 4.5's literal, instruction-first style \u2014 see updated best practices for Claude Sonnet 5.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dreamhost.com\/blog\/claude-prompt-engineering\/","og_locale":"en_US","og_type":"article","og_title":"Claude Prompt Engineering: Best Practices - DreamHost","og_description":"Claude prompt engineering shifted with Claude Sonnet 4.5's literal, instruction-first style \u2014 see updated best practices for Claude Sonnet 5.","og_url":"https:\/\/www.dreamhost.com\/blog\/claude-prompt-engineering\/","og_site_name":"DreamHost Blog","article_publisher":"https:\/\/www.facebook.com\/DreamHost\/","article_published_time":"2025-12-19T15:00:00+00:00","article_modified_time":"2026-07-31T19:32:02+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2025\/12\/1220x628_ogimage_we_tested_25_popular_claude_prompt_techniques_these_5_actually_work.webp","type":"image\/webp"}],"author":"Brian Andrus","twitter_card":"summary_large_image","twitter_title":"Claude Prompt Engineering: Best Practices - DreamHost","twitter_description":"Claude prompt engineering shifted with Claude Sonnet 4.5's literal, instruction-first style \u2014 see updated best practices for Claude Sonnet 5.","twitter_creator":"@dreamhost","twitter_site":"@dreamhost","twitter_misc":{"Written by":"Brian Andrus","Est. reading time":"15 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dreamhost.com\/blog\/claude-prompt-engineering\/#article","isPartOf":{"@id":"https:\/\/www.dreamhost.com\/blog\/claude-prompt-engineering\/"},"author":{"name":"Brian Andrus","@id":"https:\/\/www.dreamhost.com\/blog\/#\/schema\/person\/a3f8817a11ac0b464bfbcb6c505cb82b"},"headline":"We Tested 25 Popular Claude Prompt Techniques: These 5 Actually Work","datePublished":"2025-12-19T15:00:00+00:00","dateModified":"2026-07-31T19:32:02+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dreamhost.com\/blog\/claude-prompt-engineering\/"},"wordCount":3525,"publisher":{"@id":"https:\/\/www.dreamhost.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.dreamhost.com\/blog\/claude-prompt-engineering\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/07\/blog-hero-claude-prompt-engineering.png","articleSection":["AI"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.dreamhost.com\/blog\/claude-prompt-engineering\/","url":"https:\/\/www.dreamhost.com\/blog\/claude-prompt-engineering\/","name":"Claude Prompt Engineering: Best Practices - DreamHost","isPartOf":{"@id":"https:\/\/www.dreamhost.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dreamhost.com\/blog\/claude-prompt-engineering\/#primaryimage"},"image":{"@id":"https:\/\/www.dreamhost.com\/blog\/claude-prompt-engineering\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/07\/blog-hero-claude-prompt-engineering.png","datePublished":"2025-12-19T15:00:00+00:00","dateModified":"2026-07-31T19:32:02+00:00","description":"Claude prompt engineering shifted with Claude Sonnet 4.5's literal, instruction-first style \u2014 see updated best practices for Claude Sonnet 5.","breadcrumb":{"@id":"https:\/\/www.dreamhost.com\/blog\/claude-prompt-engineering\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dreamhost.com\/blog\/claude-prompt-engineering\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dreamhost.com\/blog\/claude-prompt-engineering\/#primaryimage","url":"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/07\/blog-hero-claude-prompt-engineering.png","contentUrl":"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/07\/blog-hero-claude-prompt-engineering.png","width":1536,"height":1024},{"@type":"BreadcrumbList","@id":"https:\/\/www.dreamhost.com\/blog\/claude-prompt-engineering\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dreamhost.com\/blog\/"},{"@type":"ListItem","position":2,"name":"We Tested 25 Popular Claude Prompt Techniques: These 5 Actually Work"}]},{"@type":"WebSite","@id":"https:\/\/www.dreamhost.com\/blog\/#website","url":"https:\/\/www.dreamhost.com\/blog\/","name":"DreamHost Blog","description":"","publisher":{"@id":"https:\/\/www.dreamhost.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dreamhost.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dreamhost.com\/blog\/#organization","name":"DreamHost","url":"https:\/\/www.dreamhost.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dreamhost.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/dhblog.dream.press\/blog\/wp-content\/uploads\/2019\/01\/dh_logo-blue-2.png","contentUrl":"https:\/\/dhblog.dream.press\/blog\/wp-content\/uploads\/2019\/01\/dh_logo-blue-2.png","width":1200,"height":168,"caption":"DreamHost"},"image":{"@id":"https:\/\/www.dreamhost.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DreamHost\/","https:\/\/x.com\/dreamhost","https:\/\/www.instagram.com\/dreamhost\/","https:\/\/www.linkedin.com\/company\/dreamhost\/","https:\/\/www.youtube.com\/user\/dreamhostusa"]},{"@type":"Person","@id":"https:\/\/www.dreamhost.com\/blog\/#\/schema\/person\/a3f8817a11ac0b464bfbcb6c505cb82b","name":"Brian Andrus","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/10\/brian-andrus-150x150.jpg","url":"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/10\/brian-andrus-150x150.jpg","contentUrl":"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/10\/brian-andrus-150x150.jpg","caption":"Brian Andrus"},"description":"Brian is a Cloud Engineer at DreamHost, primarily responsible for cloudy things. In his free time he enjoys navigating fatherhood, cutting firewood, and self-hosting whatever he can.","url":"https:\/\/www.dreamhost.com\/blog\/author\/brianandrus\/"}]}},"lang":"en","translations":{"en":78313,"es":78350,"uk":80631,"ru":80641,"nl":80692,"de":80701,"pl":80706,"it":80797,"fr":80818,"pt":80821},"pll_sync_post":{},"_links":{"self":[{"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts\/78313","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/users\/1006"}],"version-history":[{"count":2,"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts\/78313\/revisions"}],"predecessor-version":[{"id":86611,"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts\/78313\/revisions\/86611"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/media\/86583"}],"wp:attachment":[{"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/media?parent=78313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/categories?post=78313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/tags?post=78313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}