Declare the requirement
Add the entry toprd.json at the app root:
test.name must equal the entry id, and the build fails on any entry whose test doesn’t exist.
Write the hero test
Createprd/tests/tasks.member-can-add.spec.ts, a story told in steps, each one user action ending on its visible result:
prd.step marks one beat of the recording; prd.verify records an assertion with its plain-language label. The harness handles watchability automatically: pacing, a visible cursor, your step labels shown as the flow plays, and who’s acting at each step.
Run it
prd:test boots the app against a throwaway test database with all services stubbed, runs the entry, and writes the result into prd.json along with recordings in both light and dark themes.
Watch it
Open the app’s PRD view and click into the entry. You’ll find the video with a synced step timeline, the database state the test started from and ended with, and every service call the app made. From here on, the suite re-runs on every build: change the app, and this entry either stays green or tells you exactly what broke.Going further
This entry is the simplest case. The PRD system covers considerably more:- Feature tests — seeding data, acting as multiple users with different permissions and data
- Verifying calculations — proving metrics and aggregations produce exact values
- Services and workflows — asserting what the app sends, and running workflows for real
- Access verification — the machine-checked access matrix for every endpoint

