Prompting Claude: Instructions, Context and Testing
Write prompts that Claude follows reliably, manage what goes into its context window, and test and improve your prompts with evidence instead of guesswork. Each technique is taught in plain chat first, then in its API form where the two differ.
Levels 1 and 2 are free to read, no account needed. Levels 3 and 4 are free with a free account, and so are 20 answers from the AI tutor.

Capable · 20 levels · 4 free · Created Oct 2026 · Professionally curated by levelupwith.com
What's inside
- Level 1: Course Ground Rules and How Claude Reads TextFree
Learn that this course is independent of Anthropic, how to verify fast-changing Claude features on Anthropic's current pages, and how Claude processes a prompt as tokens.- State that the course is independent of Anthropic and check any feature, name, limit or plan against Anthropic's current documentation, noting what is beta or unconfirmed
- Explain what a token is and why token counts differ from word counts
- Describe how Claude generates a reply from the full text it is given, one token at a time
- Level 2: Context Window and Non-DeterminismFree
Learn what the context window contains, why it is finite, and why the same prompt can produce different answers.- List what occupies the context window in a chat and in an API request
- Explain why identical prompts can return different outputs and what that means for judging a prompt
- Look up the current context window size for a given model on Anthropic's pages instead of relying on memory
- Level 3: Clear, Direct Instructions with ReasonsFree account
Learn to write specific, unambiguous instructions and to state the reason behind each requirement.- Rewrite a vague request as a specific instruction that names the task, scope and success criteria
- Add the reason for a constraint so Claude can apply it correctly to cases the prompt did not foresee
- State what to do in positive terms instead of only listing what to avoid
- Level 4: Role and AudienceFree account
Learn to set the role Claude should take and the audience it is writing for so that tone, depth and vocabulary fit the task.- Assign a role that changes the expertise and perspective of the response
- Specify the audience's knowledge level and needs to control depth and vocabulary
- Compare outputs with and without role and audience to judge whether each one helped
- Level 5: Zero-, One- and Few-Shot Examples
Learn when to rely on instructions alone and when to add one or several examples to show the pattern required.- Choose between zero-, one- and few-shot prompting for a given task
- Write varied, relevant examples that show the intended pattern without inviting verbatim copying
- Identify when an example is causing over-fitting and correct it
- Level 6: Structuring Prompts with Tags and Sections
Learn to separate instructions, context, examples and input using tags or labelled sections so that each part is read correctly.- Divide a prompt into clearly labelled parts using XML-style tags or headings
- Use consistent tag names and refer to them by name in the instructions
- Restructure a single-paragraph prompt into sections and confirm the output improves
- Level 7: System Versus User Placement
Learn which content belongs in standing instructions and which belongs in the individual message, first in chat and then in the API.- Decide which parts of a prompt are standing instructions and which are per-request input
- Apply that split in chat using the app's instruction settings and in the API using the system parameter and user messages
- Explain how the conversation is passed as alternating messages in an API request
- Level 8: Output Constraints and Formats
Learn to control the length, format, tone and layout of a response through explicit output specifications.- Specify length, format and style in terms Claude can follow and you can check
- Request common formats such as tables, lists, plain prose or a fixed template
- Diagnose why a format instruction was ignored and tighten it
- Level 9: Step-by-Step Reasoning in the Prompt
Learn to ask Claude to reason through a problem in visible steps before answering, and to keep the reasoning separate from the final answer.- Identify tasks where reasoning before answering improves accuracy and tasks where it only adds length
- Write a prompt that sets out the reasoning steps and separates working from the final answer using tags
- Use the visible reasoning to locate where an answer went wrong
- Level 10: Extended and Adaptive Thinking, and Effort
Learn how Claude's built-in thinking modes and effort levels differ from prompted reasoning, and how to set them in chat and in the API.- Distinguish prompted step-by-step reasoning from the model's built-in extended and adaptive thinking
- Select a thinking setting and effort level that matches task difficulty, cost and latency
- Verify on Anthropic's current pages which models support each thinking mode and effort level, and which options are deprecated or beta
- Level 11: Structured Output, Schemas and Validation
Learn to obtain machine-readable output that conforms to a schema and to validate it before use.- Write a prompt that returns JSON matching a stated set of fields and types
- Explain the difference between asking for JSON in a prompt and using the API's schema-enforced structured outputs, checking current availability and limits
- Validate a response against the schema and handle a failed or incomplete result
- Level 12: Decomposition and Prompt Chaining
Learn to split a complex task into a sequence of focused prompts in which each output feeds the next.- Break a multi-part task into discrete steps, each with a single clear objective
- Pass the output of one prompt into the next using clearly delimited input
- Add a review step in which Claude checks an earlier output against stated criteria
- Level 13: Long Documents: Placement and Quoting
Learn where to place long documents in a prompt, how to label them, and how to have Claude extract relevant quotes before answering.- Position long material and the question so the question is answered against the full document
- Wrap multiple documents in labelled tags with source metadata
- Instruct Claude to extract the relevant passages first and then answer from those passages
- Level 14: Grounding Answers and Reducing Hallucination
Learn to tie answers to supplied sources and to reduce unsupported claims through explicit permission to say the answer is unknown.- Require each claim to be supported by a quotation or citation from the supplied sources
- Give Claude an explicit instruction to state when the sources do not contain the answer
- Check a response against its sources and identify claims that lack support
- Level 15: Context Engineering: Curate, Summarise, Compact
Learn to decide what to include in the context, what to leave out, and when to summarise or compact a long conversation to counter drift and bloat.- Select the minimum context a task needs and remove material that distracts or contradicts
- Recognise the signs of context drift and bloat in a long conversation
- Summarise or compact a conversation and restart with a clean, sufficient brief, and identify which automatic compaction features currently exist and their status
- Level 16: Memory and Persistent Instructions
Learn how instructions and facts can persist across conversations, and how to write and maintain them so they stay accurate.- Distinguish in-conversation context from memory and from persistent instructions that load in every session
- Write persistent instructions that are concise, current and free of conflicts
- Review and prune stored memory or instructions, and verify on current pages which memory features are available on which products and plans
- Level 17: Reuse: Templates, Projects, Skills and Caching
Learn to reuse proven prompts and context through templates with variables, Projects, Skills and prompt caching.- Convert a working prompt into a template with fixed text and clearly marked variables
- Choose between a template, a Project and a Skill for a given reuse need, confirming current availability on Anthropic's pages
- Explain how prompt caching reuses a stable prompt prefix in the API and order a prompt so that prefix stays unchanged
- Level 18: Prompt Injection and Untrusted Input
Learn how instructions hidden in documents, web pages or user input can redirect Claude, and how to reduce that risk.- Identify which parts of a prompt come from untrusted sources
- Delimit untrusted content and instruct Claude to treat it as data, not instructions
- State the limits of prompt-level defences and add checks on output and permissions accordingly
- Level 19: Testing Prompts and Diagnosing Failures
Learn to build a small test set, compare prompt variants, improve from failures, and re-test when the model or release changes.- Build a small test set of typical, edge and adversarial inputs with defined pass criteria
- Compare two prompt variants over the same test set, running each more than once to account for non-determinism
- Trace a failure to its cause in instruction, context, format or model behaviour, and re-run the test set after a model or release change
- Describe how the same prompt can behave differently across Claude models and releases (for example in how literally instructions are followed, default verbosity and supported thinking settings), and a
- Level 20: Final Challenge: Rebuild and Test a Flawed Prompt Exam
Apply every technique from the course to diagnose, rebuild and test a flawed prompt and the context supplied with it.- Diagnose the faults in a given prompt and context across instructions, structure, placement, output, grounding and safety
- Rebuild the prompt with appropriate examples, structure, reasoning settings, output format and curated context
- Test the rebuilt prompt against a small test set and justify each change with results
Access
Levels 1 and 2 are free to read, no account needed. Levels 3 and 4 are free with a free account, and so are 20 answers from the AI tutor. Every level, the podcast edition and the AI tutor come with All Access at £4.99/month or any Creator plan — see pricing.
More like this
- Delegating Real Work to Claude: Tasks, Files and Apps
Learn to hand Claude multi-step work on your real files, browser and Office apps, with clear briefs, firm limits and approval gates, then review the results…
Course · Claude · AI & Agents · Capable · 18 levels · 4 free · Professionally curated by levelupwith.com
- Finished Work with Claude Artifacts, No Code
Brief, refine, brand, check, share and export finished designs, decks, documents, dashboards and motion pieces in Claude without writing code.
Course · Claude · AI & Agents · Capable · 18 levels · 4 free · Professionally curated by levelupwith.com
- Claude at Work: No-Code Skills for Knowledge Workers
Learn to brief Claude clearly, check what it gives you, and set up Projects, Artifacts, Skills, memory, connectors and Research for real work in sales…
Course · Claude · AI & Agents · Capable · 18 levels · 4 free · Professionally curated by levelupwith.com
- Rolling Out Claude: An Admin's Plan from Pilot to Value
Build a complete, defensible Claude rollout plan for your team or company, one decision at a time: structure and identity, access, governance, spend and…
Course · Claude · AI & Agents · Capable · 20 levels · 4 free · Professionally curated by levelupwith.com
- Claude Code Day to Day: From First Prompt to Safe Habits
Install Claude Code on your own machine and work through a small sample project with exact commands, expected results and an exercise in every lesson.
Course · Claude · AI & Agents · Capable · 18 levels · 4 free · Professionally curated by levelupwith.com
- Claude Code for Teams: Rules, Skills, Hooks, Plugins
Build a complete, shareable Claude Code setup for your team, one working file per lesson: CLAUDE.md and path-scoped rules, skills, slash commands, subagents…
Course · Claude · AI & Agents · Capable · 20 levels · 4 free · Professionally curated by levelupwith.com