Prompt Basics
Write, test and version prompts that state the task, context, examples and output format clearly, return output that code can validate, and improve prompts with measured results.
4 objectives 6 steps about 105 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Write a prompt with role, task, context, constraints and output format separated by clear delimiters.
- Apply zero-shot and few-shot prompting, step-by-step reasoning instructions and self-consistency voting, and explain when each helps or hurts.
- Compare two prompt versions on a fixed set of at least 20 inputs and keep the better one under version control.
- Request JSON output that matches a schema, using the provider's structured-output mode where available, and validate it in code with a bounded retry before it is used.
Lesson plan
6 steps, about 105 min · 5 of 5 lessons available so far
- What a Model Needs from a Prompt Concept · 15 min
- Rewriting a Vague Prompt Worked example · 15 min
- Examples, Reasoning Instructions and Voting Concept · 20 min
- Lab: Compare Two Prompts on 20 Inputs Lab · 25 min
- Lab: Validated JSON from a Prompt Lab · 20 min
- Check: Diagnose Prompt Failures Knowledge check · 8 questions
Practise it
For a ticket-classification task, write a baseline prompt and an improved prompt with examples and a JSON output schema; run both on 20 labeled tickets, validate every output against the schema with at most one retry, report accuracy, schema failures and three failure cases, and commit both versions with the results.
References
Hard prerequisites
None.
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.