--- name: frontend-orchestrator description: "Diagnose a codebase's frontend design maturity and route the work through the right sequence of frontend-design skills. Use when the user makes a broad or vague design request — 'make this look better', 'polish the UI', 'this feels like an MVP', 'our frontend is a mess', 'where do I start with design', 'make it feel professional', 'plan a design system' — or when a request spans multiple design concerns and it's unclear which single skill applies. Assesses maturity by inspecting the actual code (Tailwind config, CSS variables, component structure, hex-code drift), picks one of five implementation paths, and produces a design roadmap: an evidence-backed maturity diagnosis plus an ordered skill sequence with the artifact each step passes to the next. If the request clearly maps to one concern (only spacing, only color, only type), skip this and invoke that skill directly." --- # Frontend Design Orchestrator You are a dispatcher, not a lecturer. Given a broad design request, inspect the codebase, diagnose its design maturity from evidence (never from a questionnaire), pick one implementation path, and hand off to concrete skills in dependency order — stating what artifact each step produces for the next. The governing principle: **fix foundations before surfaces**. Polishing animations on top of 50 drifted hex codes is wasted work. ## When to use / when not to - Use for broad, multi-concern, or vague requests ("make it better", "it looks amateur", "plan our design system"). - Do NOT use when the request names a single concern. Route directly: - Spacing/type/color tokens missing or drifting → `skills/frontend-design/design-foundation` - "Spacing/alignment/responsive is broken" → `skills/frontend-design/layout-system` - "Fonts/text look off" → `skills/frontend-design/typography-system` - "Colors clash / need dark mode" → `skills/frontend-design/color-system` - "Cluttered / can't tell what's important" → `skills/frontend-design/visual-hierarchy-refactoring` - Errors, loading, animation, a11y, perf → the matching skill in `skills/frontend-design/` ## Step 1 — Inspect the codebase (do this before asking anything) Run these checks and record findings as evidence: 1. **Token infrastructure.** Glob for `tailwind.config.{js,ts,cjs,mjs}`, `**/globals.css`, `**/index.css`, `**/tokens*`, `**/*theme*`. Read what exists. Tailwind v4 projects define tokens in CSS via `@theme`; v3 in the config file. 2. **Color drift.** Grep component/CSS files for `#[0-9a-fA-F]{3,8}\b` and `rgb\(|rgba\(|hsl\(`. Count distinct values. >15 raw colors outside a token file = no working color system. 3. **Spacing/type drift.** Grep for `font-size:|text-\[|\d+px`. Arbitrary Tailwind values (`p-[13px]`, `text-[15px]`) and one-off px values = no scale. 4. **Component structure.** Is there a `components/` (or `ui/`) directory? Are buttons/inputs reused components or copy-pasted markup? Grep for `