The Anatomy of a Great Prompt
- Name the four elements of a strong prompt: Task, Context, Format, Constraints
- Write prompts that include all four elements for a real task
- Identify which element is missing when output is not good enough
- Apply the framework to any task without overcomplicating short prompts
A Framework You Can Always Fall Back On
Great prompts are not written by instinct. They follow a structure — and once you know the structure, you can apply it to almost any task. The four elements of a strong prompt are:
- Task — what you want the AI to produce
- Context — the background information that shapes the output
- Format — how you want the output structured
- Constraints — what to avoid or stay within
You do not always need all four. But when your results are not good, one of these elements is almost always missing. Knowing the framework tells you exactly what to add.
A clear, specific verb phrase — write, summarise, list, compare, rewrite, explain.
Who it is for, why it exists, what the reader knows, the setting or situation.
Bullets, prose, table, word count, length — how you want the output laid out.
Tone guardrails, content to exclude, phrases to avoid, things to stay within.
Element 1: Task
The task is the core instruction — what you actually want. It should be a clear, specific verb phrase: write, summarise, list, compare, rewrite, explain, translate, critique.
Weak task: "Marketing email."
Strong task: "Write a marketing email promoting our summer sale."
The difference is specificity. "Marketing email" is a noun. "Write a marketing email promoting X" is an instruction. AI responds to instructions, not topics.
Element 2: Context
Context is the background information that helps the AI produce the right output for your specific situation. It is the most underused element of a prompt — and often the one that makes the biggest difference.
Context answers questions like:
- Who is this for? (audience)
- Why does it exist? (purpose)
- What does the reader already know? (assumed knowledge)
- What is the situation or setting? (background)
The same task — "write a product description" — should produce very different output for a children's toy versus a professional B2B software tool. Context is what tells the AI which version to write.
Element 3: Format
Format is how you want the output structured. Without it, the AI defaults to whatever it thinks is most appropriate — which may not match what you need.
Format instructions can be simple or detailed:
- Structure — "Use bullet points," "Write in numbered steps," "Use headers for each section"
- Length — "Under 150 words," "Three paragraphs," "One sentence per item"
- Form — "Write as an email," "Format as a table," "Give me a listicle"
Specifying format is one of the fastest ways to improve the usability of your output without changing anything else.
Element 4: Constraints
Constraints tell the AI what to avoid. They are the guardrails that prevent the most common AI output problems: generic filler, inappropriate tone, unwanted content, excessive length.
- "Do not use jargon."
- "Avoid bullet points."
- "Do not mention competitors by name."
- "Keep the tone professional but approachable — not stiff."
Constraints take up very few words and have an outsized effect on output quality. Lesson 6 covers them in depth.
Putting It Together
Here is the same request written without the framework, then with it:
"Write me a LinkedIn post about our new product."
Versus:
"Write a LinkedIn post announcing our new project management tool for small businesses. The audience is founders and team leads who are overwhelmed by complexity. The tone should be confident but conversational — not corporate. Use a short hook, three benefit sentences, and a call-to-action. Under 200 words. Avoid buzzwords like 'game-changing' or 'revolutionise'."
The second prompt takes thirty seconds longer to write and produces output you can actually use — often on the first try. That is the power of the framework.
You Do Not Always Need All Four
For simple, low-stakes tasks, a task alone is often enough. "Summarise this paragraph in one sentence" does not need context or constraints. The framework is not a rigid checklist — it is a diagnostic tool. When output is not right, ask yourself which element is missing. That is where to focus.
- Task = the clear instruction (use a specific verb)
- Context = background that makes output relevant to your situation
- Format = how you want the output structured and how long
- Constraints = what to avoid or stay within
- When output misses the mark, a missing element is almost always why