đŻ Prompt Engineering: Instruction Design
The Recipe Analogy
Imagine youâre giving someone a recipe to bake a cake. If you just say âmake a cake,â they might be confused. But if you say âtake 2 cups of flour, add 3 eggs, mix slowly, then bake at 350°F for 30 minutesâ â now they can actually make something delicious!
Talking to AI is exactly like giving a recipe. The clearer your instructions, the better the result!
1. Instruction Clarity
What Is It?
Instruction clarity means saying exactly what you want in a way thatâs impossible to misunderstand.
Think of it like this: If you tell your friend âget me something to drink,â they might bring water, juice, or soda. But if you say âplease bring me a cold glass of orange juiceâ â you get exactly what you want!
Why It Matters
- AI doesnât guess well
- Clear instructions = Clear results
- Saves time (no back-and-forth)
Simple Example
â Unclear: âWrite about dogsâ
â Clear: âWrite 3 sentences about why golden retrievers make great family petsâ
The Clarity Checklist
â What exactly do I want?
â How long should it be?
â What style or tone?
â Any specific format?
2. Specificity in Prompts
What Is It?
Specificity means adding details that narrow down what you want. Itâs like zooming in on a map â the more you zoom, the more precise your location.
The Zoom Analogy
đ World â đșïž Country â đïž City â đ Street â đ House
Each step gets MORE specific!
Simple Example
â Vague: âHelp me with mathâ
â Specific: âSolve this equation: 2x + 5 = 15. Show each step.â
Types of Specificity
| Type | Example |
|---|---|
| Topic | âAbout climate change in Arctic regionsâ |
| Format | âAs a bullet-point listâ |
| Length | âIn exactly 50 wordsâ |
| Audience | âExplain for a 10-year-oldâ |
| Tone | âIn a friendly, casual wayâ |
3. Providing Context
What Is It?
Context is the background information that helps AI understand your situation. Itâs like telling a doctor your symptoms before they prescribe medicine!
The Doctor Analogy
đ„ Bad: âI need medicineâ đ„ Good: âI have a headache, it started this morning, Iâm allergic to aspirinâ
Why Context Helps
Without context, AI has to guess. With context, AI knows:
- Your situation
- Your constraints
- Your goals
Simple Example
â No Context: âWrite an emailâ
â With Context: âIâm a teacher writing to a parent. Their child missed 3 days of school. I need to ask if everything is okay and offer makeup work. Keep it friendly but professional.â
Context Building Blocks
graph TD A[WHO are you?] --> E[Complete Context] B[WHAT do you need?] --> E C[WHY do you need it?] --> E D[WHO is it for?] --> E
4. Prompt Priming
What Is It?
Prompt priming is warming up the AI by telling it what role to play or what style to use BEFORE asking your question.
Think of it like an actor getting into character before a scene!
The Actor Analogy
đ Before: âCan you explain photosynthesis?â
đ After: âYou are a fun science teacher who loves using jokes and simple examples. Explain photosynthesis to a curious 8-year-old.â
Simple Example
â No Priming: âHow do I fix my code?â
â With Priming: âAct as a patient coding mentor. Iâm a beginner learning Python. My code isnât working and Iâm getting a âTypeErrorâ. Help me understand whatâs wrong and how to fix it.â
Priming Templates
| Role | Use When⊠|
|---|---|
| âAct as a teacherâ | You want explanations |
| âAct as an editorâ | You need writing feedback |
| âAct as a debuggerâ | You have code problems |
| âAct as a coachâ | You want motivation |
5. Directional Stimulus
What Is It?
Directional stimulus is pointing the AI in the right direction by giving hints about what kind of answer you want.
Itâs like telling a treasure hunter âthe gold is somewhere in the forestâ instead of âfind gold somewhere on Earthâ!
The Compass Analogy
đ§ Without direction: AI wanders everywhere đ§ With direction: AI goes straight to what you need
Simple Example
â No Direction: âTell me about spaceâ
â With Direction: âFocus specifically on how astronauts sleep in zero gravity. Include at least 2 surprising facts.â
Directional Keywords
Use these words to steer the AI:
- âFocus onâŠâ - Narrows the topic
- âEmphasizeâŠâ - Highlights what matters most
- âCompareâŠâ - Gets contrasts
- âAvoidâŠâ - Steers away from unwanted content
- âIncludeâŠâ - Ensures certain elements appear
Steering Examples
"Focus on practical tips, not theory"
"Emphasize cost-saving benefits"
"Compare the pros and cons"
"Avoid technical jargon"
"Include real-world examples"
6. Anchoring Techniques
What Is It?
Anchoring means giving the AI a starting point or reference to build from. Itâs like showing someone a sample before asking them to create something similar.
The Blueprint Analogy
đïž Building without plans = Random results đïž Building with a blueprint = Exactly what you pictured
Types of Anchors
- Example Anchor - Show what you want
- Style Anchor - Reference a known style
- Format Anchor - Provide a template
Simple Example: Example Anchor
â No Anchor: âWrite a product descriptionâ
â With Anchor: âWrite a product description like this example: âThe SunBright Lamp brings warm, natural light to any room. Perfect for reading or relaxing. Energy-efficient LED bulbs last 10+ years.â Now write one for a wireless mouse.â
Simple Example: Style Anchor
â âWrite in the style of a friendly newsletterâ â âMake it sound like a TED talkâ â âMatch the tone of a childrenâs bookâ
Simple Example: Format Anchor
â âUse this format: Problem: [describe issue] Solution: [your fix] Result: [what happened]â
7. Scaffolding Prompts
What Is It?
Scaffolding means breaking a big task into smaller steps. Just like building a house floor by floor, you help the AI tackle one piece at a time.
The Staircase Analogy
đȘ Instead of jumping to the top, you climb step by step!
graph TD A[Step 1: Gather Info] --> B[Step 2: Organize] B --> C[Step 3: Draft] C --> D[Step 4: Refine] D --> E[Final Result!]
Why Scaffolding Works
- Complex tasks become manageable
- Each step can be checked
- Better quality output
- Easier to fix problems
Simple Example
â One Big Ask: âWrite a complete business plan for a coffee shopâ
â Scaffolded Approach:
Step 1: âFirst, list 5 unique features my coffee shop could haveâ
Step 2: âNow, for the top 3 features, explain who would be the target customersâ
Step 3: âCreate a simple pricing menu for 10 itemsâ
Step 4: âWrite a one-paragraph summary of the business conceptâ
Scaffolding Trigger Words
- âFirstâŠâ
- âThenâŠâ
- âNextâŠâ
- âAfter thatâŠâ
- âFinallyâŠâ
- âLetâs start withâŠâ
- âNow letâs move toâŠâ
đź Quick Reference: All 7 Techniques
| Technique | One-Liner | Key Question |
|---|---|---|
| Clarity | Say exactly what you want | âAm I being clear?â |
| Specificity | Add details that narrow down | âHow can I zoom in?â |
| Context | Give background information | âWhat does AI need to know?â |
| Priming | Set the role or character | âWho should AI pretend to be?â |
| Direction | Point toward what you want | âWhich way should AI go?â |
| Anchoring | Provide examples or templates | âWhatâs my reference point?â |
| Scaffolding | Break into smaller steps | âWhatâs step one?â |
đ Putting It All Together
Hereâs a prompt that uses ALL 7 techniques:
[PRIMING] You are a friendly fitness coach
who specializes in home workouts.
[CONTEXT] I'm a busy parent with 20 minutes
per day and no gym equipment.
[CLARITY] Create a simple workout routine.
[SPECIFICITY] Include exactly 5 exercises,
each taking about 4 minutes.
[DIRECTION] Focus on full-body movements.
Avoid anything that requires jumping
(apartment living!).
[ANCHORING] Format each exercise like this:
- Exercise Name
- How to do it (2 sentences)
- Muscles worked
[SCAFFOLDING] Let's start with warm-up
exercises first, then move to the main workout.
đ Youâve Got This!
Remember: Talking to AI is like giving a recipe.
The more specific, clear, and structured your instructions, the more delicious your results will be!
Start simple, practice often, and watch your prompts get better every day. Youâre already on your way to becoming a prompt engineering pro! đ