Skip to content
Guides

The anatomy of a great prompt

Role, context, task, constraints and format: the five parts that make prompts reliable.

Amina Nakato · Prompt engineer · · 7 min read

Most weak results from AI tools come from weak instructions, not weak models. A great prompt reads like a clear brief to a capable colleague: it says who they are, what you need, and what good looks like.

1. Role

Start by setting the perspective. 'Act as a senior copy editor' focuses the model on the right standards and vocabulary.

2. Context

Explain the situation: the audience, the product, the goal. Models cannot read your mind, but they use context remarkably well.

3. Task and constraints

State the task as one sentence, then list constraints — length, tone, what to avoid. Constraints turn a generic answer into a usable one.

4. Format

Ask for the shape you need: a table, bullet points, JSON, a 150-word email. Format instructions save more editing time than anything else.

Related posts

Development

Vibe coding without the chaos

How to build real apps with AI builders while keeping control of scope and quality.

Daniel Okello · · 8 min read