Prompt Patterns Cheat Sheet
12 Reusable Patterns for Better AI Outputs
TL;DR:
This guide covers 12 prompt patterns organized by difficulty — from Zero-Shot and Few-Shot (beginner) through Chain of Thought and System Prompts (intermediate) to Self-Critique and Meta-Prompting (advanced). Each pattern includes a copyable template, a real-world example, and clear guidance on when to use it and when to skip it. The goal is to give you a reusable toolkit, not a list of tricks.
Quick Reference: All 12 Patterns
Bookmark this table. When you're stuck on a prompt, scan the “When to use” column to find the right pattern.
| # | Pattern | Level | When to use |
|---|---|---|---|
| 1 | Zero-Shot Instruction | Beginner | Simple, well-defined tasks where the model already knows the format (summarize, translate, classify). |
| 2 | Few-Shot Examples | Beginner | You need a specific output format, tone, or classification scheme that is hard to describe in words. |
| 3 | Chain of Thought (CoT) | Intermediate | Math, logic, multi-step analysis, debugging, or any task where the reasoning path matters. |
| 4 | Persona / Role Assignment | Beginner | You want domain-specific language, a particular communication style, or expert-level depth. |
| 5 | System Prompt Framing | Intermediate | Building chatbots, assistants, or any multi-turn application where behavior must stay consistent. |
| 6 | Output Format Control | Beginner | You need JSON, markdown tables, bullet points, or any structured format for downstream processing. |
| 7 | Iterative Refinement | Intermediate | Complex creative tasks, long documents, or when you don't know exactly what you want until you see a draft. |
| 8 | Constraint Stacking | Intermediate | You need precise control over length, tone, audience, format, and content simultaneously. |
| 9 | Self-Critique / Reflection | Advanced | High-stakes content where quality matters — proposals, code, analysis, or anything going to a client. |
| 10 | Task Decomposition | Advanced | Multi-step workflows, research tasks, or anything where a single prompt would produce shallow results. |
| 11 | Negative Prompting | Beginner | The model keeps producing unwanted patterns — filler phrases, clichés, disclaimers, or wrong formats. |
| 12 | Meta-Prompting | Advanced | You're stuck on how to phrase a complex request, or you want to optimize an existing prompt. |
How to Use This Cheat Sheet
Copy & Adapt
Each pattern has a copyable template. Paste it, fill in the blanks, and adjust to your task.
Combine Patterns
The best prompts use 2–4 patterns together. Persona + Output Format + Constraints is a common combo.
Build a Library
Save your best prompts. Over time, you'll build a personal library of proven templates for your domain.
1. Zero-Shot Instruction
Give a clear instruction with no examples. The model relies entirely on its training.
When to use
When to avoid
[Task verb] the following [input type].
[Your input here]Example
Summarize the following customer review in one sentence. "I've been using this project management tool for 6 months. The Kanban board is excellent, but the reporting dashboard is slow and the mobile app crashes frequently. Customer support responded within 2 hours though."
2. Few-Shot Examples
Show 2–5 input→output examples before your actual request. The model learns the pattern.
When to use
When to avoid
[Task description]
Example 1:
Input: [example input]
Output: [example output]
Example 2:
Input: [example input]
Output: [example output]
Now do the same for:
Input: [your actual input]
Output:Example
Classify the sentiment of product reviews as Positive, Negative, or Mixed. Example 1: Input: "Love the interface, hate the price." Output: Mixed Example 2: Input: "Best purchase I made this year!" Output: Positive Now do the same for: Input: "The AI features are impressive but it keeps crashing on my phone." Output:
3. Chain of Thought (CoT)
Ask the model to reason step by step before giving its final answer.
When to use
When to avoid
[Your question or task]
Think through this step by step:
1. First, identify [relevant factor].
2. Then, analyze [relationship].
3. Finally, conclude [answer].
Show your reasoning before giving the final answer.Example
A SaaS company has 1,200 customers paying $49/month. They want to raise prices to $59/month but expect 15% churn. Should they do it? Think through this step by step: 1. Calculate current MRR. 2. Calculate new MRR after price increase and churn. 3. Compare and recommend. Show your reasoning before giving the final answer.
4. Persona / Role Assignment
Tell the model who it is. A persona shapes tone, vocabulary, depth, and perspective.
When to use
When to avoid
You are a [role] with [years] of experience in [domain].
Your communication style is [style description].
Your audience is [audience description].
[Your actual task or question]Example
You are a senior product manager with 10 years of experience in B2B SaaS. Your communication style is direct, data-driven, and concise. Your audience is engineering leadership. Write a one-page brief explaining why we should prioritize the API rate-limiting feature over the dashboard redesign this quarter.
5. System Prompt Framing
Use the system message to set persistent rules, constraints, and behavior for the entire conversation.
When to use
When to avoid
[System message]
You are [role]. You follow these rules:
1. [Rule 1 — e.g., always respond in JSON]
2. [Rule 2 — e.g., never make up information]
3. [Rule 3 — e.g., ask clarifying questions before answering]
4. [Tone/style constraint]
[User message]
[The actual user query]Example
[System message] You are a customer support agent for a SaaS analytics platform. You follow these rules: 1. Always be empathetic and professional. 2. Never promise features that don't exist — say "I'll pass this to our product team." 3. If the user describes a bug, ask for their browser, OS, and steps to reproduce. 4. Keep responses under 150 words. [User message] The dashboard has been loading for 5 minutes and I have a client presentation in 30 minutes. Help!
6. Output Format Control
Explicitly specify the structure, format, and constraints of the output you want.
When to use
When to avoid
[Your task description]
Output format:
- Format: [JSON / Markdown table / Bullet list / etc.]
- Length: [word count or number of items]
- Include: [required fields]
- Exclude: [things to leave out]
- Tone: [formal / casual / technical]Example
Analyze these 3 competitor products and compare them. Output format: - Format: Markdown table - Columns: Product Name | Pricing | Key Strength | Key Weakness | Best For - Length: One row per product, max 15 words per cell - Tone: Neutral and factual
7. Iterative Refinement
Start broad, then refine with follow-up prompts. Each turn narrows the output closer to what you want.
When to use
When to avoid
Turn 1: [Broad initial request]
Turn 2: "Good, but [specific feedback]. Revise to [direction]."
Turn 3: "Almost. Change [specific element] and [specific element]."
Turn 4: "Final version. Polish for [audience/context]."Example
Turn 1: "Write a landing page headline for an AI writing tool aimed at marketers." Turn 2: "Good, but too generic. Make it more specific about saving time on blog posts." Turn 3: "Almost. Remove the exclamation mark, make it sound confident not excited." Turn 4: "Final version. Polish for a SaaS landing page — professional, benefit-driven."
8. Constraint Stacking
Layer multiple constraints to narrow the output space. More constraints = more predictable results.
When to use
When to avoid
[Task description]
Constraints:
- Audience: [who]
- Tone: [how]
- Length: [how much]
- Must include: [required elements]
- Must avoid: [forbidden elements]
- Format: [structure]Example
Write a product announcement for our new AI-powered search feature. Constraints: - Audience: Existing enterprise customers (technical decision-makers) - Tone: Professional, confident, not hypey - Length: 150–200 words - Must include: One concrete use case, a link placeholder [CTA_LINK] - Must avoid: Words "revolutionary", "game-changing", "cutting-edge" - Format: Short paragraph + 3 bullet points + CTA
9. Self-Critique / Reflection
Ask the model to evaluate its own output, find weaknesses, and improve.
When to use
When to avoid
[Generate initial output]
Now review your response:
1. What are the 3 weakest points?
2. What assumptions did you make that might be wrong?
3. What would a skeptical expert criticize?
Rewrite an improved version addressing these issues.Example
Write a technical proposal for migrating our monolith to microservices. Now review your proposal: 1. What are the 3 weakest points in your argument? 2. What assumptions did you make about our team's capabilities? 3. What would a skeptical CTO criticize? Rewrite an improved version addressing these issues.
10. Task Decomposition
Break a complex task into subtasks, solve each one, then combine. Reduces errors on hard problems.
When to use
When to avoid
I need to [complex goal]. Let's break this into steps:
Step 1: [First subtask]
Step 2: [Second subtask, building on Step 1]
Step 3: [Third subtask, building on Step 2]
Step 4: [Synthesis / final output]
Start with Step 1.Example
I need to write a competitive analysis of the top 5 project management tools. Let's break this into steps: Step 1: List the top 5 tools by market share and briefly describe each. Step 2: For each tool, identify 3 strengths and 3 weaknesses. Step 3: Create a comparison matrix across pricing, features, integrations, and user ratings. Step 4: Write a 200-word executive summary with a recommendation. Start with Step 1.
11. Negative Prompting
Tell the model what NOT to do. Negative constraints are often more effective than positive ones.
When to use
When to avoid
[Your task]
Important: Do NOT:
- [Unwanted behavior 1]
- [Unwanted behavior 2]
- [Unwanted behavior 3]Example
Write a LinkedIn post about our Series A funding round. Important: Do NOT: - Start with "I'm thrilled to announce" or "Excited to share" - Use the word "journey" - Include more than 3 hashtags - Exceed 200 words - Use emojis in the first sentence
12. Meta-Prompting
Ask the model to write a better prompt for your task. Use AI to improve your AI instructions.
When to use
When to avoid
I want to [describe your goal in plain language].
Write me an optimized prompt that I can use with an LLM to achieve this goal. The prompt should:
- Be specific and unambiguous
- Include relevant constraints
- Specify the output format
- Anticipate edge casesExample
I want to turn customer support tickets into structured bug reports that my engineering team can act on. Write me an optimized prompt that I can use with an LLM to achieve this goal. The prompt should: - Be specific and unambiguous - Include relevant constraints (what fields to extract) - Specify the output format (JSON) - Anticipate edge cases (vague tickets, feature requests disguised as bugs)
Pattern Combinations That Work
Real-world prompts rarely use a single pattern. Here are five proven combinations for common tasks.
Business Writing
Persona + Output Format + Constraint Stacking
Set a role (CMO), specify format (email), add constraints (200 words, no jargon).
Code Generation
System Prompt + Few-Shot + Output Format
Set coding rules in system prompt, show 2 examples, specify language and style.
Research & Analysis
Task Decomposition + Chain of Thought + Self-Critique
Break into subtasks, reason step by step, then review for gaps.
Content at Scale
Persona + Few-Shot + Negative Prompting
Set brand voice, show tone examples, ban clichés and filler.
Prompt Optimization
Meta-Prompting + Iterative Refinement
Ask AI to write the prompt, test it, refine based on output quality.
Frequently Asked Questions
Which pattern should I learn first?▾
Can I combine multiple patterns?▾
Do these patterns work with all LLMs?▾
How many examples do I need for Few-Shot?▾
Is Chain of Thought always better?▾
What's the difference between a system prompt and a persona?▾
Apply It: Build a 3-Pattern Combo
- 1Pick a real task from your work this week (e.g., writing an email, analyzing data, generating code).
- 2Choose 3 patterns from this cheat sheet that fit the task.
- 3Write a single prompt that combines all 3 patterns. Try with ChatGPT
- 4Run it. Then try removing one pattern — does the output get worse? That tells you which patterns matter most for this task.
Ready to Apply What You Learned?
Test Your Knowledge
Test your understanding of prompt patterns and when to use them.
Loading quiz...
Key Insights: What You've Learned
Prompt patterns are reusable structures — not magic phrases. The 12 patterns in this guide cover the spectrum from simple instructions (Zero-Shot) to advanced techniques (Meta-Prompting, Self-Critique).
The best prompts combine 2–4 patterns. Persona + Output Format + Constraints is the most common production combination. Chain of Thought + Self-Critique is the most powerful for quality.
Build a personal prompt library. Save your best prompts, tag them by task type, and refine them over time. A good library of 20 prompts will serve you better than memorizing 200 techniques.