Loading...

HAXcms Prototypes Are Built On The Real System

RULES.md

A prototype of HAXcms itself (whole-site designs, the editor top bar and edit mode, menus, outline, site or system admin, the dashboard, and any multipage flow) is built on the running system from latest main, never redrawn from memory. Use the `haxcms-prototype` skill (<https://github.com/haxtheweb/praw/tree/main/skills/haxcms-prototype>). Write the prototype brief first: the real states shown, in order, and exactly what is proposed in each. The base of every state is either a branch of the real code or an unchanged capture from the haxcms-nodejs UI inventory (`npm run ui:inventory`); only the proposed change is authored by hand, and it is always visibly marked as proposed. Visible text outside proposed regions must be real labels; new labels, components and tokens are declared in the brief. Styles come from the inventory's `tokens.css` (HAX UI for admin surfaces and editor chrome, DDD for anything a visitor sees, per `1992902d74844c908ab446`), never retyped values. Multipage and admin flows show each step as its own real state. Every prototype carries its provenance (commit SHAs, inventory date, fixture) and passes the skill's fidelity check before review. When review finds drift, fix the prototype and record the cause: an inventory gap is fixed in `scripts/ui-inventory.js`, a repeatable agent mistake goes in the skill's deviation log. A loose concept sketch is allowed only when asked for, labeled "Concept, not the current UI", and is never reviewed as a HAXcms prototype. Single elements use `hax-element-demo`. Tracked in haxtheweb/issues#3234. In PRAW RULES.md (scope: design-system). Nothing enforces this yet.

Status: gap

Connects to

Links