skills/design-with-stitch/SKILL.md
Use when creating UI designs, mockups, or prototypes - integrates Google Stitch SDK for visual design generation
npx skillsauth add kienbui1995/magic-powers design-with-stitchInstall 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.
Use Google Stitch to generate visual designs and extract implementable HTML. Stitch creates mockups from text prompts — Claude Code can then read the HTML output and implement it.
Key insight: Claude Code can't see images, but CAN read HTML. Stitch generates both.
npm install @google/stitch-sdkSTITCH_API_KEY environment variable setscripts/stitch.mjs (included in this plugin)1. Brainstorm design requirements
2. Generate mockup with Stitch
3. Extract HTML from Stitch
4. Review and refine HTML
5. Implement in your framework
cd ~/.claude/scripts # or plugin scripts dir
node stitch.mjs generate <project-id> "A dashboard with sidebar navigation, user stats cards, and a data table"
node stitch.mjs get-html <project-id> <screen-id>
This returns HTML that Claude Code can read and understand — layout, components, colors, typography.
# Edit existing screen
node stitch.mjs edit <project-id> <screen-id> "Make the sidebar collapsible and add dark mode toggle"
# Generate variants
node stitch.mjs variants <project-id> <screen-id> "Try different color schemes"
Use the HTML as reference to implement in your framework. The HTML shows:
| Command | Description |
|---------|-------------|
| list-projects | List all Stitch projects |
| list-screens <projectId> | List screens in a project |
| generate <projectId> "<prompt>" | Generate new screen |
| get-html <projectId> <screenId> | Get HTML output |
| edit <projectId> <screenId> "<prompt>" | Edit existing screen |
| variants <projectId> <screenId> "<prompt>" | Generate design variants |
If you have the UI UX Pro Max skill installed (project-level), combine:
# Get design system rules
python3 .claude/skills/ui-ux-pro-max/scripts/search.py palette modern
python3 .claude/skills/ui-ux-pro-max/scripts/search.py font clean
# Generate Stitch mockup following those rules
node stitch.mjs generate <project-id> "Dashboard using [palette] colors and [font] typography"
This skill is best used with the ui-designer agent (Sonnet) which has Stitch integration and frontend design expertise.
content-media
Use when designing for XR (AR/VR/MR), choosing interaction modes, or adapting 2D UI patterns for spatial computing
testing
Use when creating new skills, editing existing skills, or verifying skills work before deployment
development
Use when you have a spec or requirements for a multi-step task, before touching code
development
Use when executing a structured workflow — select and run a feature, bugfix, refactor, research, or incident template with correct agent and model assignments per phase.