Prompt Engineering Fundamentals: The Complete Course
Prompt Engineering Fundamentals
Prompt engineering is the skill of communicating effectively with AI. Master it, and you'll get dramatically better results from any AI tool.
What is Prompt Engineering?
Prompt engineering is crafting inputs (prompts) that guide AI models to produce desired outputs. It's part art, part science.
The CRISP Framework
Use this framework for every prompt:
C - Context
Provide background information
You are a senior marketing manager at a B2B SaaS company.R - Role
Define who the AI should be
Act as an expert copywriter with 10 years of experience.I - Instructions
Clear, specific directions
Write a landing page headline that emphasizes our unique value proposition.S - Specifications
Format, length, style requirements
- Maximum 10 words
- Use power words
- Include a number if possibleP - Proof/Examples
Show what you want
Examples of good headlines:
- "10x Your Sales Pipeline in 30 Days"
- "The CRM That Actually Gets Used"Basic Prompt Patterns
1. The Role Pattern
You are [ROLE] with expertise in [AREA].
Your task is to [TASK].2. The Step-by-Step Pattern
Let's approach this step by step:
1. First, analyze [X]
2. Then, consider [Y]
3. Finally, recommend [Z]3. The Format Pattern
Provide your response in the following format:
- Summary: [1-2 sentences]
- Key Points: [bullet list]
- Recommendation: [action item]4. The Constraint Pattern
Write [CONTENT] with these constraints:
- Length: [X words/sentences]
- Tone: [formal/casual/etc]
- Avoid: [things to exclude]Advanced Techniques
Chain of Thought
Force the AI to show its reasoning:
Solve this problem. Show your reasoning at each step before giving the final answer.Few-Shot Learning
Provide examples:
Convert these sentences to professional tone:
Casual: "Hey, just checking in about that thing"
Professional: "I wanted to follow up regarding our previous discussion"
Casual: "Can you get this done ASAP?"
Professional: [AI completes the pattern]Self-Consistency
Ask for multiple approaches:
Provide 3 different solutions to this problem, then analyze which is best and why.Persona Stacking
Combine multiple perspectives:
Analyze this business plan from three perspectives:
1. As a venture capitalist
2. As a potential customer
3. As a competitorCommon Mistakes & Fixes
Mistake 1: Too Vague
❌ "Write about dogs"
✅ "Write a 500-word blog post about the top 5 dog breeds for apartment living, targeting first-time dog owners"
Mistake 2: No Context
❌ "Make this email better"
✅ "I'm emailing a potential client who showed interest at a conference. Make this follow-up email more compelling while maintaining professionalism"
Mistake 3: Overloading
❌ One prompt with 10 requests
✅ Break into focused, sequential prompts
Mistake 4: No Format Guidance
❌ "Give me information about X"
✅ "Provide information about X in a table with columns for [A], [B], and [C]"
Tool-Specific Tips
ChatGPT
- Use Custom Instructions for persistent context
- Reference conversation history
- Use plugins for enhanced capabilities
Claude
- Leverage the long context window
- Use XML tags for structure
- Artifacts for code and documents
Midjourney
- Style keywords: cinematic, photorealistic, illustration
- Aspect ratios: --ar 16:9, --ar 1:1
- Quality settings: --q 2 for higher quality
Practice Exercises
Exercise 1: Improve This Prompt
Original: "Write a story"
Your improved version: [Practice here]
Exercise 2: Add Structure
Task: Get AI to write a product description
Add: Role, Context, Format, Examples
Exercise 3: Chain of Thought
Task: Have AI solve a logic puzzle
Requirement: Force step-by-step reasoning
Measuring Prompt Quality
Good prompts result in:
- Relevant outputs (matches intent)
- Consistent results (reproducible)
- Minimal iterations needed
- Appropriate length/format
- Actionable content

Milo
Milo covers AI coding tools and developer workflows for the Scout AI Team — the same agentic stack that builds and ships this site.