Resolve the task directory from the invocation and inspect it with
ls -La .agent-work/tasks/<task>
; the entry may be a symlink. If the invocation contains only a problem statement, derive a stable two-to-five-word kebab-case task slug from its central product problem and use
.agent-work/tasks/<slug>/
. Reuse that exact directory when it exists; otherwise create it. If a safe, meaningful slug cannot be derived, ask for the task name and stop before writing. Read every relevant file in the resolved directory in full, except research-question documents. There is no required upstream artifact: work from a detailed ticket, a research document, or the user's prompt—whatever exists.
Before drafting, read
references/prd_template.md
in full. It is the field and section contract for the completed PRD.
Ground claims in the available inputs and cite those inputs naturally (for example, “Per the ticket…”). Refer to upstream material instead of copying it into the PRD. Turn missing product context into interview questions rather than invented requirements.
When a product decision depends on current code, established product patterns, a design system, a library, or external facts, read
references/research-and-visuals.md
and complete its evidence branch before presenting options.
This step is complete when the exact task directory is resolved, every relevant non-research-question input has been read fully, the template has been read, known facts are traceable to their sources, and every material unknown is queued as a product question rather than filled by assumption.