@kood/claude-code 0.7.3 → 0.7.6
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 +1 -1
- package/package.json +1 -1
- package/templates/.claude/agents/codex.md +333 -0
- package/templates/.claude/instructions/agent-patterns/agent-teams-usage.md +152 -278
- package/templates/.claude/skills/codex/SKILL.md +563 -0
- package/templates/.claude/skills/teams/SKILL.md +575 -0
- package/templates/.claude/skills/teams/references/fallback-strategy.md +288 -0
- package/templates/.claude/skills/teams/references/patterns.md +499 -0
- package/templates/hono/docs/architecture.md +759 -98
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
# Team Patterns Reference
|
|
2
|
+
|
|
3
|
+
> 4가지 팀 패턴 상세 정의
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<pattern_selection>
|
|
8
|
+
|
|
9
|
+
## 패턴 선택 매트릭스
|
|
10
|
+
|
|
11
|
+
| 키워드 | 패턴 | 팀원 수 | 실행 방식 |
|
|
12
|
+
|--------|------|---------|----------|
|
|
13
|
+
| 리뷰, 검토, PR, 감사, 코드리뷰 | 병렬-리뷰 | 3명 | 병렬 |
|
|
14
|
+
| 구현, 개발, 기능, 추가, 만들어 | 파이프라인 | 4명 | 순차 |
|
|
15
|
+
| API, 엔드포인트, 풀스택, 프론트백 | 크로스-레이어 | 3명 | 병렬 |
|
|
16
|
+
| 버그, 원인, 분석, 조사, 디버깅 | 가설-검증 | 4명 | 병렬 |
|
|
17
|
+
|
|
18
|
+
### 복잡도별 팀 규모
|
|
19
|
+
|
|
20
|
+
| 복잡도 | 기본 팀원 | 추가 옵션 |
|
|
21
|
+
|--------|----------|----------|
|
|
22
|
+
| LOW | 2명 | - |
|
|
23
|
+
| MEDIUM | 3-4명 | document-writer |
|
|
24
|
+
| HIGH | 4-5명 | architect, security |
|
|
25
|
+
|
|
26
|
+
</pattern_selection>
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
<pattern_parallel_review>
|
|
31
|
+
|
|
32
|
+
## 패턴 1: 병렬-리뷰
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
변경사항
|
|
36
|
+
│
|
|
37
|
+
├──► security-reviewer (opus) → 보안 취약점
|
|
38
|
+
├──► code-reviewer (sonnet) → 코드 품질
|
|
39
|
+
└──► qa-tester (sonnet) → 테스트 커버리지
|
|
40
|
+
│
|
|
41
|
+
▼
|
|
42
|
+
Lead (종합 판정)
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### 팀 구성
|
|
46
|
+
|
|
47
|
+
| 역할 | 에이전트 | 모델 | 포커스 |
|
|
48
|
+
|------|---------|------|--------|
|
|
49
|
+
| 보안 | security-reviewer | opus | OWASP, 인증, 입력검증 |
|
|
50
|
+
| 품질 | code-reviewer | sonnet | 가독성, 패턴, 유지보수 |
|
|
51
|
+
| 테스트 | qa-tester | sonnet | 커버리지, 엣지케이스 |
|
|
52
|
+
|
|
53
|
+
### 실행 코드
|
|
54
|
+
|
|
55
|
+
```typescript
|
|
56
|
+
TeamCreate({
|
|
57
|
+
team_name: "team-review-" + Date.now(),
|
|
58
|
+
description: "병렬 코드 리뷰"
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
// 병렬 스폰
|
|
62
|
+
Task({
|
|
63
|
+
subagent_type: "security-reviewer",
|
|
64
|
+
team_name: teamName,
|
|
65
|
+
name: "security",
|
|
66
|
+
model: "opus",
|
|
67
|
+
prompt: `보안 관점 코드 리뷰:
|
|
68
|
+
- OWASP Top 10 취약점
|
|
69
|
+
- 인증/인가 로직
|
|
70
|
+
- 입력 검증 및 출력 인코딩
|
|
71
|
+
- 민감 정보 노출
|
|
72
|
+
|
|
73
|
+
대상: ${targetFiles}`
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
Task({
|
|
77
|
+
subagent_type: "code-reviewer",
|
|
78
|
+
team_name: teamName,
|
|
79
|
+
name: "quality",
|
|
80
|
+
model: "sonnet",
|
|
81
|
+
prompt: `코드 품질 리뷰:
|
|
82
|
+
- 가독성 및 명명 규칙
|
|
83
|
+
- 패턴 준수 여부
|
|
84
|
+
- 중복 코드
|
|
85
|
+
- 복잡도
|
|
86
|
+
|
|
87
|
+
대상: ${targetFiles}`
|
|
88
|
+
})
|
|
89
|
+
|
|
90
|
+
Task({
|
|
91
|
+
subagent_type: "qa-tester",
|
|
92
|
+
team_name: teamName,
|
|
93
|
+
name: "testing",
|
|
94
|
+
model: "sonnet",
|
|
95
|
+
prompt: `테스트 관점 리뷰:
|
|
96
|
+
- 테스트 커버리지
|
|
97
|
+
- 엣지 케이스 누락
|
|
98
|
+
- 테스트 품질
|
|
99
|
+
|
|
100
|
+
대상: ${targetFiles}`
|
|
101
|
+
})
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### 결과 종합 템플릿
|
|
105
|
+
|
|
106
|
+
```markdown
|
|
107
|
+
## 리뷰 종합
|
|
108
|
+
|
|
109
|
+
### 보안 (security)
|
|
110
|
+
- [보안 이슈 요약]
|
|
111
|
+
|
|
112
|
+
### 품질 (quality)
|
|
113
|
+
- [품질 이슈 요약]
|
|
114
|
+
|
|
115
|
+
### 테스트 (testing)
|
|
116
|
+
- [테스트 이슈 요약]
|
|
117
|
+
|
|
118
|
+
### 권장사항
|
|
119
|
+
1. [우선순위 높은 수정]
|
|
120
|
+
2. [권장 개선]
|
|
121
|
+
3. [선택적 개선]
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
</pattern_parallel_review>
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
<pattern_pipeline>
|
|
129
|
+
|
|
130
|
+
## 패턴 2: 파이프라인
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
researcher → planner → implementer → tester
|
|
134
|
+
│ │ │ │
|
|
135
|
+
[Task 1] → [Task 2] → [Task 3] → [Task 4]
|
|
136
|
+
blockedBy blockedBy blockedBy
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### 팀 구성
|
|
140
|
+
|
|
141
|
+
| 순서 | 역할 | 에이전트 | 모델 | 산출물 |
|
|
142
|
+
|------|------|---------|------|--------|
|
|
143
|
+
| 1 | 조사 | researcher | sonnet | 조사 결과 |
|
|
144
|
+
| 2 | 계획 | planner | opus | 구현 계획 |
|
|
145
|
+
| 3 | 구현 | implementation-executor | sonnet | 코드 |
|
|
146
|
+
| 4 | 테스트 | tdd-guide | sonnet | 테스트 |
|
|
147
|
+
|
|
148
|
+
### 실행 코드
|
|
149
|
+
|
|
150
|
+
```typescript
|
|
151
|
+
TeamCreate({
|
|
152
|
+
team_name: "team-pipeline-" + Date.now(),
|
|
153
|
+
description: "순차 파이프라인"
|
|
154
|
+
})
|
|
155
|
+
|
|
156
|
+
// Task 생성 (의존성 포함)
|
|
157
|
+
TaskCreate({
|
|
158
|
+
subject: "조사",
|
|
159
|
+
description: "요구사항 및 기존 코드 분석",
|
|
160
|
+
activeForm: "조사 중"
|
|
161
|
+
})
|
|
162
|
+
TaskCreate({
|
|
163
|
+
subject: "계획",
|
|
164
|
+
description: "구현 계획 수립",
|
|
165
|
+
activeForm: "계획 수립 중",
|
|
166
|
+
blockedBy: ["조사"]
|
|
167
|
+
})
|
|
168
|
+
TaskCreate({
|
|
169
|
+
subject: "구현",
|
|
170
|
+
description: "코드 구현",
|
|
171
|
+
activeForm: "구현 중",
|
|
172
|
+
blockedBy: ["계획"]
|
|
173
|
+
})
|
|
174
|
+
TaskCreate({
|
|
175
|
+
subject: "테스트",
|
|
176
|
+
description: "테스트 작성 및 검증",
|
|
177
|
+
activeForm: "테스트 중",
|
|
178
|
+
blockedBy: ["구현"]
|
|
179
|
+
})
|
|
180
|
+
|
|
181
|
+
// 순차 스폰
|
|
182
|
+
Task({
|
|
183
|
+
subagent_type: "researcher",
|
|
184
|
+
team_name: teamName,
|
|
185
|
+
name: "researcher",
|
|
186
|
+
model: "sonnet",
|
|
187
|
+
prompt: `조사 수행:
|
|
188
|
+
- 요구사항: ${requirements}
|
|
189
|
+
- 기존 코드베이스 분석
|
|
190
|
+
- 의존성 파악
|
|
191
|
+
- 제약사항 식별
|
|
192
|
+
|
|
193
|
+
결과를 .claude/plans/에 저장`
|
|
194
|
+
})
|
|
195
|
+
|
|
196
|
+
// researcher 완료 대기 후
|
|
197
|
+
Task({
|
|
198
|
+
subagent_type: "planner",
|
|
199
|
+
team_name: teamName,
|
|
200
|
+
name: "planner",
|
|
201
|
+
model: "opus",
|
|
202
|
+
prompt: `구현 계획 수립:
|
|
203
|
+
- 조사 결과 참조: .claude/plans/...
|
|
204
|
+
- 단계별 구현 계획
|
|
205
|
+
- 파일 구조
|
|
206
|
+
- 인터페이스 설계
|
|
207
|
+
|
|
208
|
+
계획을 .claude/plans/에 저장`
|
|
209
|
+
})
|
|
210
|
+
|
|
211
|
+
// planner 완료 대기 후
|
|
212
|
+
Task({
|
|
213
|
+
subagent_type: "implementation-executor",
|
|
214
|
+
team_name: teamName,
|
|
215
|
+
name: "implementer",
|
|
216
|
+
model: "sonnet",
|
|
217
|
+
prompt: `구현 실행:
|
|
218
|
+
- 계획 참조: .claude/plans/...
|
|
219
|
+
- 코드 구현
|
|
220
|
+
- 린트/타입체크 통과`
|
|
221
|
+
})
|
|
222
|
+
|
|
223
|
+
// implementer 완료 대기 후
|
|
224
|
+
Task({
|
|
225
|
+
subagent_type: "tdd-guide",
|
|
226
|
+
team_name: teamName,
|
|
227
|
+
name: "tester",
|
|
228
|
+
model: "sonnet",
|
|
229
|
+
prompt: `테스트 작성:
|
|
230
|
+
- 구현된 코드 테스트
|
|
231
|
+
- 엣지 케이스
|
|
232
|
+
- 80%+ 커버리지`
|
|
233
|
+
})
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
### 산출물 경로
|
|
237
|
+
|
|
238
|
+
```
|
|
239
|
+
.claude/plans/
|
|
240
|
+
├── research-[timestamp].md # 조사 결과
|
|
241
|
+
├── plan-[timestamp].md # 구현 계획
|
|
242
|
+
└── implementation-notes.md # 구현 노트
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
</pattern_pipeline>
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
<pattern_cross_layer>
|
|
250
|
+
|
|
251
|
+
## 패턴 3: 크로스-레이어
|
|
252
|
+
|
|
253
|
+
```
|
|
254
|
+
┌── frontend (sonnet) ──┐
|
|
255
|
+
API Spec ─┼── backend (sonnet) ──┼─► integration (tester)
|
|
256
|
+
└── explore (haiku) ────┘
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
### 팀 구성
|
|
260
|
+
|
|
261
|
+
| 역할 | 에이전트 | 모델 | 담당 |
|
|
262
|
+
|------|---------|------|------|
|
|
263
|
+
| 프론트 | designer | sonnet | UI/UX, 컴포넌트 |
|
|
264
|
+
| 백엔드 | implementation-executor | sonnet | API, 비즈니스 로직 |
|
|
265
|
+
| 탐색 | explore | haiku | 기존 코드 분석 |
|
|
266
|
+
| 통합 | qa-tester | sonnet | E2E 테스트 |
|
|
267
|
+
|
|
268
|
+
### 실행 코드
|
|
269
|
+
|
|
270
|
+
```typescript
|
|
271
|
+
TeamCreate({
|
|
272
|
+
team_name: "team-crosslayer-" + Date.now(),
|
|
273
|
+
description: "크로스 레이어 협업"
|
|
274
|
+
})
|
|
275
|
+
|
|
276
|
+
// API Spec 작성 (Lead가 직접 또는 planner 위임)
|
|
277
|
+
const apiSpec = `
|
|
278
|
+
POST /api/users
|
|
279
|
+
- body: { name, email }
|
|
280
|
+
- response: { id, name, email, createdAt }
|
|
281
|
+
`
|
|
282
|
+
|
|
283
|
+
// 병렬 스폰
|
|
284
|
+
Task({
|
|
285
|
+
subagent_type: "explore",
|
|
286
|
+
team_name: teamName,
|
|
287
|
+
name: "explorer",
|
|
288
|
+
model: "haiku",
|
|
289
|
+
prompt: `기존 코드 분석:
|
|
290
|
+
- 유사 기능 위치
|
|
291
|
+
- 사용 패턴
|
|
292
|
+
- 공통 유틸리티
|
|
293
|
+
|
|
294
|
+
결과를 팀에 공유`
|
|
295
|
+
})
|
|
296
|
+
|
|
297
|
+
Task({
|
|
298
|
+
subagent_type: "designer",
|
|
299
|
+
team_name: teamName,
|
|
300
|
+
name: "frontend",
|
|
301
|
+
model: "sonnet",
|
|
302
|
+
prompt: `프론트엔드 구현:
|
|
303
|
+
API Spec: ${apiSpec}
|
|
304
|
+
|
|
305
|
+
- UI 컴포넌트
|
|
306
|
+
- API 호출 로직
|
|
307
|
+
- 상태 관리
|
|
308
|
+
- 에러 처리`
|
|
309
|
+
})
|
|
310
|
+
|
|
311
|
+
Task({
|
|
312
|
+
subagent_type: "implementation-executor",
|
|
313
|
+
team_name: teamName,
|
|
314
|
+
name: "backend",
|
|
315
|
+
model: "sonnet",
|
|
316
|
+
prompt: `백엔드 구현:
|
|
317
|
+
API Spec: ${apiSpec}
|
|
318
|
+
|
|
319
|
+
- API 엔드포인트
|
|
320
|
+
- 비즈니스 로직
|
|
321
|
+
- DB 스키마/쿼리
|
|
322
|
+
- 유효성 검사`
|
|
323
|
+
})
|
|
324
|
+
|
|
325
|
+
// frontend + backend 완료 후
|
|
326
|
+
Task({
|
|
327
|
+
subagent_type: "qa-tester",
|
|
328
|
+
team_name: teamName,
|
|
329
|
+
name: "integration",
|
|
330
|
+
model: "sonnet",
|
|
331
|
+
prompt: `통합 테스트:
|
|
332
|
+
- E2E 테스트 작성
|
|
333
|
+
- API 통합 검증
|
|
334
|
+
- 에러 시나리오`
|
|
335
|
+
})
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
### 파일 충돌 방지
|
|
339
|
+
|
|
340
|
+
| 영역 | 담당 | 파일 패턴 |
|
|
341
|
+
|------|------|----------|
|
|
342
|
+
| 프론트 | frontend | `src/components/**`, `src/pages/**` |
|
|
343
|
+
| 백엔드 | backend | `src/api/**`, `src/services/**` |
|
|
344
|
+
| 테스트 | integration | `tests/**` |
|
|
345
|
+
| 공유 | 협의 필요 | `src/types/**`, `src/utils/**` |
|
|
346
|
+
|
|
347
|
+
</pattern_cross_layer>
|
|
348
|
+
|
|
349
|
+
---
|
|
350
|
+
|
|
351
|
+
<pattern_hypothesis>
|
|
352
|
+
|
|
353
|
+
## 패턴 4: 가설-검증
|
|
354
|
+
|
|
355
|
+
```
|
|
356
|
+
┌── analyst-1 (opus, 보수적)
|
|
357
|
+
├── analyst-2 (opus, 혁신적)
|
|
358
|
+
Lead ┼── analyst-3 (opus, 실용적)
|
|
359
|
+
└── synthesizer (sonnet, 종합)
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
### 팀 구성
|
|
363
|
+
|
|
364
|
+
| 역할 | 에이전트 | 모델 | 관점 |
|
|
365
|
+
|------|---------|------|------|
|
|
366
|
+
| 분석가 1 | analyst | opus | 보수적 (안정성) |
|
|
367
|
+
| 분석가 2 | analyst | opus | 혁신적 (성능) |
|
|
368
|
+
| 분석가 3 | analyst | opus | 실용적 (비용) |
|
|
369
|
+
| 종합 | architect | sonnet | 종합 판단 |
|
|
370
|
+
|
|
371
|
+
### 실행 코드
|
|
372
|
+
|
|
373
|
+
```typescript
|
|
374
|
+
TeamCreate({
|
|
375
|
+
team_name: "team-hypothesis-" + Date.now(),
|
|
376
|
+
description: "경쟁적 가설 검증"
|
|
377
|
+
})
|
|
378
|
+
|
|
379
|
+
const problem = "메모리 누수 원인 조사"
|
|
380
|
+
|
|
381
|
+
// 병렬 분석
|
|
382
|
+
Task({
|
|
383
|
+
subagent_type: "analyst",
|
|
384
|
+
team_name: teamName,
|
|
385
|
+
name: "conservative",
|
|
386
|
+
model: "opus",
|
|
387
|
+
prompt: `보수적 관점 분석:
|
|
388
|
+
문제: ${problem}
|
|
389
|
+
|
|
390
|
+
- 안정성 우선
|
|
391
|
+
- 검증된 해결책
|
|
392
|
+
- 리스크 최소화
|
|
393
|
+
- 점진적 접근
|
|
394
|
+
|
|
395
|
+
가설과 근거를 제시`
|
|
396
|
+
})
|
|
397
|
+
|
|
398
|
+
Task({
|
|
399
|
+
subagent_type: "analyst",
|
|
400
|
+
team_name: teamName,
|
|
401
|
+
name: "innovative",
|
|
402
|
+
model: "opus",
|
|
403
|
+
prompt: `혁신적 관점 분석:
|
|
404
|
+
문제: ${problem}
|
|
405
|
+
|
|
406
|
+
- 성능 극대화
|
|
407
|
+
- 새로운 접근
|
|
408
|
+
- 근본적 해결
|
|
409
|
+
- 장기적 개선
|
|
410
|
+
|
|
411
|
+
가설과 근거를 제시`
|
|
412
|
+
})
|
|
413
|
+
|
|
414
|
+
Task({
|
|
415
|
+
subagent_type: "analyst",
|
|
416
|
+
team_name: teamName,
|
|
417
|
+
name: "pragmatic",
|
|
418
|
+
model: "opus",
|
|
419
|
+
prompt: `실용적 관점 분석:
|
|
420
|
+
문제: ${problem}
|
|
421
|
+
|
|
422
|
+
- 비용 효율
|
|
423
|
+
- 구현 용이성
|
|
424
|
+
- 즉시 적용 가능
|
|
425
|
+
- 현실적 제약 고려
|
|
426
|
+
|
|
427
|
+
가설과 근거를 제시`
|
|
428
|
+
})
|
|
429
|
+
|
|
430
|
+
// 분석 완료 후 종합
|
|
431
|
+
Task({
|
|
432
|
+
subagent_type: "architect",
|
|
433
|
+
team_name: teamName,
|
|
434
|
+
name: "synthesizer",
|
|
435
|
+
model: "sonnet",
|
|
436
|
+
prompt: `분석 종합:
|
|
437
|
+
- conservative 분석 결과
|
|
438
|
+
- innovative 분석 결과
|
|
439
|
+
- pragmatic 분석 결과
|
|
440
|
+
|
|
441
|
+
각 가설의 장단점 비교
|
|
442
|
+
권장안 도출
|
|
443
|
+
실행 계획 수립`
|
|
444
|
+
})
|
|
445
|
+
```
|
|
446
|
+
|
|
447
|
+
### 결과 종합 템플릿
|
|
448
|
+
|
|
449
|
+
```markdown
|
|
450
|
+
## 가설 검증 결과
|
|
451
|
+
|
|
452
|
+
### 가설 비교
|
|
453
|
+
|
|
454
|
+
| 관점 | 가설 | 장점 | 단점 | 신뢰도 |
|
|
455
|
+
|------|------|------|------|--------|
|
|
456
|
+
| 보수적 | ... | ... | ... | ⭐⭐⭐ |
|
|
457
|
+
| 혁신적 | ... | ... | ... | ⭐⭐ |
|
|
458
|
+
| 실용적 | ... | ... | ... | ⭐⭐⭐ |
|
|
459
|
+
|
|
460
|
+
### 권장안
|
|
461
|
+
[종합 분석 기반 권장안]
|
|
462
|
+
|
|
463
|
+
### 실행 계획
|
|
464
|
+
1. [단계 1]
|
|
465
|
+
2. [단계 2]
|
|
466
|
+
3. [단계 3]
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
</pattern_hypothesis>
|
|
470
|
+
|
|
471
|
+
---
|
|
472
|
+
|
|
473
|
+
<custom_pattern>
|
|
474
|
+
|
|
475
|
+
## 커스텀 패턴
|
|
476
|
+
|
|
477
|
+
`--members` 옵션으로 직접 팀원 지정:
|
|
478
|
+
|
|
479
|
+
```bash
|
|
480
|
+
/team --members=architect,security-reviewer,designer API 설계 검토
|
|
481
|
+
```
|
|
482
|
+
|
|
483
|
+
### 사용 가능 에이전트
|
|
484
|
+
|
|
485
|
+
| 에이전트 | 역할 | 권장 모델 |
|
|
486
|
+
|---------|------|----------|
|
|
487
|
+
| analyst | 분석 | opus |
|
|
488
|
+
| architect | 아키텍처 | opus |
|
|
489
|
+
| security-reviewer | 보안 | opus |
|
|
490
|
+
| code-reviewer | 코드 리뷰 | sonnet |
|
|
491
|
+
| designer | UI/UX | sonnet |
|
|
492
|
+
| implementation-executor | 구현 | sonnet |
|
|
493
|
+
| tdd-guide | 테스트 | sonnet |
|
|
494
|
+
| researcher | 조사 | sonnet |
|
|
495
|
+
| planner | 계획 | opus |
|
|
496
|
+
| explore | 탐색 | haiku |
|
|
497
|
+
| document-writer | 문서 | haiku |
|
|
498
|
+
|
|
499
|
+
</custom_pattern>
|