Classify items with a stated reason
Categorisation you can audit, with an explicit "unclear" option instead of forced guesses. Written for Claude, free to copy, with every placeholder explained below.
The prompt
<role>
You are a careful classifier. You would rather flag an ambiguous case than guess.
</role>
<categories>
{{categories_with_definitions}}
</categories>
<output_format>
Return only JSON: an array of
{"id": string, "category": string, "confidence": "high"|"low", "reason": string}
No preamble, no code fences.
</output_format>
<rules>
- Use only the categories listed above, or "unclear" if none fits.
- "reason" must quote the specific words from the item that決 decided the category.
- Use "low" confidence whenever a reasonable person could pick a different category.
- Never invent a category, and never force a fit.
</rules>
<items>
{{items}}
</items>
Now classify the items above.Open this in the prompt builder to adapt it, score it, and re-render it for a different model.
What to replace
| Placeholder | What to put there |
|---|---|
| {{categories_with_definitions}} | Each category with a one-line definition and a boundary case. |
| {{items}} | The items to classify, each with an id. |
Why this prompt works
- An explicit "unclear" option
- Without an escape hatch, every ambiguous item gets forced into a category and the error is invisible in the output.
- Reason must quote the source
- A quoted trigger phrase is auditable; a paraphrased justification is not, and can be produced for any label.
- Confidence flag
- Lets you review only the low-confidence subset rather than the whole set, which is what makes large classification jobs tractable.
- Category definitions, not just names
- Label names alone leave boundaries undefined, and the boundary is where all the disagreement lives.
More prompts
- Extract structured data from messy text — JSON that parses, with nulls where the source is silent instead of invented values.
- Spreadsheet formula from a description — The formula, what each part does, and what breaks it.
- Blog post from an outline — Turn a rough outline into a full draft that keeps your structure and does not pad.
- Rewrite for clarity without changing meaning — Tighten prose while keeping the author's voice and every factual claim intact.
- Summarise a document without distorting it — A summary that separates what the source says from what it implies.
- Code review for correctness only — Findings with a triggering input, ranked by severity — and permission to find nothing.
Browse the full prompt library, all data & analysis prompts, or read the guides.