Skip to main content
The task tracker now has a schema, an API, pages, access control, and a workflow. The PRD pins all of that down: a plain-language requirements document where every entry is backed by a real test, so anyone can confirm the app does what it should by watching it rather than reading code. This page adds one feature entry end to end; the full system is covered in PRD Verification.

Declare the requirement

Add the entry to prd.json at the app root:
The entry is a claim in plain language. The binding keeps it honest: test.name must equal the entry id, and the build fails on any entry whose test doesn’t exist.

Write the hero test

Create prd/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: