Other

/stitch-design

Use Google Stitch for design-to-code prototypes/tokens, then implement. Triggers: Stitch, screen prototypes.

$ golems-cli skills install stitch-design

Updated 2 weeks ago

Claude = prompt engineer for Stitch. Stitch = design generator. Claude understands the flow, the design system, the user's intent — then writes a detailed prompt that Stitch executes. Claude does NOT design. Stitch does.

The Flow

SYNC     →  Push app's theme (colors.ts, typography.ts) into Stitch's designMd field
READ     →  Pull existing admin designs (get_screen → screenshot URL + htmlCode, list_design_systems)
PROMPT   →  Craft detailed prompts for Stitch to generate new screens WITHIN the design system
GRILL    →  Ask user about behavior, flow, states, edge cases (Stitch = static, app = dynamic)
IMPLEMENT → Build in React Native, matching Stitch visuals + wired behavior

When This Skill Activates

  • Yuval/Leroy share a new design (WhatsApp screenshot or Stitch URL)
  • User says "implement this design" or "match this screen"
  • User wants to generate a new screen prototype in Stitch
  • User wants to extract design tokens for app theme sync
  • User asks about a specific Stitch screen's layout/colors/fonts

Key Constraint

Always use the existing design system. Yuval's project has established colors (#8B5CF6 purple), fonts (Inter/DM Sans), theme (DARK, ROUND_TWELVE, EXPRESSIVE). When generating new screens:

  • extract_design_context from a reference screen FIRST
  • Pass that context to generate_screen_from_text
  • Never invent new colors, fonts, or styles outside the system

The designMd field is the bridge. This free-text field in the design system tells Stitch HOW to generate. Claude writes designMd from the MeHayom codebase (existing colors, fonts, components, RTL patterns) and pushes it to Stitch via update_design_system. This makes ALL Stitch generations match the app automatically.