skills/design-system/SKILL.md
Generate a context-aware, production-grade design system from the SDL blueprint. Produces design tokens, typography, palette, motion language, and component inventory — grounded in the product domain, audience, and architecture. Use this skill when generating or refining the SDL design section, scaffolding frontend projects, or when the user asks about visual direction.
npx skillsauth add navraj007in/architecture-cowork-plugin design-systemInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill generates distinctive, production-grade design systems that are derived from architecture context — not random aesthetic choices. Every design decision traces back to the product domain, target audience, component library, and accessibility requirements defined in the SDL.
Reference files to load alongside this skill:
references/design-systems.md — component library presets, personality guide, domain defaults, sub-domain differentiationreferences/design-system-fonts.md — curated font pairing library by personality (49+ pairs including organic/retro/expressive/cinematic, rotation rules)references/design-system-patterns.md — dark mode tokens, gradient/texture recipes, motion timing values, layout archetype spatial specs, 8 unconventional layout patterns with CSSreferences/design-system-creative.md — 4 creative personalities (organic, retro, expressive, cinematic), consumer/creative domain defaults, personality × domain quick guideThe user has an SDL blueprint. This skill fills, refines, or validates the design section and produces actionable design artifacts.
Before making any design choice, ground it in the SDL:
solution.name, solution.description, frontend components, target audience, product domainreferences/design-system-creative.md personality × domain quick guidedesign-systems.md reference for full domain mappingdashboard (sidebar + header + content)marketing (hero + sections + footer)editorial (wide content + typographic hierarchy)saas (auth layout + dashboard + settings)app-shell (top nav + responsive content)references/design-system-patterns.md:
split-screenbento-gridfull-bleed-panelssticky-scrolldiagonalhorizontal-scrolltypography-forwardmagazine-gridfull-bleed-panels for hero + bento-grid for features + magazine-grid for contentAdapted from Anthropic's frontend-design research — applied through an architecture lens:
reducedMotion accessibility setting when specifiedWhen generating a design system, produce ALL of the following:
Complete the SDL design section with all fields:
design:
preset: [component library — shadcn | material | ant | chakra | daisyui | bootstrap | custom]
personality: [derived from domain + audience]
palette:
primary: [domain-appropriate color]
secondary: [complementary color]
accent: [contrast color for CTAs and highlights]
neutral: [slate | gray | zinc | neutral | stone — matched to personality]
surface: [light | dark | auto — context-appropriate]
semantic:
success: [green variant]
warning: [amber variant]
error: [red variant]
info: [blue variant]
typography:
heading: [distinctive Google Font — NEVER Inter/Roboto/Arial]
body: [readable Google Font — paired for contrast]
mono: [monospace font for code blocks]
scale: [compact | default | spacious — matched to personality]
shape:
radius: [none | sm | md | lg | full — matched to personality]
density: [compact | default | relaxed]
shadows: [flat | subtle | elevated | dramatic]
borders: [none | subtle | visible | bold]
motion:
transitions: [none | snappy | smooth | expressive]
pageTransitions: [true | false]
layout:
maxWidth: [1024-1440 based on archetype]
style: [dashboard | marketing | editorial | app-shell | saas]
iconLibrary: [lucide | heroicons | phosphor | tabler — matched to personality]
componentLibrary: [full name e.g. "shadcn/ui", "Radix UI"]
accessibility:
wcag: [A | AA | AAA — default AA for most, AAA for healthcare/gov]
reducedMotion: [boolean]
highContrast: [boolean]
A human-readable 1-page markdown summary:
Machine-readable tokens for consumption by scaffold:
{
"colors": {
"primary": { "50": "...", "100": "...", "...", "950": "..." },
"secondary": { ... },
"accent": { ... },
"neutral": { ... },
"semantic": { "success": "...", "warning": "...", "error": "...", "info": "..." }
},
"typography": {
"heading": { "family": "...", "googleFont": true, "weights": [400, 600, 700] },
"body": { "family": "...", "googleFont": true, "weights": [400, 500] },
"mono": { "family": "...", "googleFont": true, "weights": [400] },
"scale": "default"
},
"shape": {
"radius": { "sm": "0.25rem", "md": "0.5rem", "lg": "1rem", "full": "9999px", "default": "0.5rem" },
"shadows": { "sm": "...", "md": "...", "lg": "..." },
"borders": { "width": "1px", "color": "..." }
},
"motion": {
"duration": { "fast": "150ms", "normal": "300ms", "slow": "500ms" },
"easing": { "default": "cubic-bezier(0.4, 0, 0.2, 1)", "bounce": "cubic-bezier(0.68, -0.55, 0.265, 1.55)" }
},
"layout": {
"maxWidth": "1280px",
"style": "dashboard"
}
}
Map SDL architecture components to UI components needed:
| SDL Component | UI Components Needed | |---|---| | Auth service | Login form, signup form, forgot password, auth layout | | User dashboard | Sidebar nav, stat cards, data tables, charts | | API service | API key management, usage meters, code snippets | | Payment integration | Pricing cards, checkout form, billing history |
Ready-to-merge Tailwind configuration:
// tailwind.config.ts extension
import type { Config } from 'tailwindcss'
export default {
theme: {
extend: {
colors: { /* from design tokens */ },
fontFamily: { /* from typography */ },
borderRadius: { /* from shape */ },
boxShadow: { /* from shape */ },
},
},
} satisfies Config
Single-file HTML that visually demonstrates:
When surface: dark is specified in SDL, or when the domain defaults to dark (developer tools, gaming, AI/ML at user preference), generate an additional dark token set alongside the light tokens.
Read references/design-system-patterns.md → Dark Mode Token Patterns section for exact values per personality.
Output dark tokens in design-tokens.json under a "dark" key:
{
"colors": { ... },
"dark": {
"background": "#09090b",
"surface": "#18181b",
"surface-elevated": "#27272a",
"border": "rgba(255,255,255,0.08)",
"text-primary": "#fafafa",
"text-secondary": "#a1a1aa",
"primary": "#60a5fa"
}
}
Also generate the CSS dual-mode token block (:root + .dark) for inclusion in the palette-preview.html.
No two projects should ever look the same. Even within the same domain, vary:
The goal is design systems that feel intentionally crafted for this specific product — not templated output with a color swap.
development
# Trade-Off Analysis Skill Quantifies exact trade-offs when switching between architecture options. Shows users precisely what they gain and lose when choosing Option A over Option B. ## When to Use Use this skill to help users decide between options by showing: 1. **Cost difference** — how much more/less per month? 2. **Performance difference** — how much faster/slower? 3. **Complexity difference** — how much harder to build/maintain? 4. **Scalability difference** — when does this option hit
testing
# Stage Detection Skill Detects the current project stage (concept → mvp → growth → enterprise) based on `_state.json` field presence and completeness. Used by `/architect:next-steps`, `/architect:check-state`, and roadmap commands. ## When to Use Invoke this skill when you need to determine what stage a project is at based on its state file. Stage detection drives: - Command recommendations (what to run next) - Required fields validation (what should exist at this stage) - Risk assessment (w
development
# Stack Swap Simulator Skill Estimates cost and effort to switch from one tech stack to another. Helps answer: "Can we migrate later if needed?" ## When to Use Use this skill to understand: 1. **Cost of switching stacks** — engineer weeks + downtime risk 2. **Timeline to switch** — how long is the project? 3. **Risk of switching** — what can go wrong? 4. **ROI of switching** — does it save money long-term? 5. **Backwards compatibility** — can we do a gradual migration? ## Input Provide sour
tools
# Stack Compatibility Skill Verifies that chosen technologies integrate well together. Prevents "I picked these tools and they don't work well together" regrets. ## When to Use Use this skill to verify: 1. **Chosen tools work together** — React + Node + MongoDB = good? 2. **No hidden incompatibilities** — will I hit issues in production? 3. **Team can support it** — do we have expertise for this combo? 4. **Licenses compatible** — can we use these together commercially? 5. **Performance assum