Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
practicalswan avatar

Stitch Design

  • 19 installs
  • 7 repo stars
  • Updated August 2, 2026
  • practicalswan/agent-skills

stitch-design is a Claude Code skill for design & ui/ux.

About

stitch-design is a Claude Code skill for design & ui/ux. It helps solo builders move faster with AI-assisted development.

  • stitch-design
  • Design & UI/UX
  • AI-coding skill

Stitch Design by the numbers

  • 19 all-time installs (skills.sh)
  • Ranked #1,383 of 1,880 Design & UI/UX skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/practicalswan/agent-skills --skill stitch-design

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs19
repo stars7
Last updatedAugust 2, 2026
Repositorypracticalswan/agent-skills

How do I helps with design & ui/ux tasks.?

Helps with design & ui/ux tasks.

Who is it for?

Best when you're working on design & ui/ux and need structured help with stitch design.

Skip if: Teams with no design & ui/ux needs, or anyone wanting a generic chat assistant without this specific workflow.

When should I use this skill?

When you need to helps with design & ui/ux tasks., or when stitch-design is a claude code skill for design & ui/ux.

What you get

Structured output aligned to stitch-design: stitch-design, Design & UI/UX.

Files

SKILL.mdMarkdownGitHub ↗

Stitch Design

Comprehensive toolkit for Google Stitch projects — combining design system documentation, React component conversion, autonomous build loops, prompt engineering, video walkthroughs, and shadcn/ui component integration. Based on google-labs-code/stitch-skills.

  • Leverage native parallel subagent dispatch and 200k+ context windows where available.

When to Use This Skill

Use symptom -> action triggers: when one matches, apply this skill and verify with the protocol below.

  • Analyzing Stitch projects and generating DESIGN.md files
  • Converting Stitch screens to modular React/TypeScript components
  • Building multi-page websites autonomously via the Stitch build loop
  • Enhancing vague UI prompts into Stitch-optimized structured prompts
  • Creating walkthrough videos from Stitch projects using Remotion
  • Integrating and customizing shadcn/ui components in React apps

---

Part 1: Design System Documentation (design-md)

Analyze Stitch project screens and synthesize a semantic design system into DESIGN.md.

Prerequisites

  • Access to Stitch MCP Server
  • A Stitch project with at least one designed screen

Workflow

1. Retrieval: Use Stitch MCP to fetch project screens, HTML code, and metadata 2. Extraction: Identify design tokens — colors, typography, spacing, component patterns 3. Translation: Convert CSS/Tailwind values into descriptive design language 4. Synthesis: Generate comprehensive DESIGN.md

Analysis Steps

1. Extract Project Identity — Title, Project ID from JSON 2. Define the Atmosphere — Evocative adjectives for mood (e.g., "Airy", "Minimalist") 3. Map Color Palette — Descriptive name + hex code + functional role 4. Translate Geometry & Shape — Corner roundness, spacing patterns 5. Describe Depth & Elevation — Shadows, layering

DESIGN.md Output Structure



**Project ID:** [ID]

## 1. Visual Theme & Atmosphere
## 2. Color Palette & Roles
## 3. Typography Rules
## 4. Component Stylings
## 5. Layout Principles

Guidelines

  • Use descriptive design language, not technical jargon
  • Include exact hex codes alongside descriptive names
  • Explain the "why" behind design decisions

Pitfalls to Avoid

  • Using raw CSS class names without translation
  • Omitting color codes or using only descriptive names
  • Being too vague in atmosphere descriptions

---

Part 2: React Component Conversion (react-components)

Convert Stitch screens into modular Vite and React component systems with AST-based validation.

Retrieval

1. Discover Stitch MCP prefix via list_tools 2. Fetch design JSON with get_screen 3. Download HTML using system-level curl for reliability 4. Check screenshot.downloadUrl for visual verification

Architectural Rules

  • Modular components: Independent files, avoid monoliths
  • Logic isolation: Event handlers in custom hooks (src/hooks/)
  • Data decoupling: Static text/URLs in src/data/mockData.ts
  • Type safety: Readonly TypeScript interface for every component
  • Style mapping: Extract Tailwind config from HTML <head>, use theme-mapped classes

Execution Steps

1. Environment setup: npm install if needed 2. Create src/data/mockData.ts from design content 3. Draft components using template, replace StitchComponent with actual names 4. Wire up in App.tsx 5. Quality check: run validation, verify against architecture checklist

Part 3: Build Loop (stitch-loop)

Autonomous baton-passing pattern for building complete multi-page websites.

Execution Protocol

1. Read the Batonnext-prompt.md contains current task 2. Consult Context FilesDESIGN.md for visual system, SITE.md for site constitution 3. Generate with Stitch — Create/edit screens using Stitch MCP 4. Integrate into Site — Move from queue/ to site/public/ 5. Update Site Documentation — Keep SITE.md current 6. Prepare Next Baton — Write new next-prompt.md for the next iteration

File Structure

project/
├── next-prompt.md      # The baton — current task
├── stitch.json         # Stitch project ID
├── DESIGN.md           # Visual design system
├── SITE.md             # Site vision, sitemap, roadmap
├── queue/              # Staging area for Stitch output
└── site/public/        # Production pages

---

Part 4: Prompt Enhancement (enhance-prompt)

Transform vague UI ideas into polished, Stitch-optimized prompts.

Enhancement Pipeline

Step 1: Assess the Input
ElementCheck forIf missing...
Platform"web", "mobile", "desktop"Add based on context
Page type"landing page", "dashboard"Infer from description
StructureNumbered sectionsCreate logical structure
Visual styleAdjectives, mood, vibeAdd appropriate descriptors
ColorsSpecific values or rolesAdd design system or suggest
ComponentsUI-specific termsTranslate to proper keywords
Step 2: Check for DESIGN.md
  • If exists: Extract color palette, typography, component styles
  • If missing: Recommend creating one with the design-md workflow
Step 3: Apply Enhancements
  • UI/UX Keywords: Replace vague terms with specific component names
  • Amplify the Vibe: Add atmospheric adjectives
  • Structure the Page: Create numbered section layout
  • Format Colors: Use design system block
Step 4: Format the Output
  • Stitch-optimized prompt with design system block and numbered structure

---

Part 5: Remotion Video Walkthroughs (remotion)

Generate walkthrough videos from Stitch projects using Remotion.

Prerequisites

  • Stitch MCP Server and Remotion MCP Server (or CLI)
  • Node.js and npm

Workflow

1. Gather Screen Assets — List screens, download screenshots, create manifest 2. Generate Remotion Components — ScreenSlide.tsx, WalkthroughComposition.tsx 3. Preview and Refine — Open Remotion Studio, adjust timing 4. Render Video — Produce final MP4

Video Architecture

  • ScreenSlide.tsx: Individual screen with zoom/fade animations (3-5 sec per screen)
  • WalkthroughComposition.tsx: Sequences slides with transitions
  • config.ts: Frame rate (30fps), dimensions, duration calculation

File Structure

project/
├── video/
│   ├── src/
│   │   ├── WalkthroughComposition.tsx
│   │   ├── ScreenSlide.tsx
│   │   └── components/
│   ├── public/assets/screens/
│   └── remotion.config.ts
├── screens.json
└── output.mp4

Advanced Features

  • Dynamic text extraction from Stitch HTML
  • Interactive hotspots for clickable elements
  • Voiceover integration
  • Multiple video patterns (slideshow, feature highlight, user flow)

---

Part 6: shadcn/ui Integration (shadcn-ui)

Expert guidance for integrating shadcn/ui components into React applications.

Core Principles

  • Full ownership: Components in your codebase, not node_modules
  • Complete customization: Modify styling, behavior, structure freely
  • No version lock-in: Update selectively
  • Zero runtime overhead: Just the code you need

Setup



npx shadcn@latest create


npx shadcn@latest init


npx shadcn@latest add button card dialog

Component Architecture

src/
├── components/
│   ├── ui/              # shadcn components (don't modify directly)
│   └── [custom]/        # your composed components
├── lib/
│   └── utils.ts         # cn() utility
└── app/
    └── page.tsx

The cn() Utility

import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"

export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs))
}

Customization

  • Theme: Edit CSS variables in globals.css
  • Variants: Use class-variance-authority (cva)
  • Extending: Create wrapper components in components/ (not components/ui/)

Available Components (50+)

  • Layout: Accordion, Card, Separator, Tabs, Collapsible
  • Forms: Button, Input, Label, Checkbox, Radio Group, Select, Textarea
  • Data Display: Table, Badge, Avatar, Progress, Skeleton
  • Overlays: Dialog, Sheet, Popover, Tooltip, Dropdown Menu
  • Navigation: Navigation Menu, Breadcrumb, Pagination
  • Feedback: Alert, Alert Dialog, Toast, Command

Best Practices

1. Keep ui/ pure — don't modify originals directly 2. Compose, don't fork — create wrapper components 3. Use the CLI for installation 4. Maintain cn() for all class merging 5. Preserve ARIA attributes and keyboard handlers 6. Test in light and dark modes

Troubleshooting

  • Import errors: Check components.json aliases and tsconfig.json paths
  • Style conflicts: Ensure Tailwind config includes component paths
  • Missing deps: Run CLI installation to auto-install dependencies

---

Anti-Patterns

  • Starting from a generic template without adapting it: The output may look polished but still miss the real audience or medium.
  • Ignoring final render or export review: Layout bugs often appear only after the asset is opened in its destination tool.
  • Fixing content and presentation in one pass: It becomes hard to tell whether a problem is structural or visual.

Verification Protocol

Before claiming "skill applied successfully":

1. Pass/fail: The Stitch Design guidance is tied to a concrete route, component, screen, or design artifact. 2. Pass/fail: Component states cover loading, empty, error, success, and responsive breakpoints where applicable. 3. Pass/fail: Accessibility, visual hierarchy, and interaction behavior are reviewed against the shared component rubric. 4. Pressure-test scenario: Review the component on a narrow mobile viewport, keyboard-only path, and slow-loading state. 5. Success metric: Zero generic UI approval; every approval cites rendered behavior or source evidence.

References & Resources

Documentation

  • Stitch MCP Commands — All 5 Stitch MCP commands with parameters and workflow patterns
  • shadcn/ui Components — 40+ components with CSS variable theming and composite patterns

Scripts

  • Stitch to React — PowerShell script to set up Vite+React+TypeScript+Tailwind+shadcn projects

Examples

  • Design System Example — Complete DESIGN.md example generated from Stitch screen data

---

<!-- PORTABILITY:START -->

Cross-Client Portability

This skill is written to stay usable across GitHub Copilot, Claude Code, Codex, and Gemini CLI.

  • GitHub Copilot: keep the folder in a Copilot-visible skill or plugin path, or wrap the workflow as project instructions if the host does not support portable skill folders directly.
  • Claude Code: keep the folder in a local skills directory or a compatible plugin or marketplace source.
  • Codex: install or sync the folder into $CODEX_HOME/skills/<skill-name> and restart Codex after major changes.
  • Gemini CLI: this repository generates a project command named /skills:stitch-design from this skill. Rebuild commands with python scripts/export-gemini-skill.py stitch-design and then run /commands reload inside Gemini CLI.

<!-- PORTABILITY:END -->

<!-- MCP:START -->

MCP Availability And Fallback

Preferred MCP Server: Stitch MCP

  • Fallback prompt: "Use the Stitch Design skill without MCP. Rely on the local SKILL.md, bundled references or scripts, and manual verification. Show the exact commands, evidence, and final checks you used before concluding."
  • Use screenshots, HTML prototypes, Figma exports, and local design notes when Stitch MCP is not exposed by the host.
  • Treat generated React or design assets as drafts that still need local browser verification.

<!-- MCP:END -->

Related Skills

  • frontend-design: Use it when the workflow also needs UI composition and front-end design direction.
  • premium-frontend-ui: Use it when the workflow also needs high-fidelity UI polish and interaction detail.
  • web-design-reviewer: Use it when the workflow also needs browser-based UI review and responsive QA.
  • canvas-design: Use it when the workflow also needs visual composition and presentation-ready diagram work.

Related skills

FAQ

What does stitch-design do?

stitch-design is a Claude Code skill for design & ui/ux.

When should I use stitch-design?

When you need to helps with design & ui/ux tasks., or when stitch-design is a claude code skill for design & ui/ux.

What are the main capabilities?

stitch-design; Design & UI/UX; AI-coding skill.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.