Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计提醒

stitch-design针迹设计

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

364

周安装

15

GitHub Stars

3

下载量

119
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:stitch-design(针迹设计)
来源仓库:https://github.com/practicalswan/agent-skills
仓库路径:skills/stitch-design
安装命令:
npx skills add https://github.com/practicalswan/agent-skills --skill stitch-design
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/practicalswan/agent-skills --skill stitch-design

简介

用于辅助界面设计和视觉规范,优化排版、配色与布局体验。

  • 适合生成 UI 方案或检查组件层级一致性。stitch-design 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 通过 npx skills add 命令从 GitHub 安装并使用。
  • 需结合品牌指南和设计系统使用,避免堆砌装饰元素。
  • 涉及真实页面改动时应通过截图或浏览器预览验证效果。

SKILL.md

Skill Paths

  • Workspace skills: .github/skills/
  • Global skills: C:/Users/LOQ/.codex/skills/ for Codex or C:/Users/LOQ/.agents/skills/ for the shared mirror

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.

When to Use This Skill

  • 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

## Skill Paths

- Workspace skills: `.github/skills/`
- Global skills: `C:/Users/LOQ/.codex/skills/` for Codex or `C:/Users/LOQ/.agents/skills/` for the shared mirror

**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

Architecture Checklist

  • Logic extracted to custom hooks
  • No monolithic files; Atomic/Composite modularity
  • Static text/URLs in mockData.ts
  • Props use Readonly<T> interfaces
  • Valid TypeScript (no errors)
  • Dark mode (dark:) applied to all color classes
  • No hardcoded hex values; use theme-mapped Tailwind classes

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

## Skill Paths

- Workspace skills: `.github/skills/`
- Global skills: `C:/Users/LOQ/.codex/skills/` for Codex or `C:/Users/LOQ/.agents/skills/` for the shared mirror

npx shadcn@latest create

## Skill Paths

- Workspace skills: `.github/skills/`
- Global skills: `C:/Users/LOQ/.codex/skills/` for Codex or `C:/Users/LOQ/.agents/skills/` for the shared mirror

npx shadcn@latest init

## Skill Paths

- Workspace skills: `.github/skills/`
- Global skills: `C:/Users/LOQ/.codex/skills/` for Codex or `C:/Users/LOQ/.agents/skills/` for the shared mirror

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

References & Resources

Documentation

Scripts

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

Examples


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.

MCP Availability And Fallback

Preferred MCP servers for this skill:

  • Stitch MCP (primary)

If MCP is unavailable in the current host:

  • 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.

Related Skills

SkillRelationship
react-developmentImplement Stitch screens as React code
frontend-designDesign system and UI principles
canvas-designDesign philosophy and visual aesthetics

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.82%
按下载量换算40

Claude

28.48%
按下载量换算34

Cursor

21.25%
按下载量换算25

Gemini CLI

8.95%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills