stitch::extract-design-md
Fungsinya
Skill ini mempelajari file sumber frontend untuk menjelaskan sistem desain visual sebuah proyek dalam file DESIGN.md. Skill ini ditujukan untuk orang yang ingin mendokumentasikan atau menyatukan gaya sebuah situs.
Kapan dipakai
- โSaat Anda ingin mendokumentasikan sistem desain sebuah proyek frontend yang sudah ada.
- โSaat Anda ingin mengaudit atau menyatukan gaya di seluruh basis kode.
- โSaat aplikasi tidak bisa dibangun tetapi kode sumbernya tersedia.
Link skill
https://github.com/google-labs-code/stitch-skills/blob/main/plugins/stitch-design/skills/extract-design-md/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โBaca gaya dan konfigurasi Tailwind proyek React kami, lalu tulis DESIGN.md yang menjelaskan warna dan tipografi kami.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill membaca file stylesheet, file komponen, dan pengaturan tema, lalu menulis ringkasan tentang warna, tipografi, spasi, dan pola.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
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 =
Pertanyaan umum
Apakah saya perlu menjalankan aplikasinya?
Tidak. Skill hanya membaca file sumber, jadi tidak perlu build atau aplikasi yang berjalan.
Framework apa yang didukung?
Skill bekerja dengan React, Vue, Svelte, Angular, serta HTML dan CSS biasa.
Apakah hasilnya bisa dipakai di Stitch?
Ya, dokumen itu dibuat agar kompatibel dengan Stitch.
Detail
Deskripsi asli dari pembuat
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?
Popularitas
- Bintang GitHub
- 8.7k
- Peringkat
- #12342
- Lisensi
- Apache-2.0
- Diperbarui
- 17/8/2026
Komentar
- โฆ
Skill lain dari repositori ini
stitch::react-components
8.7kMembantu agent Anda mengubah desain Stitch menjadi komponen React dan Vite, atau memperbarui komponen yang sudah ada agar sesuai dengan desain terbaru, dengan pemeriksaan.
stitch::react-native
8.7kMembantu agent Anda mengubah desain web Stitch menjadi komponen React Native untuk aplikasi ponsel, atau memperbarui layar seluler yang ada agar sesuai dengan desain yang lebih baru.
react-vite-dashboard
8.7kMembantu agent Anda membangun dasbor React dan Vite yang berat data dari desain Stitch, dengan TanStack Query dan token desain dari file DESIGN.md.
shadcn-ui
8.7kMembantu agent Anda menemukan, memasang, dan menyesuaikan komponen shadcn/ui, bagian antarmuka salin-tempel yang dibangun dengan Radix atau Base UI dan Tailwind CSS.
Skill serupa
canvas
394kMemungkinkan agent Anda menampilkan widget visual yang di-hosting di panel Mac yang terhubung, lalu menyembunyikan panel atau memindahkannya ke halaman lain.
control-ui
394kMembantu agent Anda mengatur dan memecahkan masalah OpenClaw Control UI, termasuk sesi, dasbor, dan Gateway yang terhubung.
diagram-maker
394kMembantu agent Anda membuat diagram yang jelas sebagai SVG, HTML, atau Excalidraw yang dapat diedit untuk proses, arsitektur sistem, dan sketsa papan tulis.