Token导航 LogoToken导航TokenDH.com
前端设计external-servicegithub未标认证来源可访问许可证需确认审计通过

stitch-ui-designer缝合 ui 设计师

Agent Skill

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

总安装

485

周安装

20

GitHub Stars

4

下载量

158
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/partme-ai/stitch-skills --skill stitch-ui-designer

简介

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合根据产品场景整理页面结构、生成 UI 方案或检查视觉一致性。

  • 适用于需要优化界面布局、提升用户体验或整合品牌视觉规范的场景。
  • 可协助生成 UI 方案、调整组件层级或检查文本溢出,需结合现有设计系统和用户任务。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需确认项目是否有明确的品牌和设计系统。
  • 注意不应只堆装饰元素,涉及真实页面改动时应通过截图或浏览器预览检查表现。

SKILL.md

Stitch Designer (Master Skill)

This is the entry point for all UI design tasks. It acts as the "Orchestrator Agent" that autonomously plans and executes the design workflow.

When to use this skill

CRITICAL PREREQUISITE: You must ONLY use this skill when the user EXPLICITLY mentions "Stitch" in their request.

Use this skill when:

  • The user asks to "Design a UI", "Create a screen", "Make an app page" using Stitch.
  • The user provides a high-level design request (e.g., "I need a dashboard for my SaaS") and mentions Stitch.

Trigger phrases include:

  • "Use Stitch to design..."
  • "Stitch me a UI for..."

Workflow (Flow-first, copy-pastable)

This skill must follow this workflow end-to-end. Do not skip steps.

0) Preflight (Tool Availability)

  1. Detect whether Stitch MCP tools are available.
  2. If tools are available, follow the Execution workflow.
  3. If tools are not available, follow the Prompt-only workflow.

1) Intent Classification

Determine the task type:

  • New screen: design + generate a new UI screen.
  • Refine / Beautify: modify an existing screen while preserving layout and information architecture.

2) Design Spec Workflow (Brain)

Invoke stitch-ui-design-spec-generator with the user request.

Expected result:

  • A structured Design Spec JSON (Theme, Device, Style, Mode).

3) Contract Workflow (Hard Constraints)

If the request includes a named design system / style, fetch constraints from the matching design contract tool and inject them into the final prompt.

Supported mapping (Match Priority: Specific > General):

  • uview-pro, uviewpro, uview pro -> use stitch-ui-design-spec-uviewpro (Match this FIRST)
  • uview, uview2, uview2.0, u-view -> use stitch-ui-design-spec-uview
  • layui, layui-vue, layui vue -> use stitch-ui-design-spec-layui
  • bootstrap, bootstrap-vue, bs-vue -> use stitch-ui-design-spec-bootstrap
  • element, element-plus, el-plus, element-ui -> use stitch-ui-design-spec-element-plus
  • vant, vant4, vant-ui -> use stitch-ui-design-spec-vant

Decision rules:

  • If the user asks for refine/beautify, or explicitly asks for selector / JSON / contracts.include / states.include:

- Use stitch-ui-design-spec-uview or stitch-ui-design-spec-layui in selector mode. - Treat the returned selection JSON as internal and use the assembled prompt as the execution prompt.

  • Otherwise:

- Use stitch-ui-design-spec-uview or stitch-ui-design-spec-layui in prefix mode. - Prepend the returned prefix to [Context].

4) Prompt Assembly Workflow (Pen)

Invoke stitch-ui-prompt-architect with the user request and (if any) Design Spec + contract prefix. The output must conform to Prompt Quality Standard: Optimized Prompt Structure (see below) so that Stitch receives a precise "construction blueprint" rather than a vague idea.

Minimum structure (always present):

[Context]
...

[Layout]
...

[Components]
...

When the request describes an app or multi-section screen, the assembled prompt MUST additionally follow the Optimized Prompt Structure (inspired by enhance-prompt best practice: Project Overview + Design System (required) + Page Structure and Function). See section Prompt Quality Standard below.

5) Execution Workflow (Hand) — Tools Available

ALWAYS execute immediately (no confirmation loop):

  1. Create project: create_project
  2. Generate screen: generate_screen_from_text
  3. List screens: list_screens
  4. Get the target screen: get_screen (export screenshot + HTML assets)

6) Prompt-only Workflow — Tools Not Available

STOP execution. Do not fake results. Output only a copy-paste prompt for the user to run in Stitch.

Output Patterns (Strict Templates)

Use these templates to keep outputs consistent.

Template A — Tools Available (Execution Report)

ALWAYS use this exact template:

# Stitch Design Delivery

## Execution Result
- Project: projects/{id}
- Screen: {screenId}

## Asset Export
- Screenshot: {from get_screen output}
- HTML: {from get_screen output}

## Notes
- Prompt: Executed with `[Context] [Layout] [Components]` structure (including required constraints and layout invariants).

Template B — Tools Not Available (Prompt Only)

ALWAYS use this exact template. When the request is app/product-level or multi-section, the content inside each section must follow the Optimized Prompt Structure (Project overview in Context; Design system (required) in Context or a dedicated block; Page structure and function with core function + areas in Layout/Components).

[Context]
...

[Layout]
...

[Components]
...

Prompt Quality Standard: Optimized Prompt Structure

To make Stitch accurately implement the design, the final prompt (from step 4) must be a detailed construction blueprint, not a short wishlist. Use the following structure whenever the user describes an app, a product, or a screen with multiple sections.

Source of truth: This structure is derived from the optimized-prompt pattern: a clear project overview, a design system (required) with explicit tokens, and page structure and function with one core function per page/section plus area-level details (top nav, main visual, function area, actions, bottom). Reference: blog "Trae+Stitch MCP+Skills: My New AI Programming Paradigm" — after optimization it becomes a detailed construction blueprint including color scheme, font sizes, button styles, page layout, and UX.

1) Project Overview — Required for app/product-level requests

  • One short paragraph: what the product/screen is, who it is for, style (e.g. modern minimal, professional and trustworthy, bright and fresh), and key attributes (ease of use, information readability, full localized UI, etc.).
  • Example: "An AI ingredient-list analysis tool for end users, turning chemical terms into plain language via image recognition and composition parsing. Modern minimal design, emphasis on ease of use and readability, full localized interface."

2) Design System — Required

The prompt MUST include an explicit design system block so Stitch does not guess colors, type, or components. Include:

BlockContentExample
PlatformWeb / Mobile / Desktop, target device or width"Mobile miniapp, prioritize iOS and Android" / "Admin Web, min width 1280px"
ThemeMood + domain affinity"Bright and fresh, professional and trustworthy, with domain-friendly tone"
Color schemePrimary + Secondary + Warning + Neutrals (Background, Text, Secondary text, Divider), each with #hex and usagePrimary #165DFF for buttons/nav; Secondary #36D399 for positive cues; Background #FFFFFF; Text #1D2129; Secondary text #86909C; Divider #F2F3F5
TypographyTitle / Body / Auxiliary: size (px) + font + weightTitle 20px Bold; Body 16px Regular; Auxiliary 14px Light
Component styleButtons / Cards / Icons: radius, shadow, interactionButtons 8px radius, soft shadow; Cards 12px radius, light shadow; Icons linear, minimal

If a named design system (uView Pro, Bootstrap, Element Plus, etc.) is used, the contract prefix from step 3 already supplies tokens; the assembled prompt must still state Platform, Theme, and Layout invariants in human-readable form so Stitch understands intent.

3) Page Structure and Function

For each page or major section:

  • Core function: One line — "This page/section is for... so that..."
  • Areas (choose as needed): Top nav / Hero / main visual / Function area / Action area / Footer / Sidebar.
  • Under each area: concrete elements (e.g. "Brand logo + Help entry", "Primary CTA 'Scan label' large filled", "Secondary 'Choose from gallery' outline"). Use specific copy and roles (primary button, secondary button, card, list item) instead of "a button" or "some text".

Example (single section):

### 1. Home (Scan / Upload)
**Core function**: App entry, guide user to start
- **Top nav**: Brand logo + Help entry
- **Hero**: Headline "Ingredient Translator" + subhead "Understand food labels at a glance"
- **Function area**: Primary button "Scan label" (large, primary fill); Secondary "Choose from gallery" (outline, primary border); short usage copy
- **Footer**: Privacy and terms links

4) Prompt Structure Checklist (before calling generate_screen_from_text)

Verify (and if missing, request the prompt-architect to add):

  • Project overview present for app/product-level requests? (one paragraph: what, who, style, key attributes)
  • Design system (required) present? Platform, Theme, Color scheme with #hex, Typography (px + font + weight), Component style (buttons, cards, icons)
  • Per-page/section: Core function one line + areas (top nav / hero / function / action / footer) with concrete elements and specific copy?
  • Layout and Components sections still populated? (macro layout + component list)
  • No vague placeholders? ("a button" → "primary CTA button 'Sign In'"; "some list" → "vertical list of Workout Cards with thumbnail, duration, Start button")

If any of the above is missing, re-invoke stitch-ui-prompt-architect with explicit instructions to fill the Optimized Prompt Structure (project overview, design system with hex/px, page structure with core function and area-level details), then re-run the checklist before execution.


Anti-Patterns (Strict Prohibitions)

  • NO FAKE SUCCESS: If you didn't get a real API response, do not say "Project Created".
  • NO APP SCAFFOLDING: Do not invoke any external project scaffolding skills (e.g., uniappx-project-creator, flutter-project-creater, react-native-project-creater) and do not run scripts to create codebases.
  • NO CODING: Do not write Vue/React/HTML code in this flow. This skill is for Design Generation only.
  • NO CONFUSION: A "Stitch Project" is a design workspace, NOT a code repository.

Keywords

orchestrator, design agent, ui designer, master skill, design flow, stitch pilot

References

  • Workflow End-to-End
  • Workflows Reference
  • Optimized Prompt Output Examples (ZH + EN) — full Chinese and English examples of the optimized prompt (project overview + design system + page structure and function) from the blog "Trae+Stitch MCP+Skills: My New AI Programming Paradigm".
  • Optimized prompt structure: Project Overview + Design System (required) + Page Structure and Function. See blog "Trae+Stitch MCP+Skills: My New AI Programming Paradigm" (optimized prompt section). Goal: turn a vague idea into a detailed construction blueprint (colors, font sizes, button styles, layout, UX) to improve Stitch output precision.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.61%
按下载量换算56

Claude

32.36%
按下载量换算51

Cursor

20.46%
按下载量换算32

Gemini CLI

9.34%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

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

安装前确认

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

来源信息

继续浏览同类 Skills