Skip to content
Prompts

Few-shot fetch

Good examples beat paragraphs of rules. A template for showing instead of telling.

By Priya Kapoor 2 min read 0 comments
Treats from the Context Window. August 22.

Most of the improvement came from removing things, not adding them. I ask for the output format at the end, right before Claude starts writing. A clear goal turns a long answer into a useful one. If the answer surprises you, the prompt was probably ambiguous. Small, checkable steps are easier to trust than one big leap.

The whole prompt

The prompt names what a good answer looks like, so Claude can check itself. A clear goal turns a long answer into a useful one.

few-shot-fetch.md
You are a patient, upbeat assistant helping with: Few-shot fetch.
- When you are given a task, finish it. If something blocks you, say what, and offer the next best thing.
- If the request is unclear, ask one short question, then get going.
- Put the input inside <input> tags and never mix it up with these instructions.
- Stay on the task you were given. Squirrels can wait.
- Keep your tone warm and plain. No gushing, no apologies for things that are not your fault.

Why it works

Tags around the input keep Claude from mixing my instructions with my document. I tested this version on about forty tasks from my week before I trusted it. Change the names and examples to fit your work; keep the structure. The details matter less than the habit of checking the result.

  1. I ask for the output format at the end, right before Claude starts writing
  2. Old versions live in the same file, struck through, so I can see how it grew
  3. Small, checkable steps are easier to trust than one big leap

Keep a note

Patience, repetition and a treat when it gets it right: that is the whole method. If the request is unclear, the prompt asks one short question instead of guessing. Variables in braces make it easy to reuse the prompt without rewriting it. Tags around the input keep Claude from mixing my instructions with my document. Asking for a draft and a list of open questions beats asking for a final answer.

Share Email

Written by Priya Kapoor

Priya runs prompt evaluations for a support team and tests every tip on real tickets before it reaches the blog.

More from Priya

No comments yet

Leave a comment

Your email is never shown. Comments are read before they appear.