Design DNA
Build a machine-readable design profile without presenting guesses as measured facts. Treat existing project tokens, Figma variables, approved specs, and vault decisions as sources of truth.
Source priority
Use the strongest available evidence in this order:
- Existing approved project tokens, Figma variables, and implementation constants.
- Inspected source code and computed styles.
- Pixel measurements or color sampling from supplied assets.
- Visual inference from screenshots or video.
- Qualitative interpretation.
Never overwrite a stronger source with a weaker inference. When sources conflict, report the conflict and ask which source governs.
Evidence contract
Read references/schema.md before extraction. Preserve its three dimensions: design_system, design_style, and visual_effects.
For every populated leaf, add an entry to a top-level evidence map keyed by JSON path:
{
"evidence": {
"design_system.color.primary.hex": {
"status": "measured",
"confidence": 0.96,
"source": "Figma variable Brand/Primary"
}
}
}
Allowed status values:
authoritative: approved token, Figma variable, spec, or implementation constant.measured: directly sampled or inspected.observed: clearly visible behavior or property without an exact value.inferred: reasoned estimate from incomplete evidence.unknown: not supported by the available references.
Use null for unknown values. Do not fabricate a complete-looking profile. Keep confidence between 0 and 1 and explain low-confidence fields briefly.
Workflows
Structure
When asked for the schema, read references/schema.md, present only the relevant sections unless the user requests the complete schema, and explain the evidence contract.
Analyze references
- Identify reference type and available evidence.
- Inspect the strongest sources first.
- Extract only supported fields.
- Record evidence status, confidence, and source for every populated field.
- Separate shared patterns from reference-specific variants.
- Report unknowns and contradictions instead of silently resolving them.
- Return the JSON plus a concise findings summary.
Do not claim exact typography, spacing, easing, shader parameters, or responsive behavior from a static screenshot unless they were directly measured elsewhere.
Apply existing DNA
Only generate or modify an implementation when the user explicitly requests it. Read references/generation-guide.md, then:
- Validate the DNA against current project tokens and constraints.
- Preserve existing framework, animation library, component system, and source-of-truth files.
- Ask before installing dependencies, downloading assets, or introducing network-loaded resources.
- Use original assets only when provenance and reuse permission are clear.
- Respect reduced motion, accessibility, responsive behavior, and performance budgets.
- Verify the result against the supplied references and list any intentional deviations.
Never create a competing MASTER.md or replace existing Figma/vault token architecture unless the user explicitly asks for a migration.
Vault integration
Inside the shared Claude + Codex vault, route an approved durable Design DNA profile to the active project's normal PARA pages. Keep raw references in the project's immutable sources/ folder. Follow zone isolation and update the active index, log, and hot cache when the operation is significant.