@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.
Files changed (66) hide show
  1. package/dist/index.js +179 -33
  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 +6 -14
  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/index.md +350 -0
  29. package/templates/.claude/instructions/multi-agent/agent-roster.md +811 -0
  30. package/templates/.claude/{PARALLEL_AGENTS.md → instructions/multi-agent/coordination-guide.md} +27 -336
  31. package/templates/.claude/instructions/{parallel-agent-execution.md → multi-agent/execution-patterns.md} +127 -438
  32. package/templates/.claude/instructions/multi-agent/index.md +282 -0
  33. package/templates/.claude/instructions/multi-agent/performance-optimization.md +456 -0
  34. package/templates/.claude/instructions/tech-stack/design-standards.md +282 -0
  35. package/templates/.claude/instructions/tech-stack/index.md +70 -0
  36. package/templates/.claude/instructions/tech-stack/prisma-patterns.md +352 -0
  37. package/templates/.claude/instructions/tech-stack/tanstack-patterns.md +275 -0
  38. package/templates/.claude/instructions/validation/forbidden-patterns.md +281 -0
  39. package/templates/.claude/instructions/validation/index.md +32 -0
  40. package/templates/.claude/instructions/validation/required-behaviors.md +331 -0
  41. package/templates/.claude/instructions/validation/verification-checklist.md +318 -0
  42. package/templates/.claude/instructions/workflow-patterns/index.md +18 -0
  43. package/templates/.claude/instructions/workflow-patterns/phase-based-workflow.md +250 -0
  44. package/templates/.claude/instructions/workflow-patterns/sequential-thinking.md +217 -0
  45. package/templates/.claude/instructions/workflow-patterns/todowrite-pattern.md +215 -0
  46. package/templates/.claude/skills/bug-fix/SKILL.md +972 -0
  47. package/templates/.claude/skills/docs-creator/AGENTS.md +4 -1
  48. package/templates/.claude/skills/docs-creator/SKILL.md +258 -0
  49. package/templates/.claude/skills/docs-refactor/AGENTS.md +4 -1
  50. package/templates/.claude/skills/docs-refactor/SKILL.md +145 -0
  51. package/templates/.claude/skills/execute/SKILL.md +15 -242
  52. package/templates/.claude/skills/figma-to-code/AGENTS.md +4 -1
  53. package/templates/.claude/skills/figma-to-code/SKILL.md +306 -0
  54. package/templates/.claude/skills/global-uiux-design/AGENTS.md +4 -1
  55. package/templates/.claude/skills/global-uiux-design/SKILL.md +455 -125
  56. package/templates/.claude/skills/korea-uiux-design/AGENTS.md +4 -1
  57. package/templates/.claude/skills/korea-uiux-design/SKILL.md +461 -116
  58. package/templates/.claude/skills/nextjs-react-best-practices/SKILL.md +177 -0
  59. package/templates/.claude/skills/plan/SKILL.md +1102 -98
  60. package/templates/.claude/skills/prd/SKILL.md +367 -66
  61. package/templates/.claude/skills/ralph/AGENTS.md +4 -1
  62. package/templates/.claude/skills/ralph/SKILL.md +83 -0
  63. package/templates/.claude/skills/refactor/SKILL.md +1214 -0
  64. package/templates/.claude/skills/tanstack-start-react-best-practices/SKILL.md +149 -0
  65. package/templates/.claude/commands/bug-fix.md +0 -510
  66. package/templates/.claude/commands/refactor.md +0 -788
@@ -7,6 +7,12 @@ metadata:
7
7
  version: "1.0.0"
8
8
  ---
9
9
 
10
+ @../../instructions/agent-patterns/read-parallelization.md
11
+ @../../instructions/validation/forbidden-patterns.md
12
+ @../../instructions/validation/required-behaviors.md
13
+ @../../instructions/multi-agent/coordination-guide.md
14
+ @../../instructions/multi-agent/execution-patterns.md
15
+
10
16
  # Next.js React 베스트 프랙티스
11
17
 
12
18
  Vercel에서 관리하는 React와 Next.js 애플리케이션 종합 성능 최적화 가이드. 8개 카테고리, 45개 규칙 포함. 영향도별 우선순위로 자동 리팩토링과 코드 생성 가이드 제공.
@@ -29,6 +35,177 @@ Vercel에서 관리하는 React와 Next.js 애플리케이션 종합 성능 최
29
35
 
30
36
  ---
31
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
+ | **1. 코드베이스 분석** | 기존 패턴 탐색 | explore | haiku | ✅ (여러 영역) |
68
+ | **1. 코드베이스 분석** | 성능 이슈 식별 | explore | haiku | ✅ (규칙별) |
69
+ | **2. 규칙 적용** | Waterfall 제거 | implementation-executor | sonnet | ✅ (독립 파일) |
70
+ | **2. 규칙 적용** | 번들 최적화 | implementation-executor | sonnet | ✅ (독립 파일) |
71
+ | **2. 규칙 적용** | Re-render 최적화 | implementation-executor | sonnet | ✅ (독립 파일) |
72
+ | **3. 검증** | 보안 검토 | code-reviewer | opus | ✅ (다중 관점) |
73
+ | **3. 검증** | 성능 검토 | code-reviewer | opus | ✅ (다중 관점) |
74
+ | **4. 수정** | 린트/타입 오류 | lint-fixer | sonnet | ❌ (순차) |
75
+
76
+ ### 에이전트별 역할
77
+
78
+ | 에이전트 | 모델 | 용도 | 병렬 가능 |
79
+ |---------|------|------|----------|
80
+ | **explore** | haiku | 규칙 위반 코드 탐색, 패턴 분석 | ✅ |
81
+ | **implementation-executor** | sonnet | 규칙 적용, 리팩토링 실행 | ✅ |
82
+ | **code-reviewer** | opus | 성능/보안/접근성 검토 | ✅ |
83
+ | **lint-fixer** | sonnet | 적용 후 오류 수정 | ❌ |
84
+
85
+ ### 실전 패턴
86
+
87
+ **패턴 1: 독립 파일 병렬 최적화**
88
+
89
+ ```typescript
90
+ // 목표: 여러 컴포넌트에 re-render 최적화 규칙 적용
91
+
92
+ // ❌ 순차 실행 (느림)
93
+ Edit("ComponentA.tsx", ...) // 대기...
94
+ Edit("ComponentB.tsx", ...) // 대기...
95
+ Edit("ComponentC.tsx", ...) // 대기...
96
+
97
+ // ✅ 병렬 실행 (빠름)
98
+ Task(subagent_type="implementation-executor", model="sonnet",
99
+ prompt=`ComponentA.tsx에 다음 규칙 적용:
100
+ - rerender-functional-setstate
101
+ - rerender-memo
102
+ - rerender-defer-reads`)
103
+
104
+ Task(subagent_type="implementation-executor", model="sonnet",
105
+ prompt=`ComponentB.tsx에 다음 규칙 적용:
106
+ - rerender-functional-setstate
107
+ - rerender-memo
108
+ - rerender-defer-reads`)
109
+
110
+ Task(subagent_type="implementation-executor", model="sonnet",
111
+ prompt=`ComponentC.tsx에 다음 규칙 적용:
112
+ - rerender-functional-setstate
113
+ - rerender-memo
114
+ - rerender-defer-reads`)
115
+ ```
116
+
117
+ **패턴 2: Waterfall 제거 + 번들 최적화 동시**
118
+
119
+ ```typescript
120
+ // 독립적인 카테고리 병렬 처리
121
+ Task(subagent_type="implementation-executor", model="sonnet",
122
+ prompt=`src/routes/users/ 전체에 Waterfall 제거:
123
+ - async-parallel: 독립 fetch는 Promise.all()
124
+ - async-defer-await: await를 실제 사용 지점으로`)
125
+
126
+ Task(subagent_type="implementation-executor", model="sonnet",
127
+ prompt=`src/components/ 전체에 번들 최적화:
128
+ - bundle-barrel-imports: lucide-react 직접 import
129
+ - bundle-dynamic-imports: Chart 컴포넌트 next/dynamic`)
130
+
131
+ Task(subagent_type="implementation-executor", model="sonnet",
132
+ prompt=`src/lib/ 전체에 서버 성능:
133
+ - server-cache-react: React.cache()로 중복 제거
134
+ - server-serialization: 클라이언트 데이터 최소화`)
135
+ ```
136
+
137
+ **패턴 3: 다중 관점 검증**
138
+
139
+ ```typescript
140
+ // 코드 수정 완료 후 병렬 검토
141
+ Task(subagent_type="code-reviewer", model="opus",
142
+ prompt=`성능 검토:
143
+ - Waterfall 제거 확인
144
+ - 불필요한 re-render
145
+ - N+1 쿼리`)
146
+
147
+ Task(subagent_type="code-reviewer", model="opus",
148
+ prompt=`번들 크기 검토:
149
+ - barrel import 사용 여부
150
+ - 무거운 라이브러리 dynamic import
151
+ - tree-shaking 가능 여부`)
152
+
153
+ Task(subagent_type="code-reviewer", model="opus",
154
+ prompt=`타입 안정성 검토:
155
+ - any 사용 금지
156
+ - 명시적 return type
157
+ - 타입 가드 적절성`)
158
+ ```
159
+
160
+ **패턴 4: 코드베이스 탐색 병렬**
161
+
162
+ ```typescript
163
+ // 프로젝트 초기 분석 시 여러 영역 동시 탐색
164
+ Task(subagent_type="explore", model="haiku",
165
+ prompt="Waterfall 패턴 탐색: 순차 await, Promise.all() 누락")
166
+
167
+ Task(subagent_type="explore", model="haiku",
168
+ prompt="barrel import 탐색: lucide-react, @radix-ui 등")
169
+
170
+ Task(subagent_type="explore", model="haiku",
171
+ prompt="re-render 이슈 탐색: useCallback 의존성, useMemo 누락")
172
+
173
+ Task(subagent_type="explore", model="haiku",
174
+ prompt="서버 캐싱 누락: React.cache() 미사용 중복 호출")
175
+ ```
176
+
177
+ ### Model Routing
178
+
179
+ | 복잡도 | 모델 | 작업 예시 | 비용 | 속도 |
180
+ |--------|------|----------|------|------|
181
+ | **LOW** | haiku | 패턴 탐색, 규칙 위반 검색 | 💰 | ⚡⚡⚡ |
182
+ | **MEDIUM** | sonnet | 규칙 적용, 리팩토링 실행 | 💰💰 | ⚡⚡ |
183
+ | **HIGH** | opus | 복잡한 성능 분석, 아키텍처 검토 | 💰💰💰 | ⚡ |
184
+
185
+ **모델 명시 예시:**
186
+ ```typescript
187
+ Task(subagent_type="explore", model="haiku", ...) // 빠르고 저렴
188
+ Task(subagent_type="implementation-executor", model="sonnet", ...)
189
+ Task(subagent_type="code-reviewer", model="opus", ...) // 고품질 검토
190
+ ```
191
+
192
+ ### 체크리스트
193
+
194
+ 작업 시작 전 확인:
195
+
196
+ - [ ] 독립적인 파일/컴포넌트 → 병렬 executor 실행
197
+ - [ ] 여러 카테고리 규칙 적용 → 카테고리별 병렬
198
+ - [ ] 코드베이스 탐색 필요 → 영역별 explore 병렬
199
+ - [ ] 다중 관점 검증 필요 → code-reviewer 병렬
200
+ - [ ] 복잡도별 모델 선택 (haiku/sonnet/opus)
201
+ - [ ] 10개 이상 파일 → 배치 처리 고려
202
+
203
+ **적극적으로 에이전트 활용. 혼자 하지 말 것.**
204
+
205
+ </parallel_agent_execution>
206
+
207
+ ---
208
+
32
209
  <categories>
33
210
 
34
211
  ## 카테고리별 우선순위