Draft, test and refine a template
Build a reusable template with Claude by drafting it, testing it on realistic cases against written criteria, and choosing the one change the next version needs.
Scenario
An operations coordinator at a property management company asks Claude for a template for notices to tenants about planned works. The first draft looks great, so she shares it with the team.
The next week, a colleague uses it for works that are postponed. The notice gives the old date in bold and the new date nowhere. Forty tenants turn up to an empty lobby.
The template was never tested on anything but the easy case.
Explanation
A template, a process or a small tool is a solution: other people will use it many times. So it needs more than one good-looking draft. Run a loop:
- Write the criteria first. What must every output do? Make them checkable: "states the date, start and end time", "under 150 words", "says who to contact". These are your test.
- Draft. Ask Claude for a first version. For something you'll keep editing and share, ask for it as an artifact: it opens beside the chat, you can edit it, come back to it and share it.
- Test on realistic cases. Pick three to five real situations, including at least one awkward one: a postponement, missing information, an unusual audience. Fill the template for each.
- Review against the criteria. Mark each output pass or fail, per criterion. Claude can do a first review ("check each notice against these criteria and list every failure"), but you read the results.
- Refine one thing. Fix the most important failure, then run the same tests again.
This is the draft → review against criteria → refine pattern from Anthropic's prompting guidance. It works best when the criteria are clear and the feedback is specific: "the new date is missing when works are moved" helps; "make it better" doesn't.
Know when to stop. The template is ready when it passes every criterion on all your test cases, including the awkward one. Keep the version that passed, so a later edit that breaks it can be undone.
If the solution needs to connect to other systems, such as sending notices automatically from the building database, that is a technical build. Hand the tested template and its criteria to your technical team.
Worked example
The coordinator starts again, criteria first:
Draft a reusable template for notices to tenants about planned building works, as an artifact. Every notice must: say what work is happening and why, give the date with start and end times, say which floors or flats are affected, say what tenants need to do, and give a contact. Under 150 words, plain language, no technical terms. Use placeholders in square brackets for the details.
She tests it on three cases: lift maintenance for one day, water off for two hours, and works postponed by a week. Her review:
| Case | Date and times | Who's affected | What to do | Under 150 words |
|---|---|---|---|---|
| Lift maintenance | Pass | Pass | Pass | Pass |
| Water off | Pass | Pass | Fail: no advice to store water | Pass |
| Postponed works | Fail: only the old date | Pass | Pass | Pass |
Two failures. The postponement is the worse one: wrong dates send people to the wrong place. She refines one thing:
Add an optional section for changed dates. When works are moved, state the new date first and in bold, then "This replaces the date in our notice of [date]."
She reruns all three cases. The postponed notice now passes and the other two still do. Next round: the "what to do" gap for the water notice.