Test cases from requirements
The agent extracts the rules from a spec, drafts test cases, marks edge cases and hands them to QA. QA reviews them with a peer.
What the agent does
- 1
Read the spec.
- 2
Extract the rules.
- 3
Draft test cases.
- 4
Mark edge cases.
- 5
Hand them to QA. → QA reviews
Enough to decide?
Proposed pattern- Required input
- No example input written yet
- Example output
- No example output written yet
- Stop condition
- missing cases; peer review
- Reviewer
- Not yet independently reviewed
- Last run
- Not run by us yet
What it costs to run
A rough range per run, from the cheapest to the dearest of the paid models we checked. Your real cost depends on how much text you send.
Checked 2026-11-25 source
$0.001 to $0.38 per run · $0.020 per run with a mid-priced model
- Small, cheap model
- $0.001 per runPer 100 runs: $0.14
- Typical
- $0.020 per runPer 100 runs: $2.00
- Large model
- $0.38 per runPer 100 runs: $38.40
Free tiers and local models can bring this to zero while you test.
How we worked this out
- 5 model calls, one per step (at least 2)
- 4,000 input tokens per call (it reads documents or data)
- 800 output tokens per call
- each call re-reads the earlier outputs
- no retries, no loops, no cached-input discount
- Longer inputs cost more; agents that retry or loop use more calls.
- Free tiers may cover small volumes: see free AI tokens.
- Local models have no per-token price but need your own hardware.
Works with
Tags
Before you start
- Access the agent needs
- documents, ticketing
- Who approves
- QA reviews
- What to log
- every action it proposes and the decision taken
- When to stop
- missing cases; peer review
Why it is worth it
Test cases written from the spec catch gaps early.
Start this week
- Let the agent extract rules and draft test cases.
- Have it mark edge cases.
- QA reviews with a peer.
Watch out for
A rule missed in the spec means a test never written, so a second person reviews the test cases.
Measure this
Bugs caught before release.
About this entry
Proposed pattern Checked 2026-11-27 Next check 2026-12-25 v2026-11-27.1
What we checked
| Item | Result | Date | By | Source and note |
|---|---|---|---|---|
| Text and steps | Checked | 2026-11-25 | — | — |
| Human checkpoint and risks | Checked | 2026-11-25 | Reviewer to be named | — |
| Workflow run | Not checked yet | — | — | — |
| Cost estimate | Checked | 2026-11-25 | — | source · mid-priced model assumed |
| Tool links | Not checked yet | — | — | — |
| Outside evidence | Not checked yet | — | — | — |
Limitations
- This is a pattern written from how the job is usually done. We have not run it.
- Steps, tools and risks are general. Your systems and rules will differ.
- Test it with made-up or public data before using real data.
- Not checked yet: workflow run, tool links, outside evidence.
Change history
- Watch-out line rewritten spec v2026-11-27.1
- Long text added: why it is worth it, how to start, what to watch out for, how to measure it spec v2026-11-26.1
- Added to the catalogue spec v2026-11-25.1
Evidence
- No outside evidence yet; this is our own analysis.
Spec versions
- v2026-11-27.1 · Watch-out line rewritten
- v2026-11-26.1 · Long text added: why it is worth it, how to start, what to watch out for, how to measure it
- v2026-11-25.1 · Added to the catalogue
Run it with AI
Pick the AI you already use.
You are helping product manager. Goal: Test cases from requirements. The agent extracts the rules from a spec, drafts test cases, marks edge cases and hands them to QA. QA reviews them with a peer. Work through these steps and show your result for each: 1. Read the spec. 2. Extract the rules. 3. Draft test cases. 4. Mark edge cases. 5. Hand them to QA. Tools or data I can give you: documents, ticketing. Ask me for anything missing before you start. Do not take any action yourself; stop for my decision where: QA reviews. Watch for: missing cases; peer review.
Opens the tool with your prompt already filled in. Review it there before you send.
Copies the prompt, then opens the tool. Paste it in to start.
Nothing happened? The Claude Desktop app (Mac, Windows, or Linux, where it is still in beta) may not be installed. Use the copy button instead.
ROLE: Assistant for product manager. TASK: Test cases from requirements. SUMMARY: The agent extracts the rules from a spec, drafts test cases, marks edge cases and hands them to QA. QA reviews them with a peer. PROCEDURE: 1. Read the spec. 2. Extract the rules. 3. Draft test cases. 4. Mark edge cases. 5. Hand them to QA. HUMAN CHECKPOINT: QA reviews GUARDRAILS: missing cases; peer review RULES: ask when inputs are missing; never invent facts; cite where each fact came from.
Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "spec-to-test-cases-0726",
"goal": "Test cases from requirements",
"persona": [
"product-manager"
],
"autonomy": "assist",
"tools": [
"documents",
"ticketing"
],
"plan": [
"Read the spec.",
"Extract the rules.",
"Draft test cases.",
"Mark edge cases.",
"Hand them to QA."
],
"human_in_the_loop": "QA reviews",
"guardrails": "missing cases; peer review",
"output": "a draft for human review"
}Copies the prompt, then opens the tool. Paste it in to start.
{
"trigger": "On demand (manual start)",
"steps": [
{
"n": 1,
"do": "Read the spec."
},
{
"n": 2,
"do": "Extract the rules."
},
{
"n": 3,
"do": "Draft test cases."
},
{
"n": 4,
"do": "Mark edge cases."
},
{
"n": 5,
"do": "Hand them to QA."
}
],
"connects": [
"documents",
"ticketing"
],
"approval": "QA reviews",
"stop_on": "missing cases; peer review"
}Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "spec-to-test-cases-0726",
"goal": "Test cases from requirements",
"persona": [
"product-manager"
],
"autonomy": "assist",
"tools": [
"documents",
"ticketing"
],
"plan": [
"Read the spec.",
"Extract the rules.",
"Draft test cases.",
"Mark edge cases.",
"Hand them to QA."
],
"human_in_the_loop": "QA reviews",
"guardrails": "missing cases; peer review",
"output": "a draft for human review"
}Opens the tool with your prompt already filled in. Review it there before you send.
Copies the prompt, then opens the tool. Paste it in to start.
You are helping product manager. Goal: Test cases from requirements. The agent extracts the rules from a spec, drafts test cases, marks edge cases and hands them to QA. QA reviews them with a peer. Work through these steps and show your result for each: 1. Read the spec. 2. Extract the rules. 3. Draft test cases. 4. Mark edge cases. 5. Hand them to QA. Tools or data I can give you: documents, ticketing. Ask me for anything missing before you start. Do not take any action yourself; stop for my decision where: QA reviews. Watch for: missing cases; peer review.
Copies the prompt, then opens the tool. Paste it in to start.
You are helping product manager. Goal: Test cases from requirements. The agent extracts the rules from a spec, drafts test cases, marks edge cases and hands them to QA. QA reviews them with a peer. Work through these steps and show your result for each: 1. Read the spec. 2. Extract the rules. 3. Draft test cases. 4. Mark edge cases. 5. Hand them to QA. Tools or data I can give you: documents, ticketing. Ask me for anything missing before you start. Do not take any action yourself; stop for my decision where: QA reviews. Watch for: missing cases; peer review.
Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "spec-to-test-cases-0726",
"goal": "Test cases from requirements",
"persona": [
"product-manager"
],
"autonomy": "assist",
"tools": [
"documents",
"ticketing"
],
"plan": [
"Read the spec.",
"Extract the rules.",
"Draft test cases.",
"Mark edge cases.",
"Hand them to QA."
],
"human_in_the_loop": "QA reviews",
"guardrails": "missing cases; peer review",
"output": "a draft for human review"
}Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "spec-to-test-cases-0726",
"goal": "Test cases from requirements",
"persona": [
"product-manager"
],
"autonomy": "assist",
"tools": [
"documents",
"ticketing"
],
"plan": [
"Read the spec.",
"Extract the rules.",
"Draft test cases.",
"Mark edge cases.",
"Hand them to QA."
],
"human_in_the_loop": "QA reviews",
"guardrails": "missing cases; peer review",
"output": "a draft for human review"
}Copies the prompt, then opens the tool. Paste it in to start.
At a glance
- Industry
- saas
- Autonomy
- assist
- Difficulty
- Works with
- Steps
- 5 · 1 human checkpoint
- Runs as
- on demand
- Needs approval
- QA reviews
- What it costs to run
- $0.020 per run with a mid-priced model
- Evidence
- ID
UC-0726
Where to go from here
All product manager use casesSimilar work
These use cases do the same kinds of work as this one. Each card shows what they have in common.
Synthetic test data from a schema
The agent generates realistic but fake rows that match the schema and its constraints and loads them into a test database. No real data is used, and you load it.
Quiz with answer key from a chosen text
The agent writes questions by level from a text, tags them by skill, checks each answer against an evidence line and exports the quiz to the learning platform. You review.
Podcast show notes with links and timestamps
The agent transcribes the episode, pulls out topics and links, drafts show notes, adds timestamps and saves a draft. It checks every link. The host edits.
Same kinds of tools, a different job
These use cases connect to the same kinds of tools as this one, so part of your setup carries over.
Blameless postmortem draft
The agent builds a timeline from incident data and chat, lists contributing factors and drafts each section using a blameless template. The incident lead edits it.
Risk register updater
The agent adds or updates risks from incidents, news and audits, scores them, assigns owners and reports. A periodic review catches missed risks, and the exec team approves.
Scope creep detector with a draft change order
The agent compares each new client request with the agreed scope and marks it in or out, quoting the scope line. For out-of-scope work it drafts a change-order note and holds it until the freelancer decides.