@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
@@ -0,0 +1,350 @@
1
+ # Instructions
2
+
3
+ 공통 지침 및 패턴 모음
4
+
5
+ ## 카테고리
6
+
7
+ | 카테고리 | 설명 | 파일 수 |
8
+ |---------|------|---------|
9
+ | [agent-patterns/](./agent-patterns/) | 에이전트 활용 및 협업 | 4 |
10
+ | [workflow-patterns/](./workflow-patterns/) | 작업 흐름 및 사고 | 3 |
11
+ | [validation/](./validation/) | 검증 및 품질 기준 | 3 |
12
+ | [tech-stack/](./tech-stack/) | 기술 스택 패턴 | 3 |
13
+ | [multi-agent/](./multi-agent/) | 멀티 에이전트 조정 및 최적화 | 4 |
14
+
15
+ **총 17개 공통 문서**
16
+
17
+ ---
18
+
19
+ ## 에이전트 패턴 (4개)
20
+
21
+ ### parallel-execution.md
22
+ **목적**: 병렬/순차 실행 판단 기준
23
+
24
+ - 병렬화 가능 조건 (4가지)
25
+ - 병렬화 금지 조건 (4가지)
26
+ - 성능 비교 데이터
27
+ - 체크리스트
28
+
29
+ ```markdown
30
+ @.claude/instructions/agent-patterns/parallel-execution.md
31
+ ```
32
+
33
+ ### read-parallelization.md
34
+ **목적**: 파일 읽기 최적화
35
+
36
+ - 3개 이상 파일 병렬 읽기
37
+ - 실전 시나리오 3가지
38
+ - 성능 개선율 표
39
+ - 주의사항
40
+
41
+ ```markdown
42
+ @.claude/instructions/agent-patterns/read-parallelization.md
43
+ ```
44
+
45
+ ### model-routing.md
46
+ **목적**: 모델 선택 기준 및 비용 최적화
47
+
48
+ - Haiku/Sonnet/Opus 사용 케이스
49
+ - 복잡도 판단 플로우차트
50
+ - 에이전트별 권장 모델
51
+ - 비용 절감 전략 (40-60%)
52
+
53
+ ```markdown
54
+ @.claude/instructions/agent-patterns/model-routing.md
55
+ ```
56
+
57
+ ### agent-coordination.md
58
+ **목적**: 다중 에이전트 협업 전략
59
+
60
+ - 에이전트 역할 분류 (4 Tier)
61
+ - 협업 패턴 4가지
62
+ - 병렬 vs 순차 결정 기준
63
+ - 실전 시나리오 3가지
64
+
65
+ ```markdown
66
+ @.claude/instructions/agent-patterns/agent-coordination.md
67
+ ```
68
+
69
+ ---
70
+
71
+ ## 작업 흐름 패턴 (3개)
72
+
73
+ ### sequential-thinking.md
74
+ **목적**: 구조화된 사고 프로세스
75
+
76
+ - 복잡도별 단계 수 (LOW/MEDIUM/HIGH)
77
+ - 필수 파라미터 4개 + 선택 4개
78
+ - 동적 조정, 수정, 분기 기능
79
+ - 금지 표현 및 올바른 표현
80
+
81
+ ```markdown
82
+ @.claude/instructions/workflow-patterns/sequential-thinking.md
83
+ ```
84
+
85
+ ### phase-based-workflow.md
86
+ **목적**: 4단계 검증 프로세스
87
+
88
+ - Phase 1: 작업 실행 (Sequential Thinking, 병렬 구현)
89
+ - Phase 2: 자동 검증 (/pre-deploy, TODO)
90
+ - Phase 3: Planner 검증 (승인 필수)
91
+ - Phase 4: 완료 (문서 업데이트)
92
+
93
+ ```markdown
94
+ @.claude/instructions/workflow-patterns/phase-based-workflow.md
95
+ ```
96
+
97
+ ### todowrite-pattern.md
98
+ **목적**: TodoWrite 패턴
99
+
100
+ ```markdown
101
+ @.claude/instructions/workflow-patterns/todowrite-pattern.md
102
+ ```
103
+
104
+ ---
105
+
106
+ ## 검증 및 품질 기준 (3개)
107
+
108
+ ### forbidden-patterns.md
109
+ **목적**: 반복되는 실수 방지 (16가지 금지 패턴)
110
+
111
+ - 추측성 표현 금지 (7가지)
112
+ - 코드 작성 금지 (4가지): any, @ts-ignore, 테스트 삭제, 에러 무시
113
+ - 작업 흐름 금지 (4가지): 검증 스킵, 조기 완료, 순차 실행, 에이전트 미활용
114
+ - Git, DB, API 금지 사항 (6가지)
115
+
116
+ ```markdown
117
+ @.claude/instructions/validation/forbidden-patterns.md
118
+ ```
119
+
120
+ ### required-behaviors.md
121
+ **목적**: 필수 행동 18가지
122
+
123
+ - 작업 시작: Sequential Thinking, Read, 병렬 읽기
124
+ - 코드 작성: UTF-8, 한글 주석, TypeScript strict
125
+ - API: Server Function 패턴, TanStack Query
126
+ - 검증: 4-Phase, /pre-deploy, Planner
127
+ - 문서화: Ralph 세션, 더블 메서드
128
+ - Git: git-operator, 커밋 형식
129
+ - 에이전트: 위임 기준, 모델 선택
130
+
131
+ ```markdown
132
+ @.claude/instructions/validation/required-behaviors.md
133
+ ```
134
+
135
+ ### verification-checklist.md
136
+ **목적**: Phase별 검증 절차
137
+
138
+ - Phase 1 검증: 요구사항 100%, TASKS.md, 병렬 실행
139
+ - Phase 2 검증: typecheck, lint, build, TODO=0
140
+ - Phase 3 검증: Planner 호출 및 응답
141
+ - Phase 4 검증: 최종 문서, <promise> 출력
142
+
143
+ ```markdown
144
+ @.claude/instructions/validation/verification-checklist.md
145
+ ```
146
+
147
+ ---
148
+
149
+ ## 멀티 에이전트 조정 (4개)
150
+
151
+ ### coordination-guide.md
152
+ **목적**: 에이전트 협업 전략 및 컨텍스트 보존
153
+
154
+ - 핵심 원칙 (PARALLEL, BACKGROUND, DELEGATE)
155
+ - 모델 라우팅 (haiku/sonnet/opus)
156
+ - 컨텍스트 보존 (4가지 전략)
157
+ - 에러 처리 (6가지 패턴)
158
+ - Best Practices
159
+
160
+ ```markdown
161
+ @.claude/instructions/multi-agent/coordination-guide.md
162
+ ```
163
+
164
+ ### agent-roster.md
165
+ **목적**: 14개 에이전트 카탈로그
166
+
167
+ - 에이전트 분류 (7개 카테고리)
168
+ - 모델 추천 및 사용 사례
169
+ - 병렬 실행 호환성
170
+ - 조정 패턴 및 워크플로우
171
+
172
+ ```markdown
173
+ @.claude/instructions/multi-agent/agent-roster.md
174
+ ```
175
+
176
+ ### execution-patterns.md
177
+ **목적**: 병렬 실행 패턴 (5개 + 3개)
178
+
179
+ - 5개 실행 패턴 (병렬, Fan-Out Fan-In, 계층적 위임, 배치, 백그라운드)
180
+ - 3개 조정 패턴 (서브에이전트, 순차 파이프라인, 라우터)
181
+ - 4가지 실전 예제
182
+ - Best Practices
183
+
184
+ ```markdown
185
+ @.claude/instructions/multi-agent/execution-patterns.md
186
+ ```
187
+
188
+ ### performance-optimization.md
189
+ **목적**: 성능 최적화 및 모니터링
190
+
191
+ - 최적화 체크리스트 (7개 항목)
192
+ - 성능 지표 (대기 시간 80% 감소, 토큰 70-90% 절감)
193
+ - 안티패턴 (5가지)
194
+ - 모니터링 전략
195
+ - 참고 자료 (15개 링크)
196
+
197
+ ```markdown
198
+ @.claude/instructions/multi-agent/performance-optimization.md
199
+ ```
200
+
201
+ ---
202
+
203
+ ## 기술 스택 패턴 (3개)
204
+
205
+ ### tanstack-patterns.md
206
+ **목적**: TanStack Start/Router/Query 패턴
207
+
208
+ - Server Functions (GET/POST + inputValidator/middleware)
209
+ - Route 구조 (file-based routing)
210
+ - useQuery/useMutation (TanStack Query)
211
+ - 낙관적 업데이트 (Optimistic Updates)
212
+ - 통합 예시 (전체 흐름)
213
+
214
+ ```markdown
215
+ @.claude/instructions/tech-stack/tanstack-patterns.md
216
+ ```
217
+
218
+ ### design-standards.md
219
+ **목적**: UI/UX 및 접근성
220
+
221
+ - WCAG 2.2 AA 준수 (색상 대비 4.5:1, 키보드 네비게이션)
222
+ - 60-30-10 색상 규칙
223
+ - 8px 그리드 간격
224
+ - 2-3개 폰트 시스템
225
+ - Safe Area (iOS/Android)
226
+
227
+ ```markdown
228
+ @.claude/instructions/tech-stack/design-standards.md
229
+ ```
230
+
231
+ ### prisma-patterns.md
232
+ **목적**: Prisma 7.x 패턴
233
+
234
+ - 클라이언트 초기화 (globalThis 패턴)
235
+ - Schema 구조 (Single/Multi-File)
236
+ - CRUD Operations
237
+ - Relations (1:N, N:N)
238
+ - Transactions
239
+ - N+1 Problem 방지
240
+ - Index 최적화
241
+ - 자동 실행 금지
242
+
243
+ ```markdown
244
+ @.claude/instructions/tech-stack/prisma-patterns.md
245
+ ```
246
+
247
+ ---
248
+
249
+ ## 사용 예시
250
+
251
+ ### Agents에서 참조
252
+
253
+ ```markdown
254
+ ---
255
+ name: my-agent
256
+ description: 예시 에이전트
257
+ ---
258
+
259
+ @../../instructions/agent-patterns/parallel-execution.md
260
+ @../../instructions/agent-patterns/model-routing.md
261
+ @../../instructions/workflow-patterns/sequential-thinking.md
262
+ @../../instructions/validation/forbidden-patterns.md
263
+
264
+ # My Agent
265
+
266
+ ...
267
+ ```
268
+
269
+ ### Skills에서 참조
270
+
271
+ ```markdown
272
+ ---
273
+ name: my-skill
274
+ description: 예시 스킬
275
+ ---
276
+
277
+ @../../instructions/workflow-patterns/phase-based-workflow.md
278
+ @../../instructions/validation/verification-checklist.md
279
+
280
+ # My Skill
281
+
282
+ ...
283
+ ```
284
+
285
+ ### Commands에서 참조
286
+
287
+ ```markdown
288
+ ---
289
+ description: 예시 커맨드
290
+ ---
291
+
292
+ @../instructions/agent-patterns/parallel-execution.md
293
+ @../instructions/validation/required-behaviors.md
294
+
295
+ # My Command
296
+
297
+ ...
298
+ ```
299
+
300
+ ---
301
+
302
+ ## 장점
303
+
304
+ - **중복 제거**: 공통 패턴을 한 곳에서 관리
305
+ - **일관성**: 모든 에이전트/스킬에서 동일한 표준 적용
306
+ - **유지보수**: 한 번 수정으로 전체 반영
307
+ - **문서 간결**: @imports로 간결화된 문서 구조
308
+
309
+ ---
310
+
311
+ ## 빠른 참조
312
+
313
+ | 상황 | 참조 문서 |
314
+ |------|---------|
315
+ | 작업 병렬화 판단 | parallel-execution.md |
316
+ | 파일 읽기 최적화 | read-parallelization.md |
317
+ | 모델 선택 | model-routing.md |
318
+ | 에이전트 협업 | agent-coordination.md |
319
+ | **멀티 에이전트 조정** | **multi-agent/coordination-guide.md** |
320
+ | **에이전트 선택** | **multi-agent/agent-roster.md** |
321
+ | **병렬 실행 패턴** | **multi-agent/execution-patterns.md** |
322
+ | **성능 최적화** | **multi-agent/performance-optimization.md** |
323
+ | 복잡한 작업 시작 | sequential-thinking.md |
324
+ | 작업 4단계 프로세스 | phase-based-workflow.md |
325
+ | 실수 방지 | forbidden-patterns.md |
326
+ | 필수 규칙 | required-behaviors.md |
327
+ | 검증 절차 | verification-checklist.md |
328
+ | TanStack 구현 | tanstack-patterns.md |
329
+ | UI/UX 구현 | design-standards.md |
330
+ | DB 스키마 | prisma-patterns.md |
331
+
332
+ ---
333
+
334
+ ## 컨텍스트 로딩 전략
335
+
336
+ 모든 에이전트는 시작 시 다음을 참조:
337
+
338
+ ```markdown
339
+ # Core Instructions (필수)
340
+ @instructions/agent-patterns/parallel-execution.md
341
+ @instructions/workflow-patterns/sequential-thinking.md
342
+ @instructions/validation/forbidden-patterns.md
343
+ @instructions/validation/required-behaviors.md
344
+
345
+ # Task-specific Instructions (선택)
346
+ @instructions/workflow-patterns/phase-based-workflow.md
347
+ @instructions/validation/verification-checklist.md
348
+ ```
349
+
350
+ **예상 토큰**: 5,000-8,000 (컨텍스트 압축됨)