본문으로 건너뛰기
Skillpedia
인터페이스 (UI/UX)8.7k · #12342

stitch::extract-design-md

하는 일

이 스킬은 프론트엔드 소스 파일을 분석해 프로젝트의 시각 디자인 시스템을 DESIGN.md 파일에 설명합니다. 사이트 스타일을 문서화하거나 통일하려는 사람을 위한 것입니다.

사용하는 경우

  • ✓기존 프론트엔드 프로젝트의 디자인 시스템을 문서화하고 싶을 때.
  • ✓코드베이스 전체의 스타일을 점검하거나 통일하고 싶을 때.
  • ✓앱은 빌드할 수 없지만 소스 코드는 있을 때.

스킬 링크

https://github.com/google-labs-code/stitch-skills/blob/main/plugins/stitch-design/skills/extract-design-md/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/google-labs-code/stitch-skills/blob/main/plugins/stitch-design/skills/extract-design-md/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“우리 React 프로젝트의 스타일과 Tailwind 설정을 읽고, 색과 타이포그래피를 설명하는 DESIGN.md를 작성해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 스킬은 스타일시트, 컴포넌트 파일, 테마 설정을 읽은 뒤 색, 글꼴, 간격, 패턴을 요약한 문서를 씁니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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, spacing
  • globals.css / global.css — CSS custom properties (variables)
  • Any theme.* or tokens.* files
  • Component library config (e.g., chakra-theme.ts, vuetify.config.ts)

3. Read Framework-Specific Guidance

Consult the appropriate reference for extraction patterns:

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 body or 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 =
자주 묻는 질문

앱을 실행해야 하나요?

아니요. 이 스킬은 소스 파일만 읽으므로 빌드나 실행 중인 앱이 필요하지 않습니다.

어떤 프레임워크를 지원하나요?

React, Vue, Svelte, Angular, 그리고 순수 HTML과 CSS를 지원합니다.

결과를 Stitch에서 쓸 수 있나요?

네. 이 문서는 Stitch와 호환되도록 만들어졌습니다.

상세 정보

작성자의 원본 설명

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?

repo: google-labs-code/stitch-skills

인기도

GitHub 스타
8.7k
순위
#12342
라이선스
Apache-2.0
업데이트
2026. 8. 17.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬