YuqingNicole/variant-design-skill
소개
Open-source agent skill for Codex and Claude Code that turns one design brief into three comparable directions (A/B/C) inside your own project.
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalvariant-design
English | 中文
Open-source agent skill for Codex and Claude Code that turns one design brief into three complete, comparable directions (A/B/C) inside your own project, with scoped edits, snapshot undo and an integration step you can roll back.
The three directions share the same task, data and functions, and each states what it optimizes and what it gives up. Edits are snapshotted first and never overwrite changes you have not seen.
Interactive website
Live website → · Website source · Install the skill
Browse design references with sources and check dates, inspect A/B/C cases, and follow the installation guide to use the skill in your own project. The website's lab is a separate experiment; it is not a paid hosted plan. Pro and Team are proposals, not available subscriptions.
Run the React + Vite website locally:
git clone https://github.com/YuqingNicole/variant-design-skill.git
cd variant-design-skill/website
npm ci && npm run dev
Sample output
Three variations from a single prompt — each feels like a different studio:
| A — Editorial | B — Dark Dashboard | C — SaaS Landing |
|---|---|---|
![]() |
![]() |
![]() |
What it does
Generate Mode (default)
- Detects your scenario — dashboard, SaaS landing page, editorial, e-commerce, mobile app, creative tool, education, portfolio, food & beverage, fashion & lifestyle
- Loads design system references — typography, color theory (OKLCH), spatial design, motion, micro-interactions, interaction, responsive, UX writing
- Generates 3 distinct variations — each expresses a distinct product trade-off with working task controls; visual tokens stay fixed under a brand lock
- Runs mechanical and visual quality gates — scans generated code, checks that the three recorded directions are distinct, recommended but not selected and inside any brand lock or confirmed design system, including its spacing and type scale (
scripts/delivery-check.mjs), then checks the rendered result for generic AI aesthetic fingerprints - Ships working code — Context-aware output: auto-detects React projects and generates
.tsxcomponents; generates zero-dependency interactive HTML otherwise. Real content, no lorem ipsum - Offers variation actions — push further, polish, critique, swap styles, remix colors, shuffle layouts, add motion, dramatize, make interactive
UX Review Mode
Comprehensive usability evaluation grounded in Nielsen Norman Group research — 13 specialized reference libraries covering everything from heuristics to conversion design.
- Heuristic evaluation — Walk flows against Nielsen's 10 heuristics; each violation rated by severity (1=cosmetic to 4=critical)
- Cognitive load analysis — Identify sources of extraneous complexity; suggest reduction strategies
- Mental model diagnosis — Find mismatches between what users expect and what the system does
- Affordance audit — Flag elements that look interactive but aren't (or vice versa)
- Gestalt check — Verify proximity, similarity, and grouping signals match intended relationships
- Dark pattern scan — Identify manipulative patterns (confirmshaming, roach motel, hidden costs)
- Information architecture — Navigation labels, hierarchy depth, search design, card sort validation
- Accessibility audit — WCAG 2.1 AA, keyboard navigation, ARIA patterns, color contrast
- Mobile interaction — Touch targets, thumb zones, gesture conflicts, iOS vs Android conventions
- Onboarding review — First-use experience, Aha moment path, empty states, activation funnel
- Data visualization — Chart type selection, color encoding, dashboard information density
- Design token review — Token tier architecture, naming conventions, theming and dark mode
- Conversion design — Trust signals, CTA copy, pricing page structure, form friction points
ux review → Full heuristic evaluation of current design
review this design → Walk flows, flag violations with severity ratings
cognitive load → Identify what's making this feel complex
mental models → Diagnose why users get confused here
affordances → Does this look clickable / draggable / interactive?
dark patterns → Ethical audit of interaction patterns
navigation → Information architecture and navigation usability
accessibility / a11y → WCAG compliance and inclusive design audit
mobile gestures → Mobile interaction conventions audit
onboarding → First-use experience and activation flow review
chart / data viz → Data visualization selection and design audit
design tokens → Token architecture and theming review
conversion / CTA → Conversion design and trust signal audit
design critique → How to give and receive effective design feedback
user research → How to plan usability tests and research methods
Analyze Mode (existing sites)
- Scans your existing code — reads HTML, CSS, JSX, Vue, Svelte files for design tokens
- Extracts design primitives — colors, fonts, spacing, components, transitions, breakpoints
- Detects inconsistencies — near-duplicate colors, off-grid spacing, missing hover states, contrast failures, font scale issues
- Generates a style report — scored audit with severity levels and priority fix list
- Produces tokens — consolidated CSS custom properties file from scattered hardcoded values
- Generates style-matched pages — new pages that follow your existing design system exactly
- Creates migration plans — phased checklist for consolidating an inconsistent codebase
audit → Full style consistency report
tokens → Extract tokens from existing CSS
match → Generate new pages matching your existing style
new page pricing → Add /pricing page following your current design
migrate → Phased plan to consolidate design tokens
compare old new → Side-by-side existing vs. redesigned
Installation
Install the complete repository, preserving SKILL.md, skills/, references/, scripts/, assets/, and VERSION together. Copying only SKILL.md is insufficient: it routes to sub-skills and executable helpers.
For Codex, clone into its skills directory (use your configured skills root if different):
git clone https://github.com/YuqingNicole/variant-design-skill.git ~/.codex/skills/variant-design
Or install into the current project for Claude Code and Codex with the skills CLI. It copies the complete repository to .agents/skills/variant-design and links it for Claude Code (checked with skills 1.7.4):
npx skills add YuqingNicole/variant-design-skill -a claude-code -a codex
The skills CLI reports installs to skills.sh unless DISABLE_TELEMETRY=1 is set.
For Claude Code, you can also install it as a plugin from this repository's marketplace (checked with Claude Code 2.1.316). Inside a session, /plugin marketplace add YuqingNicole/variant-design-skill does the same as the first line:
claude plugin marketplace add YuqingNicole/variant-design-skill
claude plugin install variant-design@variant-design
The plugin loads the complete directory as one skill, variant-design:variant-design.
For DeepSeek Harness (dsh), clone into ~/.agents/skills/variant-design. dsh also reads a project's .agents/skills, so the npx skills add project install above works there too. Both were checked with dsh 0.2.0-rc.2; it lists one skill, variant-design.
git clone https://github.com/YuqingNicole/variant-design-skill.git ~/.agents/skills/variant-design
For Claude Code or another local agent, install the same complete folder in that agent's skills location, or clone it into your workspace and point the agent to the absolute SKILL.md path. For Hermes/OpenClaw AGENTS.md, add a pointer to this installed entrypoint rather than pasting its text. The agent needs file access and Node.js for the bundled helpers.
For web projects or API integrations, make the referenced directories available through the environment's file retrieval/execution tools as well as the entrypoint. Prompt text alone cannot provide preview servers or snapshot commands.
The optional release check runs at most once per 24 hours, reports an available release, and never updates automatically. To update, run git -C <install path> pull --ff-only for a Git clone, npx skills update variant-design for an npx skills install, or claude plugin marketplace update variant-design followed by claude plugin update variant-design@variant-design for the Claude Code plugin. Projects keep their variant-output/ history across updates.
Generate → compare → choose → refine → export
- Three directions retain the same core task, data, and required functions. Each explains what it optimizes, what it sacrifices, and when to use it, followed by a reasoned recommendation.
- The comparison page opens by default, with previews first and expandable direction details. React output gets three isolated mounts and direct preview URLs; project type checks must include the generated files. Native adapters handle framework-specific dependencies.
- Preview receipts protect generated comparison, mount and static files during rebuild and cleanup. Existing unowned files and later user edits are preserved; native adapters must register absent paths before writing. See safe preview cleanup.
- Evidence and integration plans also track supported transitive local source, CSS/assets and compiler inputs. Shared changes require fresh checks/plans; unresolved dependency coverage stays unverified. See coverage and reviewed project facts.
B vary subtle — heroedits B without selecting it.pick Bexplicitly chooses B, then derives a complete design system from it (palette and type scales, spacing, radius, elevation, motion, and every component B uses in all its states) with a preview and usage rules inDESIGN.md;ds confirmlocks it and exports it as DTCG design tokens (design-system.tokens.json) for Figma variables and other token tools.undo Brestores B's last files and tokens while preserving A/C and the selected winner.- Schema v2 stores each direction's files, tokens, version, comparison, and history separately. A durable snapshot precedes every replacement; Git alone is not a snapshot.
- Confirming a derived system keeps the picked page unchanged and pending. Explicit
apply ds Buses preparedapply-systemto align code and token metadata in one snapshot; undo restores both and the prior binding. Normal variations retain their token lock. System identity and stale-candidate checks cover every registered extension. Integration plans also bind extension content and adoption state; changed or missing coverage requires a fresh plan before writing targets. - Design-system checks report measured pairs and unverified coverage separately. Generated colors use explicit pairs or surface notes; only
--brandfiles use legacy naming. Component tokens alias semantic tokens. DTCG exports keep type grouping by default, with--group-by layeravailable; neither format proves rendered accessibility. - Precedence: user constraints → product task and existing design system → accessibility → style advice. Report unresolved accessibility conflicts. Brand-locked output retains fonts/tokens; free exploration may vary them. There is no animation quota.
Implementation and verification: preview, history, export and integration, context schema, regression tests. Existing route-first routing, local zones, and Product Integrity Gate remain in place.
React previews can use an isolated Vite package with --vite-root while keeping the project’s own React; portable client components can then open as static HTML. Native Next features still require a framework adapter. See preview limits and setup.
Project integration now requires a prepared source/target baseline before staging; changed source or target files are rejected before writing. See integration.
The online HTML audit and CLI --strict --json share a strict static gate: errors and warnings block it, while review suggestions do not. CLI JSON names its policy; default CLI still blocks errors only. Compare identical sanitized HTML, and keep extra online document checks and unverified runtime behavior separate. See verification scope.
Interrupted integration or rollback has a guarded recover command: it restores only recorded before/after states, preserves unknown edits and keeps backups. Completed integrations still require strict rollback. Confirm the old process stopped before removing an empty stale lock; see recovery steps. Pending operations cannot establish current delivery acceptance.
Integration handoffs can seal a local delivery receipt with the actual file inventory, revision, backup, check reports and recovery path. Inventory validity is separate from check results; missing checks remain unverified and rollback retires the historical receipt.
Runtime evidence can use a reusable Playwright check plan for named brand elements, keyboard focus, exercised motion and non-target interactions. Reports track the artifact revision, registered design-system files and extensions, and any adoption binding. Other shared dependencies must be declared; changed or missing coverage requires a rerun. Missing checks remain unverified. See verification evidence.
Usage
Basic triggers
The simplest way — just describe what you want:
design a dashboard for a crypto trading terminal
show me 3 directions for a SaaS landing page
give me UI options for a wellness app
Directed triggers — lock in a style or reference a site
You can be more specific by naming an aesthetic direction, a palette, or even an existing site you want to match:
developer tools homepage, code-first hero with CLI snippet, dark Data/Technical direction
landing page for an AI agent tool — Dark Indigo palette, Geist font, Code-First layout from saas.md
3 variations for a food delivery app — one Warm/Human, one Bold/Expressive, one Neo-brutalist
reproduce the visual style of [site you described] — dark navy, monospace, swim lane diagrams
Tip: the more constraints you name (direction + palette + layout pattern), the more targeted the output. The more open the prompt, the more divergent the three variations will be.
Start from a direction card
The direction library publishes each entry as a card at /d/<slug>.json: one brief and its A/B/C directions with what each optimizes, trades off and fits. Point the skill at a card to make your own A/B/C from it:
Use the variant-design skill with direction A from https://variantdesign.xyz/d/pulse.json.
Make A/B/C for my weekly report page: A follows this direction, B and C are contrasts.
The skill reads the card with scripts/direction-card.mjs and records it as an inspiration reference. Your brand, design system and accessibility outrank the card, and nothing from the card's screenshots or copy is reused. In a sandbox without network, paste the card JSON or save it as a file. See references/sources/direction-cards.md.
Anatomy of a directed prompt
[what it is] + [domain] + [aesthetic direction or palette] + [layout hint] + [any signature detail]
Examples:
| Goal | Prompt |
|---|---|
| Match a specific site's vibe | "developer tool landing page — dark Data/Technical, CLI code hero, Dark Indigo palette" |
| Explore freely | "landing page for a mindfulness app" |
| One fixed + two free | "3 directions for a finance dashboard — one must be Amber Finance dark terminal" |
| Multi-screen flow | "3-screen onboarding flow for a meditation app, Wellness Soft palette" |
Variation actions
After seeing the initial 3 variations, iterate with:
| Action | What happens |
|---|---|
| Vary strong | Push current direction to its extreme |
| Vary subtle | Polish and refine, same aesthetic |
| Distill | Strip to essence — remove everything non-essential |
| Change style | Keep layout, swap entire visual language |
| Remix colors | 3 alternative palettes using OKLCH: analogous / complementary / unexpected |
| Shuffle layout | Same content + style, different composition |
| Add motion | Layer micro-interactions and animations onto current design |
| Dramatize | Push interactions to cinematic maximum (parallax, 3D tilt, curtain reveal) |
| Make interactive | Add functional patterns: filtering, charts, drag-and-drop, form validation |
| Polish | Refine against design system: typography, spacing, interactions, motion, copy |
| Refine premium | Make it more premium by restraint: converge type sizes, radii, shadows and colors, measured before and after with scripts/style-budget.mjs |
| Critique | Systematic audit against all 8 design system dimensions |
| Extract tokens | Export design tokens as CSS / JSON / Tailwind config |
| See other views | Mobile / dark mode / empty state / onboarding / hover states |
| Mix | Combine two variations: "Mix A + B" or "A's layout + C's colors" |
Quick iteration shorthand
In Claude Code you can use shorthand for fast iteration:
A vary strong → Push Variation A to maximum
B remix colors → 3 new palettes for Variation B
C → mobile → Show C as mobile viewport
pick A → Select A as winner, then derive its complete design system
A + B colors → Mix A layout with B palette
tokens A → Extract CSS tokens from A
compare → Side-by-side view of all 3
open B → Re-open B in browser
react A → Export Variation A as React .tsx component
react B → Export Variation B as React .tsx component
show context → Print current persisted palette/fonts/direction
reset context → Clear context, start fresh next session
What you'll see
Files are written to variant-output/ and auto-opened in your browser — when browser tools are available; otherwise the exact URL/path is returned. Each variation comes with a compact Summary Card in the terminal (optimization, trade-off, best-fit scenario, palette, fonts, interactions). Actions are grouped into Reshape / Tune / Animate / Refine / Export categories.
On iteration, the same file is overwritten and re-opened — your browser tab refreshes automatically. The terminal shows a 2-3 line summary of what changed, not the full code.
Context persists across sessions. When you re-enter a project directory, the skill reads variant-output/.variant-context.json and resumes your last palette, fonts, direction, and iteration count automatically:
✦ Resuming context: Amber Warm · Editorial · Instrument Serif + Instrument Sans · editing B · selected none · B revision 4
(reset context to start fresh)
No need to re-specify preferences you've already confirmed. Use show context to inspect the current context, or reset context to start fresh.
Framework output (context-aware)
The skill instructs your agent to inspect package.json and choose the matching source format:
| Project | Output for A/B/C |
|---|---|
| React / Next.js / Vite with React | VariantA.tsx, VariantB.tsx, VariantC.tsx |
| Vue 3 | VariantA.vue, VariantB.vue, VariantC.vue |
| Astro | VariantA.astro, VariantB.astro, VariantC.astro |
| Svelte / SvelteKit | VariantA.svelte, VariantB.svelte, VariantC.svelte |
| No matching framework | Interactive HTML |
Files go in variant-output/. These are agent instructions, not standalone shell commands:
design a dashboard --react → request React output
design a dashboard --vue → request Vue 3 output
design a dashboard --astro → request Astro output
design a dashboard --svelte → request Svelte output
design a dashboard --html → request HTML output
react A → export A as React without selecting it
Source format does not establish preview or integration support. The bundled preview helper covers HTML and portable React; native framework features need an isolated project adapter and their own checks. Before moving files into your source tree, use the integration workflow to inspect target paths, preserve backups and keep a rollback path. See code output, Vue/Astro/Svelte guidance and preview limits.
Reference library
references/ is grouped by role: workflow/ holds the rules every route shares (project context, discovery, history and preview, quality, product integrity), sources/ the design-reference and direction-card contracts, domains/ the scenario references below, design-system/ and ux/ the craft references, and tasks/ the standalone presentation, WeChat, Wu Xing color and copywriting guides.
Domain references
Scenario-specific materials (starter prompts, palettes, typography, layouts, signature details):
| File | Domain |
|---|---|
references/domains/dashboard.md |
Data dashboards, analytics, monitoring, trading terminals |
references/domains/editorial.md |
Magazines, journalism, long-form, news |
references/domains/saas.md |
SaaS landing pages, B2B, developer tools |
references/domains/ecommerce.md |
E-commerce, consumer apps, fintech cards |
references/domains/education.md |
Learning apps, quizzes, language tools |
references/domains/creative.md |
Generative art, music tools, creative software |
references/domains/mobile.md |
iOS/Android apps, onboarding, home screens |
references/domains/portfolio.md |
Designer portfolios, developer showcases, freelancer sites |
references/domains/food-beverage.md |
Restaurants, recipes, coffee brands, bakeries, cocktail bars |
references/domains/fashion.md |
Fashion brands, streetwear, beauty, interior design, lifestyle |
references/palettes.md |
Universal palette library — 40+ palettes across 7+ aesthetic directions, plus 7 attributed community palettes |
references/interactive-patterns.md |
Filtering, drag-and-drop, charts, lightbox, carousels, multi-step forms |
references/ux/heuristics.md |
Nielsen's 10 heuristics · Fitts's Law · Hick's Law · Jakob's Law · severity ratings · evaluation protocol |
references/ux/psychology.md |
Mental models · cognitive load · Gestalt principles · reading patterns · affordances · attention · memory · trust |
references/ux/information-architecture.md |
Navigation patterns · information scent · card sorting · tree testing · labeling rules · search design · IA anti-patterns |
references/ux/accessibility.md |
WCAG 2.1 AA · keyboard navigation · semantic HTML · ARIA usage · color contrast · accessible forms · a11y code scans |
references/ux/research-methods.md |
Usability testing · user interviews · SUS/NPS · A/B testing · analytics · research method selection matrix |
references/ux/mobile-patterns.md |
Touch targets · thumb zones · gesture conventions · iOS vs Android · bottom gesture conflicts · mobile forms |
references/ux/onboarding.md |
Aha moment · empty states · progressive disclosure · signup flow · activation funnel · onboarding anti-patterns |
references/ux/data-visualization.md |
Chart selection · visual encoding hierarchy · dashboard density · color encoding · interactive patterns · data anti-patterns |
references/ux/content-strategy.md |
Content models · taxonomy · multilingual UX · RTL layouts · content lifecycle · multi-surface design |
references/ux/design-tokens.md |
Three-tier token architecture · naming conventions · semantic tokens · multi-brand theming · dark mode · Style Dictionary |
references/ux/component-specs.md |
Button/input/modal/toggle full state machines · spacing specs · ARIA patterns · keyboard interaction |
references/ux/design-critique.md |
Feedback frameworks · taste trap · HiPPO problem · async review · critique vs review · self-critique checklist |
references/ux/conversion-patterns.md |
Trust signals · landing page anatomy · CTA copy · pricing page patterns · form conversion · dark pattern identification |
Design system references
Design principles the routes load when a step needs them. Seven of these files are unchanged copies of Impeccable's reference files, under the Apache License 2.0; NOTICE lists them.
| File | Covers |
|---|---|
references/design-system/typography.md |
Modular scale, fluid type, font pairing, OpenType features, vertical rhythm |
references/design-system/color-and-contrast.md |
OKLCH color space, tinted neutrals, 60-30-10 rule, dark mode, WCAG contrast |
references/design-system/spatial-design.md |
4pt grid, container queries, squint test, hierarchy through multiple dimensions |
references/design-system/motion-design.md |
100/300/500 rule, ease-out-expo, stagger, reduced motion, perceived performance |
references/design-system/motion-rules.md |
Whether to animate by frequency, 300ms UI budget, press feedback, interruptible transitions, hover gating, reduced motion that keeps feedback |
references/design-system/interaction-design.md |
8 interactive states, focus-visible, forms, modals, keyboard navigation |
references/design-system/responsive-design.md |
Mobile-first, content-driven breakpoints, input detection, safe areas |
references/design-system/ux-writing.md |
Button labels, error formulas, empty states, voice vs tone, accessibility |
references/design-system/micro-interactions.md |
Scroll reveals, hover effects, counters, parallax, page transitions, toasts |
references/design-system/style-audit.md |
Token extraction, consistency detection, audit reports, migration plans |
Design principles
- Real content wins. Plausible headlines, real data, actual copy. Makes designs feel alive.
- Commit fully. Half-executed aesthetics look worse than simple ones.
- Never converge. If A is dark, B cannot also be dark. Each must feel like a different studio.
- Typography first. Distinctive display font + reliable body. Preserve existing brand fonts; free exploration should choose type deliberately.
- Color = one bold OKLCH choice. One dominant color used with conviction beats five timid colors. Always tint neutrals.
- No AI slop. No purple gradients, no glassmorphism, no bounce easing, no centered-everything layouts.
Contributing
PRs welcome. Each domain reference file follows a consistent 5-section schema:
- Starter Prompts (domain-grouped)
- Color Palettes (CSS custom properties)
- Typography Pairings
- Layout Patterns
- Signature Details
Worked examples belong in the direction library, not in references: only our own runs or work its authors have licensed, never transcribed copy from other people's designs. node --test scripts/skill-links.test.mjs checks that every file the skill names exists and that every reference is reachable from SKILL.md.
Design system references give principles, code examples and anti-patterns.
Examples
The examples/ directory contains runnable demos:
| File | What it demonstrates |
|---|---|
examples/coffee-brand-interactive.html |
Full interactive landing page: curtain reveal, staggered entrance, scroll reveals, animated counters, product filter, card hover lift, image zoom, SVG donut chart, flavor bar animation, toast notifications, mobile hamburger menu, back-to-top, reduced motion fallbacks |
Open any example directly in your browser to see the interactions in action.
Built with Claude Code Skills. Seven design-system reference files come unchanged from Impeccable (Apache-2.0, Copyright 2025 Paul Bakaus; see NOTICE). Component handoff and implementation checks adapt Vercel's Web Interface Guidelines, Anthropic's knowledge-work-plugins design-handoff skill and Owl-Listener/designer-skills.
Local MCP server
The local MCP adapter exposes 13 tools for reading existing variant output, preparing and applying edits with conflict checks, managing tokens and revision history, selecting a winner, and building previews. It uses stdio and works with MCP clients independently of the website. See the adapter README for installation, scope, and tests.
Codex plugin release candidate
A self-contained Codex plugin package and fresh-directory smoke test are available. See build instructions and release gates. This candidate is not yet published in the plugin directory.
The agent can author sealed task-specific runtime plans from the task, original brand/source and actual observations. Declarative actions reuse the existing browser checker; baseline scope measurements remain unverified until a real after comparison. Missing tools/expectations stay explicit.
Failed project checks can retain individual diagnostics from actual tool output. Before/after reports distinguish matching prior diagnostics from new or changed ones, while keeping actual logs. A prior failure still fails; the comparison does not establish its cause or approve a delivery. See verification evidence.
관련 프로젝트 살펴보기
불러오는 중…


