create-ax-project 1.0.0

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 (258) hide show
  1. package/README.md +374 -0
  2. package/bin/create.js +193 -0
  3. package/package.json +38 -0
  4. package/template/.claude/CLAUDE.md +7 -0
  5. package/template/.claude/commands/CLAUDE.md +0 -0
  6. package/template/.claude/commands/benchmark.md +103 -0
  7. package/template/.claude/commands/brainstorm.md +67 -0
  8. package/template/.claude/commands/checkpoint.md +93 -0
  9. package/template/.claude/commands/codex.md +107 -0
  10. package/template/.claude/commands/collaborate.md +85 -0
  11. package/template/.claude/commands/context.md +154 -0
  12. package/template/.claude/commands/deploy.md +102 -0
  13. package/template/.claude/commands/fork.md +142 -0
  14. package/template/.claude/commands/gemini.md +84 -0
  15. package/template/.claude/commands/handoff.md +80 -0
  16. package/template/.claude/commands/implement.md +82 -0
  17. package/template/.claude/commands/init-project.md +49 -0
  18. package/template/.claude/commands/next.md +125 -0
  19. package/template/.claude/commands/planning.md +69 -0
  20. package/template/.claude/commands/qa.md +81 -0
  21. package/template/.claude/commands/refactor.md +95 -0
  22. package/template/.claude/commands/research.md +60 -0
  23. package/template/.claude/commands/restore.md +113 -0
  24. package/template/.claude/commands/run-stage.md +78 -0
  25. package/template/.claude/commands/stages.md +109 -0
  26. package/template/.claude/commands/status.md +73 -0
  27. package/template/.claude/commands/tasks.md +80 -0
  28. package/template/.claude/commands/test.md +93 -0
  29. package/template/.claude/commands/ui-ux.md +61 -0
  30. package/template/.claude/commands/validate.md +174 -0
  31. package/template/.claude/hooks/CLAUDE.md +0 -0
  32. package/template/.claude/hooks/ai-selector.sh +223 -0
  33. package/template/.claude/hooks/auto-checkpoint.sh +187 -0
  34. package/template/.claude/hooks/output-validator.sh +289 -0
  35. package/template/.claude/hooks/post-stage.sh +123 -0
  36. package/template/.claude/hooks/pre-stage.sh +186 -0
  37. package/template/.claude/hooks/session-start.sh +90 -0
  38. package/template/.claude/hooks/statusline.sh +115 -0
  39. package/template/.claude/hooks/stop.sh +104 -0
  40. package/template/.claude/settings.json +149 -0
  41. package/template/.claude/skills/ai-collaboration/CLAUDE.md +0 -0
  42. package/template/.claude/skills/ai-collaboration/README.md +61 -0
  43. package/template/.claude/skills/ai-collaboration/debate.md +148 -0
  44. package/template/.claude/skills/ai-collaboration/parallel.md +96 -0
  45. package/template/.claude/skills/ai-collaboration/prompts/CLAUDE.md +107 -0
  46. package/template/.claude/skills/auto-checkpoint/CLAUDE.md +0 -0
  47. package/template/.claude/skills/auto-checkpoint/README.md +77 -0
  48. package/template/.claude/skills/auto-checkpoint/prompts/CLAUDE.md +113 -0
  49. package/template/.claude/skills/auto-checkpoint/rollback.md +152 -0
  50. package/template/.claude/skills/auto-checkpoint/trigger.md +122 -0
  51. package/template/.claude/skills/context-compression/CLAUDE.md +0 -0
  52. package/template/.claude/skills/context-compression/README.md +121 -0
  53. package/template/.claude/skills/context-compression/analyze.md +114 -0
  54. package/template/.claude/skills/context-compression/compress.md +175 -0
  55. package/template/.claude/skills/context-compression/prompts/CLAUDE.md +0 -0
  56. package/template/.claude/skills/context-compression/prompts/compression.md +172 -0
  57. package/template/.claude/skills/output-validator/CLAUDE.md +0 -0
  58. package/template/.claude/skills/output-validator/README.md +86 -0
  59. package/template/.claude/skills/output-validator/prompts/CLAUDE.md +119 -0
  60. package/template/.claude/skills/output-validator/validate.md +182 -0
  61. package/template/.claude/skills/smart-handoff/CLAUDE.md +0 -0
  62. package/template/.claude/skills/smart-handoff/README.md +59 -0
  63. package/template/.claude/skills/smart-handoff/extract.md +76 -0
  64. package/template/.claude/skills/smart-handoff/prompts/CLAUDE.md +86 -0
  65. package/template/.claude/skills/smart-handoff/summarize.md +94 -0
  66. package/template/.claude/skills/stage-transition/CLAUDE.md +0 -0
  67. package/template/.claude/skills/stage-transition/README.md +84 -0
  68. package/template/.claude/skills/stage-transition/handoff-gen.md +160 -0
  69. package/template/.claude/skills/stage-transition/prompts/CLAUDE.md +0 -0
  70. package/template/.claude/skills/stage-transition/prompts/transition.md +145 -0
  71. package/template/.claude/skills/stage-transition/validate.md +108 -0
  72. package/template/CLAUDE.md +528 -0
  73. package/template/config/CLAUDE.md +0 -0
  74. package/template/config/ai_benchmarking.yaml +184 -0
  75. package/template/config/ai_collaboration.yaml +159 -0
  76. package/template/config/ai_logging.yaml +129 -0
  77. package/template/config/auto_checkpoint.yaml +189 -0
  78. package/template/config/context.yaml +78 -0
  79. package/template/config/git.yaml +161 -0
  80. package/template/config/handoff_intelligence.yaml +229 -0
  81. package/template/config/implementation.yaml.template +181 -0
  82. package/template/config/mcp_fallbacks.yaml +252 -0
  83. package/template/config/memory_integration.yaml +200 -0
  84. package/template/config/model_enforcement.yaml +141 -0
  85. package/template/config/models.yaml +242 -0
  86. package/template/config/output_validation.yaml +352 -0
  87. package/template/config/pipeline.yaml +357 -0
  88. package/template/config/pipeline_forking.yaml +236 -0
  89. package/template/config/qa_logging.yaml +166 -0
  90. package/template/config/smart_rollback.yaml +209 -0
  91. package/template/config/stage_personas.yaml +354 -0
  92. package/template/config/workflow.yaml +54 -0
  93. package/template/scripts/CLAUDE.md +0 -0
  94. package/template/scripts/ai-benchmark.sh +272 -0
  95. package/template/scripts/codex-wrapper.sh +97 -0
  96. package/template/scripts/context-manager.sh +528 -0
  97. package/template/scripts/create-checkpoint.sh +116 -0
  98. package/template/scripts/gemini-wrapper.sh +96 -0
  99. package/template/scripts/init-project.sh +109 -0
  100. package/template/scripts/list-stages.sh +245 -0
  101. package/template/scripts/next-stage.sh +228 -0
  102. package/template/scripts/output-validate.sh +12 -0
  103. package/template/scripts/pipeline-fork.sh +293 -0
  104. package/template/scripts/pre-run-check.sh +361 -0
  105. package/template/scripts/restore-checkpoint.sh +247 -0
  106. package/template/scripts/run-stage.sh +139 -0
  107. package/template/scripts/show-status.sh +185 -0
  108. package/template/scripts/smart-handoff.sh +254 -0
  109. package/template/stages/01-brainstorm/CLAUDE.md +103 -0
  110. package/template/stages/01-brainstorm/HANDOFF.md +110 -0
  111. package/template/stages/01-brainstorm/HANDOFF.md.template +112 -0
  112. package/template/stages/01-brainstorm/README.md +97 -0
  113. package/template/stages/01-brainstorm/config.yaml +92 -0
  114. package/template/stages/01-brainstorm/inputs/.gitkeep +0 -0
  115. package/template/stages/01-brainstorm/inputs/CLAUDE.md +0 -0
  116. package/template/stages/01-brainstorm/inputs/project_brief.md +40 -0
  117. package/template/stages/01-brainstorm/outputs/.gitkeep +0 -0
  118. package/template/stages/01-brainstorm/outputs/CLAUDE.md +0 -0
  119. package/template/stages/01-brainstorm/outputs/ideas.md +159 -0
  120. package/template/stages/01-brainstorm/outputs/requirements_analysis.md +222 -0
  121. package/template/stages/01-brainstorm/prompts/CLAUDE.md +0 -0
  122. package/template/stages/01-brainstorm/prompts/collaboration.md +46 -0
  123. package/template/stages/01-brainstorm/prompts/ideation.md +62 -0
  124. package/template/stages/01-brainstorm/prompts/persona.md +73 -0
  125. package/template/stages/01-brainstorm/prompts/requirements.md +73 -0
  126. package/template/stages/01-brainstorm/prompts/validation.md +50 -0
  127. package/template/stages/01-brainstorm/templates/CLAUDE.md +0 -0
  128. package/template/stages/01-brainstorm/templates/ideas.md +91 -0
  129. package/template/stages/01-brainstorm/templates/requirements_analysis.md +129 -0
  130. package/template/stages/02-research/CLAUDE.md +101 -0
  131. package/template/stages/02-research/HANDOFF.md +158 -0
  132. package/template/stages/02-research/HANDOFF.md.template +102 -0
  133. package/template/stages/02-research/config.yaml +68 -0
  134. package/template/stages/02-research/inputs/.gitkeep +0 -0
  135. package/template/stages/02-research/outputs/.gitkeep +0 -0
  136. package/template/stages/02-research/outputs/CLAUDE.md +0 -0
  137. package/template/stages/02-research/outputs/feasibility_report.md +176 -0
  138. package/template/stages/02-research/outputs/tech_research.md +403 -0
  139. package/template/stages/02-research/prompts/CLAUDE.md +0 -0
  140. package/template/stages/02-research/prompts/collaboration.md +51 -0
  141. package/template/stages/02-research/prompts/feasibility.md +73 -0
  142. package/template/stages/02-research/prompts/market_analysis.md +58 -0
  143. package/template/stages/02-research/prompts/tech_stack.md +60 -0
  144. package/template/stages/02-research/prompts/validation.md +51 -0
  145. package/template/stages/02-research/templates/.gitkeep +0 -0
  146. package/template/stages/03-planning/CLAUDE.md +98 -0
  147. package/template/stages/03-planning/HANDOFF.md +168 -0
  148. package/template/stages/03-planning/HANDOFF.md.template +91 -0
  149. package/template/stages/03-planning/config.yaml +64 -0
  150. package/template/stages/03-planning/inputs/.gitkeep +0 -0
  151. package/template/stages/03-planning/outputs/.gitkeep +0 -0
  152. package/template/stages/03-planning/outputs/CLAUDE.md +0 -0
  153. package/template/stages/03-planning/outputs/architecture.md +400 -0
  154. package/template/stages/03-planning/outputs/implementation.yaml +209 -0
  155. package/template/stages/03-planning/outputs/project_plan.md +204 -0
  156. package/template/stages/03-planning/outputs/tech_stack.md +176 -0
  157. package/template/stages/03-planning/prompts/CLAUDE.md +0 -0
  158. package/template/stages/03-planning/prompts/architecture.md +62 -0
  159. package/template/stages/03-planning/prompts/collaboration.md +57 -0
  160. package/template/stages/03-planning/prompts/validation.md +59 -0
  161. package/template/stages/03-planning/templates/.gitkeep +0 -0
  162. package/template/stages/04-ui-ux/CLAUDE.md +88 -0
  163. package/template/stages/04-ui-ux/HANDOFF.md +165 -0
  164. package/template/stages/04-ui-ux/HANDOFF.md.template +92 -0
  165. package/template/stages/04-ui-ux/config.yaml +57 -0
  166. package/template/stages/04-ui-ux/inputs/.gitkeep +0 -0
  167. package/template/stages/04-ui-ux/outputs/.gitkeep +0 -0
  168. package/template/stages/04-ui-ux/outputs/CLAUDE.md +0 -0
  169. package/template/stages/04-ui-ux/outputs/design_system.md +449 -0
  170. package/template/stages/04-ui-ux/outputs/user_flows.md +321 -0
  171. package/template/stages/04-ui-ux/outputs/wireframes.md +241 -0
  172. package/template/stages/04-ui-ux/prompts/.gitkeep +0 -0
  173. package/template/stages/04-ui-ux/prompts/CLAUDE.md +0 -0
  174. package/template/stages/04-ui-ux/prompts/collaboration.md +56 -0
  175. package/template/stages/04-ui-ux/prompts/validation.md +54 -0
  176. package/template/stages/04-ui-ux/templates/.gitkeep +0 -0
  177. package/template/stages/05-task-management/CLAUDE.md +105 -0
  178. package/template/stages/05-task-management/HANDOFF.md +187 -0
  179. package/template/stages/05-task-management/HANDOFF.md.template +97 -0
  180. package/template/stages/05-task-management/config.yaml +81 -0
  181. package/template/stages/05-task-management/inputs/.gitkeep +0 -0
  182. package/template/stages/05-task-management/outputs/.gitkeep +0 -0
  183. package/template/stages/05-task-management/outputs/CLAUDE.md +0 -0
  184. package/template/stages/05-task-management/outputs/milestones.md +253 -0
  185. package/template/stages/05-task-management/outputs/sprint_plan.md +203 -0
  186. package/template/stages/05-task-management/outputs/tasks.md +402 -0
  187. package/template/stages/05-task-management/prompts/.gitkeep +0 -0
  188. package/template/stages/05-task-management/prompts/CLAUDE.md +0 -0
  189. package/template/stages/05-task-management/prompts/collaboration.md +54 -0
  190. package/template/stages/05-task-management/prompts/validation.md +66 -0
  191. package/template/stages/05-task-management/templates/CLAUDE.md +0 -0
  192. package/template/stages/05-task-management/templates/notion_integration.md +176 -0
  193. package/template/stages/05-task-management/templates/parallel_groups.yaml +153 -0
  194. package/template/stages/05-task-management/templates/task_schema.yaml +154 -0
  195. package/template/stages/06-implementation/CLAUDE.md +163 -0
  196. package/template/stages/06-implementation/HANDOFF.md +184 -0
  197. package/template/stages/06-implementation/HANDOFF.md.template +192 -0
  198. package/template/stages/06-implementation/config.yaml +62 -0
  199. package/template/stages/06-implementation/inputs/.gitkeep +0 -0
  200. package/template/stages/06-implementation/outputs/.gitkeep +0 -0
  201. package/template/stages/06-implementation/prompts/.gitkeep +0 -0
  202. package/template/stages/06-implementation/prompts/CLAUDE.md +0 -0
  203. package/template/stages/06-implementation/prompts/collaboration.md +64 -0
  204. package/template/stages/06-implementation/prompts/validation.md +65 -0
  205. package/template/stages/06-implementation/templates/.gitkeep +0 -0
  206. package/template/stages/07-refactoring/CLAUDE.md +180 -0
  207. package/template/stages/07-refactoring/HANDOFF.md +82 -0
  208. package/template/stages/07-refactoring/HANDOFF.md.template +97 -0
  209. package/template/stages/07-refactoring/config.yaml +68 -0
  210. package/template/stages/07-refactoring/inputs/.gitkeep +0 -0
  211. package/template/stages/07-refactoring/outputs/.gitkeep +0 -0
  212. package/template/stages/07-refactoring/outputs/refactoring_report.md +102 -0
  213. package/template/stages/07-refactoring/prompts/.gitkeep +0 -0
  214. package/template/stages/07-refactoring/prompts/CLAUDE.md +0 -0
  215. package/template/stages/07-refactoring/prompts/collaboration.md +71 -0
  216. package/template/stages/07-refactoring/prompts/validation.md +76 -0
  217. package/template/stages/07-refactoring/templates/.gitkeep +0 -0
  218. package/template/stages/08-qa/CLAUDE.md +93 -0
  219. package/template/stages/08-qa/HANDOFF.md +114 -0
  220. package/template/stages/08-qa/HANDOFF.md.template +96 -0
  221. package/template/stages/08-qa/config.yaml +56 -0
  222. package/template/stages/08-qa/inputs/.gitkeep +0 -0
  223. package/template/stages/08-qa/outputs/.gitkeep +0 -0
  224. package/template/stages/08-qa/outputs/qa_report.md +138 -0
  225. package/template/stages/08-qa/prompts/.gitkeep +0 -0
  226. package/template/stages/08-qa/prompts/CLAUDE.md +0 -0
  227. package/template/stages/08-qa/prompts/collaboration.md +65 -0
  228. package/template/stages/08-qa/prompts/validation.md +71 -0
  229. package/template/stages/08-qa/templates/.gitkeep +0 -0
  230. package/template/stages/09-testing/CLAUDE.md +124 -0
  231. package/template/stages/09-testing/HANDOFF.md +118 -0
  232. package/template/stages/09-testing/HANDOFF.md.template +113 -0
  233. package/template/stages/09-testing/config.yaml +65 -0
  234. package/template/stages/09-testing/inputs/.gitkeep +0 -0
  235. package/template/stages/09-testing/outputs/.gitkeep +0 -0
  236. package/template/stages/09-testing/outputs/test_report.md +146 -0
  237. package/template/stages/09-testing/prompts/.gitkeep +0 -0
  238. package/template/stages/09-testing/prompts/CLAUDE.md +0 -0
  239. package/template/stages/09-testing/prompts/collaboration.md +77 -0
  240. package/template/stages/09-testing/prompts/validation.md +83 -0
  241. package/template/stages/09-testing/templates/.gitkeep +0 -0
  242. package/template/stages/10-deployment/CLAUDE.md +117 -0
  243. package/template/stages/10-deployment/HANDOFF.md +141 -0
  244. package/template/stages/10-deployment/HANDOFF.md.template +148 -0
  245. package/template/stages/10-deployment/config.yaml +61 -0
  246. package/template/stages/10-deployment/inputs/.gitkeep +0 -0
  247. package/template/stages/10-deployment/outputs/.gitkeep +0 -0
  248. package/template/stages/10-deployment/prompts/.gitkeep +0 -0
  249. package/template/stages/10-deployment/prompts/CLAUDE.md +0 -0
  250. package/template/stages/10-deployment/prompts/collaboration.md +80 -0
  251. package/template/stages/10-deployment/prompts/validation.md +93 -0
  252. package/template/stages/10-deployment/templates/CLAUDE.md +0 -0
  253. package/template/stages/10-deployment/templates/github-actions-cd.yaml +118 -0
  254. package/template/stages/10-deployment/templates/github-actions-ci.yaml +136 -0
  255. package/template/state/progress.json.template +111 -0
  256. package/template/state/templates/CLAUDE.md +0 -0
  257. package/template/state/templates/handoff_base.md.template +187 -0
  258. package/template/state/templates/phase_state.md.template +97 -0
@@ -0,0 +1,160 @@
1
+ # HANDOFF.md 자동 생성
2
+
3
+ 스테이지 완료 시 HANDOFF.md를 자동 생성합니다.
4
+
5
+ ## 생성 로직
6
+
7
+ ### 1. 컨텍스트 수집
8
+
9
+ ```
10
+ 수집 항목:
11
+ - 현재 스테이지 정보
12
+ - 생성된 outputs 목록
13
+ - 대화에서 추출한 결정사항
14
+ - 다음 스테이지 요구사항
15
+ ```
16
+
17
+ ### 2. HANDOFF.md 구조
18
+
19
+ ```markdown
20
+ # Handoff: [현재 스테이지] → [다음 스테이지]
21
+
22
+ 생성일: {{TIMESTAMP}}
23
+
24
+ ## 완료된 작업
25
+
26
+ - [x] 작업 1
27
+ - [x] 작업 2
28
+ - [x] 작업 3
29
+
30
+ ## 핵심 결정사항
31
+
32
+ ### 결정 1: [제목]
33
+ - **선택**: [선택한 옵션]
34
+ - **이유**: [선택 이유]
35
+ - **영향**: [다음 단계에 미치는 영향]
36
+
37
+ ## 산출물
38
+
39
+ | 파일 | 설명 |
40
+ |------|------|
41
+ | file1.md | 설명 |
42
+ | file2.json | 설명 |
43
+
44
+ ## 시도했으나 실패한 접근법
45
+
46
+ (해당 시)
47
+ - 접근법 1: [실패 이유]
48
+
49
+ ## 다음 단계
50
+
51
+ ### 즉시 실행 작업
52
+ 1. [작업 1]
53
+ 2. [작업 2]
54
+
55
+ ### 참고 파일
56
+ - stages/[current]/outputs/[file]
57
+
58
+ ## 체크포인트
59
+
60
+ (해당 시)
61
+ - ID: CP-XX-YYYYMMDD-HHMM
62
+ - 설명: [설명]
63
+ ```
64
+
65
+ ### 3. 결정사항 추출
66
+
67
+ 대화에서 결정사항을 추출하는 패턴:
68
+
69
+ ```
70
+ 키워드:
71
+ - "결정", "선택", "~로 하자", "~가 좋겠다"
72
+ - "A 대신 B", "A보다 B"
73
+ - "최종적으로", "확정"
74
+
75
+ 구조화:
76
+ - 결정 제목
77
+ - 선택한 옵션
78
+ - 선택 이유
79
+ - 대안 (있는 경우)
80
+ ```
81
+
82
+ ### 4. 산출물 자동 탐지
83
+
84
+ ```bash
85
+ # outputs 디렉토리 스캔
86
+ find stages/$CURRENT_STAGE/outputs -type f \
87
+ -name "*.md" -o -name "*.json" -o -name "*.yaml" |
88
+ while read file; do
89
+ echo "| $(basename $file) | $(head -1 $file | sed 's/^#\s*//') |"
90
+ done
91
+ ```
92
+
93
+ ## 생성 예시
94
+
95
+ ### 입력 (대화 컨텍스트)
96
+
97
+ ```
98
+ 사용자: React와 Vue 중에 React를 선택했어
99
+ AI: React 기반으로 컴포넌트 명세를 작성했습니다.
100
+ 사용자: Tailwind CSS도 추가하자
101
+ AI: design-system.md에 Tailwind 설정을 추가했습니다.
102
+ ```
103
+
104
+ ### 출력 (HANDOFF.md)
105
+
106
+ ```markdown
107
+ # Handoff: 04-ui-ux → 05-task-management
108
+
109
+ 생성일: 2024-01-20 15:30
110
+
111
+ ## 완료된 작업
112
+
113
+ - [x] 와이어프레임 설계
114
+ - [x] 컴포넌트 명세 작성
115
+ - [x] 디자인 시스템 정의
116
+
117
+ ## 핵심 결정사항
118
+
119
+ ### 결정 1: 프론트엔드 프레임워크
120
+ - **선택**: React
121
+ - **이유**: 팀 경험, 생태계 성숙도
122
+ - **영향**: 컴포넌트 기반 아키텍처 적용
123
+
124
+ ### 결정 2: CSS 프레임워크
125
+ - **선택**: Tailwind CSS
126
+ - **이유**: 빠른 프로토타이핑, 일관된 디자인
127
+ - **영향**: utility-first 스타일링
128
+
129
+ ## 산출물
130
+
131
+ | 파일 | 설명 |
132
+ |------|------|
133
+ | wireframes/home.md | 홈 화면 와이어프레임 |
134
+ | component-spec.md | React 컴포넌트 명세 |
135
+ | design-system.md | Tailwind 기반 디자인 시스템 |
136
+
137
+ ## 다음 단계
138
+
139
+ ### 즉시 실행 작업
140
+ 1. tasks.json에 컴포넌트별 태스크 생성
141
+ 2. 스프린트 계획 수립
142
+
143
+ ### 참고 파일
144
+ - stages/04-ui-ux/outputs/component-spec.md
145
+ - stages/04-ui-ux/outputs/design-system.md
146
+ ```
147
+
148
+ ## 사용자 확인
149
+
150
+ 생성 후 사용자에게 확인 요청:
151
+
152
+ ```
153
+ HANDOFF.md가 생성되었습니다.
154
+
155
+ [미리보기]
156
+ ...
157
+
158
+ 수정이 필요하면 말씀해 주세요.
159
+ 확인되면 /next로 다음 스테이지로 전환합니다.
160
+ ```
@@ -0,0 +1,145 @@
1
+ # Stage Transition Prompt
2
+
3
+ 스테이지 전환 시 사용되는 프롬프트 템플릿입니다.
4
+
5
+ ## 완료 감지 프롬프트
6
+
7
+ 사용자가 완료를 표현했을 때:
8
+
9
+ ```
10
+ 스테이지 완료를 감지했습니다.
11
+
12
+ 현재 스테이지: {{CURRENT_STAGE}}
13
+ 상태: {{STATUS}}
14
+
15
+ [완료 조건 검증]
16
+ {{VALIDATION_RESULTS}}
17
+
18
+ {{#if ALL_PASSED}}
19
+ ✅ 모든 조건이 충족되었습니다.
20
+
21
+ 다음 단계:
22
+ 1. HANDOFF.md를 생성하시겠습니까? [Y/n]
23
+ 2. 또는 /next로 바로 전환
24
+
25
+ {{else}}
26
+ ⚠️ 일부 조건이 충족되지 않았습니다.
27
+
28
+ 필요 작업:
29
+ {{REQUIRED_ACTIONS}}
30
+
31
+ 강제 전환: /next --force (비권장)
32
+ {{/if}}
33
+ ```
34
+
35
+ ## 전환 안내 프롬프트
36
+
37
+ 다음 스테이지로 전환할 때:
38
+
39
+ ```
40
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
41
+ 🔄 스테이지 전환 완료
42
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
43
+
44
+ {{PREV_STAGE}} ✅ → {{NEXT_STAGE}} 🔄
45
+
46
+ [{{NEXT_STAGE}} 스테이지 정보]
47
+ • AI 모델: {{AI_MODEL}}
48
+ • 실행 모드: {{MODE}}
49
+ • 예상 시간: {{ESTIMATED_TIME}}
50
+
51
+ [입력 파일]
52
+ {{INPUT_FILES}}
53
+
54
+ [주요 작업]
55
+ {{MAIN_TASKS}}
56
+
57
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
58
+ 시작 명령어: /{{SHORTCUT}} 또는 /run-stage {{STAGE_NUM}}
59
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
60
+ ```
61
+
62
+ ## 스테이지별 전환 메시지
63
+
64
+ ### 01 → 02 (brainstorm → research)
65
+
66
+ ```
67
+ 🧠 브레인스토밍 완료!
68
+
69
+ 아이디어가 정리되었습니다. 이제 리서치 단계입니다.
70
+
71
+ 다음 작업:
72
+ • ideas.md 기반 기술 조사
73
+ • 경쟁 제품 분석
74
+ • MCP 도구로 최신 정보 수집
75
+
76
+ 시작: /research
77
+ ```
78
+
79
+ ### 05 → 06 (task-management → implementation)
80
+
81
+ ```
82
+ 📋 태스크 분해 완료!
83
+
84
+ {{TASK_COUNT}}개 태스크가 {{SPRINT_COUNT}}개 스프린트로 계획되었습니다.
85
+
86
+ ⚠️ 중요: 06-implementation은 체크포인트 필수 스테이지입니다.
87
+ 주요 마일스톤마다 /checkpoint를 실행하세요.
88
+
89
+ 다음 작업:
90
+ • 스프린트 1 태스크부터 구현
91
+ • 단위 테스트 함께 작성
92
+ • 마일스톤마다 체크포인트
93
+
94
+ 시작: /implement
95
+ ```
96
+
97
+ ### 09 → 10 (testing → deployment)
98
+
99
+ ```
100
+ ✅ 테스팅 완료!
101
+
102
+ 테스트 결과:
103
+ • 단위 테스트: {{UNIT_PASS}}/{{UNIT_TOTAL}} 통과
104
+ • E2E 테스트: {{E2E_PASS}}/{{E2E_TOTAL}} 통과
105
+ • 커버리지: {{COVERAGE}}%
106
+
107
+ 🚀 마지막 단계입니다!
108
+
109
+ 다음 작업:
110
+ • CI/CD 파이프라인 설정
111
+ • 환경별 배포 설정
112
+ • 모니터링 구성
113
+
114
+ 시작: /deploy
115
+ ```
116
+
117
+ ## 완료 축하 프롬프트
118
+
119
+ ```
120
+ 🎉 파이프라인 완료!
121
+
122
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
123
+ 프로젝트: {{PROJECT_NAME}}
124
+ 총 소요 기간: {{DURATION}}
125
+ 체크포인트: {{CHECKPOINT_COUNT}}개
126
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
127
+
128
+ [스테이지 요약]
129
+ 01 ✅ brainstorm - 아이디어 정립
130
+ 02 ✅ research - 기술 조사
131
+ 03 ✅ planning - PRD 작성
132
+ 04 ✅ ui-ux - 디자인
133
+ 05 ✅ task-mgmt - 태스크 분해
134
+ 06 ✅ implementation - 구현
135
+ 07 ✅ refactoring - 리팩토링
136
+ 08 ✅ qa - 품질 검증
137
+ 09 ✅ testing - 테스팅
138
+ 10 ✅ deployment - 배포
139
+
140
+ [문서]
141
+ • state/handoffs/ - 모든 핸드오프 문서
142
+ • state/checkpoints/ - 체크포인트
143
+
144
+ 수고하셨습니다! 🎊
145
+ ```
@@ -0,0 +1,108 @@
1
+ # Stage Validation Logic
2
+
3
+ 현재 스테이지의 완료 조건을 검증합니다.
4
+
5
+ ## 검증 프로세스
6
+
7
+ ### 1. 현재 스테이지 식별
8
+
9
+ ```bash
10
+ # progress.json에서 현재 스테이지 확인
11
+ CURRENT_STAGE=$(jq -r '.current_stage' state/progress.json)
12
+ ```
13
+
14
+ ### 2. 완료 조건 로드
15
+
16
+ 각 스테이지별 필수 outputs:
17
+
18
+ | 스테이지 | 필수 파일 | 체크포인트 |
19
+ |----------|----------|------------|
20
+ | 01-brainstorm | ideas.md, decisions.md | - |
21
+ | 02-research | research.md, tech-stack.md | - |
22
+ | 03-planning | PRD.md, architecture.md | - |
23
+ | 04-ui-ux | wireframes/, component-spec.md | - |
24
+ | 05-task-management | tasks.json, sprints.md | - |
25
+ | 06-implementation | src/, tests/ | ✅ 필수 |
26
+ | 07-refactoring | src/ (수정됨) | ✅ 필수 |
27
+ | 08-qa | qa-report.md | - |
28
+ | 09-testing | test-results.md | - |
29
+ | 10-deployment | CI/CD 파일 | - |
30
+
31
+ ### 3. 파일 존재 확인
32
+
33
+ ```bash
34
+ STAGE_DIR="stages/$CURRENT_STAGE/outputs"
35
+
36
+ # 필수 파일 체크
37
+ check_required_files() {
38
+ local files=("$@")
39
+ local missing=()
40
+
41
+ for file in "${files[@]}"; do
42
+ if [ ! -e "$STAGE_DIR/$file" ]; then
43
+ missing+=("$file")
44
+ fi
45
+ done
46
+
47
+ echo "${missing[@]}"
48
+ }
49
+ ```
50
+
51
+ ### 4. 체크포인트 확인 (해당 시)
52
+
53
+ ```bash
54
+ # 06, 07 스테이지는 체크포인트 필수
55
+ if [[ "$CURRENT_STAGE" == "06-"* ]] || [[ "$CURRENT_STAGE" == "07-"* ]]; then
56
+ STAGE_NUM=$(echo "$CURRENT_STAGE" | cut -d'-' -f1)
57
+ CP_EXISTS=$(ls -d state/checkpoints/CP-$STAGE_NUM-* 2>/dev/null | head -1)
58
+
59
+ if [ -z "$CP_EXISTS" ]; then
60
+ echo "⚠️ 체크포인트 필수: /checkpoint 실행 필요"
61
+ fi
62
+ fi
63
+ ```
64
+
65
+ ## 검증 결과 형식
66
+
67
+ ### 성공
68
+
69
+ ```
70
+ ✅ 스테이지 완료 조건 충족
71
+
72
+ [04-ui-ux]
73
+ ✓ wireframes/ 존재 (3개 파일)
74
+ ✓ component-spec.md 생성됨
75
+ ✓ design-system.md 생성됨
76
+
77
+ 다음 단계: /next 또는 /tasks
78
+ ```
79
+
80
+ ### 실패
81
+
82
+ ```
83
+ ⚠️ 스테이지 완료 조건 미충족
84
+
85
+ [06-implementation]
86
+ ✓ src/ 존재
87
+ ✓ tests/ 존재
88
+ ✗ 체크포인트 없음
89
+
90
+ 필요 작업:
91
+ 1. /checkpoint "구현 완료" 실행
92
+ 2. /next로 전환
93
+ ```
94
+
95
+ ## 자동 액션
96
+
97
+ 검증 결과에 따른 자동 제안:
98
+
99
+ 1. **모든 조건 충족**
100
+ → HANDOFF.md 생성 제안
101
+ → `/next` 명령어 안내
102
+
103
+ 2. **일부 조건 미충족**
104
+ → 누락된 항목 안내
105
+ → 해결 방법 제안
106
+
107
+ 3. **체크포인트 필요**
108
+ → `/checkpoint` 명령어 안내