Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesPrompt Engineering GuideAnatomy of a Prompt
Two labelled examples and a third line waiting for an answerClaude Code terminal: the claude -p command with Read and Edit allowedRetries after a 429 error: each pause is twice as long, then success
Course

Prompt Engineering Guide

Module 1 · Prompting Fundamentals
01Anatomy of a Prompt02Zero-Shot and Few-Shot Prompting03Chain-of-Thought Prompting
Module 2 · Advanced Patterns
04ReAct Pattern: Reasoning and Acting05Role and Persona Prompting06Structured Output Control
Module 3 · Prompts at Work
07Prompts for Writing and Editing08Prompts for Coding09Adversarial Prompting and Defending AI Systems
Prompt Engineering Guide · Lesson 1

Anatomy of a Prompt

The four components of an effective prompt — role/persona, context, task instruction, and constraints. We break down weak vs. strong prompts, explain the reasons behind rules, mark up blocks with tags, and set the role in the API.

25 min readUpdated Dec 2, 20262 questions in quizReady prompt included

What Is a Prompt

A prompt is everything you send to a model before its response. The model sees only this text: it knows nothing about your audience, goals or taste. A good prompt gives it enough signal for the answer to match your task. With too little signal, the model picks the most likely and therefore the most generic option.

Anthropic suggests thinking of the model as a brilliant new employee who doesn't yet know your norms and workflows. The more precise the brief, the better the result.

The rest of this lesson opens after a free sign-up

Sign up with email or Google: the first two lessons of every course stay open for good, and the whole catalog is open for 7 days. No card needed.

Sign up freeOr a trial lesson, no sign-up →
In this lesson
What Is a PromptThe Four ComponentsWeak vs. Strong PromptExplain the Reason Behind a RuleOutput Format as a ToolMarking Up the BlocksWhere the Role Goes in the APIIterative ImprovementPracticeReady promptQuiz
CoursesLLM coursesFor teamsPricingFAQBlogAboutPrivacy
© 2026 AcademlDevelopment & promotion —MMIX — Marketing Mix
Get started free