TOPIC 04/4217 MINNOT STARTED

Examples, output formats and improving a prompt step by step

Show the assistant two sample answers, fix the shape of its reply, and then improve the prompt one small change at a time. Treat the first answer as a draft.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: showing a baker a photo of the cake you want. Say "a nice cake" and you get a guess. Show a photo and the baker copies the shape, the colours and the size. Then you taste it and say "less sugar". The baker adjusts. After a few rounds you have the cake you wanted.

Daily List is a to-do list app. Tom, the tester, asks an assistant for test cases. They come back in a loose paragraph style. Mei, the test lead, pastes two finished test cases in the team's table layout. The new ones come back in that same layout.

The photo is a : a small sample in the prompt. The fixed shape of the reply is . And the tasting and adjusting is prompt iteration.

The picture has a limit. A baker has to see the cake to judge it. With an assistant, you must judge the content, not only the look. A neat table can still hold wrong rows.

(SYNTHETIC / TRAINING ONLY: Daily List and every person named here are made up.)

PLAIN WORDS · 1 in this section
iteration
a round of work; in Scrum, a sprint

PICTURE IT

The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.

THE REAL JOB Getting an assistant to answer in your layout and then improving the prompt in small, checked steps.

  1. Show a sample
  2. Fix the shape
  3. Taste the answer
  4. Change one thing
Show it, shape it, taste it, adjust it

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
The photo of the cakeThe few-shot example
The cake tin that sets the shapeThe structured output
Tasting and saying less sugarPrompt iteration
A cake that looks right but tastes wrongA neat table with wrong content
Two cakes from two recipes, same oven, same tasterA prompt comparison: same inputs, same counts, keep the better prompt
A friend says what she sees in the cake before she judges itA screenshot prompt that lists what is seen first

WHERE THIS PICTURE STOPS

  • A baker can see the cake to judge it. With an assistant you must read the content, not only the look.
  • A cake bakes the same way each time. An assistant can give a different answer on each run.
  • A photo shows only the look. A sample can also pass on its mistakes.
  • A friend sees the whole cake. A model sees only the picture you give it, so it can miss states that are not in the picture.

HOOK

Show it, shape it, taste it, adjust it.

REMEMBER IT THIS WAY

A story beat: one picture-line that carries the order or the cause.

Mei pastes two finished test cases in the team's table layout. The assistant's new test cases then come back in that same layout.

What each part of the trick stands for
In the trickWhat it stands for
Two finished casesA few-shot example, a small sample in the prompt
Table layoutThe fixed shape of the reply

A neat table can still hold wrong rows, and a sample can pass on its mistakes.

TELL A FRIEND

Show the assistant a photo of the answer you want, fix the shape, then taste and adjust one thing at a time.

OFTEN MIXED UP WITH Prompting for testers: role, task, context, constraints, format. The earlier lesson gives the five parts of a prompt. This lesson adds samples, a fixed reply shape and a loop of small changes.

Sources & standards — 8 sources
  1. Market practice

    The Power (and Nuance) of Prompting (Vercel Academy) ↗ — Vercel · Few-shot prompting puts a few labelled examples in the prompt to show the pattern or format to follow (search excerpt, page not opened)

    Vendor training page. Used for the idea of examples in a prompt and for checking output that must follow a set format. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read at the time of writing. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  2. Market practice

    Prompting best practices (Claude Platform documentation) ↗ — Anthropic · Be clear and direct, explain the reason for a rule, give a few examples and separate parts of a prompt with tags (search excerpt, page not opened)

    Vendor documentation for one tool. Says to be clear and direct, to explain the reason for a rule, to give a few examples and to separate parts of a prompt with tags. Other tools may differ. Search excerpt only. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  3. Market practice

    Best practices for prompt engineering with the OpenAI API (OpenAI Help Center) ↗ — OpenAI · Put instructions first and separate them from the source text with delimiters; be specific about context, outcome, length, format and style; show the output format with an example (search excerpt, page not opened)

    Vendor guidance for one tool. Other tools differ, and the page changes over time. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read at the time of writing. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  4. Market practice

    How to generate unit tests with GitHub Copilot: tips and examples (GitHub Blog) ↗ — GitHub · Name the method, ask for success, failure and edge cases, say which test framework you use, keep the code in view, and review the result (search excerpt, page not opened)

    Vendor blog about one tool. Used only for the general habit of giving context and reviewing output. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read at the time of writing. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  5. Market practice

    3 ways to use chain of thought and few-shot prompting (Stanford University IT training class) ↗ — Stanford University IT · A training class title names chain of thought and few-shot prompting as two prompt techniques; only the title was seen (search excerpt, page not opened)

    University training class page. Only the page title was seen: it names chain of thought and few-shot prompting as two techniques. Used only to show that both are named prompt techniques. Search excerpt only. · Checked 2026-10-25

    Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  6. Market practice

    Meta Prompting Guide: Automated Prompt Engineering for Large Language Models (IntuitionLabs) ↗ — IntuitionLabs · Meta prompting uses a prompt to produce a prompt template, which speeds up template writing for tasks that repeat (search excerpt, page not opened)

    Explainer article. Search summary: meta prompting uses a prompt to produce a prompt template, which speeds up template writing for tasks that repeat. Search excerpt only. · Checked 2026-10-25

    Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  7. Market practice

    A Comprehensive Survey and Guide to Multimodal Large Language Models in Vision-Language Tasks (arXiv 2411.06284) ↗ — arXiv · Multimodal large language models take in more than text, such as images, in vision-language tasks; only the title and a short summary were seen (search excerpt, page not opened)

    Survey paper. Only the title and a short summary were seen: multimodal large language models take in more than text, such as images, in vision-language tasks. Search excerpt only. · Checked 2026-10-25

    Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  8. Market practice

    Certified Tester Testing with Generative AI (CT-GenAI) Syllabus v1.1 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Mirror copy of the publisher PDF (ISTQB syllabus CT-GenAI v1.1, 27 April 2026), version checked against the document's own front matter, read in full text: GenAI-1.1.4 (K2) write and run a prompt with a multimodal LLM; GenAI-1.2.1 (K2) key LLM capabilities for test tasks; GenAI-2.1.2 (K2) core prompting techniques; GenAI-3.3.1 (K2) the impact of task type and model use on energy consumption and CO2 emissions

    Version 1.1 syllabus (71 pages, 27 April 2026), read in full text. Used for the objective ids and levels in chapters 1 to 5. Also used for the mitigation techniques in 3.1.3 and 3.1.4, the criteria in 5.1.3, the adoption phases in 5.1.4 and the team skills in 5.2.1 and 5.2.2. The agents powered by large language models (LLM) in 4.1.3 (GenAI-4.1.3, K2) are used too. Paraphrased, not quoted. · Checked 2026-10-25

    Text read in full from a mirror copy of the publisher PDF (ISTQB syllabus CT-GenAI v1.1), version checked against the document's own front matter. The url above is the mirror copy that was read, not a page of istqb.org, and the publisher's own page was not opened. Licence terms were not read, so put it in your own words and do not quote it.

PRACTISE AND KEEP

Sources for this topic — 12 sources
  1. Market practice

    The Power (and Nuance) of Prompting (Vercel Academy) ↗ — Vercel · Few-shot prompting puts a few labelled examples in the prompt to show the pattern or format to follow (search excerpt, page not opened)

    Vendor training page. Used for the idea of examples in a prompt and for checking output that must follow a set format. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read at the time of writing. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  2. Market practice

    Prompting best practices (Claude Platform documentation) ↗ — Anthropic · Be clear and direct, explain the reason for a rule, give a few examples and separate parts of a prompt with tags (search excerpt, page not opened)

    Vendor documentation for one tool. Says to be clear and direct, to explain the reason for a rule, to give a few examples and to separate parts of a prompt with tags. Other tools may differ. Search excerpt only. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  3. Market practice

    Best practices for prompt engineering with the OpenAI API (OpenAI Help Center) ↗ — OpenAI · Put instructions first and separate them from the source text with delimiters; be specific about context, outcome, length, format and style; show the output format with an example (search excerpt, page not opened)

    Vendor guidance for one tool. Other tools differ, and the page changes over time. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read at the time of writing. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  4. Market practice

    How to generate unit tests with GitHub Copilot: tips and examples (GitHub Blog) ↗ — GitHub · Name the method, ask for success, failure and edge cases, say which test framework you use, keep the code in view, and review the result (search excerpt, page not opened)

    Vendor blog about one tool. Used only for the general habit of giving context and reviewing output. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read at the time of writing. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  5. Market practice

    Certified Tester Testing with Generative AI (CT-GenAI) Syllabus v1.1 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Mirror copy of the publisher PDF (ISTQB syllabus CT-GenAI v1.1, 27 April 2026), read in full text: prompt chaining is a core prompting technique (GenAI-2.1.2, K2, keyword list of chapter 2) and a way to split a complex prompt into steps and verify each output (section 3.1.3) (excerpts, pages not opened) | GenAI-1.1.4 (K2) write and run a prompt with a multimodal LLM; GenAI-1.2.1 (K2) key LLM capabilities for test tasks; GenAI-2.1.2 (K2) core prompting techniques; GenAI-3.3.1 (K2) the impact of task type and model use on energy consumption and CO2 emissions

    Version 1.1 syllabus (71 pages, 27 April 2026), read in full text. Used for the objective ids and levels in chapters 1 to 5. Also used for the mitigation techniques in 3.1.3 and 3.1.4, the criteria in 5.1.3, the adoption phases in 5.1.4 and the team skills in 5.2.1 and 5.2.2. The agents powered by large language models (LLM) in 4.1.3 (GenAI-4.1.3, K2) are used too. Paraphrased, not quoted. · Checked 2026-10-25

    Text read in full from a mirror copy of the publisher PDF (ISTQB syllabus CT-GenAI v1.1), version checked against the document's own front matter. The url above is the mirror copy that was read, not a page of istqb.org, and the publisher's own page was not opened. Licence terms were not read, so put it in your own words and do not quote it.

  6. Market practice

    3 ways to use chain of thought and few-shot prompting (Stanford University IT training class) ↗ — Stanford University IT · A training class title names chain of thought and few-shot prompting as two prompt techniques; only the title was seen (search excerpt, page not opened)

    University training class page. Only the page title was seen: it names chain of thought and few-shot prompting as two techniques. Used only to show that both are named prompt techniques. Search excerpt only. · Checked 2026-10-25

    Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  7. Market practice

    Meta Prompting Guide: Automated Prompt Engineering for Large Language Models (IntuitionLabs) ↗ — IntuitionLabs · Meta prompting uses a prompt to produce a prompt template, which speeds up template writing for tasks that repeat (search excerpt, page not opened)

    Explainer article. Search summary: meta prompting uses a prompt to produce a prompt template, which speeds up template writing for tasks that repeat. Search excerpt only. · Checked 2026-10-25

    Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  8. Market practice

    A Comprehensive Survey and Guide to Multimodal Large Language Models in Vision-Language Tasks (arXiv 2411.06284) ↗ — arXiv · Multimodal large language models take in more than text, such as images, in vision-language tasks; only the title and a short summary were seen (search excerpt, page not opened)

    Survey paper. Only the title and a short summary were seen: multimodal large language models take in more than text, such as images, in vision-language tasks. Search excerpt only. · Checked 2026-10-25

    Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  9. Market practice

    AI-generated test cases from user stories: an experimental research study (Thoughtworks) ↗ — Thoughtworks · An experiment on test cases made from user stories scored the output on correctness, coverage of acceptance criteria, duplication, wrongly written tests and ambiguity, and treated prompt improvement as repeated rounds (search excerpt, page not opened)

    Practitioner write-up. Per the search excerpt, an experiment on generating test cases from user stories scored the output on correctness, coverage of acceptance criteria, duplication, wrongly written tests and ambiguity, and treated prompt improvement as repeated rounds. It did not run a formal A/B test. Used here only for the idea of plain scoring counts. · Checked 2026-10-25

    Found through a web search on 2026-10-25; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  10. Market practice

    A Systematic Approach for Assessing Large Language Models' Test Case Generation Capability (arXiv 2502.02866) ↗ — arXiv (research paper) · A generated test case counts as valid only with inputs and an expected result, and as correct only if the real output matches the expected result (search excerpt, page not opened)

    Research paper. Per the search excerpt, it calls a generated test case valid only if it has both inputs and an expected result, and correct only if the actual output of the program matches the expected result. Used only for the idea that a generated case must be checked against a known rule. · Checked 2026-10-25

    Found through a web search on 2026-10-25; the page was not opened (search excerpt, page not opened). Preprint. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  11. Market practice

    ASTQB CT-GenAI sample questions ↗ — ASTQB / ATSQA (sample questions for the ISTQB CT-GenAI certification) · A sample question asks which measure shows how well a generated decision table followed the request, and another asks how to judge a model and improve prompts. Question wording was not read in full (search excerpt, page not opened)

    Sample questions, not the syllabus. An earlier research pass saw in a search excerpt that one question asks which measure shows how well a generated decision table followed the request, and another asks how to judge a model and improve prompts. The question wording was not read in full. · Checked 2026-10-25

    Recorded from an earlier research shard (deep2-genai) in this project; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it.

  12. Market practice

    Evaluating LLMs for Multimodal GUI Test Generation in Android Applications ↗ — Brazilian Computer Society (SBC), Brazilian Workshop on Software Testing (SAST) · Results varied with the form of the input, such as raw screenshots versus structured screen data. Little is known about how to structure such prompts (search excerpt, page not opened)

    A study of large language models that turn screenshots and structured screen data into Android test steps. Per the search excerpt, results varied with the form of the input, and little is known about how to structure prompts for this job. Used here only for the point that the input form changes the result and the output must be checked. · Checked 2026-10-25

    Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.