CO-STAR
Context, Objective, Style, Tone, Audience, Response — the workhorse formula for production prompts.
Use when: Any LLM task where business context matters; default for the Master Engineer.
A formula is a contract with the model: it forces the context, the constraint and the output shape into the prompt instead of hoping the model infers them. Each page below gives the skeleton and the situation it is built for.
Context, Objective, Style, Tone, Audience, Response — the workhorse formula for production prompts.
Use when: Any LLM task where business context matters; default for the Master Engineer.
Role, Task, Format — minimal but powerful; ideal for tool/function prompts.
Use when: Quick, bounded requests; function-calling prompts.
Capacity & Role, Insight, Statement, Personality, Experiment — creative and strategy prompts.
Use when: Creative writing, strategy, brainstorming, marketing.
Task, Action, Goal — short and goal-anchored.
Use when: Crisp one-shot tasks; agent instructions.
Provide 2-5 exemplars of the exact input/output shape before asking.
Use when: Format-sensitive output, classification, style mimicry.
Instruct the model to reason step by step before answering.
Use when: Math, logic, multi-step reasoning; improves accuracy on hard tasks.
The 'Let's think step by step' trigger — cheapest reasoning boost.
Use when: Any hard question when no examples are available.
Sample multiple reasoning paths and take the majority answer.
Use when: High-stakes reasoning; reduces variance.
Reason -> Act -> Observe loop; the foundation of agent prompts.
Use when: Agentic tasks with tools; research workflows.
Explore multiple branches of reasoning and evaluate each.
Use when: Open-ended problem solving, planning.
Assign an expert persona to raise output quality and consistency.
Use when: Domain-expert output; tone control.
Pin the exact response shape: delimiters, JSON schema, length caps.
Use when: Programmatic output, extraction, structured data.
Generate, then verify each claim, then revise.
Use when: Fact-sensitive answers; hallucination reduction.
Ask for the high-level principle first, then apply it.
Use when: Hard problems where models rush to details.
State what to do, then what NOT to do — the prompt-side twin of SD negative prompts.
Use when: Safety, style control, compliance.
System: role + constraints + knowledge + process; User: task + context.
Use when: Any fine-tuned system prompt; the Master Engineer's signature output.
Every formula plugs into the same six-part system-prompt skeleton — this is the structure behind the highest-value paid pack.
| Layer | What it holds |
|---|---|
identity | Who the model is, credentials, and domain. |
constraints | Hard rules: tone, length, safety, format. |
knowledge | What knowledge to rely on; what is out of scope. |
process | The step-by-step method to follow for each task. |
output_contract | Exact response shape: format, schema, delimiters. |
examples | Few-shot exemplars inline when the format is unusual. |