In the Skill's Own Terms
Turns an existing product into a written design contract. In repository mode it audits a local product's tokens, themes, shared primitives and rendered routes and writes DESIGN.md at that product's root; in URL mode it reconstructs a draft from the DOM, computed styles and loaded stylesheets at desktop and mobile widths.
Both modes share one evidence pipeline — role, value, source, scope, recurrence, confidence — and one flat token schema, with css-tailwind, json-tailwind or dtcg export targets. Values survive only if a governing source names them or they pass a three-proof gate, and the document is not released until lint and export succeed. It changes nothing but DESIGN.md.
What it produces
- A reconstructed DESIGN.md draft written into the current workspace in URL mode, labelled as a draft.
- A report listing the mode and audited product or URL, the governing sources used, and the conflicts or unsupported areas left out of the document.
- The final lint and export results, which must both pass before the document is handed back.
How It Works
- 01Choose the Mode
Repository mode when a local product repository is available, writing DESIGN.md at that product's root; URL mode when only a public URL is given, producing a reconstructed draft in the current workspace.
- 02Collect Evidence and Record Provenance
Each candidate is recorded with its source, scope and recurrence before anything is normalized, so both modes feed the same record pipeline.
- 03Normalize into the DESIGN.md Schema
Candidates that are uncertain, local without a contract, or not implementation-relevant are dropped; the rest are mapped into the canonical flat token schema.
- 04Gate the Draft Behind Validation
Markdown is written only after the parsed frontmatter passes shape checks, so prose is never drafted first and retrofitted onto the YAML.
- 05Lint and Export
Structural linting runs first, then one compatibility export in the selected target, and every populated category must appear in the output.
- 06Report Mode, Sources and Gaps
The report names the mode and audited product or URL, the governing sources used, anything omitted as unsupported, and the lint and export results.