Skip to content
AgenticAIWiki
  1. Learn
  2. Part 2
  3. 11. Explicit criteria, roles and XML tags
  4. 11.2

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.
Hands-on labRuns in the Playground

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

  1. Fill in the vague-word list, the checkable-marker count and the verdict rule in lint.
  2. Run it over the four instructions and read the report.
  3. Rewrite "Keep the summary short and professional." so it passes.
  4. Add an instruction from a real prompt you have written and lint it.
  5. 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])
Quick checkA summariser's output is too long. Which instruction fixes it most reliably?
How sure are you?
Pick an answer and how sure you are