prdddDocsOpen viewer ↗

Section IDs and done-when statements

Stable IDs let a task point to the same requirement after its title changes. Put an ID at the end of a heading. Give an individual list item an ID when it needs separate coverage. Use a done-when statement to describe an observable result.

## Export {#prd.export}

- Readers can download a CSV. {#prd.export.csv}

Done when:

- Downloading two selected rows produces a CSV with two data rows. {#prd.export#v1}

Run prd ids to fill in missing heading IDs and review the edit. Preserve existing IDs when moving text. In the spec, an Implements entry names the PRD section or item. A test description can name the statement it proves.

Use prd lint after editing. Investigate orphaned IDs, missing coverage, and draft or unproved statements before treating the plan as ready. A successful exit can still include warnings.