What Is the CoSTAR Framework?

CoSTAR stands for Context, Objective, Style, Tone, Audience, and Response. Each letter represents a piece of information that helps the AI model understand not just what you want, but how you want it delivered and who it's for.

Developed as a structured prompting method for large language models, CoSTAR has become one of the most widely used frameworks in prompt engineering because it works with minimal effort and produces dramatically more consistent results than unstructured prompts.

LetterWhat it meansExample
CContext — background information"I run a SaaS startup with 50 customers"
OObjective — the actual task"Write a customer win-back email"
SStyle — how it should be written"Direct, no fluff, like a Basecamp email"
TTone — emotional register"Warm but not apologetic"
AAudience — who will read it"Customers who churned 30-60 days ago"
RResponse — format and length"Under 120 words, subject line included"

Why Most Prompts Fail

The average AI prompt looks like this: "Write me a marketing email."

The AI has no idea who the email is for, what product it's about, what tone to use, or how long it should be. So it produces something generic — a template that could have been written for anyone. You then have to rewrite most of it anyway.

❌ Weak prompt

"Write me a marketing email about my new course."

✅ CoSTAR prompt

"Context: I teach prompt engineering online. Objective: Write a launch email for my new beginner course. Style: Conversational, like Paul Graham writing to friends. Tone: Excited but not salesy. Audience: Email subscribers who know me but haven't bought yet. Response: Under 200 words, subject line included, one CTA only."

The second prompt takes 30 extra seconds to write. The output requires zero editing.

How to Write a CoSTAR Prompt Step by Step

Step 1 — Context

Give the AI the background it needs to understand your situation. This is not the task — it's the setup. Think of it as the first paragraph of a brief you'd hand to a freelancer.

Good context includes: your role, your company or product, relevant constraints, and any information the AI couldn't know otherwise.

Step 2 — Objective

State exactly what you want the AI to produce. Be specific. "Write copy" is weak. "Write three subject line options for a win-back email campaign" is strong.

Step 3 — Style

This is the most underused part of CoSTAR and the one that makes the biggest difference. Style tells the AI how the writing should feel — not the topic, but the approach. Reference a real writer, publication, or brand voice if you can. "Write like The Economist" or "write like a Stripe blog post" gives the AI a concrete target.

Pro tip: Instead of describing the style, show it. Paste 2-3 sentences written in the style you want and say "match this tone." A concrete example outperforms any description.

Step 4 — Tone

Tone is the emotional register — how the writing should make the reader feel. Confident, empathetic, urgent, playful, authoritative. Be specific. "Professional" means nothing. "Confident without being aggressive, like a founder who knows their product is good" means something.

Step 5 — Audience

Describe who will read or use the output. Age, role, knowledge level, context. An explanation written for a senior engineer should read completely differently from one written for a first-time user. Without this, the AI aims at nobody.

Step 6 — Response

Specify the format, length, and structure of the output. Do you want bullet points or prose? Headers or none? A specific word count? JSON? Markdown? The more precise you are here, the more usable the output is immediately.

A Full CoSTAR Example

Here's a complete CoSTAR prompt for a LinkedIn post:

CoSTAR prompt — LinkedIn postContext: I'm a solo founder who just launched a free AI prompt library with 1,671 prompts after 6 months of building nights and weekends. Objective: Write a LinkedIn post about the launch that will drive traffic to the site. Style: First-person founder story, like the kind of post that goes viral on LinkedIn — honest about the struggle, specific about the numbers, no corporate speak. Tone: Grateful and slightly vulnerable, not boastful. Real talk energy. Audience: Founders, marketers, and AI enthusiasts on LinkedIn who are skeptical of hype but respond to genuine stories. Response: 150-200 words, no bullet points, one question at the end to drive comments, no hashtags in the body text.

CoSTAR vs Other Frameworks

CoSTAR isn't the only prompt framework — it's just one of the most consistently reliable. Here's how it compares to two other popular options:

FrameworkBest forWhen to use
CoSTARGeneral content, emails, copyWhen you need polished, audience-aware output
RISENStep-by-step tasks with constraintsWhen the AI needs to follow a specific process
Chain-of-ThoughtComplex reasoning, analysisWhen accuracy matters more than style

Common CoSTAR Mistakes

Key insight: The negative constraints in your Response field do more work than the positive ones. "No bullet points, no exclamation marks, under 150 words" produces better output than "clear, concise, and well-formatted."

Try It Right Now

The fastest way to internalize CoSTAR is to use it once on something real. Pick a task you actually need done — an email, a social post, a product description — and run it through the six fields before you send the prompt.

You'll notice the difference in the first output. The AI stops guessing and starts delivering.