omk-agent
Distill a top-level principle into knowledge/rules.md. Trigger when user says 'add rule', 'new principle', 'enforce this',…
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
$ npx -y skills add kaimingwan/oh-my-kiro --skill omk-stitch --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/omk-stitchContext preview
The summary Claude sees to decide when to auto-load this skill.
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
name: omk-stitch triggers: "stitch|design.?to.?code|UI.?design|visual.?compare|screen.*code|figma.*stitch|设计稿|设计.*代码|视觉.*对比|design.?md|design.?system|shadcn.*stitch|redesign" 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. metadata: pattern: tool-wrapper domain: design
Stitch's design system is captured in a `design.md` file — colors, fonts, themes, component styles. This file is:
**Default workflow**: Always start by establishing a design.md, then build pages on top of it.
Community package: [davideast/stitch-mcp](https://github.com/davideast/stitch-mcp) npm: `@_davideast/stitch-mcp`
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>
Add to your MCP client config (e.g. `.kiro/settings/mcp.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.
npx @_davideast/stitch-mcp doctor
If `doctor` times out on API test, verify directly:
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"| 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 |
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
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)
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
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](https://github.com/nicepkg/stitch-skills) for installation.
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
After implementation, run a multi-layer verification. The goal: catch what human eyes miss.
Take screenshots at 3 breakpoints to catch responsive issues:
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-
Your AI agent forgets everything. Mine doesn't. oh-my-kiro is a framework that gives your AI coding agent persistent memory, deterministic workflows, and self-evolving intelligence. Like oh-my-zsh for Zsh — but for AI agents. Day 1: generic agent.
Distill a top-level principle into knowledge/rules.md. Trigger when user says 'add rule', 'new principle', 'enforce this',…
Enforces coding best practices: deep-read before modify, LSP-first navigation, TDD red-green-refactor, minimal changes,…
Fetch current library/framework documentation via Context7. Trigger when user asks about libraries, frameworks, API references,…
Systematic debugging: reproduce → hypothesize → verify → fix. Trigger when encountering bugs, test failures, errors, crashes,…
Branch completion workflow: verify tests → present 4 options (merge/PR/keep/discard) → execute → cleanup worktree. Trigger when…
Capture knowledge into episodes.md. Trigger when user says 'remember', 'capture this', 'lesson learned', 'note this', '@know', or…