Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Une commande directe contourne le prompt de vérification. Examinez la source avant de l'exécuter.
Use this skill when you need to scaffold a design system, generate a component or page, convert a Figma file or image mockup to code, or audit UI for accessibility and responsive quality. Pairs with verification-before-completion for visual/Lighthouse/axe checks and with magento2-hyva-dev when theme.xml parent is Hyvä.
Design System Generator
Every generation starts by emitting a Design System Box for user approval before writing code. Adapted from ui-ux-pro-max v2.0, Maestro-opinionated:
Pattern/style/colors/typography come from curated catalogs below and Figma extraction when available. See references/figma-workflow.md for the hybrid extract flow and references/tokens.md for token definitions. Do not write code until the user approves the Box or asks to proceed.
Curated Styles (15)
Fifteen Tailwind and shadcn viable styles distilled from ui-ux-pro-max 79. Each maps directly to Tailwind classes and shadcn variants with clear best for and do not use for guidance. Prefer these names in the Design System Box STYLE field so the style choice remains reviewable and searchable.
Each style in the Box should include keywords, performance cost, accessibility risk, and implementation checklist. For Tailwind details see references/tokens.md.
Industry Rules (12)
Twelve vertical rules curated for Maestro client work. The agent matches the prompt to the closest rule, refines with Figma tokens if present, and records conflicts in the Box AVOID field. If the user insists on an anti-pattern combination such as brutalism for banking, emit a warning and proceed only after explicit confirmation.
#
Vertical
Pattern
Style priority
Color mood
Typography
Avoid
1
SaaS / B2B
Hero + Features + Pricing + FAQ
Minimalism, Bento
Blue/neutral, high contrast
Inter / Inter
Neon, harsh motion
2
E-commerce (general)
Hero + Categories + Products + Reviews
Bento, Minimalism
Vibrant CTA, warm BG
Poppins / Inter
Dark mode as default
3
Beauty / Spa
Hero-centric + Social Proof
Soft UI, Nature Distilled
Soft pink #E8B4B8, sage, gold
Cormorant / Montserrat
Bright neon, dark mode
4
Restaurant / Hotel
Hero + Menu/Rooms + Gallery + Booking
Editorial, Aurora
Warm earth, terracotta
Playfair / Lora
Brutalism
5
Healthcare / Clinic
Trust + Services + Doctors + Contact
Minimalism, Accessible
Blue/white, 7:1 contrast
Inter / Source Sans
Playful clay, chaos
6
Education / Course
Hero + Curriculum + Instructors + Pricing
Minimalism, Editorial
Blue/orange, friendly
Nunito / Inter
Dark, neon
7
Real Estate
Hero + Listings + Map + Contact
Bento, Minimalism
Navy/white, gold accent
Merriweather / Open Sans
Chaos, brutalism
8
Portfolio / Agency
Hero + Work + About + Contact
Brutalism, Editorial, Motion
Monochrome + accent
Space Grotesk / Inter
Corporate flat
9
Marketplace (P2P)
Search + Listings + Trust
Bento, Minimalism
White, primary accent
Inter
Dark
10
Finance / Fintech
Hero + Features + Security + Compliance
Minimalism, Swiss
Navy, muted, no purple/pink AI gradients
IBM Plex Sans
AI gradients
11
Fitness / Wellness
Hero + Programs + Trainers + Pricing
Tactile, Nature
Typography mood links to Google Fonts. For token mapping see references/tokens.md.
Workflows
Scaffold vs Generate
Scaffold creates a durable design system that future generations reuse. Use when starting a project or when design-system/MASTER.md does not exist.
Steps:
Emit Design System Box and await confirmation.
Run npx shadcn@latest add for required primitives (Button, Card, Input, etc.).
Write tailwind.config.ts with tokens from references/tokens.md (colors, fontFamily, borderRadius, boxShadow).
Generate creates a single component or page and reuses the existing system. Use when design-system/MASTER.md exists or for one-off pages.
Steps:
Read design-system/MASTER.md and design-system/pages/<page>.md if it exists; page rules override master.
Emit Design System Box referencing the master so drift is visible.
Write the component or page file importing from @/components/ui/* with cursor-pointer on clickable and focus-visible:ring-2 on focusable elements.
Ensure responsive at 375, 768, 1024, 1440 and no horizontal scroll.
Run the Pre-delivery Checklist before handoff.
Hierarchical retrieval prompt for Generate:
I am building [Page]. Read design-system/MASTER.md, check design-system/pages/[page].md, prioritize page rules over master, and emit the Design System Box before coding.
See references/components.md for primitive variant tables and references/figma-workflow.md for Figma mapping.
Persist Pattern
Persisted design decisions live in design-system/ so future sessions and sub-agents share the same source.
design-system/
├── MASTER.md # Global Source of Truth (pattern, style, colors, typography, spacing, effects, avoid, checklist)
└── pages/
├── dashboard.md # Page-specific overrides (only deviations from MASTER.md)
└── checkout.md
Workflow:
First generation in a project writes design-system/MASTER.md via maestro_write_file after Box approval.
Per-page generation reads MASTER.md plus pages/<page>.md if it exists; page rules override master.
The hierarchical retrieval prompt above governs every Generate turn. The directory is git-ignored by default unless the team commits it.
Example MASTER.md header:
# MASTER — <Project> Design System
Pattern: Hero + Features + Pricing
Style: Minimalism + Bento Grid
Colors: primary #3B82F6, background #FFFFFF, text #0F172A (4.5:1)
Typography: Inter / Inter — https://fonts.google.com/specimen/Inter
Pre-delivery Checklist
Run this checklist verbatim before handing off any generated UI. Block delivery until every item passes; suggest an accessible alternative palette when contrast fails.
No emoji as icons (use lucide-react/heroicons SVG)
cursor-pointer on all clickable, focus-visible ring visible (2px)
Text contrast 4.5:1 minimum (7:1 for enhanced), verified against chosen palette
Text/chips/badges reflow without clipping at 375px, 200% zoom, user spacing overrides
Responsive: 375, 768, 1024, 1440 tested (no horizontal scroll)
Touch targets: 44pt iOS / 48dp Android / 24px web minimum + 8px gap (WCAG Target Size)
Images have alt, icons have aria-label or aria-hidden, form has label + aria-describedby for errors
For the 20 resilient rules behind items 5 and 7 see references/a11y-motion.md.
Hyva Adapter
When the project has a Hyvä theme (detect via app/design/frontend/<Vendor>/<theme>/theme.xml parent Hyva/default or tailwind.config.js with Hyvä preset), adapt React and shadcn patterns to Alpine and Tailwind:
Map shadcn Button variant and size props to Alpine x-data toggle plus Tailwind utility classes instead of Radix state. Keep cursor-pointer and focus-visible:ring-2.
Keep the same design tokens (references/tokens.md) and Box workflow; only the interaction layer changes from Radix to Alpine.
Pair with magento2-hyva-dev for Hyvä CLI, Tailwind setup, and Magento layout integration.
For Hyvä-specific scaffolding defer to magento2-hyva-dev after the Box is approved.