CertSafari
    Anthropic Claude Certified Associate – Foundations (CCAO-F)· Lessons

    Domain 1 · Lesson 1/30

    Writing effective prompts: brief, reason, source and example

    Create effective prompts for business and technical tasks

    18 min read
    3.5% of exam
    4 sources
    Published 19 Oct 2026
    Docs as of 14 Oct 2026

    What you will be able to do

    • Write a request that states the task, audience, output format, constraints and depth instead of leaving them for Claude to guess
    • Attach the reason to an instruction so Claude can apply it to cases the instruction did not name
    • Ground a prompt in pasted source material, mark its scope, and say what Claude should do when the material has no answer
    • Use one concrete example, and positive, style-matched format instructions, to control what the output looks like

    Key concept

    The explicit brief — Claude starts every request knowing nothing about you, your organisation or why the task exists. A good prompt gives it what a new contractor would need: the task, who the output is for, the format, the limits and how deep to go, all written down.

    1.Brief Claude like a new contractor

    Most weak business prompts fail for the same reason: they leave out things the writer knows and Claude doesn't. A procurement officer who types "compare these suppliers" knows the comparison has to fit on one page, has to leave out anyone off the approved shortlist, and is going to a finance director. Claude knows none of that. It has no context about you, your task or your organisation, so anything you don't write down, it has to guess.

    A useful test is to hand the prompt to a colleague who knows little about the task and ask them to follow it. If they would be confused, Claude will be too. When a brief passes that test, it usually covers five things:

    • Task: what to produce, led by a direct verb such as Write, Analyze or Create.
    • Audience and goal: who will read the output and what it is for.
    • Format: the output's shape, such as a table, list, paragraphs or a fixed set of columns.
    • Constraints: hard limits such as word count, page length, budget, or what must not appear.
    • Depth: how thorough to be. If you want comprehensive output, ask for it.
    The five parts of a brief, filled in from one specific meal-plan request
    Brief elementVague version leaves it outSpecific version states it
    Task"Create a meal plan for a Mediterranean diet""Design a Mediterranean diet meal plan"
    Audience and goalNobody named"for pre-diabetic management"
    ConstraintsNone"1,800 calories daily, emphasis on low glycemic foods"
    FormatUnspecified"List breakfast, lunch, dinner, and one snack"
    DepthUnspecified"with complete nutritional breakdowns"

    Depth is the part people skip most often, and missing it costs the most. "Create an analytics dashboard" gets you a basic dashboard. Add "Include as many relevant features and interactions as possible. Go beyond the basics to create a fully-featured implementation" and you get what you actually wanted. Claude didn't need more ability for that. It needed to be told the target. The same applies to limits. A one-page cap or an approved-supplier rule belongs in the request itself, stated as a constraint. You shouldn't have to catch it in review afterwards.

    The format has to be stated in terms of where the output will go. If an operations coordinator will paste the result straight into a tracking spreadsheet their team already keeps, the request should name the exact columns and their order. Otherwise someone has to reshape the output before it fits. When the order or completeness of steps matters, write the instructions as a numbered or bulleted list. A one-sentence role can also focus Claude's tone for a recurring use case. That technique is covered with system-level instructions.

    Checkpoint 1 of 9· Check yourself

    A procurement officer asks Claude to "compare these suppliers." The summary must fit on one page, must leave out any supplier that isn't on the approved shortlist, and goes to the finance director. What is the most effective way to get output that meets these requirements?

    Sources123

    2.Give the reason behind an instruction

    A bare rule covers only the case it names. A rule that comes with its reason lets Claude handle the cases you didn't name. Once Claude knows the output goes to a text-to-speech engine, it understands the real constraint is "nothing a speech engine can't pronounce". It can then apply that to symbols and layout you never thought to list. Claude is smart enough to generalise from the explanation, so one sentence of "why" does the work of a long list of prohibitions.

    Formatting preferences work the same way. "NEVER use bullet points" is a rule with nothing behind it. "I prefer natural paragraph form because I find flowing prose easier to read and more conversational" tells Claude what you are after, so it can make better choices about related formatting too, like headings, tables or numbered steps. It's worth giving a reason in four situations:

    • the purpose or audience of the output
    • why a particular constraint exists
    • how the output will be used
    • what problem you are trying to solve

    This matters most when the instruction is a business rule. "Keep this under 150 words" is followed literally. "Keep this under 150 words because it goes in the SMS alert to parents" also tells Claude to put the action first and drop anything a parent can't act on.

    Checkpoint 2 of 9· Check yourself

    Replies from an internal helpdesk assistant are shown in a chat widget that displays raw text. Markdown symbols appear on screen exactly as typed. The current prompt says "NEVER use markdown." Which change best helps Claude also avoid formatting that the prompt didn't name?

    Sources23

    3.Paste the source and mark the boundary

    If an answer must come from a specific document, the document has to be in the prompt. "Answer questions about our benefits handbook" gives Claude a description of the handbook. Claude can't read a description, so it falls back on general knowledge of what benefits handbooks usually say. Pasting the actual text gives Claude real material to work from. Grounding a prompt properly takes three decisions: where the material goes, how it is marked off from your instructions, and what Claude should do when the material doesn't answer the question.

    Long material goes at the top, and each piece goes inside its own tags. A prompt that mixes instructions, context, examples and pasted inputs is easy to misread, because a sentence in the pasted document can look like an instruction. Wrapping each kind of content in its own tag, such as <instructions>, <context> or <input>, prevents that. With several documents, put each one in a <document> tag with <source> and <document_content> subtags, so Claude can tell an annual report from a competitor spreadsheet and refer to each by name.

    When a long document produces answers full of irrelevant detail, ask Claude to quote first. A physician's-assistant prompt might carry symptom notes, full patient records and an appointment history. A summary written straight from all of that tends to pick up stray details buried in the records. The fix is to have Claude first pull out the passages relevant to the reported symptoms into a <quotes> tag, and then write its diagnostic information from those quotes. Quoting first makes Claude focus on the relevant content and ignore the rest. The records are still the evidence, so telling Claude to skip them and use general knowledge throws away the grounding. Answering first and checking the documents afterwards reverses the order that makes this work.

    The last part of the boundary is an instruction for the gaps. A handbook won't cover every situation staff ask about, and if the prompt is silent on that, Claude may fill the gap with a plausible guess. Say what should happen instead: "If the data is insufficient to draw conclusions, say so rather than speculating." For a structured extraction, "use null rather than guessing" does the same job. In a recurring assistant, "If unsure, ask for clarification before proceeding" works too. Explicit permission to say "I don't know" makes the output more trustworthy, because a gap in the source then shows up as a gap and not as an invented answer.

    Checkpoint 3 of 9· Put it in order

    A compliance analyst is building a prompt to answer questions about a long, noisy audit report. Earlier answers were full of irrelevant detail. Put the parts of the improved prompt in the order they should appear.

    1. 1.Paste the audit report at the top of the prompt, wrapped in document tags with source and document content subtags
    2. 2.Tell Claude to write its answer based on those quotes, and to say so if the report doesn't address the question
    3. 3.Tell Claude to pull out the passages relevant to the question and place them in quotes tags

    Checkpoint 4 of 9· Exam question

    A prompt for an AI physician's assistant includes patient symptom notes, medical records, and appointment history, and Claude's diagnostic summaries sometimes reference irrelevant details buried in the documents. What technique reduces this noise?

    Sources234

    4.Show the format with one example

    For shape, tone and structure, one concrete sample usually beats a paragraph of description. "Summarise this article in three short sentences, newsy tone, lead with the outcome, end with the effective date" leaves room for misreading. Showing a single finished summary leaves much less. Examples are one of the most reliable ways to steer Claude's output format, tone and structure. They work best when the format is easier to show than to describe, or when the task follows conventions that are hard to put into words.

    A one-shot prompt: one finished summary sets the style, then the real task followstext
    Here's an example of the summary style I want:
    
    Article: [link to article about AI regulation]
    Summary: EU passes comprehensive AI Act targeting high-risk systems. Key provisions include transparency requirements and human oversight mandates. Takes effect 2026.
    
    Now summarize this article in the same style: [link to your new article]

    Claude copies more of an example than you might expect. It pays close attention to every detail in an example: length, vocabulary, punctuation, even the subject matter. So the example has to be relevant, mirroring your real use case. Wrap it in <example> tags so Claude can tell it apart from the instructions. Start with one. Only add more, varied enough that Claude doesn't pick up an unintended pattern, if the output still doesn't match what you need.

    When the output feeds another system, the example can be a template. A market-intelligence prompt might give one <competitor> block with a name, a 50-word overview, SWOT bullets and a 30-word strategy, then ask for the same block for each real competitor. A template like that defines the format precisely enough that Claude follows every formatting element you require.

    Checkpoint 5 of 9· Fill the gap

    This one-shot prompt sets the summary style without describing it. Which word completes its opening line?

    Here's an  ?  of the summary style I want:
    
    Article: [link to article about AI regulation]
    Summary: EU passes comprehensive AI Act targeting high-risk systems. Key provisions include transparency requirements and human oversight mandates. Takes effect 2026.
    
    Now summarize this article in the same style: [link to your new article]

    Checkpoint 6 of 9· Check yourself

    Your team wants weekly release notes in a house style that is hard to put into words. You're writing the first version of the prompt. How should you use examples?

    Sources234

    5.Say what format you want and write the prompt in that style

    Format instructions work better when they say what to produce. "Do not use markdown" rules out one style but doesn't say what should replace it. "Your response should be composed of smoothly flowing prose paragraphs" gives Claude a concrete target, and that target excludes headings and bullets automatically. Repeating the negative version doesn't add that missing target. A setting like temperature doesn't either, because the problem is in the wording, not in how strictly Claude follows it.

    An XML format indicator takes the same positive instruction and puts the format's name into a tag: "Write the prose sections of your response in <smoothly_flowing_prose_paragraphs> tags." The tag name works as a label for the target, so it states what belongs inside it and still tells Claude what to produce rather than what to avoid. It also marks off which parts of the reply the format applies to, which suits a response that mixes prose with other content. Tags are already how a prompt separates one kind of content from another. Start with the plain positive instruction, and reach for the tag when you want the format named and its region marked.

    The prompt's own formatting is also an instruction, whether or not you mean it to be. Claude's output tends to mirror the style of the prompt. A project manager whose request is full of bold text, nested bullets and headings, and ends with "respond in plain text only", has sent two conflicting signals. The layout of the whole prompt often wins over one sentence. The fix is to rewrite the prompt in plain prose. Taking the markdown out of the prompt reduces the markdown in the output. Bolding "no markdown", or repeating the request as bullets in a follow-up message, adds more of the style you are trying to remove.

    If you need finer control, state the policy in full. For example: write reports in complete paragraphs, keep markdown for inline code and simple headings, and use lists only for truly separate items. A detailed format instruction like that works best when the prompt is itself written the same way.

    Checkpoint 7 of 9· Match them up

    Match each way of steering output format to the change it makes to a prompt.

    Tap a term, then the definition that fits it.

    Checkpoint 8 of 9· Exam question

    A team's prompt says "Do not use markdown in your response," but Claude's output still includes headings and bullet lists inconsistently. What rewording is more effective at controlling the format?

    Checkpoint 9 of 9· Exam question

    A project manager's prompt is written with heavy markdown formatting, bullet points, and bold text, and asks Claude to "respond in plain text only." Claude keeps returning markdown-formatted output anyway. What is the most likely fix?

    Sources2

    Sources

    (4)

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 1.
      “Think of Claude as a newly-hired contractor.”
      ↩︎ Brief Claude like a new contractor
      “Think of Claude as a newly-hired contractor.”
      ↩︎ Key concept
    2. 2.
      “If they'd be confused, Claude will be too.”
      ↩︎ Brief Claude like a new contractor
      “Be specific about the desired output format and constraints.”
      ↩︎ Brief Claude like a new contractor
      “Setting a role in the system prompt focuses Claude's behavior and tone for your use case.”
      ↩︎ Brief Claude like a new contractor
      “Claude is smart enough to generalize from the explanation.”
      ↩︎ Give the reason behind an instruction
      “so never use ellipses since the text-to-speech engine will not know how to pronounce them.”
      ↩︎ Give the reason behind an instruction
      “Wrapping each type of content in its own tag (for example, <instructions>, <context>, <input>) reduces misinterpretation.”
      ↩︎ Paste the source and mark the boundary
      “This helps Claude focus on the relevant content and ignore the rest of the document.”
      ↩︎ Paste the source and mark the boundary
      “Examples are one of the most reliable ways to steer Claude's output format, tone, and structure.”
      ↩︎ Show the format with one example
      “Wrap examples in <example> tags (multiple examples in <examples> tags) so Claude can distinguish them from instructions.”
      ↩︎ Show the format with one example
      “Tell Claude what to do instead of what not to do”
      ↩︎ Say what format you want and write the prompt in that style
      “Write the prose sections of your response in <smoothly_flowing_prose_paragraphs> tags.”
      ↩︎ Say what format you want and write the prompt in that style
      “removing markdown from your prompt can reduce the volume of markdown in the output.”
      ↩︎ Say what format you want and write the prompt in that style
      “Tell Claude what to do instead of what not to do”
      ↩︎ Exam trap 1
      “The formatting style used in your prompt may influence Claude's response style.”
      ↩︎ Exam trap 2
      “ask Claude to quote relevant parts of the documents first before carrying out its task.”
      ↩︎ Exam trap 3
      “Place your long documents and inputs near the top of your prompt, above your query, instructions, and examples.”
      ↩︎ Prediction
      “ask Claude to quote relevant parts of the documents first before carrying out its task. This helps Claude focus on the relevant content”
      ↩︎ Checkpoint
      “Match your prompt style to the desired output The formatting style used in your prompt may influence Claude's response style.”
      ↩︎ Checkpoint
    3. 3.
      “Relevant context (who's the audience, what's the goal)”
      ↩︎ Brief Claude like a new contractor
      “allows it to make better decisions about related formatting choices.”
      ↩︎ Give the reason behind an instruction
      “If the data is insufficient to draw conclusions, say so rather than speculating.”
      ↩︎ Paste the source and mark the boundary
      “If any metric is not clearly stated in the report, use null rather than guessing.”
      ↩︎ Paste the source and mark the boundary
      “Claude 4.x and similar advanced models pay very close attention to details in examples.”
      ↩︎ Show the format with one example
      “Pro tip: Start with one example (one-shot). Only add more examples (few-shot) if the output still doesn't match your needs.”
      ↩︎ Exam trap 4
      “Don't assume the model will infer what you want—state it directly.”
      ↩︎ Checkpoint
      “Pro tip: Start with one example (one-shot). Only add more examples (few-shot) if the output still doesn't match your needs.”
      ↩︎ Checkpoint
    4. 4.
      “If unsure, ask for clarification before proceeding”
      ↩︎ Paste the source and mark the boundary
      “Precisely define your desired output format using JSON, XML, or custom templates so that Claude follows every output formatting element you require.”
      ↩︎ Show the format with one example

    Ready to test yourself?

    Practise the 25 questions on this subdomain.

    Spotted a mistake, or was something unclear? Tell us.