agentleFS
ddtcorexddtcorex/maestro-skills/skills/maestro-design/SKILL.md

maestro-design

Skill5 starsChanged 3 months agoMITView on GitHub

Use when creating UI components, pages, design systems, or converting Figma/mockups to code. Covers Tailwind + shadcn/ui + Radix primitives, design tokens, responsive, a11y (WCAG 2.2), motion, and Figma→code workflow. Use for scaffolding a design system or generating production-ready UI. Triggers: figma, tailwind, shadcn, design system, a11y, responsive, component, landing page, dashboard, scaffold UI.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 4 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every generation starts by emitting a Design System Box for user approval before writing code.

    line 26
  2. Very specific:

    Run npx shadcn@latest add for required primitives (Button, Card, Input, etc.).

    line 106
  3. Very specific:

    Write tailwind.config.ts with tokens from references/tokens.md (colors, fontFamily, borderRadius, boxShadow).

    line 107
  4. Very specific:

    Write app/globals.css CSS variables (--background, --foreground, --primary, --radius).

    line 108
  5. Very specific:

    Write components/ui/* primitives and design-system/MASTER.md via the runtime's file-write tool.

    line 109
  6. Very specific:

    Read design-system/MASTER.md and design-system/pages/<page>.md if it exists.

    line 122
  7. Very specific:

    Write the component or page file importing from @/components/ui/* with cursor-pointer on clickable and focus-visible:ring-2 on focusable …

    line 124
  8. Distinctive:

    Ensure responsive at 375, 768, 1024, 1440 and no horizontal scroll.

    line 125
  9. Distinctive:

    Run the Pre-delivery Checklist before handoff.

    line 126
  10. Distinctive:

    Run this checklist verbatim before handing off any generated UI.

    line 163
  11. Very specific:

    When the project has a Hyvä theme (detect via app/design/frontend/<Vendor>/<theme>/theme.xml parent Hyva/default or tailwind.config.js with …

    line 178
  12. Very specific:

    Keep the same design tokens (references/tokens.md) and Box workflow.

    line 181

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Maestro Design

Professional UI/UX implementation — design tokens, Figma→code, Tailwind + shadcn/Radix component system, a11y, responsive and motion.

When to Use

Trigger keywords: figma, tailwind, shadcn, design system, a11y, responsive, component, landing page, dashboard, scaffold UI, UI/UX.

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:

+----------------------------------------------------------------------------------------+
|  TARGET: <Project Name> - RECOMMENDED DESIGN SYSTEM                                    |
+----------------------------------------------------------------------------------------+
|  PATTERN: <e.g., Hero-Centric + Social Proof>                                          |
|     Sections: Hero -> Features -> Testimonials -> Pricing -> FAQ -> CTA                |
|  STYLE: <e.g., Minimalism + Bento Grid>                                                |
|     Keywords: clean, grid, whitespace, soft shadows, rounded 16px                      |
|     Best For: SaaS, dashboards                                                         |
|     Performance: cost:low | Accessibility: risk:low                                    |
|  COLORS:                                                                               |
|     Primary: #...  Secondary: #...  CTA: #...                                          |
|     Background: #...  Text: #...  Muted: #...                                          |
|     Notes: <contrast rationale, 4.5:1 verified>                                       |
|  TYPOGRAPHY: <Heading / Body> — e.g., Inter / Inter                                   |
|     Mood: professional, readable                                                       |
|     Google Fonts: https://fonts.google.com/...                                         |
|  KEY EFFECTS: subtle hover 200ms, soft shadow, focus ring 2px                          |
|  AVOID (Anti-patterns): neon gradients for finance, emoji-as-icon, no focus ring      |
|  PRE-DELIVERY CHECKLIST: [ ] 8 items (see Pre-delivery Checklist)                      |
+----------------------------------------------------------------------------------------+

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.

#StyleWhen to useTailwind cueDo-not-use-for
1Minimalism & SwissSaaS, dashboards, docsgrid, gap-8, rounded-none, shadow-nonePlayful onboarding, luxury
2Bento GridFeature dashboards, marketinggrid auto-fit, rounded-2xl, gap-5, bg-[#F5F5F7]Dense editorial
3GlassmorphismOverlays, nav, premium SaaSbackdrop-blur-xl, bg-white/15, border-white/20Low-end devices, heavy content
4ClaymorphismOnboarding, children, playfulrounded-[20px], border-[3px], shadow-inner+outer, pastelsFinance, enterprise
5NeumorphismWellness, minimalrounded-[14px], shadow soft dual, pastelsHigh contrast needs
6BrutalismPortfolio, editorial, counter-culturerounded-none, transition-none, font-mono, primary onlySaaS trust, healthcare
7Aurora / Mesh GradientHero, branding, musicconic-gradient, animate 8-12s, screen blendData-dense tables
8Editorial / MagazineBlogs, news, long-formgrid asymmetric, serif body, drop-cap, pull-quoteDashboard CRUD
9Dark OLEDCoding, entertainment, nightbg-[#000], text-white, neon accents, 7:1 contrastDefault light SaaS
10Tactile / DeformableMobile playful, consumeractive:scale-95, spring physics, framer-motionEnterprise data
11Nature DistilledWellness, artisan, sustainableterracotta #C67B5C, sand, olive, grain textureFintech, gaming
123D Product PreviewE-commerce, furnitureThree.js/model-viewer, orbit controls, drag-to-spinText-heavy docs
13Motion-DrivenStorytelling, portfolioIntersection Observer, parallax 3-5 layers, 300-400msPerformance critical
14Flat DesignMVP, cross-platform, startupshadow-none, 4-6 flat colors, 150-200msPremium luxury
15Spatial / VisionOSVR/AR, immersiveblur 40px, glass, depth layeringStandard web forms

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.

#VerticalPatternStyle priorityColor moodTypographyAvoid
1SaaS / B2BHero + Features + Pricing + FAQMinimalism, BentoBlue/neutral, high contrastInter / InterNeon, harsh motion
2E-commerce (general)Hero + Categories + Products + ReviewsBento, MinimalismVibrant CTA, warm BGPoppins / InterDark mode as default
3Beauty / SpaHero-centric + Social ProofSoft UI, Nature DistilledSoft pink #E8B4B8, sage, goldCormorant / MontserratBright neon, dark mode
4Restaurant / HotelHero + Menu/Rooms + Gallery + BookingEditorial, AuroraWarm earth, terracottaPlayfair / LoraBrutalism
5Healthcare / ClinicTrust + Services + Doctors + ContactMinimalism, AccessibleBlue/white, 7:1 contrastInter / Source SansPlayful clay, chaos
6Education / CourseHero + Curriculum + Instructors + PricingMinimalism, EditorialBlue/orange, friendlyNunito / InterDark, neon
7Real EstateHero + Listings + Map + ContactBento, MinimalismNavy/white, gold accentMerriweather / Open SansChaos, brutalism
8Portfolio / AgencyHero + Work + About + ContactBrutalism, Editorial, MotionMonochrome + accentSpace Grotesk / InterCorporate flat
9Marketplace (P2P)Search + Listings + TrustBento, MinimalismWhite, primary accentInterDark
10Finance / FintechHero + Features + Security + ComplianceMinimalism, SwissNavy, muted, no purple/pink AI gradientsIBM Plex SansAI gradients
11Fitness / WellnessHero + Programs + Trainers + PricingTactile, NatureGreen/sand, energeticMontserratBrutalism
12Booking / AppointmentHero + Services + Calendar + ConfirmMinimalism, TactileCalm, clear CTAInterChaos

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:

  1. Emit Design System Box and await confirmation.
  2. Run npx shadcn@latest add for required primitives (Button, Card, Input, etc.).
  3. Write tailwind.config.ts with tokens from references/tokens.md (colors, fontFamily, borderRadius, boxShadow).
  4. Write app/globals.css CSS variables (--background, --foreground, --primary, --radius).
  5. Write components/ui/* primitives and design-system/MASTER.md via the runtime's file-write tool.
  6. Optionally scaffold stories/ for Storybook.
// tailwind.config.ts — scaffold output
export default {
  theme: { extend: { colors: { primary: "hsl(var(--primary))" }, borderRadius: { lg: "var(--radius)" } } }
}

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:

  1. Read design-system/MASTER.md and design-system/pages/<page>.md if it exists; page rules override master.
  2. Emit Design System Box referencing the master so drift is visible.
  3. Write the component or page file importing from @/components/ui/* with cursor-pointer on clickable and focus-visible:ring-2 on focusable elements.
  4. Ensure responsive at 375, 768, 1024, 1440 and no horizontal scroll.
  5. 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:

  1. First generation in a project writes design-system/MASTER.md via the runtime's file-write tool after Box approval.
  2. Per-page generation reads MASTER.md plus pages/<page>.md if it exists; page rules override master.
  3. 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)
  • prefers-reduced-motion respected (motion tokens, motion prop)
  • 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.

References

  • references/tokens.md — color/typography/spacing/radius/shadow tokens, CSS variables, Tailwind config
  • references/components.md — 15 shadcn/Radix primitives with variant tables and composition patterns
  • references/figma-workflow.md — hybrid Figma→code: extract auto-layout→flex/grid, variants→shadcn props
  • references/a11y-motion.md — WCAG 2.2 AA, focus-not-obscured, target-size, resilient text, motion tokens

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.