unprompted-direction — Art-Directed Archetypes & DESIGN.md Engine
Activate this skill whenever starting a website or web app without an existing design system, selecting a built-in visual archetype, or extracting DESIGN.md + CSS tokens from a reference page.
Built-In Art-Directed Archetypes (Zero Manual Setup Required)
Users do not need to write DESIGN.md from scratch. Match the product domain to one of the 6 WCAG-verified archetypes below (or scaffold it instantly via node scripts/design-spec.mjs --init --archetype <name> --with-tokens):
| Archetype | Surface & Accent | Best For |
|---|---|---|
atelier | Warm Alabaster #f6f3ec + Espresso #1c1917 + Terracotta #a83e1f | E-commerce, storefronts, studios, hospitality, culinary & D2C |
ledger | Mineral Paper #f5f7f6 + Pine Ink #0f1915 + Forest #14533d | Fintech, B2B SaaS, billing, treasury, operational analytics |
press | Newsprint Cream #faf7f2 + Charcoal #161615 + Crimson #9f1239 | Technical blogs, research labs, documentation, essays, media |
instrument | Matte Carbon #101012 + Titanium #f4f4f5 + Amber #f59e0b | DevTools, CLIs, cloud infrastructure, creative/audio hardware UIs |
nordic | Limestone #f4f5f7 + Slate #11141a + Cobalt #1d4ed8 | Calm productivity apps, scheduling, health, collaborative workspaces |
brutalist | Stark Chalk #f2f2ef + Pure Ink #111111 + Signal Orange #c2410c | Design engineering agencies, architecture, developer launches |
Workflow
Step 1: Anchor Domain & Audience (Never Invent in a Vacuum)
Derive every aesthetic choice from three concrete facts:
- What the product actually does (e.g., Indonesia domestic bare-metal cloud, clinical pathology lab portal, independent coffee roaster wholesale catalog).
- Who uses it and under what conditions (e.g., on-call SREs at 03:00 in dark rooms vs. procurement buyers scanning 80 SKUs on mobile).
- Physical / Editorial Reference World: Name a real-world craft artifact—never "modern sleek SaaS" or "Linear/Stripe clone". Examples: Swiss railway timetable, architectural blueprint ledger, uncoated literary monograph, avionics instrument cluster.
If the user has not expressed a preference between light/dark polarity or editorial vs. technical density, ask at most 2 brief questions before writing DESIGN.md.
Step 2: Write DESIGN.md at the Project Root
Every DESIGN.md must stay concise, measurable, and free of vague adjectives. Include these exact 6 sections:
markdown# DESIGN.md — <Project Name> ## 1. Aesthetic Point of View - **Reference World**: <concrete physical/editorial reference> - **Surface Polarity**: <Tinted Light | Architectural Dark | Dual with Light Default> - **Density**: <Spacious Editorial | Balanced Product | High-Density Operational> ## 2. Color Tokens (90% Neutral / 10% Accent) - `--bg-canvas`: <hex / oklch> — Primary page background - `--bg-surface`: <hex / oklch> — Elevated panels / sheets - `--bg-subtle`: <hex / oklch> — Hover rows / recessed wells - `--fg-primary`: <hex / oklch> — Primary ink (>= 7:1 contrast on canvas) - `--fg-secondary`: <hex / oklch> — Supporting copy (>= 4.5:1 contrast on canvas) - `--fg-muted`: <hex / oklch> — Metadata & captions (>= 4.5:1 if essential text) - `--border-hairline`: <rgba / oklch alpha> — 1px structural dividers - `--accent`: <hex / oklch> — Single primary action/signal hue - `--accent-fg`: <hex / oklch> — Text on `--accent` (>= 4.5:1 contrast) ## 3. Typography & Optical Rules - **Display Font**: <font family, weights, tracking -0.03em, line-height 1.04> - **Body / UI Font**: <font family, weights, max-width 64ch, line-height 1.6> - **Monospace Font**: <font family for IDs, code, metrics + tabular-nums> ## 4. Spatial Grid & Geometry - **Max Container**: <e.g., 76rem with clamp(1.25rem, 3.5vw, 3rem) gutter> - **Primary Layout Motif**: <e.g., 7fr/5fr asymmetric split + 1px shared-hairline grids> - **Corner Radius Scale**: <e.g., 4px controls, 6px panels, concentric outer calc> ## 5. Motion & Affordances - **Curve & Timing**: `cubic-bezier(0.22, 1, 0.36, 1)` — `150ms` micro, `220ms` panel - **Interactive States**: Solid hover shift, `translateY(1px)` active press, `2px` offset `:focus-visible` ## 6. Anti-Patterns Specific to This Brand - <2–3 domain-specific things never to do on this product>
Step 3: Verify Contrast Math (U-09)
Before locking DESIGN.md, verify every foreground/background pair with the bundled contrast checker:
bashnode <skills-dir>/unprompted-a11y/scripts/contrast-check.mjs --fg "#181614" --bg "#f7f5f0"
Ensure --fg-primary and --fg-secondary pass WCAG AA (>= 4.5:1) against both --bg-canvas and --bg-surface, and --accent-fg passes >= 4.5:1 against --accent.
Step 4: Emit Matching CSS Variables
Mirror the locked DESIGN.md values directly into the project's stylesheet (tokens.css or globals.css) before building components.


