An opinionated art-direction, UI/UX, and mobile GUI skill for coding agents (Codex, Claude Code, Cursor, OpenCode, and any agent that reads SKILL.md). Its job is not to "slap on Tailwind": it reads the repository, commits to a defensible visual direction, and executes it so the resulting interface never looks generic or AI-generated.
Point it at your project folder ("build the frontend for this repo"). The agent scans the codebase, infers what you are building (SaaS, fintech, developer tool, e-commerce, mobile app, portfolio…), commits to a direction, explicit light/dark polarity, token contract, typography, composition, motion, and mobile shell, and ships it — without opening with a 10-question interview.
| Component | What it does |
|---|---|
SKILL.md |
The core contract: 9 modes, mandatory phases (read → decide → contract → compose → motion → mobile → verify → learn), explicit light/dark polarity, Signature Move Rotation, Controlled Single-Accent Protocol, Zero Dead Links (S51), 4-step broken-reference fallback chain, and deliverable record. |
references/directions.md |
20 complete visual directions with explicit default polarity (light-first vs dark-first), palette, typography, grid, surface craft, motion, 3 signature moves, avoid list, anchors, and mobile posture — including 1 Swiss Tactile Panel and 16 Editorial Specimen (light-first). |
references/archetypes.md |
Product type → direction map across 24 archetypes (devtools, AI, fintech, e-commerce, health, hardware, marketplace, internal ops, education…) with dials, required proof, and common failure modes. |
references/anti-generic.md |
Generic-design taxonomy: 51 slop signals (S01–S51) including border-to-text collisions (S47), sterile 0–4 px boxy geometry (S48), raw browser links in cards (S49), flat charts/progress bars (S50), dead placeholder links (href="#", href="", javascript:void(0)) (S51), plus cross-build anti-moldiness rules. |
references/typography.md |
Direction-matched font pairings with free web fonts, exact fluid clamp() scales, tracking, loading strategy, licensing, and before/after fixes. |
references/color.md |
Token model (bg/surface/line/text/accent/signal), strict monochrome default + Controlled Single-Accent Protocol (--chromatic), explicit light-first vs dark-first polarity, 20 palettes, derived dark mode, WCAG contrast, and accessible data color. |
references/components.md |
34+ components with anatomy, pixel metrics, concentric geometry (R_outer = R_inner + padding), state matrix, viewport-safe overlay/drawer containment, 404 / Not Found & Broken/Offline Fallback specs, tricky snippets, and "when to build nothing". |
references/pattern-atlas.md |
Executable offline blueprints distilled from the 178-source catalog (Panel UI, Xevrion UI Lab, Obsidian UI, UIArc, SV Animations, SV Table/Blocks/Efferd, Evil Charts, NumberFlow, Detail Design, Apple Design Skill) — also serves as the guaranteed local fallback when an external reference link goes down. |
references/copywriting.md |
Voice per direction, 20 headline patterns, outcome-driven CTAs, state/error microcopy, banned slop words, and localization guidance. |
references/motion.md |
Durations by element class, named easings, springs, choreography, scroll rules, performance, 3D/postprocessing, and prefers-reduced-motion. |
references/mobile.md |
True mobile GUI craft: shells, thumb zones, 44 px touch targets, safe areas, 100dvh, bottom sheets, keyboard-safe forms, responsive tables, PWA, numeric gates, and anti-patterns. |
references/quality-gates.md |
14 quality gates (first viewport, composition & zero collisions, consistency & polarity, typography, contrast, states including 404/offline, responsive, a11y, performance, copy, motion, code, slop audit, and Gate 14: Link resilience & zero dead links) + 1–10 review rubric. |
recipes/ |
End-to-end composition recipes for marketing pages, product apps, and mobile apps wired to pattern-atlas.md, Signature Move Rotation, explicit polarity, and zero dead links. |
references/sources.md |
Curated catalog of 179 references (178 kept, 1 dropped) with notes, tags, licenses, and concrete usage patterns. |
scripts/scan-project.mjs |
Scans a target folder: stack, routes, tokens, fonts, colors, copy, archetype, surface, automatic Pattern Matchmaking (mustUseBlueprints), and a ready-to-paste DESIGN READ brief. |
scripts/pick-patterns.mjs |
Queries the 178-source catalog and pattern-atlas.md by --surface, --archetype, and --needs (table,tabs,chart,dialog,auth...); skips linkStatus === "dead" sources by default and surfaces local offline blueprints. |
scripts/emit-tokens.mjs |
Deterministic Phase 3 contract generator: emits CSS/JSON tokens with explicit light-first vs dark-first polarity across all 20 directions (--direction, `--polarity light |
scripts/audit-slop.mjs |
Static codebase auditor returning a 0–100 score, S01–S51 findings (including S51 dead placeholder links) with file:line, and prioritized fixes. Fails below 80. |
scripts/check-links.mjs |
Zero-dependency catalog link health checker (--limit, --timeout, --concurrency, --update, --json): classifies URLs in data/sources.json as ok | restricted | dead | timeout and records linkStatus, lastChecked, and waybackUrl (https://web.archive.org/web/*/<url>). |
scripts/ingest-reference.mjs |
Ingests new design reference URLs or folders, dedupes, classifies design vs non-design, handles 404/timeout/DNS failures gracefully with Wayback fallback suggestions, writes data/sources.json, and rebuilds references/sources.md. |
scripts/shot.mjs |
Optional real-browser exact-viewport screenshot helper (1440/768/390/320 px, --click <selector>, --dsf) via Chrome/Edge/Brave CDP without headless minimum-width clamping. |
scripts/browser-check.mjs |
Optional real-browser PASS/FAIL gate: horizontal & fixed/absolute overlay overflow, clipped navbars, --check-menus interactive menu/drawer probing, dead-link & broken-#anchor link-integrity gate, border-to-text (S47) & sibling collisions, computed WCAG 2.1 contrast, loaded web fonts, touch targets < 44 px, text < 12 px, and JS errors. |
data/taste-ledger.json |
Persistent taste memory: directions and signature moves used per build (anti-repetition / Signature Move Rotation), user reactions, and lessons learned. |
# from the repository root
.\install.ps1Installs the skill into ~\.codex\skills\design-director, ~\.claude\skills\design-director, and ~\.config\opencode\skills\design-director. If already installed, it preserves and smart-merges your data/sources.json and data/taste-ledger.json so learned references are never lost. Restart your agent afterward.
Manual install (PowerShell):
Copy-Item -Recurse -Force .\design-director "$env:USERPROFILE\.codex\skills\design-director"
Copy-Item -Recurse -Force .\design-director "$env:USERPROFILE\.claude\skills\design-director"mkdir -p ~/.codex/skills ~/.claude/skills ~/.config/opencode/skills
cp -R ./design-director ~/.codex/skills/design-director
cp -R ./design-director ~/.claude/skills/design-director
cp -R ./design-director ~/.config/opencode/skills/design-director- Core skill: Plain Markdown — works in any coding agent that reads
SKILL.mdwith zero dependencies. - Scripts: Node 18+ (zero external npm dependencies).
- Browser helpers (optional): Chrome, Edge, or Brave installed for
shot.mjsandbrowser-check.mjs.
1. Scan a folder and build
"My product is in
~/projects/my-saas. Inspect it and build a landing page with a real visual direction — nothing template-like."
The agent runs scan-project.mjs, reads the actual files, prints the DESIGN READ (thesis, direction, polarity, dials, 3 rotated signature moves), generates the token contract via emit-tokens.mjs, and builds.
2. Redesign without breaking behavior
"Redesign the dashboard in this folder; preserve all copy, routes, and data flows."
REDESIGN mode: audits the existing surface, replaces the visual system and shell, and preserves functionality.
3. Audit an existing UI
"Audit this project's UI and tell me why it looks generic."
Runs audit-slop.mjs (and browser-check.mjs --check-menus if a browser is available) and reports ranked defects with concrete fixes.
4. Teach it new references
"Learn from these links: https://… https://… and save them for future builds."
LEARN mode: runs ingest-reference.mjs, classifies design vs non-design, handles dead links gracefully with Wayback fallbacks, updates data/sources.json and references/sources.md, and logs the lesson in data/taste-ledger.json.
5. Explore directions
"Give me 3 visual directions for a personal finance app and recommend one."
DIRECTION mode: returns 3 distinct directions with trade-offs and one clear recommendation (the only mode that presents options; all other modes decide and execute).
design-director/ ← installable skill package (also archived in design-director-v1.1.0.zip)
SKILL.md ← main art-direction & execution contract
agents/openai.yaml ← Codex agent metadata
references/ ← directions, archetypes, anti-generic, typography, color, components, pattern-atlas, quality-gates…
recipes/ ← marketing-page, product-app, mobile-app
scripts/ ← scan-project, pick-patterns, emit-tokens, audit-slop, check-links, ingest-reference, shot, browser-check
data/sources.json ← 179-entry reference catalog (source of truth)
data/taste-ledger.json ← direction & signature-move rotation memory
LICENSE · CHANGELOG.md
install.ps1 ← Windows installer (Codex, Claude Code, OpenCode) with smart JSON merge
tools/verify.mjs ← structural & link integrity verifier for the skill itself (8/8 checks)
samples/ ← verified sample builds (slop-demo, good-demo, test-marketing, test-product-app, test-mobile-app)
research/ ← research reports that informed the skill
design-director-v1.1.0.zip ← packaged v1.1.0 skill release archive
Run the built-in skill verifier and catalog link health check from the repo root:
node tools/verify.mjs
node design-director/scripts/check-links.mjs --limit 8Verified v1.1.0 results:
node tools/verify.mjs: 8/8 PASS (28 required files, frontmatter valid, 29 internal links resolve, JSON catalogs parse, zero unresolved doc markers).node design-director/scripts/check-links.mjs --limit 8: 8/8 ok (ok: 8, restricted: 0, dead: 0, timeout: 0).- Sample pages (v1.1.0 QA across
1440×900,768×1024,390×844, and320×568):
| Sample | Surface & Direction | audit-slop (incl. S51) |
browser-check --check-menus |
Dead / Broken Links | Highlights |
|---|---|---|---|---|---|
samples/test-marketing |
Marketing · Editorial Specimen (light-first) | 100/100 | PASS (1440/768/390/320) | 0 | Light-first paper (#f7f7f7/#ffffff) with explicit dark toggle, mobile-safe FIG. 01 trace block, viewport-clamped mega-menu & drawer |
samples/test-product-app |
Product App · Noir Luxury Mono (dark-first) | 100/100 | PASS (1440/768/390/320) | 0 | Monotonic 24-tick SLO burn bars, unclipped mobile topbar, full state simulator including in-app 404 / Route Not Found recovery state |
samples/test-mobile-app |
Mobile App · Field Inspector (mobile-first) | 100/100 | PASS (1440/768/390/320) | 0 | 390/320 px touch shell with bottom sheet & chip scroll-fade mask, adaptive 2-column desktop inspector at >= 1024 px |
samples/good-demo |
Marketing · Metrik interactive showcase | 100/100 | PASS | 0 | Reference benchmark with 11 positive signals |
samples/slop-demo |
Deliberate AI-slop baseline | 29/100 | FAIL (expected) | — | 35 major + 9 minor findings proving slop detection works |
MIT for the skill and scripts. Linked external references retain their respective licenses, trademarks, and rights; the catalog stores only URLs, tags, licenses, and original notes (never copied code or assets).