@kood/claude-code 0.5.0 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +179 -33
- package/package.json +1 -1
- package/templates/.claude/agents/analyst.md +6 -14
- package/templates/.claude/agents/architect.md +6 -14
- package/templates/.claude/agents/code-reviewer.md +8 -14
- package/templates/.claude/agents/dependency-manager.md +8 -14
- package/templates/.claude/agents/deployment-validator.md +8 -14
- package/templates/.claude/agents/designer.md +8 -0
- package/templates/.claude/agents/document-writer.md +6 -14
- package/templates/.claude/agents/explore.md +8 -3
- package/templates/.claude/agents/git-operator.md +63 -17
- package/templates/.claude/agents/implementation-executor.md +14 -37
- package/templates/.claude/agents/ko-to-en-translator.md +8 -13
- package/templates/.claude/agents/lint-fixer.md +8 -172
- package/templates/.claude/agents/planner.md +6 -14
- package/templates/.claude/agents/refactor-advisor.md +8 -14
- package/templates/.claude/commands/git-all.md +3 -167
- package/templates/.claude/commands/git-session.md +3 -71
- package/templates/.claude/commands/lint-fix.md +119 -82
- package/templates/.claude/commands/lint-init.md +2 -54
- package/templates/.claude/commands/pre-deploy.md +143 -82
- package/templates/.claude/commands/version-update.md +171 -66
- package/templates/.claude/instructions/agent-patterns/agent-coordination.md +208 -0
- package/templates/.claude/instructions/agent-patterns/index.md +264 -0
- package/templates/.claude/instructions/agent-patterns/model-routing.md +167 -0
- package/templates/.claude/instructions/agent-patterns/parallel-execution.md +91 -0
- package/templates/.claude/instructions/agent-patterns/read-parallelization.md +106 -0
- package/templates/.claude/instructions/index.md +350 -0
- package/templates/.claude/instructions/multi-agent/agent-roster.md +811 -0
- package/templates/.claude/{PARALLEL_AGENTS.md → instructions/multi-agent/coordination-guide.md} +27 -336
- package/templates/.claude/instructions/{parallel-agent-execution.md → multi-agent/execution-patterns.md} +127 -438
- package/templates/.claude/instructions/multi-agent/index.md +282 -0
- package/templates/.claude/instructions/multi-agent/performance-optimization.md +456 -0
- package/templates/.claude/instructions/tech-stack/design-standards.md +282 -0
- package/templates/.claude/instructions/tech-stack/index.md +70 -0
- package/templates/.claude/instructions/tech-stack/prisma-patterns.md +352 -0
- package/templates/.claude/instructions/tech-stack/tanstack-patterns.md +275 -0
- package/templates/.claude/instructions/validation/forbidden-patterns.md +281 -0
- package/templates/.claude/instructions/validation/index.md +32 -0
- package/templates/.claude/instructions/validation/required-behaviors.md +331 -0
- package/templates/.claude/instructions/validation/verification-checklist.md +318 -0
- package/templates/.claude/instructions/workflow-patterns/index.md +18 -0
- package/templates/.claude/instructions/workflow-patterns/phase-based-workflow.md +250 -0
- package/templates/.claude/instructions/workflow-patterns/sequential-thinking.md +217 -0
- package/templates/.claude/instructions/workflow-patterns/todowrite-pattern.md +215 -0
- package/templates/.claude/skills/bug-fix/SKILL.md +972 -0
- package/templates/.claude/skills/docs-creator/AGENTS.md +4 -1
- package/templates/.claude/skills/docs-creator/SKILL.md +258 -0
- package/templates/.claude/skills/docs-refactor/AGENTS.md +4 -1
- package/templates/.claude/skills/docs-refactor/SKILL.md +145 -0
- package/templates/.claude/skills/execute/SKILL.md +15 -242
- package/templates/.claude/skills/figma-to-code/AGENTS.md +4 -1
- package/templates/.claude/skills/figma-to-code/SKILL.md +306 -0
- package/templates/.claude/skills/global-uiux-design/AGENTS.md +4 -1
- package/templates/.claude/skills/global-uiux-design/SKILL.md +455 -125
- package/templates/.claude/skills/korea-uiux-design/AGENTS.md +4 -1
- package/templates/.claude/skills/korea-uiux-design/SKILL.md +461 -116
- package/templates/.claude/skills/nextjs-react-best-practices/SKILL.md +177 -0
- package/templates/.claude/skills/plan/SKILL.md +1102 -98
- package/templates/.claude/skills/prd/SKILL.md +367 -66
- package/templates/.claude/skills/ralph/AGENTS.md +4 -1
- package/templates/.claude/skills/ralph/SKILL.md +83 -0
- package/templates/.claude/skills/refactor/SKILL.md +1214 -0
- package/templates/.claude/skills/tanstack-start-react-best-practices/SKILL.md +149 -0
- package/templates/.claude/commands/bug-fix.md +0 -510
- package/templates/.claude/commands/refactor.md +0 -788
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: execute
|
|
3
|
+
description: 계획 실행 또는 간단한 작업을 즉시 구현하는 스킬. 옵션 제시 없이 최적 방법으로 바로 실행.
|
|
4
|
+
user-invocable: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
@../../instructions/workflow-patterns/sequential-thinking.md
|
|
8
|
+
@../../instructions/agent-patterns/parallel-execution.md
|
|
9
|
+
@../../instructions/agent-patterns/model-routing.md
|
|
10
|
+
@../../instructions/validation/forbidden-patterns.md
|
|
11
|
+
@../../instructions/validation/required-behaviors.md
|
|
12
|
+
|
|
1
13
|
# Execute Skill
|
|
2
14
|
|
|
3
15
|
> 계획 실행 또는 간단한 작업을 즉시 구현하는 스킬. 옵션 제시 없이 최적 방법으로 바로 실행.
|
|
@@ -26,153 +38,6 @@
|
|
|
26
38
|
|
|
27
39
|
---
|
|
28
40
|
|
|
29
|
-
<parallel_agent_execution>
|
|
30
|
-
|
|
31
|
-
## 병렬 Agent 실행
|
|
32
|
-
|
|
33
|
-
**목적:** 독립적인 작업을 여러 Agent가 동시에 실행하여 생산성 향상.
|
|
34
|
-
|
|
35
|
-
### 권장 Agents
|
|
36
|
-
|
|
37
|
-
| Agent | Model | 용도 |
|
|
38
|
-
|-------|-------|------|
|
|
39
|
-
| @implementation-executor | haiku/sonnet/opus | 작업 구현 |
|
|
40
|
-
| @designer | sonnet | UI/UX 작업 |
|
|
41
|
-
| @document-writer | haiku | 문서화 |
|
|
42
|
-
| @code-reviewer | haiku | 구현 후 검증 |
|
|
43
|
-
|
|
44
|
-
### Model Routing
|
|
45
|
-
|
|
46
|
-
| 복잡도 | Model | 작업 예시 |
|
|
47
|
-
|--------|-------|----------|
|
|
48
|
-
| **LOW** | haiku | 파일 수정, 설정 변경, 문서화 |
|
|
49
|
-
| **MEDIUM** | sonnet | 기능 추가, 컴포넌트 구현 |
|
|
50
|
-
| **HIGH** | opus | 아키텍처 변경, 다중 파일 리팩토링 |
|
|
51
|
-
|
|
52
|
-
### 병렬 실행 패턴
|
|
53
|
-
|
|
54
|
-
**독립적 기능 병렬 구현:**
|
|
55
|
-
|
|
56
|
-
```typescript
|
|
57
|
-
// ✅ 독립적인 API 엔드포인트를 각각 구현
|
|
58
|
-
Task({
|
|
59
|
-
subagent_type: 'implementation-executor',
|
|
60
|
-
model: 'sonnet',
|
|
61
|
-
prompt: 'User API 엔드포인트 구현 (GET /users, POST /users, PATCH /users/:id)'
|
|
62
|
-
})
|
|
63
|
-
|
|
64
|
-
Task({
|
|
65
|
-
subagent_type: 'implementation-executor',
|
|
66
|
-
model: 'sonnet',
|
|
67
|
-
prompt: 'Product API 엔드포인트 구현 (GET /products, POST /products, DELETE /products/:id)'
|
|
68
|
-
})
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
**구현 + 문서화 병렬:**
|
|
72
|
-
|
|
73
|
-
```typescript
|
|
74
|
-
// ✅ 구현과 문서화 동시 진행
|
|
75
|
-
Task({
|
|
76
|
-
subagent_type: 'implementation-executor',
|
|
77
|
-
model: 'sonnet',
|
|
78
|
-
prompt: 'Payment 통합 (Stripe API 연동, 결제 처리 로직)'
|
|
79
|
-
})
|
|
80
|
-
|
|
81
|
-
Task({
|
|
82
|
-
subagent_type: 'document-writer',
|
|
83
|
-
model: 'haiku',
|
|
84
|
-
prompt: 'Payment API 문서 작성 (엔드포인트, 요청/응답 스키마, 에러 코드)'
|
|
85
|
-
})
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
**UI + API + 문서 병렬:**
|
|
89
|
-
|
|
90
|
-
```typescript
|
|
91
|
-
// ✅ 전체 기능을 역할별로 분산
|
|
92
|
-
Task({
|
|
93
|
-
subagent_type: 'designer',
|
|
94
|
-
model: 'sonnet',
|
|
95
|
-
prompt: 'User Profile UI 구현 (프로필 편집 폼, 프로필 카드, 반응형 디자인)'
|
|
96
|
-
})
|
|
97
|
-
|
|
98
|
-
Task({
|
|
99
|
-
subagent_type: 'implementation-executor',
|
|
100
|
-
model: 'sonnet',
|
|
101
|
-
prompt: 'User API 구현 (GET /users/:id, PATCH /users/:id, 이미지 업로드)'
|
|
102
|
-
})
|
|
103
|
-
|
|
104
|
-
Task({
|
|
105
|
-
subagent_type: 'document-writer',
|
|
106
|
-
model: 'haiku',
|
|
107
|
-
prompt: 'User API 문서 및 컴포넌트 사용 가이드 작성'
|
|
108
|
-
})
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
**구현 후 검증:**
|
|
112
|
-
|
|
113
|
-
```typescript
|
|
114
|
-
// ✅ 구현 완료 후 코드 리뷰
|
|
115
|
-
Task({
|
|
116
|
-
subagent_type: 'implementation-executor',
|
|
117
|
-
model: 'sonnet',
|
|
118
|
-
prompt: 'Authentication 리팩토링 (Better Auth 마이그레이션)'
|
|
119
|
-
})
|
|
120
|
-
|
|
121
|
-
// 구현 완료 대기 후
|
|
122
|
-
Task({
|
|
123
|
-
subagent_type: 'code-reviewer',
|
|
124
|
-
model: 'haiku',
|
|
125
|
-
prompt: '보안 점검 (인증/인가 로직, XSS/CSRF 방어, 민감 정보 노출)'
|
|
126
|
-
})
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
### 병렬 실행 시 주의
|
|
130
|
-
|
|
131
|
-
```text
|
|
132
|
-
✅ 독립적인 작업만 병렬 실행 (의존성 없음)
|
|
133
|
-
✅ Model 복잡도에 맞게 선택 (haiku/sonnet/opus)
|
|
134
|
-
✅ 각 Agent는 Sequential Thinking으로 자율 실행
|
|
135
|
-
✅ 결과 취합 후 통합 검증 (테스트, 빌드)
|
|
136
|
-
|
|
137
|
-
❌ 의존성 있는 작업은 순차 실행 (A 완료 → B 시작)
|
|
138
|
-
❌ 동일 파일 동시 수정 금지
|
|
139
|
-
❌ 과도한 병렬화 (3-4개 이상 → 관리 복잡)
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
### 실전 예시
|
|
143
|
-
|
|
144
|
-
**간단한 작업 (haiku):**
|
|
145
|
-
|
|
146
|
-
```typescript
|
|
147
|
-
// 설정 파일 수정 + 문서화
|
|
148
|
-
Task({ subagent_type: 'implementation-executor', model: 'haiku',
|
|
149
|
-
prompt: 'ESLint 설정 업데이트 (.eslintrc.json)' })
|
|
150
|
-
Task({ subagent_type: 'document-writer', model: 'haiku',
|
|
151
|
-
prompt: 'Linting 규칙 문서화 (docs/linting.md)' })
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
**보통 작업 (sonnet):**
|
|
155
|
-
|
|
156
|
-
```typescript
|
|
157
|
-
// 독립적인 컴포넌트 구현
|
|
158
|
-
Task({ subagent_type: 'designer', model: 'sonnet',
|
|
159
|
-
prompt: 'Header 컴포넌트 (로고, 네비게이션, 사용자 메뉴)' })
|
|
160
|
-
Task({ subagent_type: 'designer', model: 'sonnet',
|
|
161
|
-
prompt: 'Footer 컴포넌트 (링크, 소셜 미디어, 저작권)' })
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
**복잡한 작업 (opus):**
|
|
165
|
-
|
|
166
|
-
```typescript
|
|
167
|
-
// 아키텍처 변경
|
|
168
|
-
Task({ subagent_type: 'implementation-executor', model: 'opus',
|
|
169
|
-
prompt: 'Monorepo 구조 변경 (apps/, packages/ 분리, Turborepo)' })
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
</parallel_agent_execution>
|
|
173
|
-
|
|
174
|
-
---
|
|
175
|
-
|
|
176
41
|
<workflow>
|
|
177
42
|
|
|
178
43
|
## 실행 흐름
|
|
@@ -184,97 +49,6 @@ Task({ subagent_type: 'implementation-executor', model: 'opus',
|
|
|
184
49
|
| 3. 최적 접근법 결정 | 가능한 방법 분석 → 최선 선택 | sequentialthinking |
|
|
185
50
|
| 4. 즉시 구현 | TodoWrite → 단계별 구현 → 검증 | Edit/Write + TodoWrite |
|
|
186
51
|
|
|
187
|
-
### Sequential Thinking 가이드
|
|
188
|
-
|
|
189
|
-
**복잡도별 전략:**
|
|
190
|
-
|
|
191
|
-
| 복잡도 | 사고 횟수 | 판단 기준 | 사고 패턴 |
|
|
192
|
-
|--------|----------|----------|----------|
|
|
193
|
-
| **간단** | 2 | 1개 파일, 명확한 변경 | 복잡도 판단 → 즉시 구현 |
|
|
194
|
-
| **보통** | 3-4 | 2-3개 파일, 로직 추가 | 복잡도 판단 → 현재 상태 → 접근 방식 → 구현 |
|
|
195
|
-
| **복잡** | 5+ | 다중 모듈, 아키텍처 변경 | 복잡도 판단 → 심층 분석 → 접근 방식 → 상세 계획 → 단계별 구현 |
|
|
196
|
-
|
|
197
|
-
**보통 복잡도 패턴 (3-4단계):**
|
|
198
|
-
|
|
199
|
-
```
|
|
200
|
-
thought 1: 복잡도 판단 및 분석 범위 결정
|
|
201
|
-
thought 2: 현재 상태 분석 (코드, 아키텍처)
|
|
202
|
-
thought 3: 최적 접근 방식 선택 및 구현 계획
|
|
203
|
-
thought 4: 단계별 구현 순서 확정
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
**복잡한 경우 패턴 (5단계):**
|
|
207
|
-
|
|
208
|
-
```
|
|
209
|
-
thought 1: 복잡도 판단
|
|
210
|
-
thought 2: 현재 상태 심층 분석
|
|
211
|
-
thought 3: 가능한 접근 방식 탐색 및 최선 선택
|
|
212
|
-
thought 4: 상세 구현 계획 수립
|
|
213
|
-
thought 5: 단계별 실행 순서 및 검증 방법
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
### Task Subagent 활용
|
|
217
|
-
|
|
218
|
-
| subagent_type | 용도 | 예시 |
|
|
219
|
-
|---------------|------|------|
|
|
220
|
-
| **Explore** | 코드베이스 구조 파악, 관련 파일 탐색 | "현재 인증 구조 분석" |
|
|
221
|
-
| **general-purpose** | 복잡한 분석, 다중 시스템 연관 | "여러 모듈 간 의존성 분석" |
|
|
222
|
-
|
|
223
|
-
**단일 탐색:**
|
|
224
|
-
|
|
225
|
-
```typescript
|
|
226
|
-
Task({
|
|
227
|
-
subagent_type: 'Explore',
|
|
228
|
-
description: '현재 인증 구조 분석',
|
|
229
|
-
prompt: `
|
|
230
|
-
현재 인증 관련 코드 구조 파악.
|
|
231
|
-
- 사용 중인 라이브러리
|
|
232
|
-
- 세션 관리 방식
|
|
233
|
-
- 수정이 필요한 파일 목록
|
|
234
|
-
`
|
|
235
|
-
})
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
**병렬 탐색 (복잡한 경우):**
|
|
239
|
-
|
|
240
|
-
```typescript
|
|
241
|
-
Task({ subagent_type: 'Explore', prompt: '프론트엔드 인증 구조 분석' })
|
|
242
|
-
Task({ subagent_type: 'Explore', prompt: '백엔드 API 인증 엔드포인트 분석' })
|
|
243
|
-
Task({ subagent_type: 'Explore', prompt: '데이터베이스 세션 스키마 분석' })
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
### TodoWrite 활용
|
|
247
|
-
|
|
248
|
-
**복잡도별 사용:**
|
|
249
|
-
|
|
250
|
-
| 복잡도 | TodoWrite | 이유 |
|
|
251
|
-
|--------|----------|------|
|
|
252
|
-
| **간단** | 선택적 | 1-2개 파일, 명확한 작업 |
|
|
253
|
-
| **보통** | 필수 | 3-5개 파일, 여러 단계 |
|
|
254
|
-
| **복잡** | 필수 | 다중 모듈, 단계별 추적 필수 |
|
|
255
|
-
|
|
256
|
-
**TodoWrite 패턴:**
|
|
257
|
-
|
|
258
|
-
```typescript
|
|
259
|
-
TodoWrite({
|
|
260
|
-
todos: [
|
|
261
|
-
{ content: '현재 구조 분석', status: 'in_progress', activeForm: '현재 구조 분석 중' },
|
|
262
|
-
{ content: 'API 엔드포인트 구현', status: 'pending', activeForm: 'API 엔드포인트 구현 중' },
|
|
263
|
-
{ content: '프론트엔드 통합', status: 'pending', activeForm: '프론트엔드 통합 중' },
|
|
264
|
-
{ content: '테스트 실행', status: 'pending', activeForm: '테스트 실행 중' },
|
|
265
|
-
]
|
|
266
|
-
})
|
|
267
|
-
```
|
|
268
|
-
|
|
269
|
-
### 단계별 구현 원칙
|
|
270
|
-
|
|
271
|
-
```text
|
|
272
|
-
✅ 한 번에 하나씩: 한 작업 완료 → 다음 작업
|
|
273
|
-
✅ 즉시 완료 표시: 작업 완료 시 바로 completed
|
|
274
|
-
✅ 검증 후 진행: 각 단계 완료 후 동작 확인
|
|
275
|
-
✅ 에러 처리: 실패 시 원인 분석 → 수정 → 재시도
|
|
276
|
-
```
|
|
277
|
-
|
|
278
52
|
</workflow>
|
|
279
53
|
|
|
280
54
|
---
|
|
@@ -435,17 +209,16 @@ Task({
|
|
|
435
209
|
✅ 최적 접근법 내부적으로 결정
|
|
436
210
|
✅ TodoWrite로 구현 단계 추적 (보통 이상)
|
|
437
211
|
✅ 단계별 구현 및 검증
|
|
212
|
+
✅ 병렬 실행 가능 시 Agent 위임
|
|
213
|
+
✅ 적절한 모델 선택 (haiku/sonnet/opus)
|
|
438
214
|
```
|
|
439
215
|
|
|
440
|
-
##
|
|
216
|
+
## 스킬별 금지 사항
|
|
441
217
|
|
|
442
218
|
```text
|
|
443
|
-
❌ Sequential Thinking 2단계 미만
|
|
444
|
-
❌ 코드 탐색 없이 추측으로 구현
|
|
445
219
|
❌ 옵션 제시 후 사용자 선택 대기 (바로 실행)
|
|
446
220
|
❌ TodoWrite 없이 복잡한 작업 수행
|
|
447
221
|
❌ 단계별 검증 없이 일괄 구현
|
|
448
|
-
❌ 테스트 실패 상태로 커밋
|
|
449
222
|
```
|
|
450
223
|
|
|
451
224
|
</validation>
|
|
@@ -6,7 +6,10 @@ Figma 디자인을 코드로 변환할 때 에이전트 활용 가이드.
|
|
|
6
6
|
|
|
7
7
|
<agents_reference>
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
다중 에이전트 구조:
|
|
10
|
+
- 에이전트 목록: @../../instructions/multi-agent/agent-roster.md
|
|
11
|
+
- 조정 가이드: @../../instructions/multi-agent/coordination-guide.md
|
|
12
|
+
- 실행 패턴: @../../instructions/multi-agent/execution-patterns.md
|
|
10
13
|
|
|
11
14
|
</agents_reference>
|
|
12
15
|
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: figma-to-code
|
|
3
|
+
description: Figma 디자인을 100% 정확하게 코드로 변환. Figma MCP로 디자인 토큰/레이아웃/에셋을 추출하여 픽셀 단위 정확도 보장.
|
|
4
|
+
user-invocable: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
@../../instructions/agent-patterns/read-parallelization.md
|
|
8
|
+
@../../instructions/validation/forbidden-patterns.md
|
|
9
|
+
@../../instructions/validation/required-behaviors.md
|
|
10
|
+
|
|
1
11
|
# Figma → Code (100% Pixel-Perfect)
|
|
2
12
|
|
|
3
13
|
<context>
|
|
@@ -25,6 +35,302 @@
|
|
|
25
35
|
|
|
26
36
|
---
|
|
27
37
|
|
|
38
|
+
<parallel_agent_execution>
|
|
39
|
+
|
|
40
|
+
## ULTRAWORK MODE (병렬 에이전트 실행)
|
|
41
|
+
|
|
42
|
+
### 기본 원칙
|
|
43
|
+
|
|
44
|
+
| 원칙 | 실행 방법 | 기대 효과 |
|
|
45
|
+
|------|----------|----------|
|
|
46
|
+
| **PARALLEL** | 독립 작업은 단일 메시지에서 동시 Tool 호출 | 5-15배 속도 향상 |
|
|
47
|
+
| **DELEGATE** | 전문 에이전트에게 즉시 위임 | 컨텍스트 격리, 품질 향상 |
|
|
48
|
+
| **SMART MODEL** | 복잡도에 따라 haiku/sonnet/opus 선택 | 비용 최적화 |
|
|
49
|
+
|
|
50
|
+
**핵심 룰:**
|
|
51
|
+
```typescript
|
|
52
|
+
// ❌ 순차 실행 (느림)
|
|
53
|
+
Task(...) // 60초 대기
|
|
54
|
+
Task(...) // 60초 대기
|
|
55
|
+
// 총 120초
|
|
56
|
+
|
|
57
|
+
// ✅ 병렬 실행 (빠름)
|
|
58
|
+
Task(...) // 단일 메시지에서
|
|
59
|
+
Task(...) // 동시 호출
|
|
60
|
+
// 총 60초 (가장 긴 작업 기준)
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Phase별 에이전트 활용
|
|
64
|
+
|
|
65
|
+
| Phase | 작업 | 에이전트 | 모델 | 병렬 실행 |
|
|
66
|
+
|-------|------|---------|------|----------|
|
|
67
|
+
| **0** | 환경 탐색 | explore | haiku | ❌ (단일) |
|
|
68
|
+
| **1** | Figma 데이터 추출 | designer | opus | ❌ (필수) |
|
|
69
|
+
| **1** | 토큰 추출 + 에셋 다운로드 | designer + implementation-executor | opus + haiku | ✅ (독립 작업) |
|
|
70
|
+
| **2** | 컴포넌트 구현 | designer | sonnet | ✅ (여러 컴포넌트) |
|
|
71
|
+
| **2** | 스타일 토큰 병합 | designer | sonnet | ✅ (독립) |
|
|
72
|
+
| **2** | 에셋 압축/구조화 | implementation-executor | haiku | ✅ (독립) |
|
|
73
|
+
| **3** | 반응형 브레이크포인트 | designer | sonnet | ✅ (Mobile/Tablet/Desktop) |
|
|
74
|
+
| **4** | 픽셀 정확도 검증 | code-reviewer | opus | ❌ (순차) |
|
|
75
|
+
|
|
76
|
+
### 에이전트별 역할
|
|
77
|
+
|
|
78
|
+
| 에이전트 | 모델 | 용도 | 병렬 가능 |
|
|
79
|
+
|---------|------|------|----------|
|
|
80
|
+
| **explore** | haiku | 프로젝트 구조, globals.css 위치 파악 | ✅ |
|
|
81
|
+
| **designer** | sonnet/opus | Figma MCP 사용, React 컴포넌트 구현, @theme 토큰 생성 | ✅ |
|
|
82
|
+
| **implementation-executor** | sonnet/haiku | 에셋 WebP 압축, public/ 구조화, 로직 구현 | ✅ |
|
|
83
|
+
| **code-reviewer** | opus | 픽셀 정확도 검증, 반응형 품질 검토 | ✅ |
|
|
84
|
+
| **document-writer** | haiku | 컴포넌트 문서, 사용법 가이드 작성 | ✅ |
|
|
85
|
+
|
|
86
|
+
### 실전 패턴
|
|
87
|
+
|
|
88
|
+
#### 패턴 1: 환경 분석 → Figma 추출 → 병렬 구현
|
|
89
|
+
|
|
90
|
+
```typescript
|
|
91
|
+
// Phase 0: 환경 탐색 (단일)
|
|
92
|
+
Task(subagent_type="explore", model="haiku",
|
|
93
|
+
prompt=`프로젝트 환경 파악:
|
|
94
|
+
- Vite/Next.js 감지
|
|
95
|
+
- globals.css 위치
|
|
96
|
+
- 기존 @theme 토큰 확인`)
|
|
97
|
+
|
|
98
|
+
// Phase 1: Figma 데이터 추출 (opus로 정확도 보장)
|
|
99
|
+
Task(subagent_type="designer", model="opus",
|
|
100
|
+
prompt=`Figma MCP로 디자인 데이터 추출:
|
|
101
|
+
- Variables (색상, 간격, 폰트)
|
|
102
|
+
- Auto Layout 구조 분석
|
|
103
|
+
- 에셋 다운로드 링크 생성
|
|
104
|
+
- 반응형 브레이크포인트 확인`)
|
|
105
|
+
|
|
106
|
+
// Phase 2: 병렬 구현 (컴포넌트 + 스타일 + 에셋 동시)
|
|
107
|
+
Task(subagent_type="designer", model="sonnet",
|
|
108
|
+
prompt=`React 컴포넌트 구현:
|
|
109
|
+
- 정확한 px 값 사용 (근사치 금지)
|
|
110
|
+
- Auto Layout → Flexbox/Grid 정확한 매핑
|
|
111
|
+
- 반응형 클래스 포함`)
|
|
112
|
+
|
|
113
|
+
Task(subagent_type="designer", model="sonnet",
|
|
114
|
+
prompt=`globals.css @theme 블록 업데이트:
|
|
115
|
+
- Figma Variables → Tailwind v4 토큰
|
|
116
|
+
- 기존 토큰 병합 (덮어쓰기 금지)
|
|
117
|
+
- 자동 클래스 생성 확인`)
|
|
118
|
+
|
|
119
|
+
Task(subagent_type="implementation-executor", model="haiku",
|
|
120
|
+
prompt=`에셋 처리:
|
|
121
|
+
- PNG/JPG → WebP 압축 (품질 75-90)
|
|
122
|
+
- public/images/[category]/ 구조화
|
|
123
|
+
- SVG는 압축 없이 public/icons/`)
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
**효과:** 순차 실행 대비 3배 빠름
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
#### 패턴 2: 반응형 병렬 구현
|
|
131
|
+
|
|
132
|
+
```typescript
|
|
133
|
+
// Mobile/Tablet/Desktop 동시 작업
|
|
134
|
+
Task(subagent_type="designer", model="sonnet",
|
|
135
|
+
prompt=`모바일 레이아웃 (320-767px):
|
|
136
|
+
- 세로 스택 (flex-col)
|
|
137
|
+
- 폰트 크기 조정
|
|
138
|
+
- 간격 축소`)
|
|
139
|
+
|
|
140
|
+
Task(subagent_type="designer", model="sonnet",
|
|
141
|
+
prompt=`태블릿 레이아웃 (768-1023px):
|
|
142
|
+
- 2열 그리드
|
|
143
|
+
- 중간 폰트 크기
|
|
144
|
+
- 적정 간격`)
|
|
145
|
+
|
|
146
|
+
Task(subagent_type="designer", model="sonnet",
|
|
147
|
+
prompt=`데스크톱 레이아웃 (1024px+):
|
|
148
|
+
- 3-4열 그리드
|
|
149
|
+
- 큰 폰트 크기
|
|
150
|
+
- 넉넉한 간격`)
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
**효과:** 3개 브레이크포인트를 동시 처리
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
#### 패턴 3: 다중 컴포넌트 병렬 변환
|
|
158
|
+
|
|
159
|
+
```typescript
|
|
160
|
+
// 여러 Figma 컴포넌트 동시 구현
|
|
161
|
+
Task(subagent_type="designer", model="sonnet",
|
|
162
|
+
prompt=`Header 컴포넌트:
|
|
163
|
+
- Figma Frame "Header" → React
|
|
164
|
+
- Auto Layout → Flexbox
|
|
165
|
+
- 정확한 간격, 색상`)
|
|
166
|
+
|
|
167
|
+
Task(subagent_type="designer", model="sonnet",
|
|
168
|
+
prompt=`Footer 컴포넌트:
|
|
169
|
+
- Figma Frame "Footer" → React
|
|
170
|
+
- 링크, 아이콘 배치
|
|
171
|
+
- 반응형 레이아웃`)
|
|
172
|
+
|
|
173
|
+
Task(subagent_type="designer", model="sonnet",
|
|
174
|
+
prompt=`Hero 섹션:
|
|
175
|
+
- 배경 이미지 WebP
|
|
176
|
+
- 타이포그래피 정확한 값
|
|
177
|
+
- CTA 버튼 스타일`)
|
|
178
|
+
|
|
179
|
+
Task(subagent_type="implementation-executor", model="haiku",
|
|
180
|
+
prompt=`에셋 일괄 처리:
|
|
181
|
+
- 모든 이미지 WebP 압축
|
|
182
|
+
- public/images/ 폴더 구조화
|
|
183
|
+
- 반응형 이미지 (<picture>)`)
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
**효과:** 4개 작업을 동시 처리
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
#### 패턴 4: 구현 → 다중 검증
|
|
191
|
+
|
|
192
|
+
```typescript
|
|
193
|
+
// Step 1: 구현 (병렬)
|
|
194
|
+
Task(subagent_type="designer", model="sonnet",
|
|
195
|
+
prompt="Figma 디자인 → React 컴포넌트")
|
|
196
|
+
|
|
197
|
+
// Step 2: 여러 관점에서 동시 검증
|
|
198
|
+
Task(subagent_type="code-reviewer", model="opus",
|
|
199
|
+
prompt=`픽셀 정확도 검증:
|
|
200
|
+
- 색상: Figma HEX vs 코드
|
|
201
|
+
- 간격: margin/padding/gap 일치
|
|
202
|
+
- 폰트: size/weight/line-height`)
|
|
203
|
+
|
|
204
|
+
Task(subagent_type="code-reviewer", model="opus",
|
|
205
|
+
prompt=`반응형 품질 검증:
|
|
206
|
+
- Mobile/Tablet/Desktop 모두 Figma 일치
|
|
207
|
+
- 브레이크포인트 정확도
|
|
208
|
+
- 반응형 이미지 사용`)
|
|
209
|
+
|
|
210
|
+
Task(subagent_type="code-reviewer", model="opus",
|
|
211
|
+
prompt=`에셋 품질 검증:
|
|
212
|
+
- WebP 압축 확인
|
|
213
|
+
- 폴더 구조 적절성
|
|
214
|
+
- 파일명 명확성`)
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
**효과:** 3가지 관점에서 동시 품질 검토
|
|
218
|
+
|
|
219
|
+
---
|
|
220
|
+
|
|
221
|
+
### Model Routing
|
|
222
|
+
|
|
223
|
+
| 작업 | 모델 | 이유 |
|
|
224
|
+
|------|------|------|
|
|
225
|
+
| **환경 탐색** | haiku | 빠른 구조 파악 |
|
|
226
|
+
| **Figma 데이터 추출** | opus | 정확한 토큰/레이아웃 분석 |
|
|
227
|
+
| **컴포넌트 구현** | sonnet | UI 코드 변환 |
|
|
228
|
+
| **에셋 처리** | haiku | WebP 압축, 폴더 구조화 |
|
|
229
|
+
| **픽셀 정확도 검증** | opus | 세밀한 비교 |
|
|
230
|
+
| **문서 작성** | haiku | 빠른 문서화 |
|
|
231
|
+
|
|
232
|
+
### 병렬 실행 체크리스트
|
|
233
|
+
|
|
234
|
+
작업 시작 전 확인:
|
|
235
|
+
|
|
236
|
+
- [ ] 이 작업은 독립적인가? → 병렬 에이전트 고려
|
|
237
|
+
- [ ] 여러 컴포넌트 구현? → 여러 designer 병렬 실행
|
|
238
|
+
- [ ] 반응형 필수? → 브레이크포인트별 병렬
|
|
239
|
+
- [ ] 에셋 많은가? → implementation-executor 병렬
|
|
240
|
+
- [ ] 검증 다각도 필요? → 여러 code-reviewer 병렬
|
|
241
|
+
|
|
242
|
+
**적극적으로 에이전트 활용. 혼자 하지 말 것.**
|
|
243
|
+
|
|
244
|
+
### 실전 시나리오
|
|
245
|
+
|
|
246
|
+
#### 시나리오 1: 랜딩 페이지 구현 (병렬)
|
|
247
|
+
|
|
248
|
+
```typescript
|
|
249
|
+
// Phase 0: 환경
|
|
250
|
+
Task(subagent_type="explore", model="haiku",
|
|
251
|
+
prompt="Vite/Next.js, globals.css 확인")
|
|
252
|
+
|
|
253
|
+
// Phase 1: Figma 추출
|
|
254
|
+
Task(subagent_type="designer", model="opus",
|
|
255
|
+
prompt="Figma MCP: Variables, Auto Layout, 에셋, 브레이크포인트")
|
|
256
|
+
|
|
257
|
+
// Phase 2: 병렬 구현 (4개 동시)
|
|
258
|
+
Task(subagent_type="designer", model="sonnet",
|
|
259
|
+
prompt="Hero 섹션: 정확한 px 값, 반응형")
|
|
260
|
+
Task(subagent_type="designer", model="sonnet",
|
|
261
|
+
prompt="Features 섹션: 3열 그리드, 아이콘")
|
|
262
|
+
Task(subagent_type="designer", model="sonnet",
|
|
263
|
+
prompt="CTA 섹션: 버튼, 폼 스타일")
|
|
264
|
+
Task(subagent_type="implementation-executor", model="haiku",
|
|
265
|
+
prompt="에셋 WebP 압축 및 public/images/ 구조화")
|
|
266
|
+
|
|
267
|
+
// Phase 3: 검증 (병렬)
|
|
268
|
+
Task(subagent_type="code-reviewer", model="opus",
|
|
269
|
+
prompt="픽셀 정확도 검증")
|
|
270
|
+
Task(subagent_type="code-reviewer", model="opus",
|
|
271
|
+
prompt="반응형 품질 검증")
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
**예상 시간:**
|
|
275
|
+
- 순차 실행: 420초 (60 + 60 + 60 + 60 + 60 + 60 + 60)
|
|
276
|
+
- 병렬 실행: 120초 (Phase별 가장 긴 작업)
|
|
277
|
+
- 개선: 3.5배 향상
|
|
278
|
+
|
|
279
|
+
---
|
|
280
|
+
|
|
281
|
+
#### 시나리오 2: 디자인 시스템 구축 (병렬)
|
|
282
|
+
|
|
283
|
+
```typescript
|
|
284
|
+
// Phase 1: Figma Variables 추출
|
|
285
|
+
Task(subagent_type="designer", model="opus",
|
|
286
|
+
prompt="Figma Variables → @theme 토큰 매핑")
|
|
287
|
+
|
|
288
|
+
// Phase 2: 병렬 컴포넌트 구현 (5개 동시)
|
|
289
|
+
Task(subagent_type="designer", model="sonnet",
|
|
290
|
+
prompt="Button: Primary/Secondary/Ghost")
|
|
291
|
+
Task(subagent_type="designer", model="sonnet",
|
|
292
|
+
prompt="Card: border-radius, shadow, padding")
|
|
293
|
+
Task(subagent_type="designer", model="sonnet",
|
|
294
|
+
prompt="Input: focus, validation, error")
|
|
295
|
+
Task(subagent_type="designer", model="sonnet",
|
|
296
|
+
prompt="Modal: overlay, animation, 접근성")
|
|
297
|
+
Task(subagent_type="designer", model="sonnet",
|
|
298
|
+
prompt="Dropdown: 키보드 네비게이션, 포지셔닝")
|
|
299
|
+
|
|
300
|
+
// Phase 3: 문서화 (병렬)
|
|
301
|
+
Task(subagent_type="document-writer", model="haiku",
|
|
302
|
+
prompt="Button 문서: 사용법, props, 예시")
|
|
303
|
+
Task(subagent_type="document-writer", model="haiku",
|
|
304
|
+
prompt="Card 문서: 레이아웃 패턴, 변형")
|
|
305
|
+
Task(subagent_type="document-writer", model="haiku",
|
|
306
|
+
prompt="Input 문서: 검증, 에러 처리")
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
**효과:** 5개 컴포넌트 + 3개 문서 동시 작업
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
### Critical Rules (병렬 실행 시)
|
|
314
|
+
|
|
315
|
+
**DO:**
|
|
316
|
+
- 환경 탐색 우선 (Vite/Next.js, globals.css)
|
|
317
|
+
- Figma MCP로 정확한 값 추출 (opus)
|
|
318
|
+
- 독립 컴포넌트 병렬 구현 (여러 designer)
|
|
319
|
+
- 에셋 처리 별도 에이전트 (implementation-executor)
|
|
320
|
+
- 반응형 브레이크포인트별 병렬 (3개 designer)
|
|
321
|
+
- 픽셀 정확도 검증 필수 (code-reviewer)
|
|
322
|
+
|
|
323
|
+
**DON'T:**
|
|
324
|
+
- 순차 실행 (독립 작업인데 대기)
|
|
325
|
+
- 근사치 사용 (`gap-4` 대신 `gap-[18px]`)
|
|
326
|
+
- AI 생성 에셋 (Figma 실제 파일만)
|
|
327
|
+
- 반응형 생략
|
|
328
|
+
- 기존 토큰 덮어쓰기
|
|
329
|
+
|
|
330
|
+
</parallel_agent_execution>
|
|
331
|
+
|
|
332
|
+
---
|
|
333
|
+
|
|
28
334
|
<prerequisites>
|
|
29
335
|
|
|
30
336
|
## 사전 준비
|
|
@@ -6,7 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
<agents_reference>
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
다중 에이전트 구조:
|
|
10
|
+
- 에이전트 목록: @../../instructions/multi-agent/agent-roster.md
|
|
11
|
+
- 조정 가이드: @../../instructions/multi-agent/coordination-guide.md
|
|
12
|
+
- 실행 패턴: @../../instructions/multi-agent/execution-patterns.md
|
|
10
13
|
|
|
11
14
|
</agents_reference>
|
|
12
15
|
|