Reader Experience Test
Verify a finished document by having a clean-context agent read it as the target reader, with no access to the source material, the codebase, or the writing conversation. The test only measures anything if the reader agent knows nothing you know: a subagent dispatched with the Agent tool starts with an empty context and knows only what its dispatch prompt says, so the steps below control exactly what that prompt contains.
Procedure
- Get the persona. Copy the reader persona verbatim from the rule pack used for the task:
dify-docs-guides (Reader Personas, by document path), dify-docs-env-vars (Reader Persona), dify-docs-api-reference (Reader Persona), dify-cli-docs (Readers), or ee-ops-docs (Reader Personas; in Dify-Enterprise-Docs). If the task used no rule pack with a persona, ask the user who the target reader is before dispatching.
- Dispatch one fresh subagent per document with the Agent tool (
subagent_type: general-purpose). Never run the test inline in the current conversation — this conversation contains the source context the reader must not have. The dispatch prompt is the template below verbatim, with two placeholders filled:
{PATH} — the absolute path to the finished document file. The input is the path, never pasted content: the test must run against the file on disk, not a possibly stale copy from the conversation.
{PERSONA} — the persona text from step 1, unmodified.
- Put nothing else in the dispatch prompt. Each of these invalidates the test if included:
- what the page covers, what changed, or why it was written
- source material, code excerpts, codebase paths, or feature briefings
- paths or links to other docs, the glossary, or the writing guides
- your own summary of, concerns about, or questions about the draft
- Relay the subagent's report to the user unedited. Add your own comments after it if needed, never merged into it.
- On a "Needs revision" verdict: fix the document, then repeat from step 2 with a new subagent. Never send the revised document to the same subagent — it has context now and can no longer simulate a first-time reader. Repeat until the verdict is Clear or the user accepts the remaining gaps.
Dispatch prompt template
You are testing a documentation page by reading it as a first-time reader.
Read exactly one file: {PATH}
Do not read any other file, search the repository or the web, or run any
other command. Everything you may use is in that one file; if something
you need is missing, that is a finding to report, not a reason to look
elsewhere.
You are this reader:
{PERSONA}
Read the document once, top to bottom, as this person, and answer:
- Can I accomplish the task described without prior knowledge?
- Are there steps that assume context not provided on this page?
- Are there terms used without explanation?
- Is the information I need actually here, or do I have to guess?
- Do the code examples make sense on their own?
- After reading, do I know what to do next?
- Where did I want advice (what to choose, what to avoid, what happens
if I get it wrong) and get only a description?
- Which sentences told me something I could already see on screen, or
would have assumed without being told?
Do not review style or formatting, fact-check claims against any other
source, or rewrite anything. Only report where a first-time reader
struggles or is left wanting.
Reply with exactly this structure:
- **Got stuck at**: [section/step where understanding broke down, or "nowhere"]
- **Didn't understand**: [terms, concepts, or references that were unclear, or "nothing"]
- **Missing context**: [assumptions the document makes that weren't established, or "none"]
- **Wanted but didn't get**: [places I needed a judgment and got a description, and sentences that told me nothing new, or "none"]
- **Verdict**: Clear / Minor gaps / Needs revision
1---2name: dify-docs-reader-test3description: Post-writing verification from the reader's perspective. Invoke after completing any documentation task to simulate a real user reading the document for the first time.4---56# Reader Experience Test78Verify a finished document by having a clean-context agent read it as the target reader, with no access to the source material, the codebase, or the writing conversation. The test only measures anything if the reader agent knows nothing you know: a subagent dispatched with the Agent tool starts with an empty context and knows only what its dispatch prompt says, so the steps below control exactly what that prompt contains.910## Procedure11121. **Get the persona.** Copy the reader persona verbatim from the rule pack used for the task: `dify-docs-guides` (Reader Personas, by document path), `dify-docs-env-vars` (Reader Persona), `dify-docs-api-reference` (Reader Persona), `dify-cli-docs` (Readers), or `ee-ops-docs` (Reader Personas; in Dify-Enterprise-Docs). If the task used no rule pack with a persona, ask the user who the target reader is before dispatching.132. **Dispatch one fresh subagent per document** with the Agent tool (`subagent_type: general-purpose`). Never run the test inline in the current conversation — this conversation contains the source context the reader must not have. The dispatch prompt is the template below verbatim, with two placeholders filled:14 - `{PATH}` — the absolute path to the finished document file. The input is the path, never pasted content: the test must run against the file on disk, not a possibly stale copy from the conversation.15 - `{PERSONA}` — the persona text from step 1, unmodified.163. **Put nothing else in the dispatch prompt.** Each of these invalidates the test if included:17 - what the page covers, what changed, or why it was written18 - source material, code excerpts, codebase paths, or feature briefings19 - paths or links to other docs, the glossary, or the writing guides20 - your own summary of, concerns about, or questions about the draft214. **Relay the subagent's report to the user unedited.** Add your own comments after it if needed, never merged into it.225. **On a "Needs revision" verdict:** fix the document, then repeat from step 2 with a new subagent. Never send the revised document to the same subagent — it has context now and can no longer simulate a first-time reader. Repeat until the verdict is Clear or the user accepts the remaining gaps.2324## Dispatch prompt template2526```text27You are testing a documentation page by reading it as a first-time reader.2829Read exactly one file: {PATH}3031Do not read any other file, search the repository or the web, or run any32other command. Everything you may use is in that one file; if something33you need is missing, that is a finding to report, not a reason to look34elsewhere.3536You are this reader:3738{PERSONA}3940Read the document once, top to bottom, as this person, and answer:4142- Can I accomplish the task described without prior knowledge?43- Are there steps that assume context not provided on this page?44- Are there terms used without explanation?45- Is the information I need actually here, or do I have to guess?46- Do the code examples make sense on their own?47- After reading, do I know what to do next?48- Where did I want advice (what to choose, what to avoid, what happens49 if I get it wrong) and get only a description?50- Which sentences told me something I could already see on screen, or51 would have assumed without being told?5253Do not review style or formatting, fact-check claims against any other54source, or rewrite anything. Only report where a first-time reader55struggles or is left wanting.5657Reply with exactly this structure:5859- **Got stuck at**: [section/step where understanding broke down, or "nowhere"]60- **Didn't understand**: [terms, concepts, or references that were unclear, or "nothing"]61- **Missing context**: [assumptions the document makes that weren't established, or "none"]62- **Wanted but didn't get**: [places I needed a judgment and got a description, and sentences that told me nothing new, or "none"]63- **Verdict**: Clear / Minor gaps / Needs revision64```