Study FAQ
What should each stage of a Claude prompt chain pass to the next stage?
Also asked as 2
- How do I design a testable handoff between sequential Claude prompts?
- What should a Claude workflow pass between evidence extraction, policy review, and drafting?
Answer
Pass a validated intermediate artifact with a stable request ID, the result, evidence references, and any unresolved items or confidence indicators the next stage needs. Define each stage’s accepted inputs, output contract, owner, and failure path so the workflow can stop or route a bad handoff before the next Claude call.
In a support workflow, an extraction stage might emit facts and source IDs. A policy stage consumes that artifact and emits a proposed disposition with the applicable policy reference. A drafting stage uses the validated disposition and the facts it needs to write a response for the intended audience. If the source IDs cannot be resolved, route the extraction failure to its owner before drafting. Pass the approved artifact to the next stage and keep the source available for verification.
Use this pattern when the steps have distinct success criteria, permissions, or recovery paths. A single bounded task with one success criterion usually fits one well-specified prompt. Each extra stage adds a call, latency, cost, and an interface to test.
Anthropic’s guidance on chaining complex prompts · Building effective agents
Full explanation
Prompt Contracts, Examples, and Multi-Stage Claude Workflows
Study guide · CCAR-F
Read the full explanation