@kood/claude-code 0.5.1 → 0.5.4

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.
Files changed (88) hide show
  1. package/dist/index.js +604 -261
  2. package/package.json +1 -1
  3. package/templates/.claude/agents/analyst.md +6 -14
  4. package/templates/.claude/agents/architect.md +6 -14
  5. package/templates/.claude/agents/code-reviewer.md +8 -14
  6. package/templates/.claude/agents/dependency-manager.md +8 -14
  7. package/templates/.claude/agents/deployment-validator.md +8 -14
  8. package/templates/.claude/agents/designer.md +8 -0
  9. package/templates/.claude/agents/document-writer.md +75 -316
  10. package/templates/.claude/agents/explore.md +8 -3
  11. package/templates/.claude/agents/git-operator.md +63 -17
  12. package/templates/.claude/agents/implementation-executor.md +14 -37
  13. package/templates/.claude/agents/ko-to-en-translator.md +8 -13
  14. package/templates/.claude/agents/lint-fixer.md +8 -172
  15. package/templates/.claude/agents/planner.md +6 -14
  16. package/templates/.claude/agents/refactor-advisor.md +8 -14
  17. package/templates/.claude/commands/git-all.md +3 -167
  18. package/templates/.claude/commands/git-session.md +3 -71
  19. package/templates/.claude/commands/lint-fix.md +119 -82
  20. package/templates/.claude/commands/lint-init.md +2 -54
  21. package/templates/.claude/commands/pre-deploy.md +143 -82
  22. package/templates/.claude/commands/version-update.md +171 -66
  23. package/templates/.claude/instructions/agent-patterns/agent-coordination.md +208 -0
  24. package/templates/.claude/instructions/agent-patterns/index.md +264 -0
  25. package/templates/.claude/instructions/agent-patterns/model-routing.md +167 -0
  26. package/templates/.claude/instructions/agent-patterns/parallel-execution.md +91 -0
  27. package/templates/.claude/instructions/agent-patterns/read-parallelization.md +106 -0
  28. package/templates/.claude/instructions/document-templates/ralph-templates.md +71 -0
  29. package/templates/.claude/instructions/index.md +350 -0
  30. package/templates/.claude/instructions/multi-agent/agent-roster.md +811 -0
  31. package/templates/.claude/{PARALLEL_AGENTS.md → instructions/multi-agent/coordination-guide.md} +27 -336
  32. package/templates/.claude/instructions/{parallel-agent-execution.md → multi-agent/execution-patterns.md} +127 -438
  33. package/templates/.claude/instructions/multi-agent/index.md +282 -0
  34. package/templates/.claude/instructions/multi-agent/performance-optimization.md +456 -0
  35. package/templates/.claude/instructions/tech-stack/design-standards.md +282 -0
  36. package/templates/.claude/instructions/tech-stack/index.md +70 -0
  37. package/templates/.claude/instructions/tech-stack/prisma-patterns.md +352 -0
  38. package/templates/.claude/instructions/tech-stack/tanstack-patterns.md +275 -0
  39. package/templates/.claude/instructions/validation/forbidden-patterns.md +281 -0
  40. package/templates/.claude/instructions/validation/index.md +32 -0
  41. package/templates/.claude/instructions/validation/required-behaviors.md +331 -0
  42. package/templates/.claude/instructions/validation/verification-checklist.md +318 -0
  43. package/templates/.claude/instructions/workflow-patterns/index.md +18 -0
  44. package/templates/.claude/instructions/workflow-patterns/phase-based-workflow.md +250 -0
  45. package/templates/.claude/instructions/workflow-patterns/sequential-thinking.md +217 -0
  46. package/templates/.claude/instructions/workflow-patterns/todowrite-pattern.md +215 -0
  47. package/templates/.claude/skills/bug-fix/SKILL.md +972 -0
  48. package/templates/.claude/skills/docs-creator/AGENTS.md +54 -173
  49. package/templates/.claude/skills/docs-creator/SKILL.md +146 -254
  50. package/templates/.claude/skills/docs-refactor/AGENTS.md +61 -187
  51. package/templates/.claude/skills/docs-refactor/SKILL.md +84 -315
  52. package/templates/.claude/skills/execute/SKILL.md +454 -154
  53. package/templates/.claude/skills/figma-to-code/AGENTS.md +4 -1
  54. package/templates/.claude/skills/figma-to-code/SKILL.md +306 -0
  55. package/templates/.claude/skills/global-uiux-design/AGENTS.md +4 -1
  56. package/templates/.claude/skills/global-uiux-design/SKILL.md +455 -125
  57. package/templates/.claude/skills/korea-uiux-design/AGENTS.md +4 -1
  58. package/templates/.claude/skills/korea-uiux-design/SKILL.md +461 -116
  59. package/templates/.claude/skills/nextjs-react-best-practices/SKILL.md +177 -0
  60. package/templates/.claude/skills/plan/SKILL.md +1157 -87
  61. package/templates/.claude/skills/prd/SKILL.md +367 -66
  62. package/templates/.claude/skills/ralph/AGENTS.md +4 -1
  63. package/templates/.claude/skills/ralph/SKILL.md +100 -14
  64. package/templates/.claude/skills/refactor/AGENTS.md +269 -0
  65. package/templates/.claude/skills/refactor/SKILL.md +1572 -0
  66. package/templates/.claude/skills/stitch-design/README.md +34 -0
  67. package/templates/.claude/skills/stitch-design/SKILL.md +213 -0
  68. package/templates/.claude/skills/stitch-design/examples/DESIGN.md +154 -0
  69. package/templates/.claude/skills/stitch-loop/README.md +54 -0
  70. package/templates/.claude/skills/stitch-loop/SKILL.md +316 -0
  71. package/templates/.claude/skills/stitch-loop/examples/SITE.md +73 -0
  72. package/templates/.claude/skills/stitch-loop/examples/next-prompt.md +25 -0
  73. package/templates/.claude/skills/stitch-loop/resources/baton-schema.md +61 -0
  74. package/templates/.claude/skills/stitch-loop/resources/site-template.md +104 -0
  75. package/templates/.claude/skills/stitch-react/README.md +36 -0
  76. package/templates/.claude/skills/stitch-react/SKILL.md +323 -0
  77. package/templates/.claude/skills/stitch-react/examples/gold-standard-card.tsx +88 -0
  78. package/templates/.claude/skills/stitch-react/package-lock.json +231 -0
  79. package/templates/.claude/skills/stitch-react/package.json +16 -0
  80. package/templates/.claude/skills/stitch-react/resources/architecture-checklist.md +15 -0
  81. package/templates/.claude/skills/stitch-react/resources/component-template.tsx +37 -0
  82. package/templates/.claude/skills/stitch-react/resources/stitch-api-reference.md +14 -0
  83. package/templates/.claude/skills/stitch-react/resources/style-guide.json +24 -0
  84. package/templates/.claude/skills/stitch-react/scripts/fetch-stitch.sh +30 -0
  85. package/templates/.claude/skills/stitch-react/scripts/validate.js +77 -0
  86. package/templates/.claude/skills/tanstack-start-react-best-practices/SKILL.md +149 -0
  87. package/templates/.claude/commands/bug-fix.md +0 -510
  88. package/templates/.claude/commands/refactor.md +0 -788
@@ -6,7 +6,10 @@ Figma 디자인을 코드로 변환할 때 에이전트 활용 가이드.
6
6
 
7
7
  <agents_reference>
8
8
 
9
- 전체 에이전트 조정 가이드: @../../PARALLEL_AGENTS.md
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
- 전체 에이전트 조정 가이드: @../../PARALLEL_AGENTS.md
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