stitch::extract-design-md
Skill này làm gì
Skill này nghiên cứu các file nguồn frontend để mô tả hệ thống thiết kế trực quan của dự án trong một file DESIGN.md. Nó dành cho người muốn ghi lại hoặc thống nhất kiểu dáng của một site.
Khi nào nên dùng
- ✓Khi bạn muốn ghi lại hệ thống thiết kế của một dự án frontend có sẵn.
- ✓Khi bạn muốn kiểm toán hoặc thống nhất kiểu dáng trong một codebase.
- ✓Khi app không build được nhưng mã nguồn của nó vẫn có sẵn.
Liên kết skill
https://github.com/google-labs-code/stitch-skills/blob/main/plugins/stitch-design/skills/extract-design-md/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Đọc các style và file cấu hình Tailwind của dự án React của chúng tôi, rồi viết một DESIGN.md mô tả màu sắc và kiểu chữ của chúng tôi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill đọc các file stylesheet, file component và cài đặt theme, rồi viết một bản tóm tắt về màu sắc, kiểu chữ, khoảng cách và các mẫu thiết kế.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Extract Design System from Frontend Code
Analyze frontend source code to extract a comprehensive design system document (DESIGN.md) that captures the project's visual language — colors, typography, spacing, component patterns, and layout principles — directly from the source files, without needing to build or render the application.
Why This Exists
The design-md skill works from rendered HTML. But often you have a codebase
and want to understand its design system before you can even run the app —
maybe dependencies are missing, the build is broken, or you just want a quick
audit. This skill reads the source files themselves: stylesheets, component
files, theme configs, and Tailwind setups. It's faster and works anywhere.
When to Use
- User has a frontend codebase and wants to extract or document its design system
- User wants to migrate a project's visual identity into Stitch
- User asks to "audit the styling" or "understand the design language" of a repo
- User wants to create a DESIGN.md from existing source code
- The app can't be built/rendered but the source is available
- User wants to unify or reconcile inconsistent styles across a codebase
Prerequisites
- Access to the frontend project's source directory
- No build or runtime dependencies needed — this skill reads source files only
Workflow
Phase 1: Project Discovery
Start by understanding what you're working with. This determines which extraction patterns to use.
1. Detect the Framework and Stack
Scan the project root for telltale files:
| Signal File | Framework / Tool |
|---|---|
package.json with react |
React / Next.js |
package.json with vue |
Vue / Nuxt |
package.json with svelte |
Svelte / SvelteKit |
package.json with @angular/core |
Angular |
tailwind.config.js/ts |
Tailwind CSS |
postcss.config.js |
PostCSS pipeline |
styled-components or @emotion in deps |
CSS-in-JS |
.css / .scss / .less files only |
Plain CSS / SASS |
theme.js / theme.ts / tokens.js |
Design token files |
Read package.json first — it reveals the framework, CSS tooling, and any
design-token libraries (e.g., style-dictionary, @chakra-ui/react,
@mui/material, ant-design). This context tells you where to look for
styling information.
2. Map the Source Tree
Identify the key directories and files you'll analyze:
src/
├── components/ ← Component-level styles
├── styles/ ← Global stylesheets
├── theme/ ← Theme definitions, tokens
├── assets/ ← Fonts, images
├── app.css ← Root styles
└── index.css ← Entry CSS
Also check for:
tailwind.config.js/tailwind.config.ts— Custom colors, fonts, spacingglobals.css/global.css— CSS custom properties (variables)- Any
theme.*ortokens.*files - Component library config (e.g.,
chakra-theme.ts,vuetify.config.ts)
3. Read Framework-Specific Guidance
Consult the appropriate reference for extraction patterns:
- React / Next.js / Tailwind → references/react-tailwind.md
- Vue / Nuxt → references/vue.md
- Svelte / SvelteKit → references/svelte.md
- Angular → references/angular.md
- Plain CSS / SASS / Less → references/plain-css.md
These references contain framework-specific patterns for locating colors, typography, spacing, and component styles. Read the one that matches before proceeding.
Phase 2: Deep Extraction
Work through each design dimension systematically. For each one, gather raw data from the source files, then synthesize it into descriptive language.
The goal isn't to dump every CSS property — it's to understand the intent behind the styling choices and describe them in human, editorial language that another designer (or Stitch) can use to recreate the same visual feel.
1. Visual Theme & Atmosphere
Read the broadest styling first to understand the overall mood:
- Root background: What's the
bodyor root element background? Light cream (#f-range) signals airy/clean; dark (#0-#2 range) signals moody/dramatic. - Whitespace philosophy: Are spacing values generous (32px+) or tight? Check padding/margin values on root containers, section wrappers, and card components.
- Density: Count the components per page/section. Few with space = minimal; many packed tight =
Câu hỏi thường gặp
Tôi có cần chạy app không?
Không. Skill chỉ đọc các file nguồn, nên không cần build hay chạy app.
Nó hoạt động với những framework nào?
Skill hoạt động với React, Vue, Svelte, Angular và HTML và CSS thuần.
Kết quả có dùng được trong Stitch không?
Có. Tài liệu được tạo ra tương thích với Stitch.
Chi tiết
Mô tả gốc của tác giả
Extract a comprehensive design system (DESIGN.md) directly from frontend source code — React, Vue, Svelte, Angular, plain HTML/CSS, or any web framework. Analyzes component files, stylesheets, Tailwind configs, theme definitions, and design tokens to produce a rich, Stitch-compatible design system document. Use this skill whenever the user wants to reverse-engineer a design system from an existing codebase, audit the visual language of a project, extract design tokens from source files, or understand the styling patterns in a frontend repo — even if they just say "what does this app look like?
Độ phổ biến
- Sao GitHub
- 8.7k
- Vị trí xếp hạng
- #12342
- Giấy phép
- Apache-2.0
- Cập nhật
- 17/8/2026
Bình luận
- …
Thêm skill từ kho mã này
stitch::react-components
8.7kGiúp agent của bạn biến thiết kế Stitch thành component React và Vite, hoặc cập nhật component có sẵn theo thiết kế mới, kèm kiểm tra chất lượng.
stitch::react-native
8.7kGiúp agent của bạn chuyển thiết kế web Stitch thành component React Native cho app điện thoại, hoặc cập nhật các màn hình di động hiện có để khớp với thiết kế mới hơn.
react-vite-dashboard
8.7kGiúp agent của bạn xây dashboard React và Vite nhiều dữ liệu từ thiết kế Stitch, với TanStack Query và các design token từ file DESIGN.md.
shadcn-ui
8.7kGiúp agent của bạn tìm, cài và tùy biến component shadcn/ui, các phần giao diện sao chép vào dự án, xây bằng Radix hoặc Base UI và Tailwind CSS.
Skill tương tự
canvas
394kCho phép agent của bạn hiện một widget trực quan được lưu trữ trên bảng Mac đã kết nối, rồi ẩn bảng hoặc chuyển nó sang trang khác.
control-ui
394kGiúp agent của bạn sắp xếp và khắc phục sự cố Control UI của OpenClaw, gồm các phiên, bảng điều khiển và Gateway đã kết nối.
diagram-maker
394kGiúp agent của bạn vẽ sơ đồ rõ ràng dạng SVG, HTML hoặc Excalidraw có thể sửa, cho quy trình, kiến trúc hệ thống và bản phác bảng trắng.