Token导航 LogoToken导航

Agent Skill · 研究检索

stitch-design-system(针迹设计系统)

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

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

总安装 474周安装 19GitHub Stars 22下载 154核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/gabelul/stitch-kit --skill stitch-design-system

这个 Skill 是做什么的

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

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

stitch-design-system 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

stitch-design-system 怎么安装?

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

stitch-design-system 支持哪些 AI 工具?

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

stitch-design-system 需要什么权限?

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

stitch-design-system 是免费的吗?

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

stitch-design-system 用的人多吗?

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

stitch-design-system 安全吗?

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

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

值得选的地方

  • 同时适配 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-system

针迹设计系统 · 本页

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

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

SKILL.md 原文

Stitch → Design System Code Artifacts

You are a design systems engineer. You analyze Stitch designs and generate code artifacts — not just documentation. While the design-md skill produces a human-readable markdown file, this skill produces files you actually import into your codebase: CSS custom properties with dark mode, Tailwind v4 configuration, and typography tokens.

Use this skill first, before stitch-nextjs-components or stitch-svelte-components. The generated tokens become the foundation for all subsequent component generation.

When to use this skill

Use this skill when:

  • Starting a new project from a Stitch design
  • The user mentions "design tokens", "CSS variables", "dark mode tokens", "Tailwind config"
  • Running before framework conversion skills to ensure design consistency
  • Updating an existing project's design system after a Stitch design update

What this skill generates

Three output files:

FilePurpose
design-tokens.cssCSS custom properties — import this in your framework's global CSS
tailwind-theme.cssTailwind v4 @theme block — paste into your globals.css
DESIGN.mdExtended design document (richer than design-md, includes dark mode + animation tokens)

Step 1: Retrieve the Stitch design

  1. Namespace discovery — Run list_tools to find the Stitch MCP prefix.
  2. Fetch screen — Call [prefix]:get_screen with projectId and screenId.
  3. Download HTML — Run: bash scripts/fetch-stitch.sh "[htmlCode.downloadUrl]" "temp/source.html"
  4. Visual reference — Check screenshot.downloadUrl to see the full design intent.

If multiple screens exist, retrieve all of them. Run [prefix]:list_screens and fetch each one to ensure the token set covers every pattern in the design.

Step 1.5: Read project DesignTheme (ground truth)

Before parsing HTML, get the authoritative design data from the Stitch API. This eliminates guesswork — the API knows the exact primary color, fonts, and full semantic color map.

  1. Call get_project with projects/[projectId]
  2. Check for designMd — if present, it's a full markdown design system document that Stitch auto-generated. Parse it for typography rules, color philosophy, component patterns, spacing guidelines, and do's/don'ts. This is the most valuable single field.
  3. Extract namedColors — a 40+ token semantic color map. This gives you the ENTIRE color system pre-computed:

- Primary: primary, on_primary, primary_container, on_primary_container, primary_fixed, primary_fixed_dim - Secondary: secondary, on_secondary, secondary_container, on_secondary_container - Tertiary: same pattern - Surfaces: surface, surface_dim, surface_bright, surface_container_lowest, surface_container_low, surface_container, surface_container_high, surface_container_highest, surface_tint, surface_variant - Utility: background, on_background, on_surface, on_surface_variant, outline, outline_variant - States: error, on_error, error_container, on_error_container - Inverse: inverse_surface, inverse_on_surface, inverse_primary

  1. Extract structural values:
DesignTheme field→ CSS tokenMapping
customColor--color-primaryHex seed — but prefer namedColors.primary if available
overridePrimaryColor--color-primaryTakes precedence over customColor
overrideSecondaryColor--color-secondaryExact hex override
overrideTertiaryColor--color-tertiaryExact hex override
overrideNeutralColor--color-neutralBase for surface hierarchy
backgroundLight--color-background (light)Light mode page background
backgroundDark--color-background (dark)Dark mode page background
headlineFont--font-sans / headingMap enum → font-family stack (see table below)
bodyFont--font-bodyMap enum → font-family stack
labelFont--font-labelMap enum → font-family stack
roundness--radius-md baselineROUND_FOUR=4px, ROUND_EIGHT=8px, ROUND_TWELVE=12px, ROUND_FULL=9999px
spacingScalespacing multiplier0=tight (base 2px), 1=compact (base 4px), 2=normal (base 4px), 3=spacious (base 8px)
colorVariantinforms palette approache.g., FIDELITY means stick to brand colors, VIBRANT means boost saturation

Font enum → CSS font-family mapping:

Stitch enumCSS font-family
INTER'Inter', system-ui, sans-serif
DM_SANS'DM Sans', system-ui, sans-serif
GEIST'Geist', system-ui, sans-serif
SPACE_GROTESK'Space Grotesk', system-ui, sans-serif
MANROPE'Manrope', system-ui, sans-serif
PLUS_JAKARTA_SANS'Plus Jakarta Sans', system-ui, sans-serif
WORK_SANS'Work Sans', system-ui, sans-serif
IBM_PLEX_SANS'IBM Plex Sans', system-ui, sans-serif
RUBIK'Rubik', system-ui, sans-serif
SORA'Sora', system-ui, sans-serif
EPILOGUE'Epilogue', system-ui, sans-serif
NUNITO_SANS'Nunito Sans', system-ui, sans-serif
LEXEND'Lexend', system-ui, sans-serif
PUBLIC_SANS'Public Sans', system-ui, sans-serif
SOURCE_SANS_THREE'Source Sans 3', system-ui, sans-serif
MONTSERRAT'Montserrat', system-ui, sans-serif
HANKEN_GROTESK'Hanken Grotesk', system-ui, sans-serif
ARIMO'Arimo', system-ui, sans-serif
BE_VIETNAM_PRO'Be Vietnam Pro', system-ui, sans-serif
SPLINE_SANS'Spline Sans', system-ui, sans-serif
METROPOLIS'Metropolis', system-ui, sans-serif
EB_GARAMOND'EB Garamond', Georgia, serif
LITERATA'Literata', Georgia, serif
SOURCE_SERIF_FOUR'Source Serif 4', Georgia, serif
LIBRE_CASLON_TEXT'Libre Caslon Text', Georgia, serif
NEWSREADER'Newsreader', Georgia, serif
DOMINE'Domine', Georgia, serif
NOTO_SERIF'Noto Serif', Georgia, serif
  1. Use these as the baseline. Then use HTML analysis (Step 2) only for values the API doesn't provide: motion/transition durations, exact spacing pixel values, shadow definitions, additional colors beyond the namedColors set.

If namedColors is available, skip the color extraction in Step 2 entirely — the API's color map is authoritative and complete. Only supplement with motion, spacing pixel values, and shadows from HTML.

If designMd is available, use it as the foundation for the DESIGN.md output (Step 5). Don't rewrite it — augment it with CSS variable names, Tailwind mappings, and implementation notes.

Step 2: Extract supplementary values from HTML

If Step 1.5 provided namedColors and designMd, you only need HTML for:

Motion

  • Transition durations used (or infer: 150ms for micro, 300ms for panels)
  • Easing styles (linear, ease-out, spring-like)

Spacing pixel values

  • Exact gap/padding values used in the design
  • Shadow definitions

Additional colors (rare)

Only if the design uses colors not in namedColors — check for gradients, overlays, or custom accent colors.

If Step 1.5 did NOT provide namedColors (older projects without designMd), fall back to full HTML extraction:

Colors (fallback)

Identify every distinct color from the Tailwind config in <head> or infer from screenshot. For each, determine semantic role and usage frequency. Aim for 8-12 semantic tokens.

Typography (fallback)

  • Font families (heading, body, mono — if present)
  • Type scale sizes (the actual px or rem values used in the design)
  • Font weights used
  • Line heights

Spacing & geometry (fallback)

  • Base spacing unit (usually 4px or 8px)
  • Border radius values
  • Shadow definitions

Step 3: Generate design-tokens.css

Create design-tokens.css with full light + dark mode token sets.

Naming convention:

  • --color-* — Color tokens
  • --font-* — Typography
  • --spacing-* — Spacing scale
  • --radius-* — Border radius
  • --shadow-* — Elevation
  • --motion-* — Animation timing

Template (when namedColors is available from API — preferred):

/* =============================================================
   Design Tokens — extracted from Stitch project: [Project Name]
   Generated by stitch-design-system skill
   Source: DesignTheme API (namedColors) + HTML supplementary
   ============================================================= */

/* ---- Light mode (default) ---- */
:root {
  /* Colors: Direct mapping from Stitch namedColors API response */
  --color-primary:          [namedColors.primary];
  --color-on-primary:       [namedColors.on_primary];
  --color-primary-container: [namedColors.primary_container];
  --color-secondary:        [namedColors.secondary];
  --color-on-secondary:     [namedColors.on_secondary];
  --color-tertiary:         [namedColors.tertiary];
  --color-on-tertiary:      [namedColors.on_tertiary];
  --color-error:            [namedColors.error];
  --color-on-error:         [namedColors.on_error];
  --color-background:       [namedColors.background];
  --color-on-background:    [namedColors.on_background];
  --color-surface:          [namedColors.surface];
  --color-on-surface:       [namedColors.on_surface];
  --color-surface-variant:  [namedColors.surface_variant];
  --color-on-surface-variant: [namedColors.on_surface_variant];
  --color-surface-container: [namedColors.surface_container];
  --color-surface-container-low: [namedColors.surface_container_low];
  --color-surface-container-high: [namedColors.surface_container_high];
  --color-surface-container-highest: [namedColors.surface_container_highest];
  --color-outline:          [namedColors.outline];
  --color-outline-variant:  [namedColors.outline_variant];
  --color-inverse-surface:  [namedColors.inverse_surface];
  --color-inverse-on-surface: [namedColors.inverse_on_surface];
  --color-inverse-primary:  [namedColors.inverse_primary];
  --color-surface-tint:     [namedColors.surface_tint];

  /* Typography */
  --font-sans:    [font-family-stack];   /* Heading and UI font */
  --font-body:    [font-family-stack];   /* Body text font (may equal --font-sans) */
  --font-mono:    [monospace-stack];     /* Code, technical content */

  /* Type scale */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */

  /* Spacing scale (base 4px) */
  --space-1:  0.25rem;   /* 4px */
  --space-2:  0.5rem;    /* 8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */

  /* Geometry */
  --radius-sm: [value];  /* Small elements: badges, chips */
  --radius-md: [value];  /* Buttons, inputs */
  --radius-lg: [value];  /* Cards, panels */
  --radius-xl: [value];  /* Modals, drawers */
  --radius-full: 9999px; /* Pills, avatars */

  /* Shadows */
  --shadow-sm: [value];  /* Subtle card lift */
  --shadow-md: [value];  /* Dropdown, tooltip */
  --shadow-lg: [value];  /* Modal, sheet */

  /* Motion tokens */
  --motion-duration-fast:   150ms;   /* Hover states, micro interactions */
  --motion-duration-base:   250ms;   /* Typical UI transitions */
  --motion-duration-slow:   400ms;   /* Page-level, large panel */
  --motion-ease-default:    cubic-bezier(0.4, 0, 0.2, 1);  /* Material ease */
  --motion-ease-out:        cubic-bezier(0, 0, 0.2, 1);    /* Entries */
  --motion-ease-in:         cubic-bezier(0.4, 0, 1, 1);    /* Exits */
  --motion-ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy open */
}

/* ---- Dark mode ---- */
/* Applied via .dark class (Next.js + next-themes) or [data-theme="dark"] (Svelte) */
.dark,
[data-theme="dark"] {
  --color-background:       [dark-hex];
  --color-surface:          [dark-hex];
  --color-surface-elevated: [dark-hex];
  --color-primary:          [dark-hex];  /* Same hue, lighter for dark bg contrast */
  --color-primary-hover:    [dark-hex];
  --color-primary-fg:       [dark-hex];
  --color-secondary:        [dark-hex];
  --color-secondary-fg:     [dark-hex];
  --color-text:             [dark-hex];
  --color-text-muted:       [dark-hex];
  --color-text-disabled:    [dark-hex];
  --color-border:           [dark-hex];
  --color-border-focus:     [dark-hex];
  --color-error:            [dark-hex];
  --color-success:          [dark-hex];
  --color-warning:          [dark-hex];
  /* Typography, spacing, geometry, motion tokens: unchanged in dark mode */
}

Step 4: Generate tailwind-theme.css

For projects using Tailwind v4 (no tailwind.config.js), generate a @theme block.

Important: Tailwind v4 uses @theme in CSS, not a JS config file. Map tokens to Tailwind's namespace:

/* tailwind-theme.css — paste into your globals.css or import it */
@import "tailwindcss";

@theme {
  /* Wire Tailwind color utilities to your CSS variables */
  --color-background: var(--color-background);
  --color-surface: var(--color-surface);
  --color-primary: var(--color-primary);
  --color-primary-hover: var(--color-primary-hover);
  --color-text: var(--color-text);
  --color-text-muted: var(--color-text-muted);
  --color-border: var(--color-border);

  /* Fonts */
  --font-sans: var(--font-sans);
  --font-mono: var(--font-mono);

  /* Radius */
  --radius-sm: var(--radius-sm);
  --radius-md: var(--radius-md);
  --radius-lg: var(--radius-lg);

  /* Animation duration utilities */
  --animate-duration-fast: var(--motion-duration-fast);
  --animate-duration-base: var(--motion-duration-base);
  --animate-duration-slow: var(--motion-duration-slow);
}

For Tailwind v3 projects (with tailwind.config.js), instead generate a tailwind.config.js section using the extracted hex values directly.

Step 5: Generate DESIGN.md

Produce an extended design document. It has all sections from the standard design-md skill plus:

# Design System: [Project Name]

> Generated by stitch-design-system from Stitch project [ID]
> Screens analyzed: [list]

## 1. Visual Theme & Atmosphere
[Mood, density, aesthetic philosophy — 2-3 sentences]

## 2. Color Palette & Roles
| Token | Light | Dark | Role |
|-------|-------|------|------|
| --color-primary | #... | #... | Main CTA, key actions |
| --color-background | #... | #... | Page background |
| ... | | | |

## 3. Typography
- **Heading font**: [Family, weights used, where]
- **Body font**: [Family, weights used, where]
- **Type scale**: xs (12px) → sm (14px) → base (16px) → lg (18px) → ... → 4xl (36px)

## 4. Geometry & Elevation
- **Border radius**: sm [Xpx] | md [Xpx] | lg [Xpx] | xl [Xpx]
- **Shadows**: [describe the elevation system]

## 5. Motion System
- **Micro** (hovers, toggles): [duration]ms [easing]
- **Meso** (panels, drawers): [duration]ms [easing]
- **Macro** (page transitions): [duration]ms [easing]
- **Spring** (playful elements): cubicOut spring

## 6. Stitch Prompt Copy-Paste Block
Use this block in every Stitch prompt for design consistency:

[Primary color: NAME (#HEX)] — used for buttons and key actions [Background: #HEX] — clean and [mood adjective] [Typography: FONT NAME] — [weight] weight for headings, regular for body [Aesthetic: 2-3 adjectives describing the visual style] [Border radius: SIZE — rounded/sharp/pill-shaped elements]

## 7. Dark Mode Notes
[Specific notes on how the dark theme differs — any color roles that change significantly, any elements that need special treatment in dark mode]

Step 6: Output & integration

Write all three files to the project root (or wherever the user specifies):

  • design-tokens.css
  • tailwind-theme.css
  • DESIGN.md

Then tell the user how to use them:

For Next.js:

// app/globals.css
@import '../design-tokens.css';
@import '../tailwind-theme.css';

For SvelteKit:

<!-- src/app.css -->
@import '$lib/design-tokens.css';

For the Stitch loop:

Copy Section 6 from DESIGN.md into every Stitch prompt to maintain design consistency across generated screens.

Troubleshooting

IssueFix
Can't determine dark mode hex valuesUse the light-mode hue, desaturate slightly, and increase lightness by 30-40%
Font not loadingAdd Google Fonts @import to design-tokens.css
Tailwind v3 vs v4 confusionCheck package.json — v4 uses "tailwindcss": "^4" and no config file
Tokens not applyingEnsure design-tokens.css is imported BEFORE component CSS

Integration with other skills

  • Run this skill before stitch-nextjs-components or stitch-svelte-components
  • The framework skills will import design-tokens.css instead of hardcoding values
  • The DESIGN.md Section 6 feeds into stitch-loop for multi-page consistency

References

  • resources/tokens-template.css — Full template with all token categories

平台分布

Codex

31.37%
按下载量换算48

Claude

29.69%
按下载量换算46

Cursor

19.38%
按下载量换算30

Gemini CLI

9.57%
按下载量换算15

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

调用外部服务

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

安装前确认

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

继续浏览同类 Skills