Prompt pattern library
Role, context, task, and criteria
The most reusable everyday pattern is a clear job contract: who the output is for, what material counts, what to produce, and how to judge it.
Before you start
Why this matters
Compare these asks:
- “Write about our product.”
- “You are a product marketing writer. Using only the launch notes below, draft a 120-word update for existing customers. Lead with the change that affects them, then one action. Do not invent pricing, dates, or competitive claims. Mark unknowns as [NEED INPUT].”
The second is not magically smarter. It is more specified. Role sets tone and perspective. Context names the authoritative material. Task defines the deliverable. Criteria set length, priority, and forbidden invention. Together they form a pattern you can reuse for many drafting jobs.
1Learn the idea
Read
Role means observable behavior
A useful role changes what the model does, not what credentials it pretends to hold. Prefer:
- audience: “Explain for a first-year student who knows fractions.”
- stance: “Review as a skeptical editor looking for unsupported claims.”
- process: “Ask one clarifying question at a time before drafting.”
Avoid ornamental prestige: “world-class genius,” “PhD in everything,” or “never make mistakes.” Those phrases do not create knowledge, access, or accountability. If a role matters, define the behaviors: ask before assuming, cite only supplied sections, separate facts from suggestions, or keep a calm coaching tone.
Roles also set boundaries. A tutor role may refuse to complete graded homework wholesale and instead guide the learner. A support role may escalate refunds instead of inventing policy. Write those boundaries into the pattern.
Read
Context is the evidence box
Context should answer: what may the model rely on? Paste the notes, policy excerpt, transcript segment, spreadsheet summary, or prior email. Label drafts versus approved facts. Tell the model what to ignore.
Weak context dumps a whole folder and hopes for the best. Strong context is curated: the minimum material needed for the job, with dates and status. When material conflicts, instruct the model to surface the conflict rather than silently choose.
If the needed facts are not in the chat, say so. A good pattern asks for missing inputs or uses placeholders. Guessing dressed as context is how fluent errors enter final drafts.
Read
Task is the verb and the shape
Name the operation: draft, rewrite, extract, classify, compare, outline, critique. Name the output shape: paragraphs, bullets, table, subject line plus body, JSON fields. Name the audience and use: “for a manager who must decide today,” “for my own study notes.”
Keep one primary task per prompt when possible. “Summarize, critique, rewrite in three tones, and invent a campaign” mixes success criteria and hides which failure matters. If you need several outputs, sequence them or request a labeled multi-part response with clear sections.
Read
Criteria make success testable
Criteria turn taste into checks:
- length or time budget;
- required sections;
- tone as observable choices (“direct, no blame, no exclamation marks”);
- evidence rules (“only use the notes,” “quote policy wording”);
- uncertainty rules (“use null / TBD / NEED INPUT”);
- exclusions (“no competitor claims,” “no medical advice”).
Write criteria before you draft when the stakes are high. After a weak first answer, convert your complaint into a criterion rather than a vague “make it better.”
Read
A compact template
Role / audience:
Authoritative context:
Task and output shape:
Must include:
Must not invent:
Uncertainty rule:
Quality checks I will apply:
Fill the template once, then adapt placeholders. Store approved facts outside stylistic examples so policy updates do not require rewriting every sample paragraph.
Teach
When this pattern is enough
Role-context-task-criteria covers many emails, explanations, rewrites, and outlines. Add examples when the format is hard to describe in words. Add decomposition when steps depend on intermediate judgments. Add structured output when software must parse fields. Do not stack every technique by default.