AI Foundations
D4 · Prompting and Instructions
The anatomy of a strong prompt – role, task, context, constraints, format, examples and success criteria – with before/after rewrites and a repeatable iteration loop.
This is the heaviest domain on the track – 20% of the mock, roughly 12 of 60 items. It tests whether you can turn a vague request into a prompt that reliably produces what you actually need, and whether you can iterate toward a good result instead of accepting a mediocre first draft. Prompting is the highest-leverage skill in the whole Foundations pathway: everything else assumes you can express intent clearly.
What you need to know
A strong prompt supplies the model with what it cannot guess: who it should act as, exactly what to do, the relevant context, the constraints, the output format, examples where helpful, and how you will judge success. Vague prompts get generic answers because the model fills the gaps with the most probable defaults. Prompting is iterative: you write, read the output against your success criteria, diagnose the gap, and refine one thing at a time. Decomposing a big task into steps beats one giant mega-prompt.
Learning objectives
By the end of this page you should be able to:
- Name and apply the seven parts of a prompt anatomy.
- Rewrite a weak prompt into a strong one and predict why the output improves.
- Run a disciplined iteration loop to close the gap between output and intent.
- Decide when to decompose a task instead of writing one mega-prompt.
- Use examples (few-shot) and format specifications effectively.
- State explicit success criteria so you can tell whether an output is good.
4.1 The anatomy of a prompt
A complete prompt has up to seven components. Not every task needs all seven, but naming them gives you a checklist for what might be missing when an output disappoints.
| Component | What it supplies | Example fragment |
|---|---|---|
| Role | The perspective/expertise to adopt | “You are a technical recruiter.” |
| Task | The specific action, unambiguous | “Write a screening email.” |
| Context | The relevant background the model cannot guess | “For a senior backend role, remote, mid-market SaaS.” |
| Constraints | Boundaries: length, tone, what to avoid | “Under 150 words, warm, no salary figures.” |
| Format | The shape of the output | “Subject line, then three short paragraphs.” |
| Examples | One or more samples of the desired output | “Match the tone of this sample: …” |
| Success criteria | How you will judge it | “It must invite a 20-minute call and name one specific skill.” |
ROLE ─► TASK ─► CONTEXT ─► CONSTRAINTS ─► FORMAT ─► EXAMPLES ─► SUCCESS CRITERIA who what why/for limits shape samples done means…Assessment signal
“The output was generic / off-tone / wrong length / missed the point” almost always maps to a missing anatomy component. Diagnose which part is absent (context? constraints? format?) rather than re-rolling the same prompt.
4.2 Before and after
The fastest way to internalise the anatomy is to watch a weak prompt become a strong one.
Write something about our product launch.Result: a generic, hedged paragraph. The model had no role, no audience, no constraints, no format and no success criterion, so it produced the most probable average of “product launch” text.
You are our product marketing lead. (role)Write a LinkedIn post announcing the launch of our scheduling app,Cadence. (task)Context: audience is small-business owners who currently jugglecalendars manually; the differentiator is one-click rescheduling. (context)Constraints: under 120 words, confident but not hyped, no emojis,one clear call to action. (constraints)Format: a hook line, two short body lines, a CTA line. (format)Success: a reader should understand the benefit in the first lineand know exactly what to click. (success criteria)Result: a targeted, on-brand post that meets a checkable bar.
The difference is not length for its own sake – it is that every gap the model would otherwise fill with a generic default has been supplied.
4.3 The iteration loop
A first output is a starting point, not a verdict. Expert prompting is a loop.
┌─────────────────────────────────────────────┐ ▼ │WRITE prompt ─► READ output against success criteria │ │ │ gap found? ── yes ─► DIAGNOSE which │ │ anatomy part is │ no missing/weak ──────┘ ▼ then REFINE one thing ship / verifyThe discipline that separates good iteration from thrashing: change one variable at a time. If you rewrite the role, tighten the constraints and change the format all at once and the output improves, you have learned nothing about which change helped.
| Symptom in the output | The one thing to change |
|---|---|
| Too generic | Add context and a role |
| Wrong tone or too long | Tighten constraints |
| Unusable shape | Specify the format |
| Misses the point | Restate the task and success criteria |
| Inconsistent style | Add an example to anchor it |
4.4 Decompose instead of mega-prompting
When a task has several distinct steps, splitting it into a short sequence beats cramming everything into one enormous prompt. Each step is easier to steer, easier to check, and easier to fix.
MEGA-PROMPT (fragile) DECOMPOSED (robust)"Research the market, 1. "Summarise these three reports." write a strategy, draft ─► 2. "From that summary, propose three strategies." the deck, and a press 3. "Draft a deck outline for the chosen strategy." release, all at once." 4. "Write the press release from the deck."Decomposition also lets you verify at each boundary (a review point), which is the bridge into the Applied AI Foundations track. A single mega-prompt hides where it went wrong; a sequence shows you.
Assessment signal
“One giant prompt produced a muddled result covering several tasks” → decompose into steps with a checkpoint between them, rather than making the mega-prompt longer.
4.5 Examples and format specifications
Examples (few-shot) anchor the model to a pattern faster than any description. If you want a specific structure, tone, or labelling scheme, one good example is worth a paragraph of instruction.
Format specifications tell the model the exact shape you need – headings, a table with named columns, a numbered list, JSON with specific fields. Being explicit prevents the model from choosing a shape that is hard to reuse.
| Want | Weak instruction | Strong instruction |
|---|---|---|
| A consistent summary style | “Summarise these.” | “Summarise each in exactly two bullets: one finding, one implication. Like this: …” |
| A reusable table | “List the pros and cons.” | “Return a Markdown table with columns Option, Pro, Con, Recommendation.” |
| Machine-readable output | “Give me the data.” | “Return JSON with fields name, role, start_date.” |
4.6 Success criteria and clarity
The most under-used component is the success criterion – the explicit statement of what “done well” means. Without it, neither you nor the model can tell whether the output is good; with it, evaluation becomes a checklist and iteration becomes targeted.
Two clarity habits reinforce it:
- Say what you want, not just what you don’t want. “Write a concise summary a busy executive can read in 30 seconds” beats “don’t be too long”.
- Front-load the most important instruction. Bury the key constraint at the end and it competes with everything else for attention.
weak: "Make it good and not too technical."strong: "Success: a non-technical manager understands the recommendation and the one risk in under a minute; no jargon; one page."Decision framework
Use the RTCCFES checklist (Role · Task · Context · Constraints · Format · Examples · Success) to build or repair any prompt. Walk the columns; a disappointing output almost always traces to a blank cell.
| Component | Question to ask | Fill it when… |
|---|---|---|
| Role | Whose expertise should it use? | Perspective or tone matters |
| Task | Is the action unambiguous? | Always |
| Context | What can’t the model guess? | The task depends on your specifics |
| Constraints | What are the limits? | Length, tone, exclusions matter |
| Format | What shape do I need? | The output will be reused or scanned |
| Examples | Do I have a sample of “right”? | Tone/structure is hard to describe |
| Success | How will I judge it? | Always – this is your evaluation hook |
The value: it converts “the output isn’t great” into “context and success criteria are missing”, which is an action rather than a complaint.
Common mistakes
| Mistake | Why it happens | What to do instead |
|---|---|---|
| Vague one-line prompts | It is quick and feels natural | Supply role, task, context, constraints, format and success |
| Only saying what you don’t want | Negatives are top of mind | State the positive target explicitly |
| One mega-prompt for a multi-step task | It seems efficient | Decompose into steps with checkpoints |
| Changing several things per iteration | Impatience | Change one variable at a time to learn what worked |
| No success criterion | It feels obvious | Write down what “done well” means before judging |
| Describing a format instead of showing it | Describing feels sufficient | Give one concrete example |
| Burying the key constraint at the end | You add it as an afterthought | Front-load the most important instruction |
| Accepting the first draft | It reads fine | Read against the success criteria; iterate |
Scenario challenge
Scenario. Sam needs a customer-facing release-notes post for a new feature. He types “write release notes for our new export feature” and gets a bland, overlong paragraph that mixes internal jargon with marketing fluff and buries the actual change. He re-sends the same prompt three times, getting three equally mediocre variants, then complains that “the AI just isn’t good at this”.
Expert reasoning trace.
- Diagnose against the anatomy, not the model. The prompt has a task but no role, no audience context, no constraints, no format and no success criterion – so the model produced the most probable generic release-notes text. The failure is in the prompt, not the model.
- Recognise the thrashing. Re-sending the identical prompt three times cannot improve the output because nothing changed; non-determinism gives new wording, not a better structure.
- Rebuild with the RTCCFES checklist. Role: “you are our product communicator”. Context: audience is existing customers who export data weekly; the change lets them schedule exports. Constraints: under 100 words, plain language, no internal codenames. Format: a one-line headline, a what-changed line, a how-to-use line. Success: a customer knows what is new and how to use it in 20 seconds.
- Iterate one variable. If the rebuilt output is close but slightly too formal, adjust only the tone constraint next time and compare – so he learns which lever mattered.
- Consider decomposition if scope grows. If the notes needed to cover five features, he would decompose (one prompt per feature, then a combine step) rather than one sprawling prompt.
Exam-correct outcome: stop re-sending the vague prompt, rebuild it with the missing anatomy components and an explicit success criterion, then iterate one change at a time – recognising the gap was in the instructions, not the model’s ability.
Assessment traps
| Trap | Why it is tempting | The discriminator |
|---|---|---|
| “Re-send the same prompt to get a better answer” | New wording appears | Non-determinism varies wording, not structure; change the prompt |
| “A longer prompt is always better” | More text feels thorough | Relevance beats length; add missing components, not filler |
| “One mega-prompt is more efficient” | Fewer messages | Decomposition is easier to steer, check and fix |
| “The model just isn’t good at this” | The output is bad | Usually a missing anatomy component, not model capability |
| “Describe the format in words” | Describing feels enough | An example anchors structure far better |
| “Say what to avoid” | Negatives are salient | State the positive target and a success criterion |
| “Change several things and keep what works” | It feels faster | You can’t attribute the improvement; change one variable |
Practice questions
Q1 · A prompt reads 'write something about our new pricing'. The output is generic. Which anatomy components are MOST likely missing? (Select one)
A. Only the role. B. Context, constraints, format and success criteria. C. Only the format. D. Nothing; the model is at fault.
Answer: B. The prompt supplies a rough task but no context, constraints, format or success criterion, so the model produces a generic default. A and C name only one missing piece each. D wrongly blames the model rather than the prompt.
Q2 · Which is the BEST statement of a success criterion for an executive summary? (Select one)
A. ‘Make it good.’ B. ‘Don’t be too long.’ C. ‘A busy executive can grasp the recommendation and the main risk in under a minute, one page, no jargon.’ D. ‘Use nice formatting.’
Answer: C. A success criterion is a checkable statement of what ‘done well’ means; C is specific and testable. A and D are vague. B is only a negative constraint, not a target.
Q3 · A first output is close but too formal. What is the disciplined next step? (Select one)
A. Rewrite the role, constraints and format all at once. B. Change only the tone constraint and compare, so you learn which lever mattered. C. Re-send the same prompt. D. Switch to a bigger model.
Answer: B. Changing one variable at a time isolates cause and effect. A changes too much to learn anything. C changes nothing. D is unrelated to tone.
Q4 · A task requires researching a market, choosing a strategy, and drafting a deck and a press release. What is the BEST prompting approach? (Select one)
A. One mega-prompt asking for all of it at once. B. Decompose into steps with a checkpoint between each. C. Ask only for the press release and infer the rest. D. Send the same prompt repeatedly.
Answer: B. Decomposition makes each step steerable, checkable and fixable, and creates natural review points. A hides where it went wrong. C skips necessary steps. D changes nothing.
Q5 · You want summaries in a consistent two-bullet style. What is the MOST reliable way to get it? (Select one)
A. Ask nicely for consistency. B. Provide one concrete example of the exact two-bullet format you want. C. Increase the temperature. D. Use a longer prompt with more adjectives.
Answer: B. A single example (few-shot) anchors structure better than description. A is vague. C increases variation. D adds length without anchoring the pattern.
Q6 · Which prompt component tells the model the shape of the output (e.g., a table with named columns)? (Select one)
A. Role. B. Context. C. Format. D. Success criteria.
Answer: C. Format specifies the output’s shape. Role sets perspective, context supplies background, and success criteria define how you judge it.
Q7 · A user keeps saying what they don't want and the output still misses. What is the BEST fix? (Select one)
A. Add more things to avoid. B. State the positive target and an explicit success criterion. C. Lower the temperature. D. Ask the model to try harder.
Answer: B. Positive targets and success criteria steer far better than a list of negatives. A compounds the problem. C and D do not clarify intent.
Q8 · Which TWO changes would MOST improve a vague prompt that produced an off-audience result? (Select two)
A. Add the audience and purpose as context. B. Add a role appropriate to the audience. C. Increase the output length. D. Re-send the prompt unchanged. E. Remove all constraints.
Answer: A and B. Supplying the audience/purpose and an appropriate role directly targets an off-audience result. C adds length, not fit. D changes nothing. E removes steering.
Q9 · A colleague believes a longer prompt is automatically a better prompt. What is the MOST accurate correction? (Select one)
A. Correct; more text always helps. B. What matters is supplying the missing relevant components, not adding filler length. C. Prompts should always be one sentence. D. Length has no effect at all.
Answer: B. Quality comes from relevant components (context, constraints, format, success), not raw length. A rewards filler. C is an over-correction. D ignores that missing components hurt.
Q10 · Which output shape request is MOST appropriate when the result will be imported into another system? (Select one)
A. A friendly paragraph. B. A specified structured format such as JSON with named fields. C. A poem. D. Whatever the model prefers.
Answer: B. Machine-consumed output should specify an exact structured format with named fields. A and C are not machine-readable. D leaves the shape to chance.
Q11 · A prompt buries its most important constraint in the last sentence and the model ignores it. What is the BEST fix? (Select one)
A. Repeat the whole prompt twice. B. Front-load the most important instruction so it does not compete for attention at the end. C. Raise the temperature. D. Remove the constraint entirely.
Answer: B. Placing the key instruction early makes it more likely to be honoured. A adds clutter. C is unrelated. D abandons the requirement.
Q12 · After three identical re-sends of a vague prompt, a user concludes 'the model can't do this'. What is the accurate diagnosis? (Select one)
A. The model genuinely cannot do the task. B. The prompt is missing anatomy components; re-sending it unchanged cannot improve structure. C. The context window is full. D. The knowledge cutoff was reached.
Answer: B. The failure is a prompt lacking role, context, constraints, format and success criteria; re-sending changes only wording. A blames the model prematurely. C and D are unrelated to a vague short prompt.
Q13 · Which TWO practices define a disciplined iteration loop? (Select two)
A. Read the output against explicit success criteria. B. Change one variable per iteration. C. Change everything at once and keep the result. D. Accept the first draft to save time. E. Judge quality by output length.
Answer: A and B. Comparing against success criteria and changing one variable lets you attribute improvements. C prevents attribution. D skips iteration. E is not a quality measure.
Q14 · A user wants a screening email that 'invites a call and names one specific skill'. Where does that belong in the anatomy? (Select one)
A. Role. B. Format. C. Success criteria. D. Examples.
Answer: C. ‘Invites a call and names one specific skill’ is a checkable statement of done-well – a success criterion. Role is perspective, format is shape, examples are samples.
Q15 · A marketing prompt produces on-topic but flat copy. Adding which single component would MOST likely lift the tone to match the brand? (Select one)
A. A concrete example of on-brand copy to anchor the style. B. A higher temperature. C. A longer task description. D. A different knowledge cutoff.
Answer: A. An example anchors tone and style more reliably than description or randomness. B adds variance, not brand fit. C lengthens without anchoring. D is irrelevant to tone.
Q16 · A task prompt says 'you are a data analyst; using the attached CSV, report the three largest cost categories as a table with columns Category and Total; success = totals are correct.' Which anatomy components are present? (Select one)
A. Only task and format. B. Role, task, context (the CSV), format and success criteria. C. Only role and success criteria. D. None; it is too short.
Answer: B. It names a role, an unambiguous task, the context (attached data), a format (named-column table) and a success criterion (correct totals). A and C undercount the present components. D is wrong – it is well specified.
Key takeaways
- A strong prompt supplies role, task, context, constraints, format, examples and success criteria – the RTCCFES checklist.
- Disappointing output usually maps to a missing anatomy component, not a weak model.
- Iterate deliberately: read against success criteria, then change one variable at a time.
- Decompose multi-step tasks into a checkable sequence instead of one mega-prompt.
- Show a format with an example rather than only describing it.
- State the positive target and an explicit success criterion; front-load the key instruction.
- Re-sending an unchanged prompt varies wording, not structure – refine, don’t repeat.
Last updated Sep 18, 2026