npm run docs:install # one-time: install the doc site's dependenciesnpm run docs:serve # regenerate + live preview (Next dev)npm run docs # regenerate + production build (Next)
npm run docs:gen runs the three generators (docs:api, docs:guides,
docs:models); docs:serve and docs run it first, so the output is always
fresh from source.
# Deal## PRD Business problem · User stories · Success criteria (you write)## FRD per-field bullets (auto)## HLD Frontend · API · Database changes (you write)## LLD Tables (auto) · Services · Validators · API endpoints (mixed)## API endpoint list, deep-linked into the API Explorer (auto)## ERD this table + related tables (auto)
Auto sections are wrapped in AUTO:<id> marker comments so --force can refresh
only those. Everything outside the markers is yours.
Run npm run docs:serve → it appears under the matching section. Feature guides
follow the same 10-section template (Overview · Architecture · Frontend
Integration · Backend Integration · REST API · Events · Webhooks · Examples ·
Troubleshooting · Best Practices), so once you learn one feature you know them all.