Lesson 11.2 · 2 of 7 · 5 min read · Reviewed 24 Nov 2026
Explicit criteria beat "be careful"
By the end, you can
- Replace vague instructions with checkable criteria.
- Explain why 'be careful' doesn't change output reliably.
Compare two review prompts:
Review this code carefully and flag important issues.
Flag only: bugs that give wrong results, security problems, and missing error handling on I/O. Skip style and naming. For each, give the line and a one-sentence reason.
The second one works better because each rule is explicit: Claude knows what counts, what doesn’t, and what shape to answer in.
Turning vague into explicit
| Vague | Explicit |
|---|---|
| Be concise | At most 3 bullets, under 20 words each |
| Be accurate | Only state facts found in the provided documents; otherwise say “not in the sources” |
| Flag important issues | Flag bugs, security problems and missing error handling; skip style |
| Use a professional tone | Plain English, no exclamation marks, no emojis |
A quick test
For each instruction, ask: could two people disagree about whether it was followed? If yes, it’s vague. Tighten it.
Explicit criteriaExplicit criteria: Concrete, checkable rules in a prompt that define what a good answer is, instead of vague words like "good" or "concise". also make evaluationEval: A repeatable test that measures how well an AI system performs on a set of cases with defined success criteria. possible. You can’t grade “careful”, but you can grade “at most 3 bullets”.
Key points
- Vague words like 'careful', 'concise' or 'accurate' mean different things to different readers.
- Explicit criteria name what to include, what to leave out and when to stop.
- If you can't check whether a rule was followed, rewrite it until you can.
Lint instructions for vague words
Write a small linter that flags vague instructions and recognises checkable ones.
You will have: A lint function and a report over four instructions, plus a rewrite that passes.
Steps
- Fill in the vague-word list, the checkable-marker count and the verdict rule in lint.
- Run it over the four instructions and read the report.
- Rewrite "Keep the summary short and professional." so it passes.
- Add an instruction from a real prompt you have written and lint it.
- Decide one word to add to VAGUE and one pattern to add to CHECKABLE.
Done when
- The careful code review instruction is flagged VAGUE with carefully and important.
- The at-most-3-bullets instruction is CHECKABLE.
- Your rewrite prints CHECKABLE.
Open in the Playground No API key needed.
Starter code (Python)
import re
VAGUE = {"careful", "carefully", "concise", "accurate", "important", "professional", "good", "appropriate",
"clear", "helpful", "thoughtful", "properly", "relevant", "short", "brief", "nice"}
CHECKABLE = [r"\b\d+\b", r"\bat most\b", r"\bunder\b", r"\bonly\b", r"\bnever\b", r"\bskip\b", r"\beach\b", r"\bno\b"]
def lint(instruction):
words = re.findall(r"[a-z]+", instruction.lower())
# TODO: collect the distinct words that are in VAGUE, sorted.
vague = []
# TODO: count how many times the CHECKABLE patterns match the lower-cased instruction.
checks = 0
# TODO: call it VAGUE if it has vague words and fewer than 2 checkable markers.
verdict = "UNKNOWN"
return verdict, vague, checks
INSTRUCTIONS = [
"Review this code carefully and flag important issues.",
"Flag only bugs, security problems and missing error handling. Skip style. Give the line for each.",
"Keep the summary short and professional.",
"At most 3 bullets, under 20 words each. No exclamation marks.",
]
for text in INSTRUCTIONS:
verdict, vague, checks = lint(text)
extra = f" vague words: {', '.join(vague)}" if vague else ""
print(f"{verdict:9} checks={checks}{extra} | {text}")
# A rewrite of the third instruction that passes.
# TODO: rewrite "Keep the summary short and professional." so it passes.
rewrite = "Keep the summary short and professional."
print("rewrite:", lint(rewrite)[0])
Show a solution
import re
VAGUE = {"careful", "carefully", "concise", "accurate", "important", "professional", "good", "appropriate",
"clear", "helpful", "thoughtful", "properly", "relevant", "short", "brief", "nice"}
CHECKABLE = [r"\b\d+\b", r"\bat most\b", r"\bunder\b", r"\bonly\b", r"\bnever\b", r"\bskip\b", r"\beach\b", r"\bno\b"]
def lint(instruction):
words = re.findall(r"[a-z]+", instruction.lower())
vague = sorted({w for w in words if w in VAGUE})
checks = sum(len(re.findall(p, instruction.lower())) for p in CHECKABLE)
verdict = "VAGUE" if vague and checks < 2 else "CHECKABLE"
return verdict, vague, checks
INSTRUCTIONS = [
"Review this code carefully and flag important issues.",
"Flag only bugs, security problems and missing error handling. Skip style. Give the line for each.",
"Keep the summary short and professional.",
"At most 3 bullets, under 20 words each. No exclamation marks.",
]
for text in INSTRUCTIONS:
verdict, vague, checks = lint(text)
extra = f" vague words: {', '.join(vague)}" if vague else ""
print(f"{verdict:9} checks={checks}{extra} | {text}")
# A rewrite of the third instruction that passes.
rewrite = "Summary in at most 2 sentences, under 40 words, no exclamation marks."
print("rewrite:", lint(rewrite)[0])