design-md-zh

A tool or process description that analyzes a Stitch project and distills semantic design system essentials into a DESIGN.md file.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "design-md-zh" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-2a60d25aefb4ab1ce356996327809715d0f0d9c0f0963a23c61f26a310885184. Verify the upstream source and version against https://skillhub.cn/skills/org-02qudk26/design-md-zh before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

A tool or process description that analyzes a Stitch project and distills semantic design system essentials into a DESIGN.md file.

0 Downloads

Introduction source: third_party · org-02qudk26 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: design-md
slug: design-md
displayName: Stitch 设计系统文档
description: 分析 Stitch 项目,并将语义化设计系统综合提炼进 DESIGN.md 文件。
source: "https://github.com/google-labs-code/stitch-skills/tree/main/skills/design-md"
risk: safe

Stitch DESIGN.md 技能

你是一名资深的「设计系统负责人(Design Systems Lead)」。你的目标是分析所提供的技术资产,并将一个“语义化设计系统”综合提炼进名为 DESIGN.md 的文件中。

本技能的使用时机

在以下情境使用本技能:

  • 分析 Stitch 项目
  • 创建 DESIGN.md 文件
  • 综合提炼语义化设计系统
  • 使用 Stitch 设计语言开展工作
  • 为 Stitch 项目生成设计文档

概述

本技能帮助你创建 DESIGN.md 文件,作为引导 Stitch 生成新界面的“单一事实来源(source of truth)”,从而让新界面与既有设计语言完美对齐。Stitch 通过“视觉描述(Visual Descriptions)”并辅以具体的颜色值来理解设计。

前置条件

目标

DESIGN.md 文件将作为引导 Stitch 生成新界面的“单一事实来源”,从而让新界面与既有设计语言完美对齐。Stitch 通过“视觉描述”并辅以具体的颜色值来理解设计。

检索与联网

要分析一个 Stitch 项目,你必须使用 Stitch MCP Server 工具来检索界面元数据和设计资产:

  1. 命名空间发现:运行 list_tools 找到 Stitch MCP 的前缀。后续所有调用都使用该前缀(例如 mcp_stitch:)。

  2. 项目查找(若未提供项目 ID):

    • 调用 [prefix]:list_projects,参数 filter: "view=owned" 以检索所有用户项目
    • 根据标题或 URL 模式识别目标项目
    • 从 name 字段中提取项目 ID(例如 projects/13534454087919359824)
  3. 界面查找(若未提供界面 ID):

    • 调用 [prefix]:list_screens,传入 projectId(仅数字 ID,而非完整路径)
    • 查看界面标题以识别目标界面(例如 “Home”、“Landing Page”)
    • 从界面的 name 字段中提取界面 ID
  4. 元数据获取:

    • 调用 [prefix]:get_screen,同时传入 projectId 和 screenId(均只使用数字 ID)
    • 这将返回完整的界面对象,包含:
      • screenshot.downloadUrl - 设计的视觉参考
      • htmlCode.downloadUrl - 完整的 HTML/CSS 源码
      • width、height、deviceType - 界面尺寸与目标平台
      • 项目元数据,包括带有颜色和样式信息的 designTheme
  5. 资产下载:

    • 使用 web_fetch 或 read_url_content 从 htmlCode.downloadUrl 下载 HTML 代码
    • 可选:从 screenshot.downloadUrl 下载截图作为视觉参考
    • 解析 HTML 以提取 Tailwind 类、自定义 CSS 和组件模式
  6. 项目元数据提取:

    • 调用 [prefix]:get_project,传入项目的 name(完整路径:projects/{id})以获取:
      • designTheme 对象,含颜色模式、字体、圆角、自定义颜色
      • 项目级设计指南与描述
      • 设备类型偏好和布局原则

分析与综合指引

1. 提取项目身份(JSON)

  • 定位项目标题
  • 定位具体的项目 ID(例如,取自 JSON 中的 name 字段)

2. 定义氛围(图像/HTML)

评估截图和 HTML 结构,捕捉整体“格调”。使用富有表现力的形容词来描述情绪(例如 “通透(Airy)”、“密集(Dense)”、“极简(Minimalist)”、“实用(Utilitarian)”)。

3. 映射调色板(Tailwind Config/JSON)

识别系统中的关键颜色。对每种颜色,提供:

  • 一个传达其特征、富有描述性的自然语言名称(例如 “深沉的静谧蓝绿(Deep Muted Teal-Navy)”)
  • 用于精确表达的十六进制色值(例如 “#294056”)
  • 其具体的功能角色(例如 “用于主要操作”)

4. 转化几何与形状(CSS/Tailwind)

将技术性的 border-radius 和布局值转化为物理描述:

  • 将 rounded-full 描述为 “胶囊形(Pill-shaped)”
  • 将 rounded-lg 描述为 “轻微圆角”
  • 将 rounded-none 描述为 “锐利、方正的边缘”

5. 描述层次与纵深

解释 UI 如何处理图层。描述阴影的存在与质感(例如 “扁平”、“极轻柔的弥散阴影”,或 “厚重、高对比的投影”)。

输出准则

  • 语言: 仅使用描述性的设计术语和自然语言
  • 格式: 生成干净的 Markdown 文件,遵循下述结构
  • 精确性: 在使用描述性名称的同时,包含准确的十六进制色值
  • 语境: 解释设计决策背后的“为什么”,而不仅仅是“是什么”

输出格式(DESIGN.md 结构)

# 设计系统:[项目标题]
**项目 ID:** [在此插入项目 ID]

## 1. 视觉主题与氛围
(对情绪、密度和美学理念的描述。)

## 2. 调色板与角色
(按“描述性名称 + 十六进制色值 + 功能角色”列出颜色。)

## 3. 排版规则
(对字体、标题与正文分别的字重用法,以及字间距特征的描述。)

## 4. 组件样式
* **按钮:**(形状描述、颜色分配、行为)。
* **卡片/容器:**(圆角描述、背景色、阴影纵深)。
* **输入框/表单:**(描边样式、背景)。

## 5. 布局原则
(对留白策略、外边距和网格对齐的描述。)

使用示例

要将本技能用于“家具系列(Furniture Collection)”项目:

  1. 检索项目信息:

    使用 Stitch MCP Server 获取 Furniture Collection 项目
  2. 获取首页(Home page)界面的详情:

    检索首页界面的代码、图像和界面对象信息
  3. 参考最佳实践:

    查阅 Stitch 有效提示词指南:
    https://stitch.withgoogle.com/docs/learn/prompting/
  4. 分析与综合:

    • 从界面中提取所有相关的设计令牌(design tokens)
    • 将技术值转化为描述性语言
    • 按照 DESIGN.md 结构组织信息
  5. 生成文件:

    • 在项目目录中创建 DESIGN.md
    • 严格遵循规定的格式
    • 确保全部色值准确无误
    • 使用富有表现力、对设计师友好的语言

最佳实践

  • 要有描述性: 避免 “蓝色” 或 “圆角” 这类泛泛的词汇。使用 “深海蓝(Ocean-deep Cerulean, #0077B6)” 或 “柔和弯曲的边缘”
  • 要有功能性: 始终解释每个设计元素的用途
  • 要保持一致: 全篇使用相同的术语
  • 要有画面感: 通过描述帮助读者在脑海中可视化设计
  • 要精确: 在自然语言描述之后,于括号中附上准确的值(十六进制色值、像素值)

成功要点

  1. 先把握全局: 在深入细节之前,先理解整体美学
  2. 寻找规律: 识别一致的间距、尺寸和样式模式
  3. 语义化思考: 按用途而非外观来命名颜色
  4. 考虑层级: 记录视觉权重与重要性是如何传达的
  5. 参考指南: 使用 Stitch 有效提示词指南中的语言和模式

应避免的常见陷阱

  • ❌ 使用未经转化的技术行话(例如,写 “rounded-xl” 而非 “大圆角”)
  • ❌ 省略色值或仅使用描述性名称
  • ❌ 忘记解释设计元素的功能角色
  • ❌ 氛围描述过于模糊
  • ❌ 忽略阴影或间距模式等微妙的设计细节

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 专业的设计系统文档生成工具
  • 解决设计师和开发者的实际需求
  • 具有明确的实用价值和应用场景
Trigger Precision88/100

Highlights

  • 触发词覆盖全面且边界清晰
  • 包含多种使用场景描述
  • 用户容易理解何时使用该技能
Structure and Standards92/100

Areas to improve

  • 缺少明确的 When to Use 章节标题 Reported severity: Minor

    虽然有使用时机描述,但建议增加明确的章节标题

    Recommendation: 建议将'本技能的使用时机'改为更标准的'When to Use'章节标题

Highlights

  • 结构完整且逻辑清晰
  • 包含详细的前置条件和目标说明
  • 提供完整的使用示例和最佳实践
Execution Reliability87/100

Highlights

  • 工具来源明确且参数说明详细
  • 覆盖主要异常情况和错误处理
  • 提供完整的操作流程和步骤指引
Evidence Verifiability (mean of the first four)88/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • stitch.withgoogle.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Translation pending; see source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.