Use examples to clarify AI instructions

Show a representative input and output where the rule alone leaves room for interpretation.

Pick an example that explains a choice

A good example makes a decision visible. If an event-summary skill says to keep commitments and discard suggestions, show how it treats an utterance that sounds like both. A dramatic or unusually neat example may make the workflow look better without testing the judgment it needs. Anthropic includes concrete examples among the ways to make skill instructions more usable. 1

An example with two similar statements
Input
Priya: I can book the room if the date moves to Thursday.
Omar: I will send the final agenda on Tuesday.

Expected treatment
Action: Omar will send the final agenda on Tuesday.
Open item: Priya’s room booking depends on a date change.

Explain what makes the distinction. Here, the conditional phrase keeps one item open. This helps the assistant apply the same rule to phrases that sound different, such as “assuming we have a venue.”

Keep example facts out of real results

Name examples as examples and use fictional information. When showing a sample report, tell the assistant what it should imitate, such as heading order or how it marks an unknown owner. If a sample has irrelevant detail, trim it before adding it to the skill. An example should reinforce the prompt’s success criterion. 2

Check transfer using an unseen input

Test an input with new names, phrasing, and circumstances. If the assistant reproduces “Priya” in the result, shorten the example or make the instruction about invented values explicit. If it classifies a new conditional statement incorrectly, decide whether you need a clearer governing rule or another example.

Keep examples and evaluation cases separate when possible. Repeating the demonstration at test time can show imitation while leaving performance on new requests unknown. 3

Sources

  1. Anthropic’s skill authoring best practices
  2. Anthropic’s prompt engineering overview
  3. OpenAI’s evaluation best practices