kaimingwan/oh-my-kiro/omk-stitch
Claude Code and agent skill by kaimingwan/oh-my-kiro
- community
Checking that the SKILL.md file is still in the repository.
Google Stitch design-to-code workflow with design system management. Trigger when user mentions Stitch, design-to-code, UI design, visual comparison, design.md, design system, ShadCN conversion, redesign from screenshot, or wants to pull designs from Stitch into local code. Also trigger when user says '做个页面', 'build a landing page', '用 Stitch 设计', 'convert design', 'export from Stitch', '设计系统', or uploads wireframes/screenshots for UI generation.
Install
npx vskill@latest install kaimingwan/oh-my-kiro/omk-stitchSKILL.md
Trigger Examples
- "Pull my Stitch designs into code"
- "用 Stitch 做个落地页"
- "把这个截图的风格用到我的网站上"
- "Export design.md from my Stitch project"
- "Convert Stitch design to ShadCN components"
Google Stitch Integration Skill
Core Concept: design.md
Stitch's design system is captured in a design.md file — colors, fonts, themes, component styles. This file is:
- Agent-optimized — uses targeted language agents understand better than raw CSS
- Transferable — give it to Claude Code, Cursor, or any agent and they reproduce the style perfectly
- Auto-created — Stitch generates one for every project, even if you don't ask
Default workflow: Always start by establishing a design.md, then build pages on top of it.
MCP Server
Community package: davideast/stitch-mcp npm: @_davideast/stitch-mcp
Setup
Prerequisites
- Google Cloud CLI (
gcloud) installed - A GCP project with Stitch API enabled
Authentication (OAuth — API Key is NOT supported)
MCP Config
Add to your MCP client config (e.g. .kiro/settings/mcp.json):
CRITICAL: Must use proxy mode + STITCH_USE_SYSTEM_GCLOUD=1. Direct serverUrl mode is unstable.
Verify Setup
If doctor times out on API test, verify directly:
MCP Tools
| Tool | Purpose | |
|---|---|---|
list_projects | List all Stitch projects | |
get_screen_code | Get HTML/CSS for a screen | |
get_screen_image | Get screen screenshot (base64) | |
build_site | Map screens to routes, generate Astro project |
CLI Tools (non-MCP)
Workflows
Path A: Design from Scratch (Default)
- Establish design system — Create or provide a
design.mdin Stitch (auto-created if not specified) - Generate screens — Prompt Stitch with your requirements; it builds on the design system
- Pull to local —
get_screen_code→ HTML/CSS,get_screen_image→ screenshot - Implement — Convert to target framework (Next.js/Astro/React)
- Verify — Visual comparison (see Phase: Verification below)
Path B: Redesign from Reference
Use when you have an existing site/screenshot whose style you want to adopt (not copy):
- Capture reference — Full-page screenshot of the site you like (use GoFullPage or similar)
- Redesign in Stitch — Upload screenshot; Stitch extracts design language, component patterns, and layout — then applies them to YOUR content
- Alternative: Import via URL — In Stitch's design system panel, import from any website URL. Stitch crawls it and extracts typography + colors as a design.md
- Refine — Upload wireframes or annotate specific sections to adjust
Path C: Agent-Integrated Build (Claude Code + Stitch)
For autonomous end-to-end builds using Google's official Stitch skills:
- Enhanced Prompt — Converts vague user prompts into Stitch-optimized prompts (Stitch relies on adjectives for mood, not exact descriptions)
- Stitch Loop — Autonomous build loop using Chrome DevTools, maintains prompt tracking across stages
- React Components — Converts Stitch's monolithic HTML export into modular React components with validation
Workflow order in claude.md:
Requires Stitch MCP connected. See Google's Stitch skills repo for installation.
Path D: ShadCN UI Conversion
Bare React/HTML from Stitch lacks interactions. Use ShadCN for production-quality components:
- Connect ShadCN MCP
- Use Google's ShadCN UI skill to convert Stitch designs into ShadCN components
- Extend with registries (e.g. glassmorphism, motion-primitives) for premium feel
- Specify registries in
claude.mdso conversion is automatic
Phase: Verification (inspired by gstack design-review)
After implementation, run a multi-layer verification. The goal: catch what human eyes miss.
Layer 1: Multi-Viewport Screenshots
Take screenshots at 3 breakpoints to catch responsive issues:
Check for: text overflow, layout collapse, elements overlapping, content not adapting.
Layer 2: Design System Consistency Check
Extract actual rendered values from the implementation and compare against design.md:
Compare extracted values against design.md tokens. Flag deviations.
Layer 3: Pixel Diff vs Design
Layer 4: AI Slop Detection
Check the implementation for these 10 AI-generated patterns (from gstack's blacklist):
- Purple/violet gradient backgrounds as default
- 3-column feature grid with icon-in-circle + title + description
- Icons in colored circles as section decoration
text-align: centeron everything- Uniform bubbly border-radius on all elements
- Decorative blobs, wavy SVG dividers
- Emoji as design elements
- Colored left-border on cards
- Generic hero copy ("Welcome to X", "Unlock the power of...")
- Cookie-cutter section rhythm (hero → features → testimonials → pricing → CTA)
If ≥3 patterns detected, flag as "AI slop risk" and suggest specific fixes.
Layer 5: AI Visual Diff
Feed both design.png and impl-desktop.png to the LLM for comparison. Ask specifically:
- Does the hierarchy match?
- Are spacing proportions preserved?
- Any missing sections or elements?
Refinement Loop
After verification, iterate:
- Show user the screenshots + diff results
- User provides feedback
- Apply surgical edits (don't regenerate entire files)
- Re-verify
- Repeat until "done" (max 10 rounds)
design.md Tips
- Template: Get the agent-optimized template from Google's official skills repo
- Transfer: Give design.md to any agent (Claude Code, Cursor) for consistent styling
- Extract: Use Google's "design MD skill" to extract design.md from existing Stitch projects
- Custom: Create your own design.md with colors/fonts/themes, paste into Stitch's design system panel
Known Issues
- API Key auth broken — Stitch API rejects API keys, must use OAuth (confirmed 2026-02 by community)
- `doctor` fetch timeout — Network-dependent; direct curl test is more reliable
- Billing not required — Stitch API works on projects without billing enabled
- Experimental mode no Figma export — Only Standard mode supports Figma export
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/omk-stitch/SKILL.md
Popularity
- Repository stars
- 92
- Repository forks
- 14
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 May 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kaimingwan/oh-my-kiro/omk-stitch)