Quick Answer
CO-STAR is a six-part prompt structure: Context (background), Objective (task), Style (writing style), Tone (emotional register), Audience (who reads it), Response (output format). It helps produce consistent, targeted LLM output by making every constraint explicit.
Updated: 2026-05
Key Takeaways
CO-STAR is a six-component prompt structure that covers every variable a language model needs to produce targeted, consistent output: the background situation, the task, the desired writing style, the emotional tone, the intended reader, and the required output format. Using all six components eliminates the most common source of misaligned responses β missing context.
The framework was developed to solve a recurring problem in prompt engineering: prompts that are technically clear but miss implicit constraints. When you write "Summarize this document," the model makes assumptions about length, formality, audience, and format. CO-STAR replaces those assumptions with explicit instructions.
Each component targets a different dimension of the output. Context anchors the model in the relevant situation. Objective pins the exact deliverable. Style and Tone control the writing register. Audience calibrates vocabulary and complexity. Response specifies the structural format.
| Component | Question It Answers | Example |
|---|---|---|
| Context | What is the situation? | You are summarizing a legal contract for a non-lawyer |
| Objective | What must be produced? | Write a 3-bullet summary of key obligations |
| Style | How should it be written? | Plain language, no jargon |
| Tone | What is the emotional register? | Neutral and informative |
| Audience | Who will read this? | Small business owner with no legal background |
| Response | What is the output format? | Bulleted list, max 3 items |
CO-STAR is not the right tool for every task. It adds the most value for document creation, customer-facing communications, formal reports, and any output where voice, format, and audience consistency matter. A well-structured CO-STAR prompt typically takes 60β120 words of setup but eliminates multiple rounds of correction.
For simple factual queries, code generation, or one-shot lookups, CO-STAR adds overhead without meaningful quality gain. Asking "What does the Python `zip()` function do?" does not benefit from a six-component structure. Reserve CO-STAR for tasks where the output will be read by real people in a specific context.
For a deeper look at prompt patterns that pair well with CO-STAR, see the full CO-STAR prompt engineering guide covering advanced examples and common failure modes.