Agent skill

Omk Stitch

by KaimingWan in KaimingWan/oh-my-kiro

Google Stitch design-to-code workflow with design system management.

MITAuto-check passedFrontend & Design

Install Omk Stitch

skills CLI
$ npx skills add KaimingWan/oh-my-kiro --skill omk-stitch -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install KaimingWan/oh-my-kiro omk-stitch --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/KaimingWan/oh-my-kiro.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/omk-stitch .claude/skills/omk-stitch && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
omk-stitch
GitHub stars
107
Token cost
~2.2k tokens
SKILL.md length
810 words
Files
1
Skills in repo
15
Repo updated
First seen
Licence
MIT

At a glance

Google Stitch design-to-code workflow with design system management.

  • Works in 5 steps: Establish design system — Create or… → Generate screens — Prompt Stitch with… → Pull to local — get_screen_code →… → …
  • User mentions Stitch
  • SKILL.md covers Trigger Examples, Core Concept: design.md, MCP Server and Setup, plus 6 more sections
  • Calls npx, gcloud and curl; reaches stitch.googleapis.com; needs ACCESS_TOKEN

What it does

Omk Stitch is an agent skill from KaimingWan/oh-my-kiro. 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.

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering Design systems, Design to code and UI design. It works with Google Stitch, shadcn/ui, Model Context Protocol and Google Cloud. The licence is MIT.

When your agent uses it

  • User mentions Stitch
  • Visual comparison
  • ShadCN conversion
  • Redesign from screenshot

Example prompts

  • “build a landing page”
  • “用 Stitch 设计”
  • “convert design”
  • “/omk-stitch”

Requirements

  • Node.js
  • A credential in ACCESS_TOKEN

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Establish design system — Create or provide a design.md in Stitch (auto-created if not specified)
  2. Generate screens — Prompt Stitch with your requirements; it builds on the design system
  3. Pull to local — get_screen_code → HTML/CSS, get_screen_image → screenshot
  4. Implement — Convert to target framework (Next.js/Astro/React)
  5. Verify — Visual comparison (see Phase: Verification below)

What it can do on your machine

Read from SKILL.md and the folder at commit ba228be. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx
    • gcloud
    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • stitch.googleapis.com

    Also links to:

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • ACCESS_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Omk Stitch loads about 2.2k tokens when it runs. Until then it costs about 115 tokens; SKILL.md has 810 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~115
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from KaimingWan/oh-my-kiro at commit ba228be, republished under its MIT licence (© KaimingWan). 810 words, ~2,215 tokens.

Download SKILL.mdSave it as .claude/skills/omk-stitch/SKILL.md (or your agent's skills folder).
name
omk-stitch
description
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.
triggers
stitch|design.?to.?code|UI.?design|visual.?compare|screen.*code|figma.*stitch|设计稿|设计.*代码|视觉.*对比|design.?md|design.?system|shadcn.*stitch|redesign
metadata.pattern
tool-wrapper
metadata.domain
design

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)
bash
gcloud auth login
gcloud auth application-default login
gcloud config set project <YOUR_PROJECT_ID>
gcloud auth application-default set-quota-project <YOUR_PROJECT_ID>
gcloud beta services mcp enable stitch.googleapis.com --project=<YOUR_PROJECT_ID>
MCP Config

Add to your MCP client config (e.g. .kiro/settings/mcp.json):

json
{
  "stitch": {
    "command": "npx",
    "args": ["@_davideast/stitch-mcp", "proxy"],
    "env": {
      "STITCH_USE_SYSTEM_GCLOUD": "1",
      "GOOGLE_CLOUD_PROJECT": "<YOUR_PROJECT_ID>"
    }
  }
}

CRITICAL: Must use proxy mode + STITCH_USE_SYSTEM_GCLOUD=1. Direct serverUrl mode is unstable.

Verify Setup
bash
npx @_davideast/stitch-mcp doctor

If doctor times out on API test, verify directly:

bash
ACCESS_TOKEN=$(gcloud auth application-default print-access-token)
curl -s -w "\nHTTP:%{http_code}" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "x-goog-user-project: <YOUR_PROJECT_ID>" \
  "https://stitch.googleapis.com/v1/projects"

MCP Tools

ToolPurpose
list_projectsList all Stitch projects
get_screen_codeGet HTML/CSS for a screen
get_screen_imageGet screen screenshot (base64)
build_siteMap screens to routes, generate Astro project

CLI Tools (non-MCP)

bash
npx @_davideast/stitch-mcp view --projects          # Browse projects
npx @_davideast/stitch-mcp serve -p <project-id>    # Local preview
npx @_davideast/stitch-mcp site -p <project-id>     # Generate Astro site

Workflows

Path A: Design from Scratch (Default)
  1. Establish design system — Create or provide a design.md in Stitch (auto-created if not specified)
  2. Generate screens — Prompt Stitch with your requirements; it builds on the design system
  3. Pull to local — get_screen_code → HTML/CSS, get_screen_image → screenshot
  4. Implement — Convert to target framework (Next.js/Astro/React)
  5. 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):

  1. Capture reference — Full-page screenshot of the site you like (use GoFullPage or similar)
  2. Redesign in Stitch — Upload screenshot; Stitch extracts design language, component patterns, and layout — then applies them to YOUR content
  3. 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
  4. 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:

  1. Enhanced Prompt — Converts vague user prompts into Stitch-optimized prompts (Stitch relies on adjectives for mood, not exact descriptions)
  2. Stitch Loop — Autonomous build loop using Chrome DevTools, maintains prompt tracking across stages
  3. React Components — Converts Stitch's monolithic HTML export into modular React components with validation

Workflow order in claude.md:

Enhanced Prompt → Stitch Loop → React Component conversion

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:

  1. Connect ShadCN MCP
  2. Use Google's ShadCN UI skill to convert Stitch designs into ShadCN components
  3. Extend with registries (e.g. glassmorphism, motion-primitives) for premium feel
  4. Specify registries in claude.md so conversion is automatic

Phase: Verification (inspired by gstack design-review)

After implementation, run a multi-layer verification. The goal: catch what human eyes miss.

Show full SKILL.md (321 more words)Show less
Layer 1: Multi-Viewport Screenshots

Take screenshots at 3 breakpoints to catch responsive issues:

bash
npx playwright screenshot --viewport-size=375,812 http://localhost:3000 impl-mobile.png
npx playwright screenshot --viewport-size=768,1024 http://localhost:3000 impl-tablet.png
npx playwright screenshot --viewport-size=1440,900 http://localhost:3000 impl-desktop.png

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:

bash
# Extract fonts actually used (run in browser console or Playwright)
npx playwright evaluate http://localhost:3000 \
  "JSON.stringify([...new Set([...document.querySelectorAll('*')].slice(0,500).map(e => getComputedStyle(e).fontFamily))])"

# Extract color palette in use
npx playwright evaluate http://localhost:3000 \
  "JSON.stringify([...new Set([...document.querySelectorAll('*')].slice(0,500).flatMap(e => [getComputedStyle(e).color, getComputedStyle(e).backgroundColor]).filter(c => c !== 'rgba(0, 0, 0, 0)'))])"

Compare extracted values against design.md tokens. Flag deviations.

Layer 3: Pixel Diff vs Design
bash
npx pixelmatch design.png impl-desktop.png diff.png 0.1
Layer 4: AI Slop Detection

Check the implementation for these 10 AI-generated patterns (from gstack's blacklist):

  1. Purple/violet gradient backgrounds as default
  2. 3-column feature grid with icon-in-circle + title + description
  3. Icons in colored circles as section decoration
  4. text-align: center on everything
  5. Uniform bubbly border-radius on all elements
  6. Decorative blobs, wavy SVG dividers
  7. Emoji as design elements
  8. Colored left-border on cards
  9. Generic hero copy ("Welcome to X", "Unlock the power of...")
  10. 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:

  1. Show user the screenshots + diff results
  2. User provides feedback
  3. Apply surgical edits (don't regenerate entire files)
  4. Re-verify
  5. 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

  1. API Key auth broken — Stitch API rejects API keys, must use OAuth (confirmed 2026-02 by community)
  2. doctor fetch timeout — Network-dependent; direct curl test is more reliable
  3. Billing not required — Stitch API works on projects without billing enabled
  4. Experimental mode no Figma export — Only Standard mode supports Figma export

© KaimingWan, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/omk-stitch of KaimingWan/oh-my-kiro.

Open the folder on GitHubat commit ba228be

Compare with similar skills

Omk Stitch next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Omk Stitch compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Omk Stitch this skillKaimingWan/oh-my-kiro107—~2.2kAutomated safety check: PassMIT
Figma use_figma Plugin API Ruleswarpdotdev/warp65k4 repos~4.4kAutomated safety check: PassAGPL-3.0
Figma Design to Codewarpdotdev/warp65k4 repos~2.9kAutomated safety check: PassAGPL-3.0
UI UX Pro Maxsaoudi-h/solar-icons19018 repos~11kAutomated safety check: NotesCustom licence
Figma Screen Generatorwarpdotdev/warp65k2 repos~5kAutomated safety check: PassAGPL-3.0
Website Design Taste Extractorsenlindesign/taste-skill385—~5.3kAutomated safety check: PassNone

Similar skills

  • Required groundwork before any use_figma call: the rules and reference files for running JavaScript in a Figma file through the Plugin API without common failures.

    65k GitHub starsUsed in 4 repos~4.4k tokens
    Frontend & DesignAuto-check passed
  • Figma Design to Code

    warpdotdev/warp

    Turns a Figma frame or component into production code that matches the design, using the Figma MCP server and the project's own design system.

    65k GitHub starsUsed in 4 repos~2.9k tokens
    Frontend & DesignAuto-check passed
  • UI UX Pro Max

    saoudi-h/solar-icons

    UI/UX design intelligence for web and mobile. An agent skill from saoudi-h/solar-icons.

    190 GitHub starsUsed in 18 repos~11k tokens
    Frontend & DesignAuto-check: notes
  • Figma Screen Generator

    warpdotdev/warp

    Builds or updates full Figma screens from code or a description by reusing the file's published design system components, variables and styles.

    65k GitHub starsUsed in 2 repos~5k tokens
    Frontend & DesignAuto-check passed
  • Website Design Taste Extractor

    senlindesign/taste-skill

    Reverse-engineers a website's design from its URL into a Markdown and JSON pair holding concrete tokens and the trade-offs behind the look.

    385 GitHub stars~5.3k tokensUpdated 3 mo ago
    Frontend & DesignAuto-check passed
  • Refero Design

    referodesign/refero_skill

    Primary/default skill for UI design, product design, web design, landing pages, dashboards, product screens, redesigns, visual polish, frontend/CSS styling, design systems, components, responsive…

    299 GitHub stars~5.3k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check passed

More from KaimingWan/oh-my-kiro

All 15 skills in this repo
  • Omk Research

    KaimingWan/oh-my-kiro

    Multi-level research: built-in knowledge → web search → Tavily deep research API.

    107 GitHub stars~827 tokensUpdated 6 mo ago
    Auto-check passed
  • Omk Reviewing

    KaimingWan/oh-my-kiro

    Code and plan review with multi-angle dispatch. An agent skill from KaimingWan/oh-my-kiro.

    107 GitHub stars~1.9k tokensUpdated 6 mo ago
    Auto-check passed
  • Omk Skill Creation

    KaimingWan/oh-my-kiro

    Create high-quality, production-ready skills from scratch. An agent skill from KaimingWan/oh-my-kiro.

    107 GitHub stars~2k tokensUpdated 6 mo ago
    Auto-check passed
  • Omk Youtube

    KaimingWan/oh-my-kiro

    Extract and summarize YouTube video content via subtitle extraction.

    107 GitHub stars~381 tokensUpdated 6 mo ago
    Auto-check passed
  • Documentation Lookup

    KaimingWan/oh-my-kiro

    Fetch current library/framework documentation via Context7. An agent skill from KaimingWan/oh-my-kiro.

    107 GitHub stars~616 tokensUpdated 6 mo ago
    Auto-check passed
  • Omk Coding

    KaimingWan/oh-my-kiro

    Enforces coding best practices: deep-read before modify, LSP-first navigation, TDD red-green-refactor, minimal changes, self-review, verification.

    107 GitHub stars~2.4k tokensUpdated 6 mo ago
    Auto-check passed

Questions about Omk Stitch

What does Omk Stitch do?

Google Stitch design-to-code workflow with design system management. Omk Stitch is an agent skill from KaimingWan/oh-my-kiro. Google Stitch design-to-code workflow with design system management.

When should I use Omk Stitch?

Omk Stitch fits situations like: user mentions Stitch; visual comparison; shadCN conversion; redesign from screenshot.

How do I install Omk Stitch in Claude Code?

Run `npx skills add KaimingWan/oh-my-kiro --skill omk-stitch -a claude-code`. Or copy the skill folder (skills/omk-stitch in KaimingWan/oh-my-kiro) into .claude/skills/omk-stitch in your project. Claude Code loads it when a task matches its description.

How do I install Omk Stitch in Codex?

Run `npx skills add KaimingWan/oh-my-kiro --skill omk-stitch -a codex`. Or copy the skill folder (skills/omk-stitch in KaimingWan/oh-my-kiro) into .agents/skills/omk-stitch in your project. Codex loads it when a task matches its description.

Can I use Omk Stitch in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add KaimingWan/oh-my-kiro --skill omk-stitch -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/omk-stitch, .gemini/skills/omk-stitch, .github/skills/omk-stitch and .opencode/skills/omk-stitch in your project.

What does Omk Stitch need to run?

Going by SKILL.md and its folder, Omk Stitch needs the command-line tools its instructions call (npx, gcloud and curl) and credentials named ACCESS_TOKEN. Our summary lists: Node.js; A credential in ACCESS_TOKEN.

Does Omk Stitch access the network?

SKILL.md names 2 domains. In commands or code: stitch.googleapis.com; the agent is likely to contact it when it follows the instructions. As links in the text: github.com. This is read from the text; nothing was executed.

Is Omk Stitch safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Omk Stitch use?

Omk Stitch is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Omk Stitch use?

About 2.2k tokens (SKILL.md is roughly 8.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Omk Stitch?

Skills that share tags, products or a category with Omk Stitch: Figma use_figma Plugin API Rules (warpdotdev/warp, 65k stars), Figma Design to Code (warpdotdev/warp, 65k stars), UI UX Pro Max (saoudi-h/solar-icons, 190 stars) and Figma Screen Generator (warpdotdev/warp, 65k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Omk Stitch?

KaimingWan (a GitHub user) maintains it in KaimingWan/oh-my-kiro, which has 107 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on April 2, 2026.

Source: KaimingWan/oh-my-kiro on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.