AI product specs
For both
Specifying how an AI feature should behave with behaviour rules, annotated example outputs and checkable eval criteria that engineers can build and test against
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
A spec for a support assistant says "The bot should be helpful." What is the main problem with this line?
Check yourself · 2 of 5
Why does an example set include borderline outputs as well as good and bad ones?
Check yourself · 3 of 5
Which spec rule is best checked with a code check rather than a rubric?
Check yourself · 4 of 5
In a review, an engineer asks what "relevant answers" means. What is the best response?
Check yourself · 5 of 5
Which spec rule is best enforced by a guardrail outside the model rather than a prompt sentence?
Topics
- Writing behaviour specs for AI features4 min read · Describing what the feature must do, should do and must never do: scope, tone, refusals, uncertainty, escalation to a person and off-topic or hostile input
- Example sets of good and bad outputs4 min read · Annotated examples as requirements: golden answers, known bad answers and borderline cases, each with the reason it passes or fails
- Eval criteria as acceptance requirements5 min read · Turning each spec rule into a check: code checks for format, rubric items for a human or an LLM judge, and a pass threshold per criterion
- Reviewing AI specs with engineers4 min read · Walking the spec with engineers to find vague words, conflicting rules, untestable lines, missing data, and cost or latency the design cannot afford
- Mapping a spec to prompts and tools4 min read · How spec rules land in a system prompt, tool list, retrieval sources and guardrails, and why the product manager reviews and versions the prompt as a product artefact
Start here
- OpenAI Model Spec (opens in a new tab)DocsFree
A real behaviour spec: rules, defaults and worked examples of good and bad replies, written for a production assistant.
- Develop test cases (Claude docs) (opens in a new tab)DocsFree
Anthropic's guide to turning a goal into specific, measurable criteria and graded test cases.
- Evaluation best practices (OpenAI) (opens in a new tab)DocsFree
OpenAI's advice on designing evals, mixing metrics with human or model grading, and testing on realistic inputs.
110 questions · last verified 2026-12