How to Write Better AI Prompts

6 principles with before/after examples. Works for ChatGPT, Claude, and Gemini.

2026 · Model-agnostic · No account needed

Why Most AI Prompts Fail

LLMs are prediction machines. A vague prompt matches many possible contexts, so the model outputs the average of those contexts — which is generic and mediocre. A specific prompt narrows the prediction space to a tight range of high-quality outputs aligned with what you actually want.

The principles below are model-agnostic: they work for ChatGPT (GPT-4o), Claude (Sonnet, Opus), Gemini, Llama, and any other frontier model.

→ Auto-Improve My Prompt (Free)

6 Principles for Better Prompts

01

Assign a role

Before (weak)
Summarize this document.
After (strong)
You are a senior business analyst. Summarize this document for a C-suite audience in 3 bullet points, each under 20 words. Focus on financial impact and timeline.
Why it works: Role activates domain knowledge and sets the appropriate register.
02

Specify output format

Before (weak)
List the pros and cons.
After (strong)
List 3 pros and 3 cons as a markdown table with columns: Factor | Details (1 sentence) | Impact (High/Medium/Low).
Why it works: Explicit format eliminates the model's default choice, which is rarely what you want.
03

Set length constraints

Before (weak)
Write a short email.
After (strong)
Write a follow-up email to a cold prospect. Max 80 words. Subject line included. No filler openers like "Hope this finds you well."
Why it works: "Short" is not a constraint. 80 words is.
04

Name your audience

Before (weak)
Explain how neural networks work.
After (strong)
Explain how neural networks work to a product manager with no ML background. Use a real-world analogy. Avoid all math notation. Max 200 words.
Why it works: The same content requires radically different depth and vocabulary depending on the reader.
05

Add a worked example

Before (weak)
Convert these addresses to a standard format.
After (strong)
Convert these addresses to standard format. Example: "123 main st, new york ny 10001" → "123 Main St, New York, NY 10001". Apply the same pattern to all entries below.
Why it works: A single example eliminates ambiguity more efficiently than three paragraphs of explanation.
06

Define the fallback

Before (weak)
Answer any questions about our product.
After (strong)
Answer questions about our product. If you don't know the answer, say exactly: "I don't have that information — I'll flag this for the support team." Never guess.
Why it works: Without a fallback, models hallucinate plausible-sounding wrong answers.

Don't Want to Do This Manually?

Paste any prompt into the free Prompt Improver and it applies all 6 principles automatically. You get the improved prompt plus a plain-English changelog explaining every change — so you learn the principles as you use it.

  • Works for one-liners, multi-paragraph prompts, and full system prompts
  • BYO Anthropic API key — ~$0.003 per optimization, nothing stored server-side
  • No account, no subscription
→ Improve My Prompt Now

Frequently Asked Questions

What is the single most effective way to get better AI responses?
Add specificity. Most AI prompts underperform because they're too vague. Instead of "write a blog post," specify the audience, length, tone, structure, and goal. The AI can't infer what you mean by "good" — you have to tell it what good looks like.
Why does "be more specific" actually work?
LLMs like Claude and GPT-4 predict the most statistically likely response to your input. A vague prompt matches many possible contexts — so the model outputs the average of those contexts, which is mediocre. A specific prompt narrows the distribution: the model's prediction space collapses to a narrow range of high-quality outputs aligned with your intent.
What is role prompting and does it still work in 2026?
Role prompting (telling the AI "you are a senior [expert]") remains effective in 2026 for activating domain-specific knowledge patterns and setting the right register for tone and depth. It works best when combined with a task description and output format — role alone without scope and format still produces inconsistent results.
How do I get AI to follow a specific output format?
State the format explicitly at the end of your prompt: "Return your answer as a JSON object with keys: title (string), summary (max 2 sentences), tags (array of 3 strings)." For non-JSON format, describe structure in prose: "Use H2 headings for each section. Each section: 2–3 short paragraphs. No bullet lists." Putting format instructions at the end reduces recency-bias drift.
Does this tool automatically improve my prompts?
Yes. Paste any prompt into the Prompt Improver and it applies all these principles automatically: adds specificity, assigns a role if needed, clarifies scope, adds format constraints, and explains every change in a plain-English changelog. Each optimization call costs $0.002–$0.005 in Anthropic API credits (BYO key). The tool itself is free.
🔥 Tonight: Claude Code Power Prompts · £5 £3 first 10Get PDF →