PromptQuorumPromptQuorum
Home/Blog/8 Prompt Engineering Frameworks Explained: CRAFT vs CO-STAR vs APE (2026 Guide)
Prompt Engineering

8 Prompt Engineering Frameworks Explained: CRAFT vs CO-STAR vs APE (2026 Guide)

Master the top prompt frameworks and learn which one works best for your use case.

8 min readBy Hans Kuepper · PromptQuorum

What is a Prompt Framework?

A prompt framework is a structured template that guides you through the essential elements of a good prompt. Instead of writing a rambling paragraph, frameworks break down your request into specific fields—like context, objective, tone, and audience. This makes your prompts clearer, more effective, and gives you predictable results.

Think of it like a recipe. You could throw random ingredients into a pot and hope for the best, or you could follow a structured recipe with measured ingredients in the right order. Frameworks are recipes for prompts.

1. CRAFT Framework

Best for: Marketing, copywriting, creative content

The Fields:

  • Context: Background information the AI needs to understand
  • Role: What role should the AI take (e.g., "expert copywriter")
  • Action: What you want the AI to do (e.g., "write email subject lines")
  • Format: How you want the output structured (e.g., "bullet list", "paragraph")
  • Target: Who this is for (e.g., "B2B SaaS decision-makers")

Example:

Context: We're launching a productivity app for freelancers

Role: You are an expert copywriter specializing in SaaS

Action: Write 5 compelling email subject lines

Format: Numbered list with a 1-sentence explanation for each

Target: Busy freelancers aged 25–45 who value time-saving tools

Why It Works:

CRAFT forces you to think about every angle of your request before asking the AI. The role + target combo ensures the AI understands exactly who the content is for and how to speak to them.

2. CO-STAR Framework

Best for: Business communication, professional writing, decision-making

The Fields:

  • Context: The situation or background
  • Objective: What you're trying to achieve
  • Style: The tone and approach (formal, casual, technical, etc.)
  • Tone: The emotional quality (urgent, reassuring, confident, etc.)
  • Audience: Who will read/use this
  • Response: What format/length/detail level you want

Example:

Context: Our startup just got Series A funding

Objective: Announce this to employees

Style: Professional but enthusiastic

Tone: Celebratory and forward-looking

Audience: Internal team (engineers, designers, marketers)

Response: 3-paragraph announcement suitable for email

Why It Works:

CO-STAR separates style from tone (style is the presentation, tone is the emotion), which gives you much more control over how the AI writes. It's excellent for corporate or professional contexts where precision matters.

3. SPECS Framework

Best for: Complex projects, detailed analysis, technical writing

The Fields:

  • Situation: The current state or problem
  • Purpose: Why you're asking (what problem does this solve)
  • Expected Output: What the result should look like
  • Context: Additional relevant information
  • Style: The format and tone

Example:

Situation: We have 1000 customer support tickets waiting to be categorized

Purpose: To route them to the right team (billing, technical, feature request)

Expected Output: A Python script that reads CSV, categorizes, outputs new CSV

Context: We use these categories: [list]. Common keywords per category: [list]

Style: Code only, no explanation, use pandas library

Why It Works:

SPECS is detail-oriented and excellent when you need to convey complex requirements. The expected output field prevents the AI from guessing what you want.

4. RISEN Framework

Best for: Multi-step tasks, workflows, processes, instructions

The Fields:

  • Role: What role should the AI play
  • Instructions: Detailed steps or requirements
  • Steps: Numbered breakdown of the process
  • End Goal: What success looks like
  • Narrowing: Constraints or specific rules to follow

Example:

Role: You are an expert teacher creating a course outline

Instructions: Create a 4-week beginner's course on prompt engineering

Steps: 1) Define learning objectives 2) Outline each week 3) List resources

End Goal: A student should be able to write professional prompts by week 4

Narrowing: No code examples, assume no prior AI knowledge, keep lessons under 30 mins each

Why It Works:

RISEN is perfect for sequences and processes. The "narrowing" field prevents the AI from going off-track and ensures the output respects your constraints.

5. APE Framework

Best for: Quick requests, simple tasks, when you don't need complexity

The Fields:

  • Action: What you want the AI to do
  • Purpose: Why you're asking
  • Expectation: What you expect back

Example:

Action: Summarize this article

Purpose: I need a 2-minute overview for a team meeting

Expectation: 3-4 bullet points covering key findings

Why It Works:

APE is beautifully simple. Most everyday requests fit into these 3 fields. It's a great starting point before graduating to more complex frameworks.

6. Google Prompt Framework

Best for: General purpose, research, finding information

The Fields:

  • Task: What you want to accomplish
  • Context: Relevant background
  • Persona: Who is asking / what perspective to take

Why It Works:

Google's framework is lightweight and information-focused. Great for research queries and "what if" scenarios.

7. TRACE Framework

Best for: Few-shot learning, examples-based requests, teaching the AI

The Fields:

  • Task: What you want
  • Request: Your specific ask
  • Action: What the AI should do
  • Context: Additional info
  • Example: Show the AI an example of perfect output

Why It Works:

TRACE is powerful because showing an example teaches the AI exactly what you want. "Do this kind of thing" is often clearer than explaining it.

8. RTF Framework

Best for: Corporate training, standardized content, teaching materials

The Fields:

  • Role: The instructor or expert role
  • Task: The teaching objective
  • Format: How to present (slides, quiz, lesson, etc.)

Why It Works:

RTF is purpose-built for training and education. It ensures consistent, pedagogically sound output.

Which Framework Should You Use?

FrameworkBest ForComplexity
APEQuick, simple requests⭐ Low
CRAFTMarketing, copywriting⭐⭐ Medium
CO-STARBusiness communication⭐⭐ Medium
SPECSComplex, technical tasks⭐⭐⭐ High
RISENMulti-step processes⭐⭐⭐ High
TRACEExample-based learning⭐⭐⭐ High
GoogleGeneral research⭐⭐ Medium
RTFTraining & education⭐⭐ Medium

Pro Tip: Test Multiple Frameworks

Here's the secret: the same prompt written in CRAFT vs SPECS might produce different results from the same AI model. Different frameworks trigger different reasoning patterns in the AI.

That's why PromptQuorum lets you switch between frameworks instantly and see how the same idea gets restructured. Try your prompt in CRAFT, then switch to SPECS, then CO-STAR. Compare the results. You'll learn which frameworks work best for your specific use case.

Next Steps

Pick one framework that matches your most common task. Master it. Then experiment with others as your skills grow.

Ready to put these frameworks into practice? Try them out with PromptQuorum, which includes all 8 frameworks plus automatic optimization and multi-AI comparison.

Ready to optimize your prompts?

← Back to Blog

8 Prompt Engineering Frameworks Explained: CRAFT vs CO-STAR vs APE (2026 Guide) | PromptQuorum Blog