Use it when
You want a new piece of code, text or classification to follow a pattern that already exists.
Why it makes sense
Anthropic describes examples as one of the most reliable ways to steer format, tone and structure, and recommends 3–5 relevant, varied examples.
I want to add a new endpoint to this project. Before you write it, review these three existing endpoints: [A], [B] and [C]. Use their structure, naming, validation and error handling as the reference. Then implement the new endpoint following that pattern.