Crafting Effective Prompts – Structure, Context, and Constraints

Lesson 1: The Anatomy of an Effective Prompt

Lesson Objectives

By the end of this lesson, students should be able to:

  • Identify the five core components of an effective prompt
  • Write a prompt that includes all five components for a real task
  • Explain what happens when each component is missing

Lesson Content

Why prompt structure matters.

Claude is not a mind reader. Every assumption it makes about your prompt is a gap you could have filled. The more gaps, the more generic the output. Professional users do not rely on Claude to guess – they provide a complete instruction set and get precise results.

An effective prompt has five components. You do not need all five in every prompt, but knowing when each is needed separates productive users from frustrated ones.

Component 1: The Task

This is the action you want Claude to perform. Be specific about the verb: draft, summarize, compare, analyze, outline, rewrite, critique, explain, translate, convert, generate, extract.

Weak: "Tell me about project management." Strong: "Summarize the key differences between Agile and Waterfall project management methodologies."

Component 2: The Context

This is the background Claude needs to make your task relevant. What is the situation? What do you already know? What problem are you solving? What have you already tried?

Weak: "Write a proposal." Strong: "Write a proposal for a 90-day performance improvement plan. The employee is a mid-level developer who consistently misses sprint deadlines. Previous verbal feedback has not produced change. HR will review this."

Component 3: The Role

Tell Claude what role to reason from (and optionally what role to write for). This shapes vocabulary, depth, and angle.

Examples: "You are a senior technical writer reviewing this for clarity." / "Act as a skeptical investor reading this pitch." / "Respond as you would to someone who understands statistics but has no biology background."

Component 4: The Constraints

Tell Claude what to include, what to exclude, length limits, format requirements, tone, or any other boundaries on the output.

Examples: "Keep it under 150 words." / "Do not include jargon." / "Avoid bullet points – use prose." / "Do not recommend paid tools." / "Write at a 10th-grade reading level."

Component 5: The Format

Tell Claude what structure the output should take: a numbered list, a table, a two-column comparison, a draft email, a slide outline, a checklist, a JSON object, a paragraph summary.

If you do not specify format, Claude will choose one – and it may not be what you need.

Putting it together.

A complete prompt might look like this:

[Role] You are a clear and direct business writer.
[Task] Rewrite the following paragraph to remove passive voice and reduce word count by 30%.
[Context] This is from a quarterly report sent to non-technical executives. The current version is too long and uses too many hedge words.
[Constraints] Do not change the core meaning. Keep all data points. Remove filler phrases.
[Format] Return the rewritten paragraph only, with no commentary.
[Content to rewrite]: [paste paragraph here]

Enroll to continue this lesson.

The preview above shows the lesson objectives and opening lesson content. Enroll to view the full lesson, complete the practice work, and take the lesson quiz.

Log In / Create Account
Back to Course