Anatomy of a Good Prompt
Break down what makes a prompt effective and learn the key components every prompt needs.
A good prompt isn't just a question — it's a carefully structured instruction that gives the AI everything it needs to produce exactly what you want. Every effective prompt contains some combination of five core components.
- Role: Who should the AI be? (e.g., "You are an experienced tax accountant")
- Task: What do you want it to do? (e.g., "Review this expense report")
- Context: What background information does it need? (e.g., "This is for a US-based LLC")
- Format: How should the output look? (e.g., "Return a table with columns for...")
- Constraints: What rules should it follow? (e.g., "Keep the response under 200 words")
Not every prompt needs all five components. A simple question might only need a task. But the more complex your request, the more components you should include.
The good prompt is effective because it specifies: the task (blog introduction), the topic (golden retrievers for families), the audience (first-time pet owners), the format (300 words, specific ending), and the tone (warm, encouraging).
The single most important rule in prompt engineering is: be specific. Every vague word in your prompt is a decision you're leaving to the AI. Sometimes that's fine — you want the AI to make creative choices. But when you have a specific outcome in mind, spell it out.
Prompt
Vague vs. specific language:
Vague
"Make it better" → "Improve the clarity by shortening sentences to under 20 words and replacing jargon with plain English"
Vague
"Write something professional" → "Write in a confident, formal tone suitable for a board of directors presentation"
Vague
"Give me some ideas" → "Generate 5 specific marketing campaign ideas, each with a tagline, target channel, and estimated budget"
Prompt Templates
Universal Prompt Starter
A fill-in-the-blank template that covers all five prompt components.
You are a [ROLE] with expertise in [DOMAIN]. I need you to [TASK]. Here's the context: [CONTEXT]. Format your response as [FORMAT]. Important constraints: [CONSTRAINTS].
Prompt Improver
Gets AI to improve your prompts and explain what was missing.
I wrote this prompt but the output isn't what I want: My prompt: "[YOUR PROMPT]" The output I got: "[SUMMARY OF BAD OUTPUT]" What I actually wanted: "[DESIRED OUTPUT]" Rewrite my prompt to get the result I want. Explain what was wrong with the original.
Test Your Knowledge
Knowledge Check
1 / 3
What are the five core components of an effective prompt?
Key Takeaways
- ✓Every good prompt combines Role, Task, Context, Format, and Constraints
- ✓Not every prompt needs all five components — match complexity to the task
- ✓Specificity is the #1 principle: replace vague words with concrete details
- ✓The difference between bad and good prompts is usually 30 seconds of extra thought
- ✓Scan prompts for vague words before sending them
Continue Learning
Zero-Shot Prompting
Learn the simplest and most common prompting technique — giving instructions without examples.
Common Mistakes to Avoid
The most frequent prompting errors beginners make and how to fix them instantly.
What Are LLMs
A plain-English explanation of large language models and why they behave the way they do.