From forge-design
Figma file URL을 입력받아 디자인 토큰·메타·스크린샷을 Figma MCP로 fetch하고 CLAUDE-DESIGN-PROMPTS.md + ANALYSIS-REPORT.md를 갱신하여 claude.ai/design 결과물 정합도를 향상시킨다. 트리거 — 사용자가 Figma URL과 함께 "디자인 토큰 추출", "claude.ai/design 정합도 fix", "Figma 동기화", "디자인 시스템 갱신"을 요청하거나 `/figma-design-sync` 슬래시 명령으로 호출할 때. Figma MCP rate limit 도달 시 Codex/Gemini Vision PNG 재분석으로 자동 폴백. 입력은 Figma URL + 대상 doc 경로 + 옵션 brand 정정 룰. 산출물은 CLAUDE-DESIGN-PROMPTS.md 토큰 갱신 + figma-export/ANALYSIS-REPORT.md 실측·diff + figma-export/variables.json 원본 + 변경 보고서. eval_cases on.
How this skill is triggered — by the user, by Claude, or both
Slash command
/forge-design:figma-design-syncThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
claude.ai/design 결과물이 Figma 원본과 안 맞는 문제 해결.
claude.ai/design 결과물이 Figma 원본과 안 맞는 문제 해결.
원인: 텍스트 프롬프트 한계 (PNG Vision 분석 = 근사값 / spacing·radius 변형 / pixel-perfect X).
해결: Figma MCP 직접 fetch → 정확한 토큰·구조 추출 → MD doc 갱신 → claude.ai/design 입력 정합.
Figma MCP → rate limit 자동 폴백: Codex Vision(즉시) → Gemini Vision(2차). 폴백 source 명시.
패턴: Fetch(URL파싱+MCP병렬3종) → Fallback(rate limit 시 Codex→Gemini 자동) → Map(토큰매핑+저장) → Update(PROMPTS갱신+브랜드룰).
실행: Workflow({ script: Bash("cat ~/.claude/skills/figma-design-sync/workflow.js"), args: { figmaUrl, docPath, brandRules } })
CLAUDE_CODE_DISABLE_WORKFLOWS=1 시 기존 Step 1~9 직접 실행 방식 fallback.
| 항목 | 필수 | 예시 |
|---|---|---|
| Figma URL | ✅ | https://figma.com/design/:fileKey/:fileName?node-id=:int-:int |
| 대상 doc 경로 | ✅ | docs/plans/operations-tool/CLAUDE-DESIGN-PROMPTS.md |
| Brand 정정 룰 | 옵션 | "talkain → Story Beginz (PC-15)" |
| 기존 figma-export/ 경로 | 옵션 | docs/plans/operations-tool/figma-export/ |
python3 ~/.claude/skills/figma-design-sync/scripts/parse_figma_url.py "<URL>"
# 출력: {"fileKey": "...", "nodeId": "...", "branchKey": null}
검증:
node-id 누락 시 → 사용자에게 node-specific URL 재요청단일 메시지 내 병렬 호출:
mcp__claude_ai_Figma__get_variable_defs(fileKey, nodeId) → 디자인 변수 원본mcp__claude_ai_Figma__get_metadata(fileKey, nodeId) → 구조 트리mcp__claude_ai_Figma__get_screenshot(fileKey, nodeId, maxDimension=2048) → 시각 reference응답 감지 시 즉시 폴백:
상세 폴백 흐름 = references/fallback-vision.md 참조.
3 옵션 (사용자 선택):
figma-export/images/ PNG → Codex Vision 재분석 (즉시)Figma variables → 표준 토큰 변환.
상세 매핑 규칙 = references/token-mapping.md 참조.
핵심 카테고리:
figma-export/variables.json 저장원본 Figma variables JSON 직렬화 후 저장:
TARGET="docs/plans/{module}/figma-export"
mkdir -p "$TARGET"
# MCP get_variable_defs 응답 그대로 → variables.json
기존 파일 있으면 patch, 없으면 생성.
필수 섹션:
## A. 공통 디자인 시스템 섹션 → 토큰 부분 patch.
보존 의무:
갱신 항목:
# 컬러 토큰 (YYYY-MM-DD Figma 실측값으로 업데이트) 헤더 일자 갱신옵션 입력된 brand 정정 룰 적용:
| Brand 변환 예 | 적용 위치 |
|---|---|
talkain 텍스트 → Story Beginz | CLAUDE-DESIGN-PROMPTS.md 전수 |
| Logo PNG 교체 | assets/ (별 작업) |
| 브랜드 색상 swap | 토큰 매핑 시 |
ANALYSIS-REPORT.md 변경 이력에 명시:
- 2026-05-28: PC-15 brand 정정 적용 (talkain → Story Beginz)
## Figma Design Sync 완료
### 갱신 토큰 (N건)
- Primary: #EC4899 → #D946EF (변경)
- 보더: 변경 없음
- 신규: State/Caution #FB923C
### 분석 방식
- Figma MCP (정확) / Vision 폴백 (근사값)
### 갱신 파일
- {project}/docs/plans/{module}/CLAUDE-DESIGN-PROMPTS.md
- {project}/docs/plans/{module}/figma-export/ANALYSIS-REPORT.md
- {project}/docs/plans/{module}/figma-export/variables.json
### claude.ai/design 사용 추천
1. Design Systems → 기존 시스템 update (토큰 swap)
2. 화면별 prototype 재생성 → 정합도 확인
3. 차이 있으면 specific 화면 PNG share → 추가 sync
| 파일 | 변경 | 보존 |
|---|---|---|
CLAUDE-DESIGN-PROMPTS.md | 컬러 토큰 + 일자 헤더 | 컴포넌트 패턴 + brand 룰 + 사용법 |
figma-export/ANALYSIS-REPORT.md | 실측 + diff + 변경 이력 | 이전 분석 history |
figma-export/variables.json | Figma 원본 JSON (신규) | — |
~/.claude/rules-on-demand/claude-design-workflow.md — claude.ai/design 사용 가이드starbeginz-origin/docs/plans/operations-tool/CLAUDE-DESIGN-PROMPTS.mdreferences/fallback-vision.md — rate limit 폴백 흐름references/token-mapping.md — Figma → CSS/Tailwind 토큰 매핑본 스킬 결과 산출 후 자동으로 eval-rubric 호출 → 4축 Rubric 채점 → eval_cases.jsonl 누적.
CLAUDE-DESIGN-PROMPTS.md 갱신 완료 후ANALYSIS-REPORT.md 갱신 완료 후/eval-rubric --target {갱신 doc 경로}~/.claude/scripts/eval-cases-append.py)
EVAL_RUBRIC_AUTO=off출처: AD-19 (eval-rubric 시스템 통합)
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub moongci38-oss/forge-plugins --plugin forge-design