@kood/claude-code 0.5.3 → 0.5.4

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 (37) hide show
  1. package/dist/index.js +548 -340
  2. package/package.json +1 -1
  3. package/templates/.claude/agents/document-writer.md +71 -304
  4. package/templates/.claude/instructions/agent-patterns/index.md +7 -7
  5. package/templates/.claude/instructions/document-templates/ralph-templates.md +71 -0
  6. package/templates/.claude/instructions/index.md +14 -14
  7. package/templates/.claude/instructions/multi-agent/agent-roster.md +14 -14
  8. package/templates/.claude/instructions/multi-agent/index.md +4 -4
  9. package/templates/.claude/skills/docs-creator/AGENTS.md +54 -176
  10. package/templates/.claude/skills/docs-creator/SKILL.md +97 -463
  11. package/templates/.claude/skills/docs-refactor/AGENTS.md +61 -190
  12. package/templates/.claude/skills/docs-refactor/SKILL.md +66 -442
  13. package/templates/.claude/skills/execute/SKILL.md +540 -13
  14. package/templates/.claude/skills/plan/SKILL.md +83 -17
  15. package/templates/.claude/skills/ralph/SKILL.md +17 -14
  16. package/templates/.claude/skills/refactor/AGENTS.md +269 -0
  17. package/templates/.claude/skills/refactor/SKILL.md +424 -66
  18. package/templates/.claude/skills/stitch-design/README.md +34 -0
  19. package/templates/.claude/skills/stitch-design/SKILL.md +213 -0
  20. package/templates/.claude/skills/stitch-design/examples/DESIGN.md +154 -0
  21. package/templates/.claude/skills/stitch-loop/README.md +54 -0
  22. package/templates/.claude/skills/stitch-loop/SKILL.md +316 -0
  23. package/templates/.claude/skills/stitch-loop/examples/SITE.md +73 -0
  24. package/templates/.claude/skills/stitch-loop/examples/next-prompt.md +25 -0
  25. package/templates/.claude/skills/stitch-loop/resources/baton-schema.md +61 -0
  26. package/templates/.claude/skills/stitch-loop/resources/site-template.md +104 -0
  27. package/templates/.claude/skills/stitch-react/README.md +36 -0
  28. package/templates/.claude/skills/stitch-react/SKILL.md +323 -0
  29. package/templates/.claude/skills/stitch-react/examples/gold-standard-card.tsx +88 -0
  30. package/templates/.claude/skills/stitch-react/package-lock.json +231 -0
  31. package/templates/.claude/skills/stitch-react/package.json +16 -0
  32. package/templates/.claude/skills/stitch-react/resources/architecture-checklist.md +15 -0
  33. package/templates/.claude/skills/stitch-react/resources/component-template.tsx +37 -0
  34. package/templates/.claude/skills/stitch-react/resources/stitch-api-reference.md +14 -0
  35. package/templates/.claude/skills/stitch-react/resources/style-guide.json +24 -0
  36. package/templates/.claude/skills/stitch-react/scripts/fetch-stitch.sh +30 -0
  37. package/templates/.claude/skills/stitch-react/scripts/validate.js +77 -0
@@ -761,20 +761,20 @@ Phase 7: 커밋 (10-30초)
761
761
  - `.claude/agents/*.md` - 개별 에이전트 스펙 (20개 참고 자료)
762
762
 
763
763
  **각 에이전트별 상세 문서:**
764
- - `.claude/agents/planner.md`
765
- - `.claude/agents/analyst.md`
766
- - `.claude/agents/architect.md`
767
- - `.claude/agents/explore.md`
768
- - `.claude/agents/implementation-executor.md`
769
- - `.claude/agents/designer.md`
770
- - `.claude/agents/deployment-validator.md`
771
- - `.claude/agents/lint-fixer.md`
772
- - `.claude/agents/code-reviewer.md`
773
- - `.claude/agents/document-writer.md`
774
- - `.claude/agents/ko-to-en-translator.md`
775
- - `.claude/agents/git-operator.md`
776
- - `.claude/agents/dependency-manager.md`
777
- - `.claude/agents/refactor-advisor.md`
764
+ - `.claude/agents/planning/planner.md`
765
+ - `.claude/agents/planning/analyst.md`
766
+ - `.claude/agents/planning/architect.md`
767
+ - `.claude/agents/implementation/explore.md`
768
+ - `.claude/agents/implementation/implementation-executor.md`
769
+ - `.claude/agents/implementation/designer.md`
770
+ - `.claude/agents/quality/deployment-validator.md`
771
+ - `.claude/agents/quality/lint-fixer.md`
772
+ - `.claude/agents/quality/code-reviewer.md`
773
+ - `.claude/agents/documentation/document-writer.md`
774
+ - `.claude/agents/documentation/ko-to-en-translator.md`
775
+ - `.claude/agents/operations/git-operator.md`
776
+ - `.claude/agents/operations/dependency-manager.md`
777
+ - `.claude/agents/quality/refactor-advisor.md`
778
778
 
779
779
  ---
780
780
 
@@ -210,16 +210,16 @@
210
210
 
211
211
  14개 에이전트 모두 다음 문서 참조:
212
212
  ```markdown
213
- @../../instructions/multi-agent/coordination-guide.md
214
- @../../instructions/multi-agent/agent-roster.md
213
+ @.claude/instructions/multi-agent/coordination-guide.md
214
+ @.claude/instructions/multi-agent/agent-roster.md
215
215
  ```
216
216
 
217
217
  ### Skills 문서
218
218
 
219
219
  복잡한 스킬은 다음 문서 참조:
220
220
  ```markdown
221
- @../../instructions/multi-agent/execution-patterns.md
222
- @../../instructions/multi-agent/performance-optimization.md
221
+ @.claude/instructions/multi-agent/execution-patterns.md
222
+ @.claude/instructions/multi-agent/performance-optimization.md
223
223
  ```
224
224
 
225
225
  ---
@@ -1,213 +1,104 @@
1
1
  # Docs Creator - Agent Coordination
2
2
 
3
- 문서 작성 스킬에서 에이전트 활용 가이드.
4
-
5
- ---
6
-
7
3
  <agents_reference>
8
-
9
- 다중 에이전트 구조:
10
- - 에이전트 목록: @../../instructions/multi-agent/agent-roster.md
11
- - 조정 가이드: @../../instructions/multi-agent/coordination-guide.md
12
- - 실행 패턴: @../../instructions/multi-agent/execution-patterns.md
13
-
4
+ @../../instructions/multi-agent/agent-roster.md
5
+ @../../instructions/multi-agent/coordination-guide.md
6
+ @../../instructions/multi-agent/execution-patterns.md
14
7
  </agents_reference>
15
8
 
16
9
  ---
17
10
 
18
11
  <recommended_agents>
19
12
 
20
- ## 추천 에이전트
21
-
22
13
  | 에이전트 | 모델 | 용도 |
23
14
  |---------|------|------|
24
- | **document-writer** | haiku/sonnet | 문서 작성, README, 주석, 기술 문서 |
25
- | **explore** | haiku | 코드베이스 구조 파악, 기존 패턴 분석 |
26
- | **analyst** | sonnet | 프로젝트 요구사항 분석, 패턴 도출 |
27
- | **code-reviewer** | opus | 문서 품질 검증, 정확성 검토 |
15
+ | **document-writer** | haiku/sonnet | 문서 작성 |
16
+ | **explore** | haiku | 구조 파악, 패턴 분석 |
17
+ | **analyst** | sonnet | 요구사항 분석 |
18
+ | **code-reviewer** | opus | 품질 검증 |
28
19
 
29
20
  </recommended_agents>
30
21
 
31
22
  ---
32
23
 
33
- <coordination_patterns>
34
-
35
- ## 조정 패턴
24
+ <model_routing>
36
25
 
37
- ### 패턴 1: 병렬 문서 작성
26
+ @../../instructions/agent-patterns/model-routing.md
38
27
 
39
- **용도:** 여러 문서를 동시에 작성
28
+ **문서 작성 특화:**
40
29
 
41
- ```typescript
42
- // CLAUDE.md, SKILL.md, README.md 동시 작성
43
- Task(
44
- subagent_type="document-writer",
45
- model="sonnet",
46
- prompt="CLAUDE.md 작성: 프로젝트 규칙 금지/필수 사항"
47
- )
48
-
49
- Task(
50
- subagent_type="document-writer",
51
- model="haiku",
52
- prompt="README.md 작성: 설치 및 빠른 시작 가이드"
53
- )
54
-
55
- Task(
56
- subagent_type="document-writer",
57
- model="haiku",
58
- prompt="CONTRIBUTING.md 작성: 기여 가이드"
59
- )
60
- ```
30
+ | 작업 | 모델 | 이유 |
31
+ |------|------|------|
32
+ | README, 설치 | haiku | 간단 구조, 빠름 |
33
+ | CLAUDE.md, SKILL.md | sonnet | XML 태그, 복잡 구조 |
34
+ | 아키텍처 | opus | 깊은 분석 |
35
+ | 품질 검증 | opus | 정확성 검토 |
61
36
 
62
- **효과:** 순차 실행 대비 3배 빠름
37
+ </model_routing>
63
38
 
64
39
  ---
65
40
 
66
- ### 패턴 2: 탐색 → 문서화 파이프라인
41
+ <coordination_patterns>
67
42
 
68
- **용도:** 기존 프로젝트 문서화
43
+ ## 병렬 작성
69
44
 
70
45
  ```typescript
71
- // Step 1: 구조 분석
72
- Task(
73
- subagent_type="explore",
74
- model="haiku",
75
- prompt="프로젝트 구조, 기술 스택, 주요 패턴 분석"
76
- )
77
-
78
- // Step 2: 분석 결과 바탕 문서 작성
79
- Task(
80
- subagent_type="document-writer",
81
- model="sonnet",
82
- prompt="분석 결과 기반 CLAUDE.md 작성"
83
- )
46
+ // 독립 문서 동시 작성
47
+ Task(subagent_type="document-writer", model="sonnet", prompt="CLAUDE.md 작성")
48
+ Task(subagent_type="document-writer", model="haiku", prompt="README.md 작성")
49
+ Task(subagent_type="document-writer", model="haiku", prompt="CONTRIBUTING.md 작성")
84
50
  ```
85
51
 
86
- ---
87
-
88
- ### 패턴 3: 작성 → 검증 → 개선
89
-
90
- **용도:** 고품질 문서 생성
52
+ ## 탐색 → 문서화
91
53
 
92
54
  ```typescript
93
- // Step 1: 문서 작성
94
- Task(
95
- subagent_type="document-writer",
96
- model="sonnet",
97
- prompt="SKILL.md 작성: workflow, examples 포함"
98
- )
99
-
100
- // Step 2: 품질 검증
101
- Task(
102
- subagent_type="code-reviewer",
103
- model="opus",
104
- prompt="SKILL.md 검증: 명확성, 실행 가능성, 예시 품질"
105
- )
106
-
107
- // Step 3: 피드백 반영 개선
108
- Task(
109
- subagent_type="document-writer",
110
- model="sonnet",
111
- prompt="code-reviewer 피드백 반영하여 SKILL.md 개선"
112
- )
55
+ Task(subagent_type="explore", model="haiku", prompt="프로젝트 구조, 기술 스택 분석")
56
+ Task(subagent_type="document-writer", model="sonnet", prompt="분석 기반 CLAUDE.md 작성")
113
57
  ```
114
58
 
115
- ---
116
-
117
- ### 패턴 4: 다국어 문서 병렬 작성
118
-
119
- **용도:** 한/영 동시 문서화
59
+ ## 작성 → 검증 → 개선
120
60
 
121
61
  ```typescript
122
- // 한국어/영어 문서 동시 작성
123
- Task(
124
- subagent_type="document-writer",
125
- model="sonnet",
126
- prompt="한국어 문서 작성: docs/ko/guide.md"
127
- )
128
-
129
- Task(
130
- subagent_type="document-writer",
131
- model="sonnet",
132
- prompt="영어 문서 작성: docs/en/guide.md"
133
- )
62
+ Task(subagent_type="document-writer", model="sonnet", prompt="SKILL.md 작성")
63
+ Task(subagent_type="code-reviewer", model="opus", prompt="SKILL.md 검증")
64
+ Task(subagent_type="document-writer", model="sonnet", prompt="피드백 반영")
134
65
  ```
135
66
 
136
67
  </coordination_patterns>
137
68
 
138
69
  ---
139
70
 
140
- <model_routing>
141
-
142
- ## 모델 라우팅
143
-
144
- | 작업 | 모델 | 이유 |
145
- |------|------|------|
146
- | **README, 설치 가이드** | haiku | 간단한 구조, 빠른 작성 |
147
- | **CLAUDE.md, SKILL.md** | sonnet | 복잡한 구조, XML 태그 필요 |
148
- | **아키텍처 문서** | opus | 깊은 분석, 설계 패턴 설명 |
149
- | **문서 품질 검증** | opus | 정확성, 일관성 검토 |
150
-
151
- </model_routing>
152
-
153
- ---
154
-
155
71
  <practical_examples>
156
72
 
157
- ## 실전 예시
158
-
159
- ### 예시 1: 새 프로젝트 문서화
73
+ ## 프로젝트
160
74
 
161
75
  ```typescript
162
76
  // Phase 1: 병렬 탐색
163
- Task(subagent_type="explore", model="haiku",
164
- prompt="프로젝트 구조 분석")
165
- Task(subagent_type="explore", model="haiku",
166
- prompt="기술 스택 버전 확인")
167
-
168
- // Phase 2: 병렬 문서 작성
169
- Task(subagent_type="document-writer", model="sonnet",
170
- prompt="CLAUDE.md: 프로젝트 규칙, 금지/필수 사항")
171
- Task(subagent_type="document-writer", model="haiku",
172
- prompt="README.md: 빠른 시작, 설치 가이드")
173
- Task(subagent_type="document-writer", model="haiku",
174
- prompt="CONTRIBUTING.md: 기여 방법")
77
+ Task(subagent_type="explore", model="haiku", prompt="구조 분석")
78
+ Task(subagent_type="explore", model="haiku", prompt="기술 스택 확인")
79
+
80
+ // Phase 2: 병렬 작성
81
+ Task(subagent_type="document-writer", model="sonnet", prompt="CLAUDE.md")
82
+ Task(subagent_type="document-writer", model="haiku", prompt="README.md")
175
83
 
176
84
  // Phase 3: 검증
177
- Task(subagent_type="code-reviewer", model="opus",
178
- prompt="문서 품질 검증: 명확성, 실행 가능성")
85
+ Task(subagent_type="code-reviewer", model="opus", prompt="품질 검증")
179
86
  ```
180
87
 
181
- ---
182
-
183
- ### 예시 2: API 문서 작성
88
+ ## API 문서
184
89
 
185
90
  ```typescript
186
- // 여러 API 엔드포인트 문서 동시 작성
187
- Task(subagent_type="document-writer", model="haiku",
188
- prompt="docs/api/users.md: User API 문서")
189
- Task(subagent_type="document-writer", model="haiku",
190
- prompt="docs/api/posts.md: Post API 문서")
191
- Task(subagent_type="document-writer", model="haiku",
192
- prompt="docs/api/comments.md: Comment API 문서")
91
+ // 병렬 작성
92
+ Task(subagent_type="document-writer", model="haiku", prompt="docs/api/users.md")
93
+ Task(subagent_type="document-writer", model="haiku", prompt="docs/api/posts.md")
193
94
  ```
194
95
 
195
- ---
196
-
197
- ### 예시 3: 스킬 문서 작성
96
+ ## 스킬 문서
198
97
 
199
98
  ```typescript
200
- // Step 1: 스킬 분석
201
- Task(subagent_type="analyst", model="sonnet",
202
- prompt="스킬 요구사항 분석구조 도출")
203
-
204
- // Step 2: 문서 작성
205
- Task(subagent_type="document-writer", model="sonnet",
206
- prompt="SKILL.md 작성: trigger, workflow, examples")
207
-
208
- // Step 3: 검증 및 개선
209
- Task(subagent_type="code-reviewer", model="opus",
210
- prompt="SKILL.md 검증 및 개선사항 제안")
99
+ Task(subagent_type="analyst", model="sonnet", prompt="요구사항 분석")
100
+ Task(subagent_type="document-writer", model="sonnet", prompt="SKILL.md 작성")
101
+ Task(subagent_type="code-reviewer", model="opus", prompt="검증개선")
211
102
  ```
212
103
 
213
104
  </practical_examples>
@@ -216,26 +107,13 @@ Task(subagent_type="code-reviewer", model="opus",
216
107
 
217
108
  <best_practices>
218
109
 
219
- ## 모범 사례
220
-
221
- ### 작업 시작 체크
222
-
223
- - [ ] 여러 문서를 작성하는가? 병렬 document-writer
224
- - [ ] 기존 프로젝트인가? explore 먼저, 그 후 문서화
225
- - [ ] 복잡한 구조인가? sonnet/opus 모델 사용
226
- - [ ] 다국어 필요한가? 병렬 작성
227
-
228
- ### 에이전트 활용 원칙
229
-
230
- **DO:**
231
- - 독립 문서 → 병렬 작성
232
- - 복잡한 문서 → sonnet/opus
233
- - 품질 중요 → code-reviewer 검증
234
- - 대량 문서 → haiku로 빠르게
235
-
236
- **DON'T:**
237
- - 간단한 문서에 opus 사용
238
- - 순차 작성 (병렬 가능한 경우)
239
- - 검증 없이 완료
110
+ | 체크리스트 | 패턴 | 모델 |
111
+ |----------|------|------|
112
+ | 여러 독립 문서 | 병렬 작성 | haiku |
113
+ | 기존 프로젝트 | explore → 문서화 | haiku → sonnet |
114
+ | 복잡한 구조 (XML, 다층) | 순차 작성 | sonnet/opus |
115
+ | 다국어 | 병렬 작성 | sonnet |
116
+ | 품질 중요 | 검증 추가 | opus |
117
+ | 대량 문서 (10개+) | 병렬 작성 | haiku |
240
118
 
241
119
  </best_practices>