design_audit
Audit a Figma or Penpot design export against your contract, recovering screen/state from frame names and reporting missing or unmapped screens and states.
Instructions
Reverse bridge (RFC 0007): audit a design export against the contract. Point it at a Figma/Penpot SVG or JSON export, a folder of them, or a uxloom --manifest index.json. Recovers screen×state from frame names (grammar " / ", or the manifest) and reports which required screens/states have no frame: design-screen-unmapped, design-state-missing, design-frame-unmapped. Optional scaffold writes a draft {screens} fragment for frames not yet in the contract. Deterministic, zero-coupling — no Figma/Penpot API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| design | Yes | Path to the design export: an SVG/JSON file, a directory of them, or a uxloom index.json manifest | |
| scaffold | No | Write a draft {screens} fragment for unmapped frames to this path (refuses to overwrite an existing file) |