UI DNA

Specifications · rev 0.3.1

Spec 03

Tools

Pin 08 of 12

Pin08

generate_project

Generate project · shape workflow · group Build

Buildworkflow

Generate a deterministic React + TypeScript + Tailwind + Vite project from the UI DNA document: semantic HTML, components extracted from fingerprint matches (with generated names for you to rename), tokens as CSS variables and a Tailwind theme, observed transitions as React state with the same ARIA attributes. Assets that are not authorized become labeled placeholders. Installs (from the npm registry) and builds the project unless told otherwise and returns the paths of the install and build logs. Generated files in outDir are overwritten; other files are kept.

CLIuidna generate <scanId> <outDir>
MCPgenerate_project

03.08.1Effects

Writes artifactsunder the scan directory
Destructiveoverwrites generated files
Idempotentsame input, same output
Networkreaches the network
Long-runningprogress and cancellation

03.08.2Input

FieldTypeRequiredDescription
scanIdstringrequiredScan id returned by scan_interface, e.g. scan_20261013_3f9a1c.
outDirstringrequiredDirectory for the generated project. Created if missing; existing generated files are overwritten, other files are kept.
router"none" | "react-router"optionalHow pages are wired: "react-router" (default when the document has more than one page) or "none".
behaviorTestsbooleanoptionalAlso write Playwright tests that replay every recorded transition against the generated app. Default true.
installbooleanoptionalRun npm install. Default true.
buildbooleanoptionalRun the production build after install. Default true.
outRootstringoptional—

03.08.3Result fields

scanIdprojectPathfilescomponentsplaceholdersmocksinstallbuild

Every field arrives inside the evidence envelope.