☰ 분류

디자인 시스템 추출 프롬프트

코드베이스 위치와 프레임워크 정보를 넣으면 색, 타이포그래피, 간격, 컴포넌트, 모션, 자산을 구조화된 JSON 리포트로 추출합니다.

분류디자인 › 화면·제품 설계
태그분석검토개발자코드
프롬프트 (영어 본문 · 답은 한국어로 옵니다)
You are a senior design systems engineer conducting a forensic audit of an existing codebase. Your task is to extract every design decision embedded in the code — explicit or implicit.

## Project Context
- **Framework:** [Next.js / React / etc.]
- **Styling approach:** [Tailwind / CSS Modules / Styled Components / etc.]
- **Component library:** [shadcn/ui / custom / MUI / etc.]
- **Codebase location:** [path or "uploaded files"]

## Extraction Scope

Analyze the entire codebase and extract the following into a structured JSON report:

### 1. Color System
- Every color value used (hex, rgb, hsl, css variables, Tailwind classes)
- Group by: primary, secondary, accent, neutral, semantic (success/warning/error/info)
- Flag inconsistencies (e.g., 3 different grays used for borders)
- Note opacity variations and dark mode mappings if present
- Extract the actual CSS variable definitions and their fallback values

### 2. Typography
- Font families (loaded fonts, fallback stacks, Google Fonts imports)
- Font sizes (every unique size used, in px/rem/Tailwind classes)
- Font weights used per font family
- Line heights paired with each font size
- Letter spacing values
- Text styles as used combinations (e.g., "heading-large" = Inter 32px/700/1.2)
- Responsive typography rules (mobile vs desktop sizes)

### 3. Spacing & Layout
- Spacing scale (every margin/padding/gap value used)
- Container widths and max-widths
- Grid system (columns, gutters, breakpoints)
- Breakpoint definitions
- Z-index layers and their purpose
- Border radius values

### 4. Components Inventory
For each reusable component found:
- Component name and file path
- Props interface (TypeScript types if available)
- Visual variants (size, color, state)
- Internal spacing and sizing tokens used
- Dependencies on other components
- Usage count across the codebase (approximate)

### 5. Motion & Animation
- Transition durations and timing functions
- Animation keyframes
- Hover/focus/active state transitions
- Page transition patterns
- Scroll-based animations (if any library like Framer Motion, GSAP is used)

### 6. Iconography & Assets
- Icon system (Lucide, Heroicons, custom SVGs, etc.)
- Icon sizes used
- Favicon and logo variants

### 7. Inconsistencies Report
- Duplicate values that should be tokens (e.g., `#1a1a1a` used 47 times but not a variable)
- Conflicting patterns (e.g., some buttons use padding-based sizing, others use fixed height)
- Missing states (components without hover/focus/disabled states)
- Accessibility gaps (missing focus rings, insufficient color contrast)

## Output Format

Return a single JSON object with this structure:
{
  "colors": { "primary": [], "secondary": [], ... },
  "typography": { "families": [], "scale": [], "styles": [] },
  "spacing": { "scale": [], "containers": [], "breakpoints": [] },
  "components": [ { "name": "", "path": "", "props": {}, "variants": [] } ],
  "motion": { "durations": [], "easings": [], "animations": [] },
  "icons": { "system": "", "sizes": [], "count": 0 },
  "inconsistencies": [ { "type": "", "description": "", "severity": "high|medium|low" } ]
}

Do NOT attempt to organize or improve anything yet.
Do NOT suggest token names or restructuring.
Just extract what exists, exactly as it is.

어떤 프롬프트인가

기존 코드에 숨어 있는 디자인 결정을 감사할 때 쓰인다. 실제 값과 파일 경로, 변형, 사용 횟수, 불일치를 찾도록 하며 출력은 JSON 리포트다.

모델 비교

Gemini는 상세하지만 조작 정황과 잘린 JSON이 치명적이다. ChatGPT는 정직하나 과업을 수행하지 않았고, [C]는 답이 없다.

ChatGPT종합 1위
28/ 50

+ 검증 불가한 내용을 지어내지 않은 점이 좋다.

- 요구된 감사 결과와 단일 JSON 형식을 제공하지 않았다.

Gemini
12/ 50

+ 요구 항목을 세분화한 구성은 구체적이다.

- 근거 없는 수치·경로를 만들었고 JSON도 잘렸다.

기준ChatGPTGemini앞선 모델
지시 준수22동점
정확성81ChatGPT +700%
구체성34Gemini +33%
구성·가독성73ChatGPT +133%
분량 적정성82ChatGPT +300%

gpt-5.6-sol가 모델 이름을 가린 채 1~10점으로 채점했습니다 (2026-09-25). 측정값이 아니라 AI 심사 결과입니다.

답 전문 보기

같은 입력을 세 모델에 넣어 받은 답을 그대로 옮겼습니다. 각 CLI(에이전트 하네스)에서 실행했습니다. ChatGPT·Claude 앱이나 웹에서는 답이 다를 수 있습니다.

넣은 입력
[붙여 넣은 자료]
Framework: Next.js 14 (App Router)
Styling approach: Tailwind CSS + 일부 인라인 style
Component library: shadcn/ui 기반 커스터마이징
Codebase location: 업로드한 zip 파일 전체 (apps/dashboard 디렉터리 중심)
gpt-5.6-luna (codex CLI · 에이전트 하네스) · 실행일 2026-09-24

현재 세션에서는 업로드된 ZIP 및 /private/tmp/pa-sandbox 파일을 읽을 수 있는 파일 탐색/터미널 도구가 제공되지 않아 코드베이스를 검사할 수 없습니다. 추측으로 JSON을 작성하지 않겠습니다.

ZIP을 압축 해제한 파일을 다시 업로드하거나, 파일 읽기 권한이 활성화된 세션에서 요청해 주세요.

같은 분류의 프롬프트

7대7 축구 팀 앱 설계 프롬프트
접근성 감사자 역할을 맡기는 프롬프트
접근성 감사자 역할 프롬프트
접근성 전문가 역할 프롬프트
접근성 테스트 워크플로 프롬프트