design-extract
하는 일
코드 파일이나 이미지에 흩어진 색, 타이포그래피, 간격 같은 디자인 정보를 모아, 다른 프로그램이 쓸 수 있도록 한 곳에 정리합니다.
사용하는 경우
- ✓여러 곳에 흩어진 디자인 요소가 있는 프로젝트를 할 때.
- ✓디자인을 한 프로그램에서 다른 프로그램으로 옮길 때.
- ✓웹사이트나 앱의 시각 스타일을 정리할 때.
스킬 링크
https://github.com/nexu-io/open-design/blob/main/plugins/_official/atoms/design-extract/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 코드와 이미지에 있는 디자인 요소를 하나의 파일로 정리해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
도구는 CSS나 JavaScript 같은 여러 코드 파일과 이미지에서 색, 글꼴, 간격 정의를 찾습니다. 이 정보를 모아 표준화된 형식으로 저장합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Design extract
Spec §10 / §21.3.2: tokens scattered across a repo's CSS / theme
files / Tailwind config / styled-components helpers / SCSS partials
need to be lifted into one bag before token-map can crosswalk
them onto the active OD design system. This atom does the lifting;
the input shape is intentionally generic so the same atom serves
both code-migration and figma-migration when fed different sources.
Inputs
code/index.jsonfromcode-import(code-migration), ORfigma/tree.jsonfromfigma-extract(figma-migration), OR- A folder of screenshot images (tune-collab quick-tune flows).
Output
project-cwd/
└── code/
└── tokens.json # { colors[], typography[], spacing[], radius[], shadow[] }
Each token entry carries:
{
"kind": "color",
"name": "primary-500", // optional source name
"value": "#5b8def", // canonical value
"sources": ["styles/global.css:42", "tailwind.config.js:24"],
"usage": ["Header.tsx", "Footer.tsx"]
}
sources[] and usage[] are the audit trail token-map.unmatched.json
references when a target token can't be found.
Convergence
The atom completes when code/tokens.json exists. Empty token bags
emit a warning event but do not abort — token-map handles the
empty case by skipping its mapping pass.
Anti-patterns the prompt fragment forbids
- Hard-coded hex values inside JSX literals (
color: '#fff') are tokens for this atom's purposes; record them withkind:'color'and a synthetic name so they don't disappear into the noise. - Tailwind utility scans must dedupe palette references against the
active theme — never list
bg-blue-500andbg-blue-600as one token.
Status
Implemented by the daemon runner in
apps/daemon/src/plugins/atoms/design-extract.ts. It scans the indexed
source files, extracts CSS, Tailwind, and JavaScript token evidence, and
writes code/tokens.json.
자주 묻는 질문
'디자인 토큰'은 무엇인가요?
사용된 정확한 색, 글꼴 종류, 요소 사이의 간격처럼 프로젝트의 시각적 모습을 이루는 기본 구성 요소입니다.
토큰을 정리하는 것이 왜 중요한가요?
토큰을 정리하면 프로젝트 전체에서 디자인을 관리하고 일관성을 맞추기 쉬워지며, 다른 도구도 이 정보를 더 효율적으로 쓸 수 있습니다.
모든 파일 형식에서 디자인을 추출할 수 있나요?
일반적인 코드 파일(CSS, JavaScript, Tailwind 등)과 이미지에서 작동하도록 설계되었습니다. Figma에서 만든 것처럼 더 복잡한 디자인에는 추가 단계가 필요할 수 있습니다.
상세 정보
작성자의 원본 설명
Extract design tokens (color / typography / spacing) from imported source code, screenshots, or Figma exports into the canonical token bag token-map consumes.
repo: nexu-io/open-design
인기도
- GitHub 스타
- 101k
- 순위
- #981
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
sample-plugin
101k에이전트가 테스트용 메타데이터 파일을 만들도록 합니다. 코드가 다양한 상황에서 올바르게 작동하도록 돕습니다.
aster-atelier
101k클래식한 느낌의 예술 웹사이트를 만들도록 에이전트를 돕습니다. 우아한 이미지, 푸른 하늘, 세리프 글꼴로 영화 같은 분위기를 냅니다.
audio-jingle
101k징글(jingle)과 효과음 같은 오디오를 에이전트가 생성하도록 합니다. 음악과 음성을 만들고 결과를 오디오 파일로 저장할 수 있습니다.
blog-post
101k긴 기사나 블로그 글을 쓰도록 에이전트를 돕습니다. 이미지, 인용문, 작성자 정보를 넣을 공간이 포함됩니다.
비슷한 스킬
canvas
394k에이전트가 연결된 Mac 패널에 호스팅된 시각적 위젯을 띄우고, 패널을 숨기거나 다른 페이지로 옮기도록 돕습니다.
control-ui
394k에이전트가 세션, 대시보드, 연결된 Gateway를 포함해 OpenClaw Control UI를 정리하고 문제를 해결하도록 돕습니다.
diagram-maker
394k에이전트가 프로세스, 시스템 구조, 화이트보드 스케치를 위해 SVG, HTML, 편집 가능한 Excalidraw 파일로 명확한 다이어그램을 만들도록 돕습니다.