Token导航 LogoToken导航

Agent Skill · 研究检索

stitch-design(针迹设计)

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

stitch-design 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 60,816。

总安装 364周安装 15GitHub Stars 3下载 119核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助界面设计和视觉规范,优化排版、配色与布局体验。适合生成 UI 方案或检查组件层级一致性。stitch-design 属于研究检索类 Skill,可作为该场景下的辅助能力补充。通过 npx skills add 命令从 GitHub 安装并使用。需结合品牌指南和设计系统使用,避免堆砌装饰元素。

涉及真实页面改动时应通过截图或浏览器预览验证效果。

来源仓库内路径:skills/stitch-design

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/practicalswan/agent-skills --skill stitch-desi…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

stitch-design 怎么安装?

在终端执行 npx skills add https://github.com/practicalswan/agent-skills --skill stitch-design。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

stitch-design 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

stitch-design 需要什么权限?

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

stitch-design 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

stitch-design 用的人多吗?

公开数据是累计安装 364 次,近一周安装 15 次,下载 119 次,GitHub 3 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

stitch-design 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
stitch-design

针迹设计 · 本页

3643调用外部服务未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

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 Baton — next-prompt.md contains current task
  2. Consult Context Files — DESIGN.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

平台分布

Codex

33.82%
按下载量换算40

Claude

28.48%
按下载量换算34

Cursor

21.25%
按下载量换算25

Gemini CLI

8.95%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

调用外部服务

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills