Cheatsheet

High-Quality AI Prompt Framework

Prompt Parts

  • Role: assign a relevant working role when it helps
  • Task: state the exact job in one sentence
  • Context: include only the information that changes the answer
  • Constraints: add limits, exclusions, or boundaries
  • Examples: show one good pattern if the output is easy to model
  • Format: request the exact shape you want
  • Rubric: define what a strong answer must include

Fast Checklist

  • Can the AI tell what success looks like?
  • Does the prompt include the minimum necessary context?
  • Did you specify the output format?
  • Did you remove irrelevant detail?
  • Would a human reviewer know how to judge the answer?

When to Stop Fixing the Prompt

  • The model lacks the needed information
  • The workflow needs retrieval or tools
  • The task needs structured outputs
  • The problem is system design, not wording

Direct answer

A strong AI prompt removes ambiguity about the job. The most reusable structure is simple: define the task, give the relevant context, add constraints, show the format, and make the standard for success visible.

The 7-part prompt framework

  1. Role: Who the AI should act like
  2. Task: What it should do
  3. Context: What it needs to know
  4. Constraints: What to avoid or limit
  5. Examples: What good looks like
  6. Format: How the answer should be shaped
  7. Rubric: How success should be judged

The shortest reusable template

Use this when you need a reliable starting point:

You are a [role].
Help me [task].
Context: [relevant background].
Constraints: [limits, things to avoid].
Output format: [table, bullets, JSON, etc.].
A strong answer should: [rubric].

Common prompt failures

FailureFix
vague taskdefine the actual job more clearly
missing contextsupply the source material or key background
no formatask for the exact output shape
no quality barstate what a strong answer must include
too much noisecut low-value detail that crowds the real task

When the problem is not the prompt

If the system still fails after a clear prompt, the issue may be:

  • missing knowledge
  • weak retrieval
  • the need for structured outputs
  • poor workflow design

Related AIReady guides

Sources

Refresh checklist

  • update the template if mainstream prompt guidance changes materially
  • keep the framework aligned with the broader system-design pages

Last updated: March 18, 2026

Get AI Tips Every Week

Get smarter about AI every week — practical tips, prompts, and workflows in your inbox.