@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.
- package/dist/index.js +163 -28
- package/package.json +1 -1
- package/templates/.claude/agents/analyst.md +6 -14
- package/templates/.claude/agents/architect.md +6 -14
- package/templates/.claude/agents/code-reviewer.md +8 -14
- package/templates/.claude/agents/dependency-manager.md +8 -14
- package/templates/.claude/agents/deployment-validator.md +8 -14
- package/templates/.claude/agents/designer.md +8 -0
- package/templates/.claude/agents/document-writer.md +6 -14
- package/templates/.claude/agents/explore.md +8 -3
- package/templates/.claude/agents/git-operator.md +63 -17
- package/templates/.claude/agents/implementation-executor.md +14 -37
- package/templates/.claude/agents/ko-to-en-translator.md +8 -13
- package/templates/.claude/agents/lint-fixer.md +8 -172
- package/templates/.claude/agents/planner.md +6 -14
- package/templates/.claude/agents/refactor-advisor.md +8 -14
- package/templates/.claude/commands/git-all.md +3 -167
- package/templates/.claude/commands/git-session.md +3 -71
- package/templates/.claude/commands/lint-fix.md +119 -82
- package/templates/.claude/commands/lint-init.md +2 -54
- package/templates/.claude/commands/pre-deploy.md +143 -82
- package/templates/.claude/commands/version-update.md +171 -66
- package/templates/.claude/instructions/agent-patterns/agent-coordination.md +208 -0
- package/templates/.claude/instructions/agent-patterns/index.md +264 -0
- package/templates/.claude/instructions/agent-patterns/model-routing.md +167 -0
- package/templates/.claude/instructions/agent-patterns/parallel-execution.md +91 -0
- package/templates/.claude/instructions/agent-patterns/read-parallelization.md +106 -0
- package/templates/.claude/instructions/index.md +350 -0
- package/templates/.claude/instructions/multi-agent/agent-roster.md +811 -0
- package/templates/.claude/{PARALLEL_AGENTS.md → instructions/multi-agent/coordination-guide.md} +27 -336
- package/templates/.claude/instructions/{parallel-agent-execution.md → multi-agent/execution-patterns.md} +127 -438
- package/templates/.claude/instructions/multi-agent/index.md +282 -0
- package/templates/.claude/instructions/multi-agent/performance-optimization.md +456 -0
- package/templates/.claude/instructions/tech-stack/design-standards.md +282 -0
- package/templates/.claude/instructions/tech-stack/index.md +70 -0
- package/templates/.claude/instructions/tech-stack/prisma-patterns.md +352 -0
- package/templates/.claude/instructions/tech-stack/tanstack-patterns.md +275 -0
- package/templates/.claude/instructions/validation/forbidden-patterns.md +281 -0
- package/templates/.claude/instructions/validation/index.md +32 -0
- package/templates/.claude/instructions/validation/required-behaviors.md +331 -0
- package/templates/.claude/instructions/validation/verification-checklist.md +318 -0
- package/templates/.claude/instructions/workflow-patterns/index.md +18 -0
- package/templates/.claude/instructions/workflow-patterns/phase-based-workflow.md +250 -0
- package/templates/.claude/instructions/workflow-patterns/sequential-thinking.md +217 -0
- package/templates/.claude/instructions/workflow-patterns/todowrite-pattern.md +215 -0
- package/templates/.claude/skills/bug-fix/SKILL.md +972 -0
- package/templates/.claude/skills/docs-creator/AGENTS.md +4 -1
- package/templates/.claude/skills/docs-creator/SKILL.md +258 -0
- package/templates/.claude/skills/docs-refactor/AGENTS.md +4 -1
- package/templates/.claude/skills/docs-refactor/SKILL.md +145 -0
- package/templates/.claude/skills/execute/SKILL.md +15 -242
- package/templates/.claude/skills/figma-to-code/AGENTS.md +4 -1
- package/templates/.claude/skills/figma-to-code/SKILL.md +306 -0
- package/templates/.claude/skills/global-uiux-design/AGENTS.md +4 -1
- package/templates/.claude/skills/global-uiux-design/SKILL.md +455 -125
- package/templates/.claude/skills/korea-uiux-design/AGENTS.md +4 -1
- package/templates/.claude/skills/korea-uiux-design/SKILL.md +461 -116
- package/templates/.claude/skills/nextjs-react-best-practices/SKILL.md +177 -0
- package/templates/.claude/skills/plan/SKILL.md +1102 -98
- package/templates/.claude/skills/prd/SKILL.md +367 -66
- package/templates/.claude/skills/ralph/AGENTS.md +4 -1
- package/templates/.claude/skills/ralph/SKILL.md +83 -0
- package/templates/.claude/skills/refactor/SKILL.md +1214 -0
- package/templates/.claude/skills/tanstack-start-react-best-practices/SKILL.md +149 -0
- package/templates/.claude/commands/bug-fix.md +0 -510
- package/templates/.claude/commands/refactor.md +0 -788
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: prd
|
|
3
|
+
description: Product Requirements Document 생성
|
|
4
|
+
user-invocable: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
@../../instructions/workflow-patterns/sequential-thinking.md
|
|
8
|
+
@../../instructions/agent-patterns/read-parallelization.md
|
|
9
|
+
@../../instructions/validation/forbidden-patterns.md
|
|
10
|
+
@../../instructions/validation/required-behaviors.md
|
|
11
|
+
|
|
1
12
|
# PRD Skill
|
|
2
13
|
|
|
3
14
|
> Product Requirements Document 생성
|
|
@@ -23,100 +34,390 @@
|
|
|
23
34
|
|
|
24
35
|
PRD 작성 시 여러 Agent를 병렬로 실행하여 효율성 향상.
|
|
25
36
|
|
|
26
|
-
### Recommended Agents
|
|
37
|
+
### Recommended Agents & Model Routing
|
|
38
|
+
|
|
39
|
+
| Agent | 권장 모델 | 용도 | 복잡도별 모델 |
|
|
40
|
+
|-------|----------|------|--------------|
|
|
41
|
+
| **analyst** | sonnet/opus | 요구사항 분석, 문제 정의, 가정 검증 | LOW: sonnet, HIGH: opus |
|
|
42
|
+
| **planner** | opus | PRD 구조 설계, 아키텍처 검증 | 항상 opus |
|
|
43
|
+
| **document-writer** | haiku/sonnet | PRD 작성, 문서화 | 단순 문서: haiku, 복잡 PRD: sonnet |
|
|
44
|
+
| **explore** | haiku | 기존 문서/코드 조사 | 항상 haiku |
|
|
45
|
+
| **architect** | sonnet/opus | 기술 아키텍처 검토, 설계 분석 | MEDIUM: sonnet, HIGH: opus |
|
|
46
|
+
| **designer** | sonnet/opus | UI/UX 요구사항 설계 | 일반: sonnet, 복잡: opus |
|
|
47
|
+
|
|
48
|
+
### Smart Model Routing
|
|
27
49
|
|
|
28
|
-
|
|
|
29
|
-
|
|
30
|
-
|
|
|
31
|
-
|
|
|
32
|
-
|
|
|
33
|
-
|
|
50
|
+
| 복잡도 | 모델 | PRD 유형 | 기준 |
|
|
51
|
+
|--------|------|----------|------|
|
|
52
|
+
| **LOW** | haiku/sonnet | 단순 기능 PRD | CRUD, 단일 화면, 명확한 요구사항 |
|
|
53
|
+
| **MEDIUM** | sonnet | 일반 기능 PRD | 다중 화면, API 통합, 2-3개 의존성 |
|
|
54
|
+
| **HIGH** | opus | 복잡한 시스템 PRD | 신규 아키텍처, 다중 의존성, 불확실성 높음 |
|
|
55
|
+
|
|
56
|
+
**에이전트 호출 시 항상 `model` 파라미터 명시:**
|
|
57
|
+
|
|
58
|
+
```typescript
|
|
59
|
+
Task(subagent_type="analyst", model="sonnet", ...)
|
|
60
|
+
Task(subagent_type="planner", model="opus", ...)
|
|
61
|
+
Task(subagent_type="document-writer", model="haiku", ...)
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
---
|
|
34
65
|
|
|
35
66
|
### Parallel Execution Patterns
|
|
36
67
|
|
|
37
|
-
|
|
38
|
-
|------|------|----------|
|
|
39
|
-
| **조사 + 분석** | explore + analyst | 기존 구조 파악 + 요구사항 분석 |
|
|
40
|
-
| **다중 기능 PRD** | document-writer x N | 독립적인 기능마다 병렬 작성 |
|
|
41
|
-
| **분석 + 아키텍처** | analyst + architect | 요구사항 분석 + 기술 검토 동시 진행 |
|
|
68
|
+
PRD 작성 시 병렬 실행 가능한 8가지 패턴:
|
|
42
69
|
|
|
43
|
-
|
|
70
|
+
#### 패턴 1: 사용자 스토리 병렬 작성 (Persona별)
|
|
44
71
|
|
|
45
|
-
|
|
46
|
-
|--------|-------|------|
|
|
47
|
-
| **LOW** | haiku/sonnet | 단순 기능 PRD (CRUD, 단일 화면) |
|
|
48
|
-
| **MEDIUM** | sonnet | 일반 기능 PRD (다중 화면, API 통합) |
|
|
49
|
-
| **HIGH** | opus | 복잡한 시스템 PRD (신규 아키텍처, 다중 의존성) |
|
|
72
|
+
**시나리오:** 여러 Persona의 User Stories를 동시에 도출
|
|
50
73
|
|
|
51
|
-
|
|
74
|
+
```typescript
|
|
75
|
+
// Persona별로 독립적으로 분석
|
|
76
|
+
Task(subagent_type="analyst", model="sonnet",
|
|
77
|
+
prompt="Persona 1 (관리자) 사용자 스토리 도출: 권한 관리, 대시보드")
|
|
78
|
+
Task(subagent_type="analyst", model="sonnet",
|
|
79
|
+
prompt="Persona 2 (일반 사용자) 사용자 스토리 도출: 프로필, 콘텐츠 소비")
|
|
80
|
+
Task(subagent_type="analyst", model="sonnet",
|
|
81
|
+
prompt="Persona 3 (크리에이터) 사용자 스토리 도출: 콘텐츠 생성, 분석")
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
**효과:** 3개 Persona 분석을 순차 대신 병렬로 처리 → 시간 단축
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
#### 패턴 2: 기술 요구사항 동시 분석 (영역별)
|
|
52
89
|
|
|
53
|
-
|
|
90
|
+
**시나리오:** Frontend, Backend, Infrastructure, Security 요구사항 동시 도출
|
|
54
91
|
|
|
55
92
|
```typescript
|
|
56
|
-
//
|
|
57
|
-
Task(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
Task(
|
|
64
|
-
|
|
65
|
-
model: 'sonnet',
|
|
66
|
-
prompt: '소셜 로그인 추가 요구사항 분석 (Google, GitHub)'
|
|
67
|
-
})
|
|
93
|
+
// 각 영역을 독립적으로 분석
|
|
94
|
+
Task(subagent_type="analyst", model="sonnet",
|
|
95
|
+
prompt="Frontend 요구사항 분석: UI 컴포넌트, 상태 관리, 라우팅")
|
|
96
|
+
Task(subagent_type="analyst", model="sonnet",
|
|
97
|
+
prompt="Backend 요구사항 분석: API 엔드포인트, 데이터 모델, 비즈니스 로직")
|
|
98
|
+
Task(subagent_type="architect", model="sonnet",
|
|
99
|
+
prompt="Infrastructure 요구사항 분석: 배포, 스케일링, 모니터링")
|
|
100
|
+
Task(subagent_type="analyst", model="opus",
|
|
101
|
+
prompt="Security 요구사항 분석: 인증/인가, 데이터 암호화, 취약점 대응")
|
|
68
102
|
```
|
|
69
103
|
|
|
70
|
-
|
|
104
|
+
**효과:** 4개 영역을 동시에 분석 → 종합적 요구사항 빠르게 파악
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
#### 패턴 3: 다중 관점 검증 병렬 (PM/Engineer/Designer/QA)
|
|
109
|
+
|
|
110
|
+
**시나리오:** PRD 초안 작성 후 여러 관점에서 동시 검토
|
|
71
111
|
|
|
72
112
|
```typescript
|
|
73
|
-
//
|
|
74
|
-
Task(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
Task(
|
|
81
|
-
|
|
82
|
-
model: 'sonnet',
|
|
83
|
-
prompt: 'Payment 연동 PRD 작성 (결제 플로우, 환불 처리)'
|
|
84
|
-
})
|
|
113
|
+
// 역할별로 독립적으로 검증
|
|
114
|
+
Task(subagent_type="analyst", model="sonnet",
|
|
115
|
+
prompt="PM 관점 검증: 비즈니스 목표와 정렬, KPI 타당성, 우선순위")
|
|
116
|
+
Task(subagent_type="architect", model="opus",
|
|
117
|
+
prompt="Engineer 관점 검증: 기술적 실현 가능성, 복잡도, 리스크")
|
|
118
|
+
Task(subagent_type="designer", model="sonnet",
|
|
119
|
+
prompt="Designer 관점 검증: UX 플로우, 접근성, 디자인 시스템 일관성")
|
|
120
|
+
Task(subagent_type="analyst", model="sonnet",
|
|
121
|
+
prompt="QA 관점 검증: 테스트 용이성, 엣지 케이스, 회귀 리스크")
|
|
85
122
|
```
|
|
86
123
|
|
|
87
|
-
|
|
124
|
+
**효과:** 4개 관점 동시 검토 → 누락 위험 감소
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
#### 패턴 4: 경쟁사 분석 + 시장 조사 병렬
|
|
129
|
+
|
|
130
|
+
**시나리오:** 신규 제품/기능 기획 시 경쟁사 및 시장 동시 분석
|
|
88
131
|
|
|
89
132
|
```typescript
|
|
90
|
-
//
|
|
91
|
-
Task(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
Task(
|
|
98
|
-
|
|
99
|
-
model: 'sonnet',
|
|
100
|
-
prompt: '실시간 알림 기술 아키텍처 검토 (WebSocket vs SSE vs Firebase)'
|
|
101
|
-
})
|
|
133
|
+
// 경쟁사별, 시장별 동시 조사
|
|
134
|
+
Task(subagent_type="explore", model="haiku",
|
|
135
|
+
prompt="경쟁사 A 기능 조사: 핵심 기능, 가격 정책, 차별화 포인트")
|
|
136
|
+
Task(subagent_type="explore", model="haiku",
|
|
137
|
+
prompt="경쟁사 B 기능 조사: 사용자 리뷰, 주요 불만, 강점")
|
|
138
|
+
Task(subagent_type="analyst", model="sonnet",
|
|
139
|
+
prompt="시장 트렌드 분석: 최근 1년 동향, 신기술 도입 사례")
|
|
140
|
+
Task(subagent_type="analyst", model="sonnet",
|
|
141
|
+
prompt="사용자 니즈 분석: 설문조사 결과, 커뮤니티 피드백 요약")
|
|
102
142
|
```
|
|
103
143
|
|
|
104
|
-
|
|
144
|
+
**효과:** 경쟁사 2개 + 시장 조사를 병렬 처리 → 빠른 인사이트 도출
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
#### 패턴 5: Acceptance Criteria + Test Scenario 병렬 작성
|
|
149
|
+
|
|
150
|
+
**시나리오:** 기능별 AC와 테스트 시나리오를 동시에 작성
|
|
151
|
+
|
|
152
|
+
```typescript
|
|
153
|
+
// 기능별로 AC와 테스트 시나리오 병렬 작성
|
|
154
|
+
Task(subagent_type="document-writer", model="haiku",
|
|
155
|
+
prompt="기능 1: 사용자 로그인 - Acceptance Criteria 작성")
|
|
156
|
+
Task(subagent_type="document-writer", model="haiku",
|
|
157
|
+
prompt="기능 1: 사용자 로그인 - Test Scenario 작성 (Happy Path, Edge Cases)")
|
|
158
|
+
|
|
159
|
+
Task(subagent_type="document-writer", model="haiku",
|
|
160
|
+
prompt="기능 2: 결제 처리 - Acceptance Criteria 작성")
|
|
161
|
+
Task(subagent_type="document-writer", model="haiku",
|
|
162
|
+
prompt="기능 2: 결제 처리 - Test Scenario 작성")
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
**효과:** AC와 테스트 시나리오를 동시 작성 → 문서 완성도 향상
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
#### 패턴 6: 다중 기능 PRD 병렬 작성
|
|
170
|
+
|
|
171
|
+
**시나리오:** 독립적인 기능마다 별도 PRD 또는 섹션 병렬 작성
|
|
172
|
+
|
|
173
|
+
```typescript
|
|
174
|
+
// 독립적인 기능마다 PRD 작성
|
|
175
|
+
Task(subagent_type="document-writer", model="sonnet",
|
|
176
|
+
prompt="User 관리 PRD 작성 (프로필 편집, 권한 관리)")
|
|
177
|
+
Task(subagent_type="document-writer", model="sonnet",
|
|
178
|
+
prompt="Payment 연동 PRD 작성 (결제 플로우, 환불 처리)")
|
|
179
|
+
Task(subagent_type="document-writer", model="sonnet",
|
|
180
|
+
prompt="Analytics 대시보드 PRD 작성 (지표 시각화, 리포팅)")
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
**효과:** 3개 기능을 병렬 작성 → 시간 대폭 단축
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
#### 패턴 7: 조사 + 분석 + 아키텍처 병렬
|
|
188
|
+
|
|
189
|
+
**시나리오:** 기존 시스템 조사 + 요구사항 분석 + 아키텍처 검토 동시 진행
|
|
105
190
|
|
|
106
191
|
```typescript
|
|
107
|
-
// ✅ 조사 → 분석 → PRD 작성 (순차 + 병렬)
|
|
108
192
|
// 1단계: 조사 (병렬)
|
|
109
|
-
Task(
|
|
110
|
-
|
|
193
|
+
Task(subagent_type="explore", model="haiku",
|
|
194
|
+
prompt="기존 인증 구조 조사 (Better Auth, 미들웨어, 세션 관리)")
|
|
195
|
+
Task(subagent_type="explore", model="haiku",
|
|
196
|
+
prompt="기존 데이터 구조 조사 (Prisma 스키마, 관계)")
|
|
111
197
|
|
|
112
198
|
// 2단계: 분석 + 아키텍처 (병렬)
|
|
113
|
-
Task(
|
|
114
|
-
|
|
199
|
+
Task(subagent_type="analyst", model="opus",
|
|
200
|
+
prompt="신규 소셜 로그인 요구사항 분석 (Google, GitHub)")
|
|
201
|
+
Task(subagent_type="architect", model="sonnet",
|
|
202
|
+
prompt="소셜 로그인 아키텍처 검토 (OAuth 플로우, 토큰 관리)")
|
|
203
|
+
```
|
|
115
204
|
|
|
116
|
-
|
|
117
|
-
|
|
205
|
+
**효과:** 조사와 분석을 순차가 아닌 병렬로 → 빠른 의사결정
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
#### 패턴 8: 복잡한 시스템 PRD (3단계 병렬)
|
|
210
|
+
|
|
211
|
+
**시나리오:** 대규모 프로젝트에서 조사 → 분석 → 작성 단계마다 병렬 실행
|
|
212
|
+
|
|
213
|
+
```typescript
|
|
214
|
+
// 1단계: 다중 영역 조사 (병렬)
|
|
215
|
+
Task(subagent_type="explore", model="haiku", prompt="현재 데이터 구조 조사")
|
|
216
|
+
Task(subagent_type="explore", model="haiku", prompt="기존 통합 API 조사")
|
|
217
|
+
Task(subagent_type="explore", model="haiku", prompt="인프라 및 배포 환경 조사")
|
|
218
|
+
|
|
219
|
+
// 2단계: 다중 관점 분석 + 아키텍처 (병렬)
|
|
220
|
+
Task(subagent_type="analyst", model="opus", prompt="비즈니스 요구사항 분석")
|
|
221
|
+
Task(subagent_type="analyst", model="sonnet", prompt="사용자 요구사항 분석")
|
|
222
|
+
Task(subagent_type="architect", model="opus", prompt="기술 스택 및 아키텍처 검토")
|
|
223
|
+
|
|
224
|
+
// 3단계: 다중 섹션 PRD 작성 (병렬)
|
|
225
|
+
Task(subagent_type="document-writer", model="sonnet", prompt="PRD 섹션 1-5 작성")
|
|
226
|
+
Task(subagent_type="document-writer", model="sonnet", prompt="PRD 섹션 6-10 작성")
|
|
227
|
+
Task(subagent_type="document-writer", model="haiku", prompt="PRD 섹션 11-15 작성")
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
**효과:** 3단계 각각에서 병렬 처리 → 대규모 PRD도 빠르게 완성
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
### 실전 시나리오 (Model Routing 포함)
|
|
235
|
+
|
|
236
|
+
#### 시나리오 1: B2B SaaS - 팀 협업 도구 신규 기능
|
|
237
|
+
|
|
238
|
+
**요구사항:** "슬랙 연동 기능 추가 - 프로젝트 업데이트 자동 알림"
|
|
239
|
+
|
|
240
|
+
**복잡도:** MEDIUM (기존 시스템 + 외부 API 연동)
|
|
241
|
+
|
|
242
|
+
```typescript
|
|
243
|
+
// 1단계: 조사 (병렬, haiku)
|
|
244
|
+
Task(subagent_type="explore", model="haiku",
|
|
245
|
+
prompt="현재 알림 시스템 구조 조사 (DB, 트리거, 이벤트)")
|
|
246
|
+
Task(subagent_type="explore", model="haiku",
|
|
247
|
+
prompt="Slack API 문서 조사 (Webhook, OAuth, 메시지 포맷)")
|
|
248
|
+
|
|
249
|
+
// 2단계: 분석 (병렬, sonnet)
|
|
250
|
+
Task(subagent_type="analyst", model="sonnet",
|
|
251
|
+
prompt="요구사항 분석: Slack 연동 시나리오, 가정 검증, 엣지 케이스")
|
|
252
|
+
Task(subagent_type="architect", model="sonnet",
|
|
253
|
+
prompt="아키텍처 분석: Slack API 연동 패턴, 에러 핸들링, 재시도 로직")
|
|
254
|
+
|
|
255
|
+
// 3단계: PRD 작성 (sonnet)
|
|
256
|
+
Task(subagent_type="document-writer", model="sonnet",
|
|
257
|
+
prompt=`Slack 연동 PRD 작성 (15개 섹션):
|
|
258
|
+
- 비전: 팀 커뮤니케이션 통합
|
|
259
|
+
- 문제: 수동으로 Slack에 업데이트 공유
|
|
260
|
+
- 목표: 알림 자동화율 90%+
|
|
261
|
+
- 기능 요구사항: Slack 연동 설정, 자동 알림, 메시지 템플릿
|
|
262
|
+
- 기술 요구사항: Slack API, OAuth, Webhook
|
|
263
|
+
- 리스크: API Rate Limit, 네트워크 오류`)
|
|
118
264
|
```
|
|
119
265
|
|
|
266
|
+
**Model Routing 이유:**
|
|
267
|
+
- explore (haiku): 단순 조사 작업
|
|
268
|
+
- analyst/architect (sonnet): 일반적인 API 연동 분석
|
|
269
|
+
- document-writer (sonnet): MEDIUM 복잡도 PRD
|
|
270
|
+
|
|
271
|
+
---
|
|
272
|
+
|
|
273
|
+
#### 시나리오 2: 모바일 앱 - 소셜 피드 기능
|
|
274
|
+
|
|
275
|
+
**요구사항:** "Instagram 스타일 피드 + 댓글 + 좋아요 기능"
|
|
276
|
+
|
|
277
|
+
**복잡도:** HIGH (복잡한 UI/UX + 실시간 업데이트 + 성능 최적화)
|
|
278
|
+
|
|
279
|
+
```typescript
|
|
280
|
+
// 1단계: 조사 + 경쟁사 분석 (병렬)
|
|
281
|
+
Task(subagent_type="explore", model="haiku",
|
|
282
|
+
prompt="기존 콘텐츠 구조 조사 (Post, User, Media 모델)")
|
|
283
|
+
Task(subagent_type="explore", model="haiku",
|
|
284
|
+
prompt="Instagram 피드 UX 조사: 무한 스크롤, 이미지 로딩, 캐싱")
|
|
285
|
+
Task(subagent_type="explore", model="haiku",
|
|
286
|
+
prompt="Twitter 피드 UX 조사: 실시간 업데이트, 최적화 패턴")
|
|
287
|
+
|
|
288
|
+
// 2단계: 다중 관점 분석 (병렬, opus)
|
|
289
|
+
Task(subagent_type="analyst", model="opus",
|
|
290
|
+
prompt="사용자 요구사항 분석: Persona별 시나리오, 엣지 케이스")
|
|
291
|
+
Task(subagent_type="architect", model="opus",
|
|
292
|
+
prompt="아키텍처 분석: 피드 알고리즘, 실시간 업데이트, 캐싱 전략")
|
|
293
|
+
Task(subagent_type="designer", model="opus",
|
|
294
|
+
prompt="UX 요구사항 분석: 플로우, 접근성, 모바일 최적화")
|
|
295
|
+
|
|
296
|
+
// 3단계: 다중 섹션 PRD 작성 (병렬, sonnet)
|
|
297
|
+
Task(subagent_type="document-writer", model="sonnet",
|
|
298
|
+
prompt="소셜 피드 PRD 작성 - 비전, 문제, 목표, 범위 섹션 (1-4)")
|
|
299
|
+
Task(subagent_type="document-writer", model="sonnet",
|
|
300
|
+
prompt="소셜 피드 PRD 작성 - 페르소나, 사용자 여정 섹션 (5-6)")
|
|
301
|
+
Task(subagent_type="document-writer", model="sonnet",
|
|
302
|
+
prompt="소셜 피드 PRD 작성 - 기능 요구사항 섹션 (7)")
|
|
303
|
+
Task(subagent_type="document-writer", model="sonnet",
|
|
304
|
+
prompt="소셜 피드 PRD 작성 - 기술/성능/리스크 섹션 (8-12)")
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
**Model Routing 이유:**
|
|
308
|
+
- explore (haiku): 조사 작업
|
|
309
|
+
- analyst/architect/designer (opus): 복잡한 UX/아키텍처 분석
|
|
310
|
+
- document-writer (sonnet): 섹션별 병렬 작성 (opus는 과도)
|
|
311
|
+
|
|
312
|
+
---
|
|
313
|
+
|
|
314
|
+
#### 시나리오 3: 내부 도구 - 관리자 대시보드
|
|
315
|
+
|
|
316
|
+
**요구사항:** "사용자 관리 + 지표 모니터링 + 로그 분석 대시보드"
|
|
317
|
+
|
|
318
|
+
**복잡도:** MEDIUM (내부 도구, 요구사항 명확)
|
|
319
|
+
|
|
320
|
+
```typescript
|
|
321
|
+
// 1단계: 요구사항 분석 (병렬, sonnet)
|
|
322
|
+
Task(subagent_type="analyst", model="sonnet",
|
|
323
|
+
prompt="사용자 관리 요구사항 분석: CRUD, 권한, 검색/필터")
|
|
324
|
+
Task(subagent_type="analyst", model="sonnet",
|
|
325
|
+
prompt="지표 모니터링 요구사항 분석: 차트, 기간 필터, 실시간 업데이트")
|
|
326
|
+
Task(subagent_type="analyst", model="sonnet",
|
|
327
|
+
prompt="로그 분석 요구사항 분석: 검색, 필터, 내보내기")
|
|
328
|
+
|
|
329
|
+
// 2단계: 다중 기능 PRD 병렬 작성 (haiku/sonnet)
|
|
330
|
+
Task(subagent_type="document-writer", model="haiku",
|
|
331
|
+
prompt="사용자 관리 PRD 작성 (간단한 CRUD)")
|
|
332
|
+
Task(subagent_type="document-writer", model="sonnet",
|
|
333
|
+
prompt="지표 모니터링 PRD 작성 (차트, 쿼리 최적화 포함)")
|
|
334
|
+
Task(subagent_type="document-writer", model="haiku",
|
|
335
|
+
prompt="로그 분석 PRD 작성 (검색/필터)")
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
**Model Routing 이유:**
|
|
339
|
+
- analyst (sonnet): 일반적인 내부 도구 요구사항
|
|
340
|
+
- document-writer (haiku): 단순 CRUD PRD
|
|
341
|
+
- document-writer (sonnet): 복잡한 지표 PRD
|
|
342
|
+
|
|
343
|
+
---
|
|
344
|
+
|
|
345
|
+
#### 시나리오 4: 데이터 대시보드 - 실시간 분석 플랫폼
|
|
346
|
+
|
|
347
|
+
**요구사항:** "실시간 데이터 수집 + 대시보드 + 알림 시스템"
|
|
348
|
+
|
|
349
|
+
**복잡도:** HIGH (실시간 처리 + 대용량 데이터 + 복잡한 아키텍처)
|
|
350
|
+
|
|
351
|
+
```typescript
|
|
352
|
+
// 1단계: 기술 영역별 분석 (병렬, opus)
|
|
353
|
+
Task(subagent_type="analyst", model="opus",
|
|
354
|
+
prompt="실시간 데이터 파이프라인 요구사항 분석: 수집, 처리, 저장")
|
|
355
|
+
Task(subagent_type="architect", model="opus",
|
|
356
|
+
prompt="아키텍처 분석: Kafka vs RabbitMQ, ClickHouse vs TimescaleDB")
|
|
357
|
+
Task(subagent_type="analyst", model="sonnet",
|
|
358
|
+
prompt="대시보드 요구사항 분석: 차트, 필터, 사용자 커스터마이징")
|
|
359
|
+
Task(subagent_type="analyst", model="sonnet",
|
|
360
|
+
prompt="알림 요구사항 분석: 트리거 조건, 채널 (이메일/슬랙/SMS)")
|
|
361
|
+
|
|
362
|
+
// 2단계: 다중 관점 검증 (병렬)
|
|
363
|
+
Task(subagent_type="analyst", model="sonnet",
|
|
364
|
+
prompt="PM 관점 검증: 비즈니스 가치, 우선순위, ROI")
|
|
365
|
+
Task(subagent_type="architect", model="opus",
|
|
366
|
+
prompt="Engineer 관점 검증: 기술적 리스크, 복잡도, 타임라인")
|
|
367
|
+
Task(subagent_type="designer", model="sonnet",
|
|
368
|
+
prompt="Designer 관점 검증: 대시보드 UX, 정보 계층")
|
|
369
|
+
|
|
370
|
+
// 3단계: PRD 작성 (planner + document-writer)
|
|
371
|
+
Task(subagent_type="planner", model="opus",
|
|
372
|
+
prompt="PRD 구조 설계: 15개 섹션 우선순위, 핵심 리스크 식별")
|
|
373
|
+
Task(subagent_type="document-writer", model="sonnet",
|
|
374
|
+
prompt="실시간 분석 플랫폼 PRD 작성 (Planner 구조 기반)")
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
**Model Routing 이유:**
|
|
378
|
+
- analyst/architect (opus): 복잡한 실시간 시스템 분석
|
|
379
|
+
- planner (opus): PRD 구조 설계 (HIGH 복잡도)
|
|
380
|
+
- document-writer (sonnet): 최종 PRD 작성
|
|
381
|
+
|
|
382
|
+
---
|
|
383
|
+
|
|
384
|
+
### 에이전트 활용 체크리스트
|
|
385
|
+
|
|
386
|
+
PRD 작성 시작 전 확인:
|
|
387
|
+
|
|
388
|
+
**복잡도 판단**
|
|
389
|
+
- [ ] 단순 기능 (CRUD, 단일 화면) → LOW → haiku/sonnet
|
|
390
|
+
- [ ] 일반 기능 (다중 화면, API 연동) → MEDIUM → sonnet
|
|
391
|
+
- [ ] 복잡한 시스템 (신규 아키텍처, 높은 불확실성) → HIGH → opus
|
|
392
|
+
|
|
393
|
+
**병렬 실행 가능 확인**
|
|
394
|
+
- [ ] 여러 Persona의 사용자 스토리 → 패턴 1 (analyst x N)
|
|
395
|
+
- [ ] 기술 영역별 요구사항 (Frontend/Backend/Security) → 패턴 2
|
|
396
|
+
- [ ] 다중 관점 검증 (PM/Engineer/Designer/QA) → 패턴 3
|
|
397
|
+
- [ ] 경쟁사 분석 + 시장 조사 → 패턴 4
|
|
398
|
+
- [ ] 기능별 AC + 테스트 시나리오 → 패턴 5
|
|
399
|
+
- [ ] 독립적인 기능 여러 개 → 패턴 6
|
|
400
|
+
|
|
401
|
+
**에이전트 선택**
|
|
402
|
+
- [ ] 요구사항 분석 → analyst (sonnet/opus)
|
|
403
|
+
- [ ] 아키텍처 검토 → architect (sonnet/opus)
|
|
404
|
+
- [ ] PRD 구조 설계 → planner (opus)
|
|
405
|
+
- [ ] PRD 작성 → document-writer (haiku/sonnet)
|
|
406
|
+
- [ ] 기존 시스템 조사 → explore (haiku)
|
|
407
|
+
- [ ] UI/UX 요구사항 → designer (sonnet/opus)
|
|
408
|
+
|
|
409
|
+
**Model 선택**
|
|
410
|
+
- [ ] haiku: 조사, 단순 문서, 명확한 요구사항
|
|
411
|
+
- [ ] sonnet: 일반적인 분석/작성, 균형 잡힌 품질
|
|
412
|
+
- [ ] opus: 복잡한 분석, 아키텍처 설계, 불확실성 높은 작업
|
|
413
|
+
|
|
414
|
+
**실행 순서**
|
|
415
|
+
- [ ] 1단계: 조사 (explore) + 경쟁사 분석 (병렬)
|
|
416
|
+
- [ ] 2단계: 요구사항 분석 (analyst) + 아키텍처 검토 (architect) (병렬)
|
|
417
|
+
- [ ] 3단계: PRD 작성 (document-writer) 또는 섹션별 병렬 작성
|
|
418
|
+
|
|
419
|
+
**적극적으로 에이전트 활용. 혼자 하지 말 것.**
|
|
420
|
+
|
|
120
421
|
</parallel_agent_execution>
|
|
121
422
|
|
|
122
423
|
---
|
|
@@ -6,7 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
<agents_reference>
|
|
8
8
|
|
|
9
|
-
|
|
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
|
|
|
@@ -4,6 +4,13 @@ description: 작업 완료까지 자기참조 루프. 플래너 검증 기반
|
|
|
4
4
|
user-invocable: true
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
@../../instructions/workflow-patterns/sequential-thinking.md
|
|
8
|
+
@../../instructions/workflow-patterns/phase-based-workflow.md
|
|
9
|
+
@../../instructions/agent-patterns/parallel-execution.md
|
|
10
|
+
@../../instructions/agent-patterns/model-routing.md
|
|
11
|
+
@../../instructions/validation/forbidden-patterns.md
|
|
12
|
+
@../../instructions/validation/required-behaviors.md
|
|
13
|
+
|
|
7
14
|
# Ralph Skill
|
|
8
15
|
|
|
9
16
|
**[RALPH MODE ON - 반복 {{ITERATION}}/{{MAX}}]**
|
|
@@ -197,9 +204,85 @@ Task(
|
|
|
197
204
|
| 원칙 | 실행 방법 |
|
|
198
205
|
|------|----------|
|
|
199
206
|
| **PARALLEL** | 독립 작업은 단일 메시지에서 동시 Tool 호출 |
|
|
207
|
+
| **READ_PARALLEL** | 독립적인 파일 읽기는 단일 메시지에서 여러 Read 동시 호출 |
|
|
208
|
+
| **EXPLORE_PARALLEL** | 복잡한 탐색은 여러 explore 에이전트 병렬 실행 |
|
|
200
209
|
| **BACKGROUND** | 10개 이상 동시 작업 시 `run_in_background=true` |
|
|
201
210
|
| **DELEGATE** | 전문 에이전트에게 즉시 위임 |
|
|
202
211
|
|
|
212
|
+
### 파일 읽기 및 탐색 병렬화
|
|
213
|
+
|
|
214
|
+
**독립적인 파일 읽기는 반드시 병렬로:**
|
|
215
|
+
|
|
216
|
+
```typescript
|
|
217
|
+
// ❌ 순차 읽기 (느림)
|
|
218
|
+
Read(.claude/skills/skill1.md)
|
|
219
|
+
// 대기...
|
|
220
|
+
Read(.claude/skills/skill2.md)
|
|
221
|
+
// 대기...
|
|
222
|
+
Read(.claude/agents/agent1.md)
|
|
223
|
+
|
|
224
|
+
// ✅ 병렬 읽기 (빠름)
|
|
225
|
+
// 단일 메시지에서 모든 Read 동시 호출
|
|
226
|
+
Read(.claude/skills/skill1.md)
|
|
227
|
+
Read(.claude/skills/skill2.md)
|
|
228
|
+
Read(.claude/agents/agent1.md)
|
|
229
|
+
Read(.claude/agents/agent2.md)
|
|
230
|
+
Read(.claude/agents/agent3.md)
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
**복잡한 탐색은 explore 에이전트 병렬 활용:**
|
|
234
|
+
|
|
235
|
+
```typescript
|
|
236
|
+
// ❌ 직접 순차 탐색 (느림)
|
|
237
|
+
Glob('**/*.prisma')
|
|
238
|
+
// 대기...
|
|
239
|
+
Grep('createServerFn', '**/*.ts')
|
|
240
|
+
// 대기...
|
|
241
|
+
Bash('git log --grep="auth"')
|
|
242
|
+
|
|
243
|
+
// ✅ explore 에이전트 병렬 실행 (빠름)
|
|
244
|
+
Task(subagent_type="explore", model="haiku",
|
|
245
|
+
prompt=".claude/skills/ 디렉토리 모든 파일 탐색 및 구조 분석")
|
|
246
|
+
Task(subagent_type="explore", model="haiku",
|
|
247
|
+
prompt=".claude/agents/ 디렉토리 모든 파일 탐색 및 역할 분석")
|
|
248
|
+
Task(subagent_type="explore", model="haiku",
|
|
249
|
+
prompt="프로젝트 루트 설정 파일 탐색 (package.json, tsconfig.json)")
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
**Sequential Thinking 중 탐색 병렬화:**
|
|
253
|
+
|
|
254
|
+
```typescript
|
|
255
|
+
// Thinking 중 탐색이 필요할 때
|
|
256
|
+
mcp__sequential-thinking(
|
|
257
|
+
thought="파일 구조 파악 필요. explore 에이전트 3개 병렬 호출하여 빠르게 정보 수집",
|
|
258
|
+
nextThoughtNeeded=true
|
|
259
|
+
)
|
|
260
|
+
|
|
261
|
+
// 다음 메시지에서 즉시 병렬 explore 실행
|
|
262
|
+
Task(subagent_type="explore", model="haiku",
|
|
263
|
+
prompt="인증 관련 파일 및 구조 탐색")
|
|
264
|
+
Task(subagent_type="explore", model="haiku",
|
|
265
|
+
prompt="데이터베이스 스키마 및 모델 탐색")
|
|
266
|
+
Task(subagent_type="explore", model="haiku",
|
|
267
|
+
prompt="API 엔드포인트 및 라우팅 탐색")
|
|
268
|
+
|
|
269
|
+
// 다음 Thinking에서 결과 통합
|
|
270
|
+
mcp__sequential-thinking(
|
|
271
|
+
thought="3개 explore 결과 통합: 인증은 middleware/, DB는 prisma/, API는 functions/",
|
|
272
|
+
nextThoughtNeeded=true
|
|
273
|
+
)
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
**파일 읽기 vs explore 에이전트 선택:**
|
|
277
|
+
|
|
278
|
+
| 상황 | 도구 | 이유 |
|
|
279
|
+
|------|------|------|
|
|
280
|
+
| 특정 파일 3-5개 읽기 | Read 병렬 | 빠르고 간단 |
|
|
281
|
+
| 디렉토리 전체 탐색 | explore 에이전트 | 구조 분석 + 요약 |
|
|
282
|
+
| 패턴 검색 + 분석 | explore 에이전트 | 검색 + 해석 통합 |
|
|
283
|
+
| 여러 영역 동시 탐색 | explore 에이전트 병렬 | 독립 컨텍스트 |
|
|
284
|
+
| 10개 이상 파일 읽기 | explore 에이전트 | 컨텍스트 효율 |
|
|
285
|
+
|
|
203
286
|
### Smart Model Routing
|
|
204
287
|
|
|
205
288
|
| 복잡도 | 모델 | 작업 예시 |
|