claude-symphony 0.0.1

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 (197) hide show
  1. package/README.md +374 -0
  2. package/bin/create.js +250 -0
  3. package/package.json +43 -0
  4. package/template/.claude/commands/benchmark.md +103 -0
  5. package/template/.claude/commands/brainstorm.md +67 -0
  6. package/template/.claude/commands/checkpoint.md +93 -0
  7. package/template/.claude/commands/codex.md +107 -0
  8. package/template/.claude/commands/collaborate.md +85 -0
  9. package/template/.claude/commands/context.md +154 -0
  10. package/template/.claude/commands/deploy.md +102 -0
  11. package/template/.claude/commands/fork.md +142 -0
  12. package/template/.claude/commands/gemini.md +84 -0
  13. package/template/.claude/commands/handoff.md +80 -0
  14. package/template/.claude/commands/implement.md +82 -0
  15. package/template/.claude/commands/init-project.md +49 -0
  16. package/template/.claude/commands/next.md +125 -0
  17. package/template/.claude/commands/planning.md +69 -0
  18. package/template/.claude/commands/qa.md +81 -0
  19. package/template/.claude/commands/refactor.md +95 -0
  20. package/template/.claude/commands/research.md +60 -0
  21. package/template/.claude/commands/restore.md +113 -0
  22. package/template/.claude/commands/run-stage.md +78 -0
  23. package/template/.claude/commands/stages.md +109 -0
  24. package/template/.claude/commands/status.md +73 -0
  25. package/template/.claude/commands/tasks.md +80 -0
  26. package/template/.claude/commands/test.md +93 -0
  27. package/template/.claude/commands/ui-ux.md +61 -0
  28. package/template/.claude/commands/validate.md +174 -0
  29. package/template/.claude/hooks/ai-selector.sh +223 -0
  30. package/template/.claude/hooks/auto-checkpoint.sh +187 -0
  31. package/template/.claude/hooks/output-validator.sh +289 -0
  32. package/template/.claude/hooks/post-stage.sh +123 -0
  33. package/template/.claude/hooks/pre-stage.sh +186 -0
  34. package/template/.claude/hooks/session-start.sh +90 -0
  35. package/template/.claude/hooks/statusline.sh +115 -0
  36. package/template/.claude/hooks/stop.sh +104 -0
  37. package/template/.claude/settings.json +149 -0
  38. package/template/.claude/skills/ai-collaboration/README.md +61 -0
  39. package/template/.claude/skills/ai-collaboration/debate.md +148 -0
  40. package/template/.claude/skills/ai-collaboration/parallel.md +96 -0
  41. package/template/.claude/skills/ai-collaboration/prompts/CLAUDE.md +107 -0
  42. package/template/.claude/skills/auto-checkpoint/README.md +77 -0
  43. package/template/.claude/skills/auto-checkpoint/prompts/CLAUDE.md +113 -0
  44. package/template/.claude/skills/auto-checkpoint/rollback.md +152 -0
  45. package/template/.claude/skills/auto-checkpoint/trigger.md +122 -0
  46. package/template/.claude/skills/context-compression/README.md +121 -0
  47. package/template/.claude/skills/context-compression/analyze.md +114 -0
  48. package/template/.claude/skills/context-compression/compress.md +175 -0
  49. package/template/.claude/skills/context-compression/prompts/compression.md +172 -0
  50. package/template/.claude/skills/output-validator/README.md +86 -0
  51. package/template/.claude/skills/output-validator/prompts/CLAUDE.md +119 -0
  52. package/template/.claude/skills/output-validator/validate.md +182 -0
  53. package/template/.claude/skills/smart-handoff/README.md +59 -0
  54. package/template/.claude/skills/smart-handoff/extract.md +76 -0
  55. package/template/.claude/skills/smart-handoff/prompts/CLAUDE.md +86 -0
  56. package/template/.claude/skills/smart-handoff/summarize.md +94 -0
  57. package/template/.claude/skills/stage-transition/README.md +84 -0
  58. package/template/.claude/skills/stage-transition/handoff-gen.md +160 -0
  59. package/template/.claude/skills/stage-transition/prompts/transition.md +145 -0
  60. package/template/.claude/skills/stage-transition/validate.md +108 -0
  61. package/template/CLAUDE.md +528 -0
  62. package/template/config/ai_benchmarking.yaml +184 -0
  63. package/template/config/ai_collaboration.yaml +159 -0
  64. package/template/config/ai_logging.yaml +129 -0
  65. package/template/config/auto_checkpoint.yaml +189 -0
  66. package/template/config/context.yaml +78 -0
  67. package/template/config/git.yaml +161 -0
  68. package/template/config/handoff_intelligence.yaml +229 -0
  69. package/template/config/implementation.yaml.template +181 -0
  70. package/template/config/mcp_fallbacks.yaml +252 -0
  71. package/template/config/memory_integration.yaml +200 -0
  72. package/template/config/model_enforcement.yaml +141 -0
  73. package/template/config/models.yaml +242 -0
  74. package/template/config/output_validation.yaml +352 -0
  75. package/template/config/pipeline.yaml +357 -0
  76. package/template/config/pipeline_forking.yaml +236 -0
  77. package/template/config/qa_logging.yaml +166 -0
  78. package/template/config/smart_rollback.yaml +209 -0
  79. package/template/config/stage_personas.yaml +354 -0
  80. package/template/config/workflow.yaml +54 -0
  81. package/template/scripts/ai-benchmark.sh +272 -0
  82. package/template/scripts/codex-wrapper.sh +97 -0
  83. package/template/scripts/context-manager.sh +528 -0
  84. package/template/scripts/create-checkpoint.sh +116 -0
  85. package/template/scripts/gemini-wrapper.sh +96 -0
  86. package/template/scripts/init-project.sh +109 -0
  87. package/template/scripts/list-stages.sh +245 -0
  88. package/template/scripts/next-stage.sh +228 -0
  89. package/template/scripts/output-validate.sh +12 -0
  90. package/template/scripts/pipeline-fork.sh +293 -0
  91. package/template/scripts/pre-run-check.sh +361 -0
  92. package/template/scripts/restore-checkpoint.sh +247 -0
  93. package/template/scripts/run-stage.sh +139 -0
  94. package/template/scripts/show-status.sh +185 -0
  95. package/template/scripts/smart-handoff.sh +254 -0
  96. package/template/stages/01-brainstorm/CLAUDE.md +103 -0
  97. package/template/stages/01-brainstorm/HANDOFF.md.template +112 -0
  98. package/template/stages/01-brainstorm/README.md +97 -0
  99. package/template/stages/01-brainstorm/config.yaml +92 -0
  100. package/template/stages/01-brainstorm/inputs/.gitkeep +0 -0
  101. package/template/stages/01-brainstorm/outputs/.gitkeep +0 -0
  102. package/template/stages/01-brainstorm/prompts/collaboration.md +46 -0
  103. package/template/stages/01-brainstorm/prompts/ideation.md +62 -0
  104. package/template/stages/01-brainstorm/prompts/persona.md +73 -0
  105. package/template/stages/01-brainstorm/prompts/requirements.md +73 -0
  106. package/template/stages/01-brainstorm/prompts/validation.md +50 -0
  107. package/template/stages/01-brainstorm/templates/ideas.md +91 -0
  108. package/template/stages/01-brainstorm/templates/requirements_analysis.md +129 -0
  109. package/template/stages/02-research/CLAUDE.md +101 -0
  110. package/template/stages/02-research/HANDOFF.md.template +102 -0
  111. package/template/stages/02-research/config.yaml +68 -0
  112. package/template/stages/02-research/inputs/.gitkeep +0 -0
  113. package/template/stages/02-research/outputs/.gitkeep +0 -0
  114. package/template/stages/02-research/prompts/collaboration.md +51 -0
  115. package/template/stages/02-research/prompts/feasibility.md +73 -0
  116. package/template/stages/02-research/prompts/market_analysis.md +58 -0
  117. package/template/stages/02-research/prompts/tech_stack.md +60 -0
  118. package/template/stages/02-research/prompts/validation.md +51 -0
  119. package/template/stages/02-research/templates/.gitkeep +0 -0
  120. package/template/stages/03-planning/CLAUDE.md +98 -0
  121. package/template/stages/03-planning/HANDOFF.md.template +91 -0
  122. package/template/stages/03-planning/config.yaml +64 -0
  123. package/template/stages/03-planning/inputs/.gitkeep +0 -0
  124. package/template/stages/03-planning/outputs/.gitkeep +0 -0
  125. package/template/stages/03-planning/prompts/architecture.md +62 -0
  126. package/template/stages/03-planning/prompts/collaboration.md +57 -0
  127. package/template/stages/03-planning/prompts/validation.md +59 -0
  128. package/template/stages/03-planning/templates/.gitkeep +0 -0
  129. package/template/stages/04-ui-ux/CLAUDE.md +88 -0
  130. package/template/stages/04-ui-ux/HANDOFF.md.template +92 -0
  131. package/template/stages/04-ui-ux/config.yaml +57 -0
  132. package/template/stages/04-ui-ux/inputs/.gitkeep +0 -0
  133. package/template/stages/04-ui-ux/outputs/.gitkeep +0 -0
  134. package/template/stages/04-ui-ux/prompts/.gitkeep +0 -0
  135. package/template/stages/04-ui-ux/prompts/collaboration.md +56 -0
  136. package/template/stages/04-ui-ux/prompts/validation.md +54 -0
  137. package/template/stages/04-ui-ux/templates/.gitkeep +0 -0
  138. package/template/stages/05-task-management/CLAUDE.md +105 -0
  139. package/template/stages/05-task-management/HANDOFF.md.template +97 -0
  140. package/template/stages/05-task-management/config.yaml +81 -0
  141. package/template/stages/05-task-management/inputs/.gitkeep +0 -0
  142. package/template/stages/05-task-management/outputs/.gitkeep +0 -0
  143. package/template/stages/05-task-management/prompts/.gitkeep +0 -0
  144. package/template/stages/05-task-management/prompts/collaboration.md +54 -0
  145. package/template/stages/05-task-management/prompts/validation.md +66 -0
  146. package/template/stages/05-task-management/templates/notion_integration.md +176 -0
  147. package/template/stages/05-task-management/templates/parallel_groups.yaml +153 -0
  148. package/template/stages/05-task-management/templates/task_schema.yaml +154 -0
  149. package/template/stages/06-implementation/CLAUDE.md +163 -0
  150. package/template/stages/06-implementation/HANDOFF.md.template +192 -0
  151. package/template/stages/06-implementation/config.yaml +62 -0
  152. package/template/stages/06-implementation/inputs/.gitkeep +0 -0
  153. package/template/stages/06-implementation/outputs/.gitkeep +0 -0
  154. package/template/stages/06-implementation/prompts/.gitkeep +0 -0
  155. package/template/stages/06-implementation/prompts/collaboration.md +64 -0
  156. package/template/stages/06-implementation/prompts/validation.md +65 -0
  157. package/template/stages/06-implementation/templates/.gitkeep +0 -0
  158. package/template/stages/07-refactoring/CLAUDE.md +180 -0
  159. package/template/stages/07-refactoring/HANDOFF.md.template +97 -0
  160. package/template/stages/07-refactoring/config.yaml +68 -0
  161. package/template/stages/07-refactoring/inputs/.gitkeep +0 -0
  162. package/template/stages/07-refactoring/outputs/.gitkeep +0 -0
  163. package/template/stages/07-refactoring/prompts/.gitkeep +0 -0
  164. package/template/stages/07-refactoring/prompts/collaboration.md +71 -0
  165. package/template/stages/07-refactoring/prompts/validation.md +76 -0
  166. package/template/stages/07-refactoring/templates/.gitkeep +0 -0
  167. package/template/stages/08-qa/CLAUDE.md +93 -0
  168. package/template/stages/08-qa/HANDOFF.md.template +96 -0
  169. package/template/stages/08-qa/config.yaml +56 -0
  170. package/template/stages/08-qa/inputs/.gitkeep +0 -0
  171. package/template/stages/08-qa/outputs/.gitkeep +0 -0
  172. package/template/stages/08-qa/prompts/.gitkeep +0 -0
  173. package/template/stages/08-qa/prompts/collaboration.md +65 -0
  174. package/template/stages/08-qa/prompts/validation.md +71 -0
  175. package/template/stages/08-qa/templates/.gitkeep +0 -0
  176. package/template/stages/09-testing/CLAUDE.md +124 -0
  177. package/template/stages/09-testing/HANDOFF.md.template +113 -0
  178. package/template/stages/09-testing/config.yaml +65 -0
  179. package/template/stages/09-testing/inputs/.gitkeep +0 -0
  180. package/template/stages/09-testing/outputs/.gitkeep +0 -0
  181. package/template/stages/09-testing/prompts/.gitkeep +0 -0
  182. package/template/stages/09-testing/prompts/collaboration.md +77 -0
  183. package/template/stages/09-testing/prompts/validation.md +83 -0
  184. package/template/stages/09-testing/templates/.gitkeep +0 -0
  185. package/template/stages/10-deployment/CLAUDE.md +117 -0
  186. package/template/stages/10-deployment/HANDOFF.md.template +148 -0
  187. package/template/stages/10-deployment/config.yaml +61 -0
  188. package/template/stages/10-deployment/inputs/.gitkeep +0 -0
  189. package/template/stages/10-deployment/outputs/.gitkeep +0 -0
  190. package/template/stages/10-deployment/prompts/.gitkeep +0 -0
  191. package/template/stages/10-deployment/prompts/collaboration.md +80 -0
  192. package/template/stages/10-deployment/prompts/validation.md +93 -0
  193. package/template/stages/10-deployment/templates/github-actions-cd.yaml +118 -0
  194. package/template/stages/10-deployment/templates/github-actions-ci.yaml +136 -0
  195. package/template/state/progress.json.template +111 -0
  196. package/template/state/templates/handoff_base.md.template +187 -0
  197. package/template/state/templates/phase_state.md.template +97 -0
@@ -0,0 +1,153 @@
1
+ # Parallel Task Groups Configuration
2
+ # claude-symphony 병렬 태스크 관리 (Issue #9 해결)
3
+
4
+ parallel_execution:
5
+ # 병렬 실행 활성화 여부
6
+ enabled: true
7
+
8
+ # 기본 규칙
9
+ default_mode: "sequential" # sequential | parallel_when_safe
10
+
11
+ # 의존성 분석 규칙
12
+ dependency_analysis:
13
+ # 의존성 없는 태스크 자동 그룹화
14
+ auto_group_independent: true
15
+
16
+ # 의존성 유형
17
+ dependency_types:
18
+ - type: "blocks"
19
+ description: "완료되어야 다음 태스크 시작 가능"
20
+
21
+ - type: "informs"
22
+ description: "참조하지만 블로킹 아님"
23
+
24
+ - type: "none"
25
+ description: "완전 독립"
26
+
27
+ # 병렬 그룹 템플릿
28
+ parallel_groups:
29
+ # 예시: 스프린트 1 태스크 그룹
30
+ sprint_1:
31
+ # 그룹 A: 병렬 실행 가능
32
+ group_a:
33
+ tasks:
34
+ - "TASK-001: 프로젝트 초기 설정"
35
+ - "TASK-002: 환경 변수 설정"
36
+ - "TASK-003: ESLint/Prettier 설정"
37
+ parallel: true
38
+ reason: "독립적인 설정 작업들"
39
+
40
+ # 그룹 B: 그룹 A 완료 후 병렬 실행
41
+ group_b:
42
+ depends_on: ["group_a"]
43
+ tasks:
44
+ - "TASK-004: 레이아웃 컴포넌트"
45
+ - "TASK-005: 네비게이션 컴포넌트"
46
+ - "TASK-006: 푸터 컴포넌트"
47
+ parallel: true
48
+ reason: "공통 컴포넌트, 상호 의존성 없음"
49
+
50
+ # 그룹 C: 순차 실행 필요
51
+ group_c:
52
+ depends_on: ["group_b"]
53
+ tasks:
54
+ - "TASK-007: API 클라이언트 설정"
55
+ - "TASK-008: 인증 서비스 구현"
56
+ - "TASK-009: 보호된 라우트 설정"
57
+ parallel: false
58
+ reason: "순차적 의존성 있음"
59
+
60
+ # 병렬 실행 규칙
61
+ execution_rules:
62
+ # 병렬 실행 가능 조건
63
+ parallel_allowed_when:
64
+ - "no_shared_files" # 동일 파일 수정 없음
65
+ - "no_data_dependency" # 데이터 의존성 없음
66
+ - "different_modules" # 다른 모듈
67
+ - "explicit_parallel_flag" # 명시적 병렬 플래그
68
+
69
+ # 병렬 실행 금지 조건
70
+ parallel_prohibited_when:
71
+ - "same_file_modification" # 동일 파일 수정
72
+ - "database_migration" # DB 마이그레이션
73
+ - "sequential_dependency" # 순차 의존성
74
+ - "shared_state" # 공유 상태
75
+
76
+ # 태스크 분류 가이드
77
+ classification_guide:
78
+ # 병렬 가능 태스크 유형
79
+ parallelizable:
80
+ - "독립적인 UI 컴포넌트 구현"
81
+ - "서로 다른 모듈의 유틸리티 함수"
82
+ - "독립적인 테스트 작성"
83
+ - "문서 작성"
84
+ - "환경 설정 (충돌 없는 경우)"
85
+
86
+ # 순차 필수 태스크 유형
87
+ sequential_required:
88
+ - "데이터베이스 스키마 변경"
89
+ - "인증/인가 흐름"
90
+ - "API 엔드포인트 → 클라이언트 통합"
91
+ - "의존성 있는 컴포넌트 체인"
92
+ - "버전 업그레이드"
93
+
94
+ # 시각화 형식
95
+ visualization:
96
+ # 의존성 그래프 형식
97
+ graph_format: "mermaid"
98
+
99
+ # 예시 출력
100
+ example: |
101
+ ```mermaid
102
+ graph LR
103
+ A[TASK-001] --> D[TASK-004]
104
+ B[TASK-002] --> D
105
+ C[TASK-003] --> D
106
+ D --> G[TASK-007]
107
+ E[TASK-005] --> G
108
+ F[TASK-006] --> G
109
+ G --> H[TASK-008]
110
+ H --> I[TASK-009]
111
+
112
+ subgraph "그룹 A (병렬)"
113
+ A
114
+ B
115
+ C
116
+ end
117
+
118
+ subgraph "그룹 B (병렬)"
119
+ D
120
+ E
121
+ F
122
+ end
123
+
124
+ subgraph "그룹 C (순차)"
125
+ G
126
+ H
127
+ I
128
+ end
129
+ ```
130
+
131
+ # 실행 최적화
132
+ optimization:
133
+ # 동시 실행 최대 수
134
+ max_concurrent_tasks: 3
135
+
136
+ # 리소스 제한
137
+ resource_limits:
138
+ cpu_intensive_concurrent: 2
139
+ io_intensive_concurrent: 5
140
+
141
+ # 우선순위 기반 스케줄링
142
+ priority_scheduling: true
143
+
144
+ # 모니터링
145
+ monitoring:
146
+ # 진행 상황 추적
147
+ track_parallel_progress: true
148
+
149
+ # 병목 감지
150
+ detect_bottlenecks: true
151
+
152
+ # 완료 알림
153
+ notify_on_group_complete: true
@@ -0,0 +1,154 @@
1
+ # Task Schema Definition
2
+ # claude-symphony 태스크 관리 스키마 (Issue #4, #6, #8, #16 해결)
3
+
4
+ schema:
5
+ name: "Project Tasks"
6
+ version: "1.0.0"
7
+
8
+ # 필수 필드 정의
9
+ fields:
10
+ # 태스크 이름 (Title)
11
+ - name: "Task Name"
12
+ type: "title"
13
+ required: true
14
+ description: "태스크 제목"
15
+
16
+ # 상태 필드 (Issue #16: Status 필드 필수!)
17
+ - name: "Status"
18
+ type: "select"
19
+ required: true
20
+ default: "To Do"
21
+ options:
22
+ - name: "To Do"
23
+ color: "gray"
24
+ - name: "In Progress"
25
+ color: "blue"
26
+ - name: "Review"
27
+ color: "yellow"
28
+ - name: "Done"
29
+ color: "green"
30
+ - name: "Blocked"
31
+ color: "red"
32
+
33
+ # 우선순위
34
+ - name: "Priority"
35
+ type: "select"
36
+ required: false
37
+ default: "Medium"
38
+ options:
39
+ - name: "High"
40
+ color: "red"
41
+ - name: "Medium"
42
+ color: "yellow"
43
+ - name: "Low"
44
+ color: "green"
45
+
46
+ # 정렬용 순서 (Issue #5, #6, #8 해결)
47
+ - name: "Order"
48
+ type: "number"
49
+ required: true
50
+ description: "태스크 순서 (정렬용)"
51
+ auto_increment: true
52
+
53
+ # 스프린트
54
+ - name: "Sprint"
55
+ type: "select"
56
+ required: false
57
+ options:
58
+ - name: "Sprint 1"
59
+ - name: "Sprint 2"
60
+ - name: "Sprint 3"
61
+
62
+ # 담당자
63
+ - name: "Assignee"
64
+ type: "text"
65
+ required: false
66
+
67
+ # 예상 시간
68
+ - name: "Estimate"
69
+ type: "text"
70
+ required: false
71
+ description: "예상 소요 시간 (예: 2h, 1d)"
72
+
73
+ # 마감일
74
+ - name: "Due Date"
75
+ type: "date"
76
+ required: false
77
+
78
+ # 의존성
79
+ - name: "Depends On"
80
+ type: "text"
81
+ required: false
82
+ description: "선행 태스크 ID (콤마로 구분)"
83
+
84
+ # 스테이지
85
+ - name: "Stage"
86
+ type: "select"
87
+ required: false
88
+ options:
89
+ - name: "06-implementation"
90
+ - name: "07-refactoring"
91
+ - name: "08-qa"
92
+ - name: "09-testing"
93
+
94
+ # 태스크 생성 규칙 (Issue #6, #8 해결: 순차 생성!)
95
+ creation_rules:
96
+ # 병렬 생성 금지 - 순서 보장
97
+ mode: "sequential"
98
+ batch_size: 1
99
+
100
+ # 순차 생성 절차
101
+ procedure:
102
+ - step: 1
103
+ action: "create_single_task"
104
+ description: "단일 태스크 생성"
105
+ - step: 2
106
+ action: "verify_order_field"
107
+ description: "Order 필드 확인"
108
+ - step: 3
109
+ action: "create_next_task"
110
+ description: "다음 태스크 생성 (Order + 1)"
111
+
112
+ # 금지 사항
113
+ prohibited:
114
+ - "batch_create" # 일괄 생성 금지
115
+ - "parallel_create" # 병렬 생성 금지
116
+
117
+ # 권장 사항
118
+ recommended:
119
+ - "explicit_order" # 명시적 Order 값 지정
120
+ - "status_to_do" # Status = "To Do"로 생성
121
+ - "sequential_naming" # 순차적 이름 부여
122
+
123
+ # Notion 데이터베이스 생성 템플릿
124
+ notion_template:
125
+ database_name: "{{PROJECT_NAME}} Tasks"
126
+
127
+ properties:
128
+ - "Task Name" # title
129
+ - "Status" # select (필수!)
130
+ - "Priority" # select
131
+ - "Order" # number (정렬용!)
132
+ - "Sprint" # select
133
+ - "Assignee" # text
134
+ - "Estimate" # text
135
+ - "Due Date" # date
136
+ - "Depends On" # text
137
+ - "Stage" # select
138
+
139
+ # 기본 뷰 설정
140
+ views:
141
+ - name: "Board View"
142
+ type: "board"
143
+ group_by: "Status"
144
+
145
+ - name: "List View"
146
+ type: "table"
147
+ sort_by: "Order"
148
+ sort_direction: "ascending"
149
+
150
+ - name: "Sprint View"
151
+ type: "board"
152
+ group_by: "Sprint"
153
+ filter:
154
+ - "Status != Done"
@@ -0,0 +1,163 @@
1
+ # Stage 06: Implementation
2
+
3
+ 핵심 기능 구현 단계
4
+
5
+ ## 🎭 페르소나: Precise Builder
6
+
7
+ > 당신은 Precise Builder입니다.
8
+ > 정확하고 유지보수 가능한 코드를 작성하세요.
9
+ > 에러를 미리 예방하고, 테스트하기 쉬운 구조를 만드세요.
10
+
11
+ ### 특성
12
+ - 정확한 구현
13
+ - 에러 방지
14
+ - 테스트 가능한 코드
15
+ - 클린 코드
16
+
17
+ ### 권장 행동
18
+ - 명확하고 읽기 쉬운 코드
19
+ - 에러 핸들링
20
+ - 타입 안전성
21
+ - 테스트 용이성
22
+
23
+ ### 지양 행동
24
+ - 오버 엔지니어링
25
+ - 매직 넘버/문자열
26
+ - 에러 무시
27
+ - 복잡한 로직
28
+
29
+ ### AI 설정
30
+ - **Temperature**: 0.3 (높은 정밀도)
31
+ - **정밀도**: High
32
+
33
+ ## 실행 모델
34
+ - **Primary**: ClaudeCode (코드 생성)
35
+ - **Mode**: Plan + Sandbox - 안전한 코드 실행
36
+
37
+ ## 목표
38
+ 1. 프로젝트 스캐폴딩
39
+ 2. 핵심 기능 구현
40
+ 3. 데이터베이스 연동
41
+ 4. API 구현
42
+
43
+ ## 입력 파일
44
+ - `../05-task-management/outputs/tasks.md`
45
+ - `../03-planning/outputs/architecture.md`
46
+ - `../03-planning/outputs/implementation.yaml` - **구현 규칙 (필수 참조!)**
47
+ - `../04-ui-ux/outputs/design_system.md`
48
+ - `../05-task-management/HANDOFF.md`
49
+
50
+ ### ⚠️ implementation.yaml 준수 필수
51
+ 구현 전 `implementation.yaml` 파일을 읽고 다음 규칙을 확인하세요:
52
+ - 컴포넌트 타입/export 방식
53
+ - 스타일링 접근 방식
54
+ - 상태 관리 패턴
55
+ - 네이밍 규칙
56
+ - 폴더 구조
57
+ - 금지/권장 사항
58
+
59
+ ## 출력 파일
60
+ - `outputs/source_code/` - 소스 코드 디렉토리
61
+ - `outputs/implementation_log.md` - 구현 로그
62
+ - `HANDOFF.md` - 다음 스테이지 인계 문서
63
+
64
+ ## 워크플로우
65
+
66
+ ### 1. 프로젝트 초기화
67
+ ```bash
68
+ # 예: Next.js 프로젝트
69
+ npx create-next-app@latest project-name
70
+ cd project-name
71
+ ```
72
+
73
+ ### 2. 공통 컴포넌트 구현
74
+ - 디자인 시스템 기반 UI 컴포넌트
75
+ - 레이아웃 컴포넌트
76
+ - 유틸리티 함수
77
+
78
+ ### 3. 기능 구현
79
+ - 스프린트 1 태스크 순차 구현
80
+ - 각 태스크 완료 시 커밋
81
+ - 구현 로그 업데이트
82
+
83
+ ### 4. 통합
84
+ - API 연동
85
+ - 데이터베이스 연결
86
+ - 인증/인가 구현
87
+
88
+ ## 체크포인트 규칙
89
+ - **필수**: 이 스테이지는 체크포인트가 필수입니다
90
+ - 스프린트 완료마다 체크포인트 생성
91
+ - 주요 기능 완료 시 체크포인트 생성
92
+
93
+ ## 구현 원칙
94
+ 1. 작은 단위로 커밋
95
+ 2. 테스트 가능한 코드 작성
96
+ 3. 에러 핸들링 포함
97
+ 4. 타입 안전성 확보 (TypeScript)
98
+
99
+ ---
100
+
101
+ ## ⚠️ Test-First 플로우 (필수)
102
+
103
+ > **중요**: 버그 조기 발견을 위해 구현 완료 후 반드시 스모크 테스트를 실행하세요.
104
+ > Snake Game 프로젝트에서 이 단계를 건너뛰어 버그가 2개 스테이지를 통과한 사례가 있습니다.
105
+
106
+ ### 구현 완료 후 필수 테스트
107
+
108
+ ```bash
109
+ # 1. 개발 서버 실행 확인
110
+ npm run dev
111
+ # 브라우저에서 기본 동작 확인
112
+
113
+ # 2. 정적 분석
114
+ npm run lint
115
+
116
+ # 3. 타입 체크
117
+ npm run typecheck
118
+
119
+ # 4. Playwright 스모크 테스트 (설정되어 있다면)
120
+ npx playwright test --grep @smoke
121
+ ```
122
+
123
+ ### 테스트 실패 시 조치
124
+ 1. **lint 오류**: 즉시 수정
125
+ 2. **typecheck 오류**: 타입 정의 수정
126
+ 3. **런타임 오류**: 버그로 기록하고 수정
127
+ 4. **UI 동작 이상**: 버그 ID 부여 (예: BUG-001)
128
+
129
+ ### 버그 기록 형식
130
+ ```markdown
131
+ ### BUG-001: [버그 제목]
132
+ - **발견 시점**: 06-implementation 스모크 테스트
133
+ - **증상**: [증상 설명]
134
+ - **원인**: [원인 분석]
135
+ - **수정 파일**: [파일 경로]
136
+ - **상태**: 수정됨 / 미수정
137
+ ```
138
+
139
+ ### HANDOFF.md 테스트 섹션 필수
140
+ HANDOFF.md에 반드시 테스트 결과 섹션을 포함하세요:
141
+ - 실행한 테스트 목록
142
+ - 테스트 결과 (통과/실패)
143
+ - 발견된 버그 (있다면)
144
+ - 버그 수정 상태
145
+
146
+ ---
147
+
148
+ ## 완료 조건
149
+ - [ ] 프로젝트 스캐폴딩 완료
150
+ - [ ] 공통 컴포넌트 구현
151
+ - [ ] 핵심 기능 구현 (스프린트 1-2)
152
+ - [ ] API 엔드포인트 구현
153
+ - [ ] **스모크 테스트 실행** (Test-First)
154
+ - [ ] **lint/typecheck 통과**
155
+ - [ ] 체크포인트 생성
156
+ - [ ] HANDOFF.md 생성 (테스트 결과 포함)
157
+
158
+ ## 다음 스테이지
159
+ → **07-refactoring**: 코드 품질 개선 및 최적화
160
+
161
+
162
+
163
+
@@ -0,0 +1,192 @@
1
+ # Stage Handoff: 06-implementation → 07-refactoring
2
+
3
+ **생성일**: {{TIMESTAMP}}
4
+ **생성자**: ClaudeCode
5
+ **소요 시간**: {{DURATION}}
6
+
7
+ ---
8
+
9
+ ## AI 사용 기록
10
+
11
+ > 이 섹션은 의도된 AI 설정과 실제 사용을 비교하여 협업 효율성을 추적합니다.
12
+
13
+ ### 의도 vs 실제 비교
14
+
15
+ | 항목 | 의도 | 실제 | 일치 |
16
+ |------|------|------|------|
17
+ | Primary AI | ClaudeCode | {{ACTUAL_PRIMARY_AI}} | {{PRIMARY_MATCH}} |
18
+ | Secondary AI | - | {{ACTUAL_SECONDARY_AI}} | - |
19
+ | 협업 모드 | none (단일 AI) | {{ACTUAL_COLLABORATION_MODE}} | {{MODE_MATCH}} |
20
+ | 외부 AI 호출 | 아니오 | {{ACTUAL_EXTERNAL_CALL}} | {{EXTERNAL_MATCH}} |
21
+
22
+ ### AI 호출 로그
23
+
24
+ | AI | 호출 시간 | 역할 | 프롬프트 | 결과 | 상태 |
25
+ |----|----------|------|---------|------|------|
26
+ | {{AI_1}} | {{TIME_1}} | {{ROLE_1}} | {{PROMPT_1}} | {{OUTPUT_1}} | {{STATUS_1}} |
27
+ | {{AI_2}} | {{TIME_2}} | {{ROLE_2}} | {{PROMPT_2}} | {{OUTPUT_2}} | {{STATUS_2}} |
28
+
29
+ ### 폴백 기록
30
+
31
+ | 시도한 AI | 실패 시간 | 오류 | 폴백 AI | 결과 |
32
+ |----------|----------|------|---------|------|
33
+ | {{FALLBACK_ATTEMPTED}} | {{FALLBACK_TIME}} | {{FALLBACK_ERROR}} | {{FALLBACK_TO}} | {{FALLBACK_RESULT}} |
34
+
35
+ > 설정: `config/ai_collaboration.yaml`, `config/mcp_fallbacks.yaml`
36
+
37
+ ---
38
+
39
+ ## 완료된 작업
40
+
41
+ - [ ] 프로젝트 스캐폴딩
42
+ - [ ] 공통 컴포넌트 ({{COMPONENT_COUNT}}개)
43
+ - [ ] 핵심 기능 구현
44
+ - [ ] API 엔드포인트 ({{API_COUNT}}개)
45
+ - [ ] **스모크 테스트 실행** (Test-First)
46
+ - [ ] 체크포인트 생성
47
+ - [ ] HANDOFF.md 생성
48
+
49
+ ---
50
+
51
+ ## 테스트 상태 (Test-First 플로우)
52
+
53
+ > ⚠️ **필수**: 구현 완료 후 스모크 테스트를 실행하여 기본 동작을 확인하세요.
54
+
55
+ ### 실행된 테스트
56
+
57
+ | 테스트 유형 | 실행 시간 | 결과 | 비고 |
58
+ |-----------|----------|------|------|
59
+ | `npm run dev` | {{DEV_TIME}} | {{DEV_RESULT}} | 개발 서버 실행 |
60
+ | ESLint | {{LINT_TIME}} | {{LINT_RESULT}} | 정적 분석 |
61
+ | TypeScript | {{TS_TIME}} | {{TS_RESULT}} | 타입 체크 |
62
+ | Playwright 스모크 | {{PLAYWRIGHT_TIME}} | {{PLAYWRIGHT_RESULT}} | UI 기본 동작 |
63
+
64
+ ### 발견된 버그
65
+
66
+ | ID | 설명 | 발견 시점 | 상태 | 수정 파일 |
67
+ |----|------|----------|------|----------|
68
+ | {{BUG_ID}} | {{BUG_DESC}} | {{BUG_FOUND}} | {{BUG_STATUS}} | {{BUG_FILE}} |
69
+
70
+ ### 테스트 미실행 사유
71
+
72
+ - **미실행 시**: {{TEST_SKIP_REASON}}
73
+ - **권장 조치**: 07-refactoring 전에 기본 테스트 실행 권장
74
+
75
+ ---
76
+
77
+ ## 다음 에이전트를 위한 컨텍스트
78
+
79
+ ### 프로젝트 구조
80
+ ```
81
+ source_code/
82
+ ├── src/
83
+ │ ├── components/
84
+ │ ├── pages/
85
+ │ ├── api/
86
+ │ ├── lib/
87
+ │ └── styles/
88
+ ├── package.json
89
+ └── ...
90
+ ```
91
+
92
+ ### 기술 스택 확정
93
+
94
+ | 영역 | 기술 | 버전 |
95
+ |------|------|------|
96
+ | Framework | {{FRAMEWORK}} | {{VERSION}} |
97
+ | UI Library | {{UI_LIB}} | |
98
+ | State | {{STATE_MGMT}} | |
99
+ | API | {{API_STYLE}} | |
100
+
101
+ ### 구현 완료 기능
102
+
103
+ | 기능 | 상태 | 파일 | 테스트 상태 |
104
+ |------|------|------|-----------|
105
+ | {{FEATURE_1}} | 완료 | {{FILE_1}} | {{TEST_1}} |
106
+ | {{FEATURE_2}} | 완료 | {{FILE_2}} | {{TEST_2}} |
107
+ | {{FEATURE_3}} | 완료 | {{FILE_3}} | {{TEST_3}} |
108
+
109
+ ### 알려진 이슈 / 기술 부채
110
+ 1. {{TECH_DEBT_1}}
111
+ 2. {{TECH_DEBT_2}}
112
+
113
+ ### 리팩토링 필요 영역
114
+ - {{REFACTOR_AREA_1}}: {{REASON_1}}
115
+ - {{REFACTOR_AREA_2}}: {{REASON_2}}
116
+
117
+ ---
118
+
119
+ ## 체크포인트 정보
120
+
121
+ | ID | 생성일 | 설명 | 자동/수동 |
122
+ |----|--------|------|----------|
123
+ | {{CP_ID}} | {{CP_DATE}} | 스프린트 1 완료 | {{CP_TYPE}} |
124
+
125
+ 복구 명령:
126
+ ```bash
127
+ scripts/restore-checkpoint.sh {{CP_ID}}
128
+ ```
129
+
130
+ ---
131
+
132
+ ## 생성된 산출물
133
+
134
+ | 파일 | 설명 | 검증 상태 |
135
+ |------|------|----------|
136
+ | source_code/ | 구현된 소스 코드 | {{CODE_VALIDATED}} |
137
+ | implementation_log.md | 구현 로그 | - |
138
+
139
+ ---
140
+
141
+ ## 07-refactoring 스테이지 가이드
142
+
143
+ ### 즉시 실행할 작업
144
+ 1. **회귀 테스트 실행** (Test-First)
145
+ 2. 코드 품질 분석 (ESLint, TypeScript)
146
+ 3. 중복 코드 식별
147
+ 4. 성능 병목 지점 분석
148
+
149
+ ### 리팩토링 우선순위
150
+ 1. {{REFACTOR_PRIORITY_1}}
151
+ 2. {{REFACTOR_PRIORITY_2}}
152
+ 3. {{REFACTOR_PRIORITY_3}}
153
+
154
+ ### 주의사항
155
+ - ⚠️ **Codex CLI 사용 필수** - 깊이 있는 분석을 위해 `/codex` 명령어 활용
156
+ - 기존 기능 깨뜨리지 않도록 주의
157
+ - 리팩토링 전/후 동작 동일 확인
158
+ - 체크포인트 활용
159
+
160
+ ---
161
+
162
+ ## 메타데이터
163
+
164
+ ```yaml
165
+ stage: "06-implementation"
166
+ status: "completed"
167
+ next_stage: "07-refactoring"
168
+ timestamp: "{{TIMESTAMP}}"
169
+
170
+ ai_usage:
171
+ intended:
172
+ primary: "claudecode"
173
+ secondary: null
174
+ collaboration_mode: "none"
175
+ actual:
176
+ primary: "{{ACTUAL_PRIMARY_AI}}"
177
+ secondary: "{{ACTUAL_SECONDARY_AI}}"
178
+ collaboration_mode: "{{ACTUAL_COLLABORATION_MODE}}"
179
+ fallbacks: {{FALLBACK_COUNT}}
180
+ match_rate: "{{MATCH_RATE}}"
181
+
182
+ testing:
183
+ smoke_test_run: {{SMOKE_TEST_RUN}}
184
+ lint_passed: {{LINT_PASSED}}
185
+ typecheck_passed: {{TYPECHECK_PASSED}}
186
+ bugs_found: {{BUGS_FOUND_COUNT}}
187
+ bugs_fixed: {{BUGS_FIXED_COUNT}}
188
+
189
+ checkpoint_id: "{{CP_ID}}"
190
+ files_created: {{FILE_COUNT}}
191
+ lines_of_code: {{LOC}}
192
+ ```