Learning path
Prompt and context engineering
A prompt and context engineering course: go from single prompts to deciding what a model sees at each step, from instructions and examples to files and tools.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkWhat you will be able to do
- Frame tasks so answers are useful and repeatable across runs
- Get JSON that matches a schema and handle the cases where it does not
- Decide what belongs in context, what to retrieve on demand and what to leave out
- Write instruction files that coding agents actually follow
- Measure a prompt change with a small eval instead of judging by eye
Steps
Step 1: What is context engineering?
Context engineering is deciding what a model sees at each step. Why the term replaced prompt engineering for people building agents, and what the work involves.
Read this first for the vocabulary the rest of the path uses.
Step 2: Prompting fundamentals: clear tasks, examples and formats
How to write a good prompt: frame the task, say who the output is for, show an example and specify the format, so a model's answers are useful and repeatable.
Step 3: Get reliable JSON from an LLM with structured outputs
Describe the output as a schema, let the provider enforce it, validate it with Pydantic AI or the AI SDK, and handle failures.
Step 4: Context engineering techniques: what the model should see
What to put in a model's context at each step, what to leave out, and how instruction files, retrieval and tools fit.
Step 5: CLAUDE.md and AGENTS.md: instruction files for coding agents
CLAUDE.md vs AGENTS.md: what to put in each, where Claude Code, Codex, Cursor and Copilot look for them, and how to keep one source of truth without drift.
Step 6: Write a useful AGENTS.md: example, template and test
An AGENTS.md example and template with build and test commands, conventions and traps, plus a before-and-after task that shows whether the file actually helps.
Step 7: What are Agent Skills (Claude skills)?
Claude skills, or Agent Skills, are folders with a SKILL.md file that agents load on demand. What goes in one, how loading works and when a skill fits.
Skills are context engineering packaged for reuse: read it with progressive disclosure in mind.
Step 8: Write your first LLM eval
Turn real outputs into a small test set, add code-based checks in promptfoo and run them in CI to catch regressions on every change.
Finish by putting numbers on a prompt change you made earlier in the path.
Prompt and context engineering quiz
7 questions with explanations. Your score is saved when you are signed in.
Final quiz
Related paths
Building with the Claude API
Learn to build with the Claude API from your own code: the Messages API, tool use, structured output and prompt caching, then evaluate and trace what you built.
AI for test engineers
An AI course for testers: apply generative AI to everyday test automation, from AI-assisted test design to generating, healing and reviewing Playwright tests.
AI foundations
The working vocabulary of modern AI, from prompting and structured output to retrieval, MCP, Agent Skills and prompt injection.