@kood/claude-code 0.5.1 → 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 +163 -28
  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
@@ -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
 
@@ -6,6 +6,10 @@ metadata:
6
6
  version: "1.0.0"
7
7
  ---
8
8
 
9
+ @../../instructions/workflow-patterns/sequential-thinking.md
10
+ @../../instructions/validation/forbidden-patterns.md
11
+ @../../instructions/validation/required-behaviors.md
12
+
9
13
  # Docs Creator Skill
10
14
 
11
15
  > Claude Code 문서 (CLAUDE.md, SKILL.md, COMMAND.md)를 Anthropic 가이드라인에 따라 효과적으로 작성
@@ -32,6 +36,260 @@ metadata:
32
36
 
33
37
  ---
34
38
 
39
+ <parallel_agent_execution>
40
+
41
+ ## 병렬 에이전트 실행
42
+
43
+ **목표:** 독립적인 문서 작업을 동시에 처리하여 작업 시간 최소화, 품질 향상.
44
+
45
+ ### 핵심 원칙
46
+
47
+ | 원칙 | 실행 방법 | 효과 |
48
+ |------|----------|------|
49
+ | **PARALLEL** | 단일 메시지에서 여러 에이전트 동시 호출 | 5-10배 속도 향상 |
50
+ | **DELEGATE** | 전문 에이전트에게 즉시 위임 | 품질 향상, 컨텍스트 격리 |
51
+ | **SMART MODEL** | 작업 복잡도별 모델 선택 | 비용 최적화 |
52
+
53
+ **기본 패턴:**
54
+ ```typescript
55
+ // ❌ 순차 실행 (느림)
56
+ Task(...) // 60초 대기
57
+ Task(...) // 60초 대기
58
+ // 총 120초
59
+
60
+ // ✅ 병렬 실행 (빠름) - 단일 메시지에서
61
+ Task(subagent_type="explore", model="haiku", prompt="...")
62
+ Task(subagent_type="document-writer", model="haiku", prompt="...")
63
+ // 총 60초 (가장 긴 작업 기준)
64
+ ```
65
+
66
+ ---
67
+
68
+ ### Phase별 에이전트 활용
69
+
70
+ #### Phase 1: 탐색 + 문서 정의 (병렬)
71
+
72
+ ```typescript
73
+ // 탐색: 프로젝트 구조 파악 (haiku, 빠름)
74
+ Task(subagent_type="explore", model="haiku",
75
+ prompt="프로젝트 코드베이스 구조 분석 - 주요 패턴, 라이브러리, 컨벤션 파악")
76
+
77
+ // 분석: 문서 구조 결정 (sonnet, 정확)
78
+ Task(subagent_type="analyst", model="sonnet",
79
+ prompt="CLAUDE.md 작성을 위한 핵심 규칙 추출 - forbidden, required, patterns 식별")
80
+ ```
81
+
82
+ **예상 시간:** 60초 (병렬 실행)
83
+
84
+ ---
85
+
86
+ #### Phase 2: 병렬 문서 작성
87
+
88
+ ```typescript
89
+ // 여러 문서 동시 작성 (haiku/sonnet)
90
+ Task(subagent_type="document-writer", model="haiku",
91
+ prompt=`CLAUDE.md 작성
92
+ - 프로젝트: TanStack Start
93
+ - 포함: forbidden, required, tech_stack, quick_patterns
94
+ - 참조: @docs/library/tanstack-start/index.md`)
95
+
96
+ Task(subagent_type="document-writer", model="haiku",
97
+ prompt=`Git 규칙 문서 작성
98
+ - 파일: .claude/instructions/git-rules.md
99
+ - 포함: 커밋 메시지 규칙, 브랜치 전략`)
100
+
101
+ Task(subagent_type="document-writer", model="sonnet",
102
+ prompt=`Prisma 가이드 작성
103
+ - 파일: docs/library/prisma/index.md
104
+ - 버전: 7.x 특화
105
+ - Multi-file 구조 패턴`)
106
+ ```
107
+
108
+ **예상 시간:** 60초 (3개 문서 동시 작성)
109
+
110
+ ---
111
+
112
+ #### Phase 3: 검증 (복잡한 경우)
113
+
114
+ ```typescript
115
+ // 아키텍처 문서는 Opus로 검토
116
+ Task(subagent_type="architect", model="opus",
117
+ prompt=`작성된 CLAUDE.md 검토
118
+ - XML 구조 올바름
119
+ - 예시 코드 실행 가능
120
+ - 토큰 효율성 (500줄 이하)
121
+ - 버전 명시 확인`)
122
+ ```
123
+
124
+ **적용:** 복잡한 아키텍처 문서, 보안/성능 패턴 문서만.
125
+
126
+ ---
127
+
128
+ ### 에이전트별 역할
129
+
130
+ | 에이전트 | 모델 | 문서 작업 용도 | 병렬 가능 |
131
+ |---------|------|---------------|----------|
132
+ | **explore** | haiku | 프로젝트 구조 탐색, 기존 패턴 검색 | ✅ |
133
+ | **analyst** | sonnet | 규칙 추출, 문서 구조 결정 | ✅ |
134
+ | **document-writer** | haiku/sonnet | 실제 문서 작성 (CLAUDE.md, SKILL.md) | ✅ |
135
+ | **architect** | opus | 복잡한 아키텍처 문서 검토 | ✅ |
136
+
137
+ ---
138
+
139
+ ### 실전 패턴
140
+
141
+ ### Read 도구 병렬화
142
+
143
+ **프로젝트 분석 시 파일 병렬 읽기:**
144
+
145
+ ```typescript
146
+ // ❌ 순차 읽기 (느림)
147
+ Read({ file_path: "src/file1.ts" })
148
+ // 대기...
149
+ Read({ file_path: "src/file2.ts" })
150
+
151
+ // ✅ 병렬 읽기 (빠름)
152
+ Read({ file_path: "src/file1.ts" })
153
+ Read({ file_path: "src/file2.ts" })
154
+ Read({ file_path: "src/file3.ts" })
155
+ Read({ file_path: "docs/api.md" })
156
+ ```
157
+
158
+ **복잡한 탐색은 explore 에이전트 활용:**
159
+
160
+ ```typescript
161
+ // 여러 영역 동시 탐색
162
+ Task(subagent_type="explore", model="haiku",
163
+ prompt="영역 1 파일 구조 및 패턴 분석")
164
+ Task(subagent_type="explore", model="haiku",
165
+ prompt="영역 2 의존성 및 관계 분석")
166
+ ```
167
+
168
+ ---
169
+
170
+ #### 패턴 1: 여러 문서 동시 작성
171
+
172
+ **상황:** CLAUDE.md + 3개 라이브러리 가이드 작성
173
+
174
+ ```typescript
175
+ // 단일 메시지에서 4개 작업 병렬 실행
176
+ Task(subagent_type="document-writer", model="haiku",
177
+ prompt="CLAUDE.md 작성 - 프로젝트 규칙")
178
+ Task(subagent_type="document-writer", model="haiku",
179
+ prompt="TanStack Start 가이드 작성")
180
+ Task(subagent_type="document-writer", model="haiku",
181
+ prompt="Prisma 가이드 작성")
182
+ Task(subagent_type="document-writer", model="haiku",
183
+ prompt="Zod 가이드 작성")
184
+ ```
185
+
186
+ **효과:**
187
+ - 순차 실행: 240초 (60 × 4)
188
+ - 병렬 실행: 60초
189
+ - **4배 향상**
190
+
191
+ ---
192
+
193
+ #### 패턴 2: 조사 + 작성 병렬
194
+
195
+ **상황:** 새 라이브러리 문서 작성 (버전/API 조사 필요)
196
+
197
+ ```typescript
198
+ // 탐색과 작성 동시 진행
199
+ Task(subagent_type="explore", model="haiku",
200
+ prompt="프로젝트에서 React Query 사용 패턴 조사 - 버전, 주요 패턴")
201
+
202
+ Task(subagent_type="document-writer", model="haiku",
203
+ prompt=`React Query 가이드 초안 작성
204
+ - 기본 구조만 작성 (버전은 나중에 추가)
205
+ - useQuery, useMutation 패턴
206
+ - 에러 처리`)
207
+
208
+ // 탐색 결과 확인 후 버전 정보 추가
209
+ Read(".../react-query-usage.md") // explore 결과
210
+ Edit("docs/library/react-query/index.md", ...) // 버전 정보 추가
211
+ ```
212
+
213
+ **효과:**
214
+ - 대기 시간 제거
215
+ - 초안 작성 중 조사 완료
216
+
217
+ ---
218
+
219
+ #### 패턴 3: 다중 SKILL 문서
220
+
221
+ **상황:** 5개 스킬 문서 작성
222
+
223
+ ```typescript
224
+ // 공통 조사 (1회만)
225
+ Task(subagent_type="explore", model="haiku",
226
+ prompt="프로젝트의 스킬 패턴 분석 - 기존 SKILL.md 구조")
227
+
228
+ // 병렬 작성 (5개 동시)
229
+ const skills = ["test-runner", "db-migrate", "api-generator", "ui-builder", "deploy"]
230
+ skills.forEach(skill => {
231
+ Task(subagent_type="document-writer", model="haiku",
232
+ prompt=`${skill} 스킬 문서 작성
233
+ - trigger_conditions
234
+ - workflow
235
+ - examples`)
236
+ })
237
+ ```
238
+
239
+ **효과:**
240
+ - 순차: 300초 (60 × 5)
241
+ - 병렬: 60초
242
+ - **5배 향상**
243
+
244
+ ---
245
+
246
+ ### 모델 라우팅
247
+
248
+ | 복잡도 | 모델 | 문서 유형 | 비용 | 속도 |
249
+ |--------|------|----------|------|------|
250
+ | **LOW** | haiku | 간단한 규칙 문서, 반복 패턴 | 💰 | ⚡⚡⚡ |
251
+ | **MEDIUM** | sonnet | CLAUDE.md, 라이브러리 가이드 | 💰💰 | ⚡⚡ |
252
+ | **HIGH** | opus | 아키텍처 문서, 보안/성능 패턴 | 💰💰💰 | ⚡ |
253
+
254
+ **선택 기준:**
255
+ ```typescript
256
+ // ✅ 간단한 문서 → haiku
257
+ Task(subagent_type="document-writer", model="haiku",
258
+ prompt="Git 커밋 메시지 규칙 문서")
259
+
260
+ // ✅ 일반 가이드 → sonnet
261
+ Task(subagent_type="document-writer", model="sonnet",
262
+ prompt="TanStack Start CLAUDE.md 작성")
263
+
264
+ // ✅ 복잡한 아키텍처 → opus
265
+ Task(subagent_type="architect", model="opus",
266
+ prompt="마이크로서비스 아키텍처 문서 설계 및 검토")
267
+ ```
268
+
269
+ ---
270
+
271
+ ### 체크리스트
272
+
273
+ **병렬 실행 전:**
274
+ - [ ] 독립적인 작업인가? (서로 의존성 없음)
275
+ - [ ] 3개 이상 작업인가? (2개 이하는 순차도 OK)
276
+ - [ ] 각 작업의 복잡도별 모델 선택했는가?
277
+
278
+ **실행 중:**
279
+ - [ ] 단일 메시지에서 여러 Task 호출했는가?
280
+ - [ ] explore는 haiku 사용했는가?
281
+ - [ ] document-writer는 haiku/sonnet 적절히 사용했는가?
282
+
283
+ **실행 후:**
284
+ - [ ] 모든 문서 생성 확인
285
+ - [ ] XML 구조 올바름
286
+ - [ ] 코드 예시 실행 가능
287
+ - [ ] 버전 명시 확인
288
+
289
+ </parallel_agent_execution>
290
+
291
+ ---
292
+
35
293
  <forbidden>
36
294
 
37
295
  | 분류 | 금지 사항 |
@@ -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
 
@@ -6,6 +6,10 @@ metadata:
6
6
  version: "1.0.0"
7
7
  ---
8
8
 
9
+ @../../instructions/workflow-patterns/sequential-thinking.md
10
+ @../../instructions/validation/forbidden-patterns.md
11
+ @../../instructions/validation/required-behaviors.md
12
+
9
13
  # Docs Refactor Skill
10
14
 
11
15
  > 기존 CLAUDE.md, SKILL.md, COMMAND.md 문서를 Anthropic 가이드라인에 맞게 개선
@@ -34,6 +38,147 @@ metadata:
34
38
 
35
39
  ---
36
40
 
41
+ <parallel_agent_execution>
42
+
43
+ ## 병렬 에이전트 실행 (ULTRAWORK MODE)
44
+
45
+ **목표:** 여러 문서 동시 리팩토링, 대기 시간 최소화, 처리량 극대화.
46
+
47
+ ### 기본 원칙
48
+
49
+ | 원칙 | 적용 방법 | 효과 |
50
+ |------|----------|------|
51
+ | **PARALLEL** | 독립 문서 동시 리팩토링 | 5-15배 속도 향상 |
52
+ | **DELEGATE** | 에이전트별 전문화 (분석/리팩토링/검증) | 품질 향상 |
53
+ | **SMART MODEL** | 복잡도별 모델 (haiku/sonnet/opus) | 비용 최적화 |
54
+
55
+ ---
56
+
57
+ ### Phase별 에이전트 활용
58
+
59
+ | Phase | 에이전트 | 모델 | 작업 | 병렬 |
60
+ |-------|---------|------|------|------|
61
+ | **1. 분석** | explore | haiku | 여러 문서 구조 분석 | ✅ |
62
+ | **2. 리팩토링** | document-writer | sonnet | 독립 문서 개선 | ✅ |
63
+ | **3. 검증** | analyst | sonnet | 토큰 감소 확인 | ✅ |
64
+ | **4. 리뷰** | code-reviewer | opus | 정보 손실 체크 | ✅ |
65
+
66
+ ---
67
+
68
+ ### 실전 패턴
69
+
70
+ ### Read 도구 병렬화
71
+
72
+ **프로젝트 분석 시 파일 병렬 읽기:**
73
+
74
+ ```typescript
75
+ // ❌ 순차 읽기 (느림)
76
+ Read({ file_path: "src/file1.ts" })
77
+ // 대기...
78
+ Read({ file_path: "src/file2.ts" })
79
+
80
+ // ✅ 병렬 읽기 (빠름)
81
+ Read({ file_path: "src/file1.ts" })
82
+ Read({ file_path: "src/file2.ts" })
83
+ Read({ file_path: "src/file3.ts" })
84
+ Read({ file_path: "docs/api.md" })
85
+ ```
86
+
87
+ **복잡한 탐색은 explore 에이전트 활용:**
88
+
89
+ ```typescript
90
+ // 여러 영역 동시 탐색
91
+ Task(subagent_type="explore", model="haiku",
92
+ prompt="영역 1 파일 구조 및 패턴 분석")
93
+ Task(subagent_type="explore", model="haiku",
94
+ prompt="영역 2 의존성 및 관계 분석")
95
+ ```
96
+
97
+ ---
98
+
99
+ #### Pattern 1: 독립 문서 병렬 개선
100
+
101
+ ```typescript
102
+ // 여러 SKILL.md 동시 리팩토링
103
+ Task(subagent_type="document-writer", model="sonnet",
104
+ prompt="@.claude/skills/bug-fix/SKILL.md 리팩토링 (50% 토큰 감소)")
105
+
106
+ Task(subagent_type="document-writer", model="sonnet",
107
+ prompt="@.claude/skills/refactor/SKILL.md 리팩토링 (50% 토큰 감소)")
108
+
109
+ Task(subagent_type="document-writer", model="sonnet",
110
+ prompt="@.claude/skills/feature-add/SKILL.md 리팩토링 (50% 토큰 감소)")
111
+ ```
112
+
113
+ **효과:** 순차 180초 → 병렬 60초 (3배 향상)
114
+
115
+ ---
116
+
117
+ #### Pattern 2: 분석 + 리팩토링 동시
118
+
119
+ ```typescript
120
+ // 현재 문서 리팩토링하며 다음 문서 분석
121
+ Task(subagent_type="document-writer", model="sonnet",
122
+ prompt="현재 SKILL.md 리팩토링")
123
+
124
+ Task(subagent_type="explore", model="haiku",
125
+ prompt="다음 COMMAND.md 구조 분석 및 중복 식별")
126
+ ```
127
+
128
+ ---
129
+
130
+ #### Pattern 3: 배치 처리
131
+
132
+ ```typescript
133
+ // 동일 패턴 여러 문서 (토큰 70-90% 절감)
134
+ Task(subagent_type="document-writer", model="sonnet",
135
+ prompt=`다음 CLAUDE.md 파일들 일괄 리팩토링:
136
+
137
+ 파일 목록:
138
+ - projects/project-a/CLAUDE.md
139
+ - projects/project-b/CLAUDE.md
140
+ - projects/project-c/CLAUDE.md
141
+
142
+ 공통 규칙:
143
+ 1. @imports 분리
144
+ 2. tech_stack 표 형식
145
+ 3. quick_patterns 코드만
146
+ 4. 50% 토큰 감소`)
147
+ ```
148
+
149
+ ---
150
+
151
+ ### Model Routing
152
+
153
+ | 작업 | 모델 | 이유 |
154
+ |------|------|------|
155
+ | **구조 분석** | haiku | 빠르고 저렴 |
156
+ | **리팩토링** | sonnet | 일반 품질 |
157
+ | **검증/리뷰** | opus | 정보 손실 방지 |
158
+
159
+ ---
160
+
161
+ ### 체크리스트
162
+
163
+ **병렬 실행 전:**
164
+ - [ ] 문서 독립적인가?
165
+ - [ ] 3개 이상 문서인가?
166
+ - [ ] 동일 패턴 적용 가능한가?
167
+
168
+ **실행 중:**
169
+ - [ ] 단일 메시지에서 다중 Tool 호출
170
+ - [ ] 복잡도별 모델 선택
171
+ - [ ] TaskList로 진행 상황 모니터링
172
+
173
+ **실행 후:**
174
+ - [ ] 각 문서 50% 토큰 감소 확인
175
+ - [ ] 정보 손실 없는지 검증
176
+ - [ ] XML 태그 중첩 오류 확인
177
+
178
+ </parallel_agent_execution>
179
+
180
+ ---
181
+
37
182
  <forbidden>
38
183
 
39
184
  | 분류 | 금지 사항 |