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,77 @@
1
+ # AI 협업 프롬프트 - Testing & E2E
2
+
3
+ ## 협업 모드: Test Generation Chain
4
+
5
+ 이 스테이지에서는 **테스트 생성 체인**을 사용하여 포괄적인 테스트를 작성합니다.
6
+
7
+ ### 참여 모델
8
+ - **Codex**: 테스트 코드 생성
9
+ - **ClaudeCode**: E2E 테스트, Playwright 통합
10
+
11
+ ### 협업 프롬프트
12
+
13
+ ```
14
+ # 테스트 생성 체인
15
+ /collaborate --mode sequential --chain "codex:unit_tests -> codex:integration_tests -> claude:e2e_tests"
16
+ ```
17
+
18
+ ### 테스트 계층
19
+
20
+ | 계층 | 담당 AI | 도구 |
21
+ |------|---------|------|
22
+ | 단위 테스트 | Codex | Vitest/Jest |
23
+ | 통합 테스트 | Codex | Testing Library |
24
+ | E2E 테스트 | Claude | Playwright |
25
+
26
+ ### Codex 활용
27
+
28
+ ```bash
29
+ # 단위 테스트 생성
30
+ /codex "다음 함수에 대한 단위 테스트 작성:
31
+ [함수 코드]
32
+ 테스트 프레임워크: Vitest
33
+ 커버리지 목표: 80%"
34
+
35
+ # E2E 테스트 생성
36
+ /codex "다음 사용자 플로우에 대한 Playwright 테스트:
37
+ 1. 로그인
38
+ 2. 핵심 기능
39
+ 3. 에러 시나리오"
40
+ ```
41
+
42
+ ### MCP 서버: Playwright
43
+
44
+ ```javascript
45
+ // E2E 테스트 예시
46
+ test('로그인 플로우', async ({ page }) => {
47
+ await page.goto('/login');
48
+ await page.fill('[name="email"]', 'test@example.com');
49
+ await page.fill('[name="password"]', 'password');
50
+ await page.click('button[type="submit"]');
51
+ await expect(page).toHaveURL('/dashboard');
52
+ });
53
+ ```
54
+
55
+ ### 출력 형식
56
+
57
+ ```markdown
58
+ ## AI 협업 결과
59
+
60
+ ### Codex 단위 테스트
61
+ - [파일]: [테스트 케이스 수]
62
+ ...
63
+
64
+ ### Codex 통합 테스트
65
+ - [시나리오]: [커버리지]
66
+ ...
67
+
68
+ ### Claude E2E 테스트
69
+ - [플로우]: [테스트 케이스]
70
+ ...
71
+
72
+ ### 커버리지 요약
73
+ - Statements: X%
74
+ - Branches: X%
75
+ - Functions: X%
76
+ - Lines: X%
77
+ ```
@@ -0,0 +1,83 @@
1
+ # 산출물 검증 프롬프트 - Testing & E2E
2
+
3
+ ## 검증 대상
4
+
5
+ | 산출물 | 필수 조건 | 검증 방법 |
6
+ |--------|----------|----------|
7
+ | `tests/` | 커버리지 80%+ | `npm run test:coverage` |
8
+ | `test_report.md` | 100% 통과 | 결과 확인 |
9
+ | `coverage_report.md` | 메트릭 포함 | 구조 확인 |
10
+ | `HANDOFF.md` | 배포 준비 상태 | 항목 확인 |
11
+
12
+ ## 검증 명령
13
+
14
+ ```bash
15
+ /validate --stage 09-testing
16
+ ```
17
+
18
+ ## 품질 기준
19
+
20
+ ### tests/
21
+ - [ ] 단위 테스트 존재
22
+ - [ ] 통합 테스트 존재
23
+ - [ ] E2E 테스트 존재 (핵심 플로우)
24
+ - [ ] 모든 테스트 통과
25
+
26
+ ### 커버리지 목표
27
+ - [ ] Statements: 80%+
28
+ - [ ] Branches: 75%+
29
+ - [ ] Functions: 80%+
30
+ - [ ] Lines: 80%+
31
+
32
+ ### test_report.md
33
+ - [ ] 테스트 케이스 목록
34
+ - [ ] 통과/실패 현황
35
+ - [ ] 실패 테스트 분석 (있는 경우)
36
+
37
+ ### coverage_report.md
38
+ - [ ] 커버리지 요약
39
+ - [ ] 파일별 커버리지
40
+ - [ ] 커버되지 않은 영역 식별
41
+
42
+ ### HANDOFF.md
43
+ - [ ] 테스트 통과 확인
44
+ - [ ] 커버리지 달성 확인
45
+ - [ ] 배포 준비 체크리스트
46
+
47
+ ## 자동 검증 스크립트
48
+
49
+ ```bash
50
+ # 단위/통합 테스트 실행
51
+ npm run test
52
+
53
+ # 커버리지 측정
54
+ npm run test:coverage
55
+
56
+ # E2E 테스트 실행
57
+ npm run test:e2e
58
+
59
+ # 커버리지 임계값 확인
60
+ npm run test:coverage -- --coverageThreshold='{"global":{"statements":80,"branches":75,"functions":80,"lines":80}}'
61
+ ```
62
+
63
+ ## 커버리지 메트릭
64
+
65
+ | 메트릭 | 목표 | 실제 | 상태 |
66
+ |--------|------|------|------|
67
+ | Statements | 80% | - | - |
68
+ | Branches | 75% | - | - |
69
+ | Functions | 80% | - | - |
70
+ | Lines | 80% | - | - |
71
+
72
+ ## E2E 테스트 체크리스트
73
+
74
+ - [ ] 인증 플로우 테스트
75
+ - [ ] 핵심 기능 플로우 테스트
76
+ - [ ] 에러 시나리오 테스트
77
+ - [ ] 반응형 테스트 (선택적)
78
+
79
+ ## 실패 시 조치
80
+
81
+ 1. 테스트 실패 → 버그 수정 후 재실행
82
+ 2. 커버리지 미달 → 테스트 추가
83
+ 3. E2E 실패 → UI/로직 수정
File without changes
@@ -0,0 +1,117 @@
1
+ # Stage 10: CI/CD & Deployment
2
+
3
+ 배포 파이프라인 설정 및 배포 단계
4
+
5
+ ## 🎭 페르소나: DevOps Specialist
6
+
7
+ > 당신은 DevOps Specialist입니다.
8
+ > 안전하고 반복 가능한 배포 프로세스를 구축하세요.
9
+ > 항상 롤백 가능성을 고려하고 모니터링을 설정하세요.
10
+
11
+ ### 특성
12
+ - 자동화 전문
13
+ - 보안 중시
14
+ - 모니터링 설계
15
+ - 롤백 준비
16
+
17
+ ### 권장 행동
18
+ - 자동화된 파이프라인
19
+ - 환경 분리
20
+ - 롤백 전략
21
+ - 모니터링 설정
22
+
23
+ ### 지양 행동
24
+ - 수동 배포
25
+ - 하드코딩된 설정
26
+ - 보안 무시
27
+
28
+ ### AI 설정
29
+ - **Temperature**: 0.2 (안전 최우선)
30
+ - **안전성 집중**: Critical
31
+ - **자동화 수준**: High
32
+
33
+ ## 실행 모델
34
+ - **Primary**: ClaudeCode (CI/CD 설정)
35
+ - **Mode**: Headless - CI/CD 환경 자동화
36
+
37
+ ## 목표
38
+ 1. CI/CD 파이프라인 설정
39
+ 2. 배포 환경 구성
40
+ 3. 모니터링 설정
41
+ 4. 문서화 완료
42
+
43
+ ## 입력 파일
44
+ - `source_code/` - 최종 소스 코드
45
+ - `../09-testing/outputs/tests/`
46
+ - `../09-testing/outputs/test_report.md`
47
+ - `../09-testing/HANDOFF.md`
48
+
49
+ ## 출력 파일
50
+ - `outputs/.github/workflows/` - GitHub Actions
51
+ - `outputs/deployment_config/` - 배포 설정
52
+ - `outputs/deployment_log.md` - 배포 로그
53
+ - `HANDOFF.md` (최종)
54
+
55
+ ## 워크플로우
56
+
57
+ ### 1. CI 파이프라인 설정
58
+ ```yaml
59
+ # .github/workflows/ci.yml
60
+ name: CI
61
+ on: [push, pull_request]
62
+ jobs:
63
+ test:
64
+ runs-on: ubuntu-latest
65
+ steps:
66
+ - uses: actions/checkout@v4
67
+ - uses: actions/setup-node@v4
68
+ - run: npm ci
69
+ - run: npm run lint
70
+ - run: npm run type-check
71
+ - run: npm test
72
+ ```
73
+
74
+ ### 2. CD 파이프라인 설정
75
+ - 스테이징 환경 배포
76
+ - 프로덕션 환경 배포
77
+ - 롤백 전략
78
+
79
+ ### 3. 환경 설정
80
+ - 환경 변수 관리
81
+ - 시크릿 설정
82
+ - 도메인/SSL
83
+
84
+ ### 4. 모니터링 설정
85
+ - 에러 트래킹 (Sentry)
86
+ - 성능 모니터링
87
+ - 로그 수집
88
+
89
+ ### 5. 문서화
90
+ - 배포 가이드
91
+ - 운영 매뉴얼
92
+ - 트러블슈팅 가이드
93
+
94
+ ## 배포 플랫폼 옵션
95
+ - **Vercel**: Next.js 권장
96
+ - **Railway**: 풀스택
97
+ - **AWS**: 엔터프라이즈
98
+ - **Cloudflare**: Edge
99
+
100
+ ## 완료 조건
101
+ - [ ] CI 파이프라인 설정
102
+ - [ ] CD 파이프라인 설정
103
+ - [ ] 스테이징 배포 성공
104
+ - [ ] 프로덕션 배포 성공
105
+ - [ ] 모니터링 설정
106
+ - [ ] 배포 문서 작성
107
+ - [ ] HANDOFF.md 생성 (최종)
108
+
109
+ ## 파이프라인 종료
110
+ 이것이 마지막 스테이지입니다. 배포 완료 후:
111
+ 1. 전체 프로젝트 회고
112
+ 2. 학습 내용 문서화
113
+ 3. 유지보수 계획 수립
114
+
115
+
116
+
117
+
@@ -0,0 +1,148 @@
1
+ # Stage Handoff: 10-deployment → PROJECT COMPLETE
2
+
3
+ **생성일**: {{TIMESTAMP}}
4
+ **생성자**: ClaudeCode
5
+ **소요 시간**: {{DURATION}}
6
+
7
+ ---
8
+
9
+ ## 완료된 작업
10
+
11
+ - [ ] CI 파이프라인 설정
12
+ - [ ] CD 파이프라인 설정
13
+ - [ ] 스테이징 배포 성공
14
+ - [ ] 프로덕션 배포 성공
15
+ - [ ] 모니터링 설정
16
+ - [ ] 배포 문서 작성
17
+ - [ ] HANDOFF.md 생성 (최종)
18
+
19
+ ---
20
+
21
+ ## 프로젝트 완료 요약
22
+
23
+ ### 배포 정보
24
+
25
+ | 환경 | URL | 상태 |
26
+ |------|-----|------|
27
+ | Production | {{PROD_URL}} | {{PROD_STATUS}} |
28
+ | Staging | {{STAGE_URL}} | {{STAGE_STATUS}} |
29
+
30
+ ### CI/CD 파이프라인
31
+
32
+ | 파이프라인 | 상태 | 마지막 실행 |
33
+ |------------|------|-------------|
34
+ | CI | {{CI_STATUS}} | {{CI_LAST}} |
35
+ | CD (Staging) | {{CD_STAGE_STATUS}} | {{CD_STAGE_LAST}} |
36
+ | CD (Production) | {{CD_PROD_STATUS}} | {{CD_PROD_LAST}} |
37
+
38
+ ### 모니터링
39
+
40
+ | 서비스 | 용도 | 대시보드 |
41
+ |--------|------|----------|
42
+ | {{MONITOR_1}} | 에러 트래킹 | {{DASH_1}} |
43
+ | {{MONITOR_2}} | 성능 모니터링 | {{DASH_2}} |
44
+
45
+ ---
46
+
47
+ ## 전체 파이프라인 회고
48
+
49
+ ### 스테이지별 소요 시간
50
+
51
+ | 스테이지 | 소요 시간 | 모델 |
52
+ |----------|-----------|------|
53
+ | 01-brainstorm | {{TIME_01}} | Gemini + ClaudeCode |
54
+ | 02-research | {{TIME_02}} | Claude |
55
+ | 03-planning | {{TIME_03}} | Gemini |
56
+ | 04-ui-ux | {{TIME_04}} | Gemini |
57
+ | 05-task-management | {{TIME_05}} | ClaudeCode |
58
+ | 06-implementation | {{TIME_06}} | ClaudeCode |
59
+ | 07-refactoring | {{TIME_07}} | Codex |
60
+ | 08-qa | {{TIME_08}} | ClaudeCode |
61
+ | 09-testing | {{TIME_09}} | Codex |
62
+ | 10-deployment | {{TIME_10}} | ClaudeCode |
63
+ | **총계** | **{{TOTAL_TIME}}** | |
64
+
65
+ ### 주요 성과
66
+ 1. {{ACHIEVEMENT_1}}
67
+ 2. {{ACHIEVEMENT_2}}
68
+ 3. {{ACHIEVEMENT_3}}
69
+
70
+ ### 학습 내용
71
+ 1. {{LEARNING_1}}
72
+ 2. {{LEARNING_2}}
73
+
74
+ ### 향후 개선점
75
+ 1. {{IMPROVEMENT_1}}
76
+ 2. {{IMPROVEMENT_2}}
77
+
78
+ ---
79
+
80
+ ## 운영 가이드
81
+
82
+ ### 배포 명령어
83
+ ```bash
84
+ # 스테이징 배포
85
+ npm run deploy:staging
86
+
87
+ # 프로덕션 배포
88
+ npm run deploy:production
89
+
90
+ # 롤백
91
+ npm run rollback
92
+ ```
93
+
94
+ ### 환경 변수
95
+ - `DATABASE_URL`: 데이터베이스 연결 문자열
96
+ - `API_KEY`: 외부 API 키
97
+ - (`.env.example` 참조)
98
+
99
+ ### 트러블슈팅
100
+ - 배포 실패 시: {{TROUBLESHOOT_1}}
101
+ - 성능 이슈 시: {{TROUBLESHOOT_2}}
102
+
103
+ ---
104
+
105
+ ## 생성된 산출물
106
+
107
+ | 파일 | 설명 |
108
+ |------|------|
109
+ | .github/workflows/ | CI/CD 워크플로우 |
110
+ | deployment_config/ | 배포 설정 |
111
+ | deployment_log.md | 배포 로그 |
112
+
113
+ ---
114
+
115
+ ## 프로젝트 종료
116
+
117
+ 이 프로젝트는 성공적으로 완료되었습니다.
118
+
119
+ ### 다음 단계 제안
120
+ 1. 사용자 피드백 수집
121
+ 2. 성능 모니터링 검토
122
+ 3. 다음 이터레이션 계획
123
+
124
+ ---
125
+
126
+ ## AI 호출 기록
127
+
128
+ | AI | 호출 시간 | 프롬프트 | 결과 | 상태 |
129
+ |----|----------|---------|------|------|
130
+ | {{AI_1}} | {{TIME_1}} | {{PROMPT_1}} | {{OUTPUT_1}} | {{STATUS_1}} |
131
+ | {{AI_2}} | {{TIME_2}} | {{PROMPT_2}} | {{OUTPUT_2}} | {{STATUS_2}} |
132
+
133
+ > 설정: `config/ai_logging.yaml`
134
+
135
+ ---
136
+
137
+ ## 메타데이터
138
+
139
+ ```yaml
140
+ stage: "10-deployment"
141
+ status: "completed"
142
+ project_status: "COMPLETED"
143
+ models_used:
144
+ - claudecode
145
+ total_stages: 10
146
+ total_duration: "{{TOTAL_TIME}}"
147
+ production_url: "{{PROD_URL}}"
148
+ ```
@@ -0,0 +1,61 @@
1
+ # Stage 10: CI/CD & Deployment Configuration
2
+
3
+ stage:
4
+ id: "10-deployment"
5
+ name: "CI/CD & Deployment"
6
+ description: "배포 파이프라인 설정 및 배포"
7
+
8
+ models:
9
+ primary: "claudecode"
10
+ secondary: null
11
+ collaboration: null
12
+
13
+ execution:
14
+ mode: "headless"
15
+ container: false
16
+ sandbox: false
17
+ timeout: 3600
18
+
19
+ inputs:
20
+ required:
21
+ - name: "source_code/"
22
+ - name: "../09-testing/outputs/tests/"
23
+ - name: "../09-testing/outputs/test_report.md"
24
+ - name: "../09-testing/HANDOFF.md"
25
+
26
+ outputs:
27
+ required:
28
+ - name: ".github/workflows/"
29
+ description: "GitHub Actions 워크플로우"
30
+ - name: "deployment_config/"
31
+ description: "배포 설정 파일"
32
+ - name: "deployment_log.md"
33
+ description: "배포 로그"
34
+ - name: "HANDOFF.md"
35
+
36
+ prompts:
37
+ - name: "ci_setup"
38
+ file: "prompts/ci_setup.md"
39
+ model: "claudecode"
40
+ - name: "cd_setup"
41
+ file: "prompts/cd_setup.md"
42
+ model: "claudecode"
43
+ - name: "monitoring"
44
+ file: "prompts/monitoring.md"
45
+ model: "claudecode"
46
+
47
+ completion:
48
+ checklist:
49
+ - "CI 파이프라인 설정"
50
+ - "CD 파이프라인 설정"
51
+ - "스테이징 배포 성공"
52
+ - "프로덕션 배포 성공"
53
+ - "모니터링 설정"
54
+ - "배포 문서 작성"
55
+
56
+ transition:
57
+ next_stage: null # 마지막 스테이지
58
+ prerequisites:
59
+ - "09-testing"
60
+ handoff_required: true
61
+ checkpoint_required: false
File without changes
File without changes
File without changes
@@ -0,0 +1,80 @@
1
+ # AI 협업 프롬프트 - CI/CD & Deployment
2
+
3
+ ## 협업 모드: Deployment Chain
4
+
5
+ 이 스테이지에서는 **배포 체인**을 사용하여 안전한 배포를 수행합니다.
6
+
7
+ ### 참여 모델
8
+ - **ClaudeCode**: CI/CD 설정, 배포 자동화
9
+
10
+ ### 협업 프롬프트
11
+
12
+ ```
13
+ # 배포 체인
14
+ /collaborate --mode sequential --chain "claudecode:ci_setup -> claudecode:cd_setup -> claudecode:deploy"
15
+ ```
16
+
17
+ ### 배포 단계
18
+
19
+ | 단계 | 작업 | 검증 |
20
+ |------|------|------|
21
+ | CI 설정 | 빌드/테스트 파이프라인 | 테스트 통과 |
22
+ | CD 설정 | 스테이징/프로덕션 파이프라인 | 환경 분리 |
23
+ | 배포 | 실제 배포 실행 | 헬스 체크 |
24
+
25
+ ### CI/CD 파이프라인 구성
26
+
27
+ ```yaml
28
+ # .github/workflows/ci.yml
29
+ name: CI
30
+ on: [push, pull_request]
31
+ jobs:
32
+ test:
33
+ runs-on: ubuntu-latest
34
+ steps:
35
+ - uses: actions/checkout@v4
36
+ - uses: actions/setup-node@v4
37
+ - run: npm ci
38
+ - run: npm run lint
39
+ - run: npm run type-check
40
+ - run: npm test
41
+ - run: npm run build
42
+ ```
43
+
44
+ ### 배포 플랫폼 선택
45
+
46
+ | 플랫폼 | 장점 | 권장 사용 |
47
+ |--------|------|----------|
48
+ | Vercel | Next.js 최적화 | 프론트엔드 |
49
+ | Railway | 풀스택 지원 | 풀스택 앱 |
50
+ | AWS | 확장성 | 엔터프라이즈 |
51
+ | Cloudflare | Edge 배포 | 정적/Edge |
52
+
53
+ ### 롤백 전략
54
+
55
+ ```bash
56
+ # 롤백 준비
57
+ /checkpoint --reason "배포 전 상태"
58
+
59
+ # 롤백 실행 (필요시)
60
+ /restore checkpoint_id
61
+ ```
62
+
63
+ ### 출력 형식
64
+
65
+ ```markdown
66
+ ## 배포 결과
67
+
68
+ ### CI 파이프라인
69
+ - 빌드: 성공/실패
70
+ - 테스트: 통과/실패
71
+ - Lint: 통과/실패
72
+
73
+ ### CD 파이프라인
74
+ - 스테이징: [URL]
75
+ - 프로덕션: [URL]
76
+
77
+ ### 모니터링
78
+ - 에러 트래킹: [설정 여부]
79
+ - 성능 모니터링: [설정 여부]
80
+ ```
@@ -0,0 +1,93 @@
1
+ # 산출물 검증 프롬프트 - CI/CD & Deployment
2
+
3
+ ## 검증 대상
4
+
5
+ | 산출물 | 필수 조건 | 검증 방법 |
6
+ |--------|----------|----------|
7
+ | `.github/workflows/` | CI 파이프라인 | 구조 확인 |
8
+ | `deployment_config/` | 환경 설정 | 구조 확인 |
9
+ | `deployment_log.md` | 배포 기록 | 항목 확인 |
10
+ | `HANDOFF.md` | 최종 상태 | 항목 확인 |
11
+
12
+ ## 검증 명령
13
+
14
+ ```bash
15
+ /validate --stage 10-deployment
16
+ ```
17
+
18
+ ## 품질 기준
19
+
20
+ ### .github/workflows/
21
+ - [ ] CI 워크플로우 존재 (ci.yml)
22
+ - [ ] CD 워크플로우 존재 (cd.yml)
23
+ - [ ] 빌드 단계 포함
24
+ - [ ] 테스트 단계 포함
25
+ - [ ] 배포 단계 포함
26
+
27
+ ### deployment_config/
28
+ - [ ] 환경 변수 관리
29
+ - [ ] 시크릿 설정 가이드
30
+ - [ ] 도메인/SSL 설정
31
+
32
+ ### deployment_log.md
33
+ - [ ] 스테이징 배포 기록
34
+ - [ ] 프로덕션 배포 기록
35
+ - [ ] 배포 URL
36
+
37
+ ### HANDOFF.md (최종)
38
+ - [ ] 프로젝트 완료 체크리스트
39
+ - [ ] 운영 가이드 링크
40
+ - [ ] 모니터링 설정 확인
41
+
42
+ ## 자동 검증 스크립트
43
+
44
+ ```bash
45
+ # GitHub Actions 워크플로우 확인
46
+ ls -la outputs/.github/workflows/
47
+
48
+ # 워크플로우 유효성 검사 (yamllint)
49
+ yamllint outputs/.github/workflows/*.yml
50
+
51
+ # 배포 설정 확인
52
+ ls -la outputs/deployment_config/
53
+ ```
54
+
55
+ ## CI/CD 검증
56
+
57
+ | 항목 | 기준 | 확인 |
58
+ |------|------|------|
59
+ | CI 워크플로우 | 존재 | - |
60
+ | CD 워크플로우 | 존재 | - |
61
+ | 스테이징 배포 | 성공 | - |
62
+ | 프로덕션 배포 | 성공 | - |
63
+ | 헬스 체크 | 통과 | - |
64
+
65
+ ## 모니터링 체크리스트
66
+
67
+ - [ ] 에러 트래킹 설정 (Sentry 등)
68
+ - [ ] 성능 모니터링 설정
69
+ - [ ] 로그 수집 설정
70
+ - [ ] 알림 설정
71
+
72
+ ## 문서 체크리스트
73
+
74
+ - [ ] 배포 가이드
75
+ - [ ] 운영 매뉴얼
76
+ - [ ] 트러블슈팅 가이드
77
+ - [ ] 롤백 절차
78
+
79
+ ## 파이프라인 완료 확인
80
+
81
+ ```bash
82
+ # 모든 스테이지 완료 확인
83
+ /status
84
+
85
+ # 최종 검증
86
+ /validate --all
87
+ ```
88
+
89
+ ## 실패 시 조치
90
+
91
+ 1. CI 실패 → 워크플로우 수정
92
+ 2. 배포 실패 → 설정 확인 및 재시도
93
+ 3. 헬스 체크 실패 → 로그 분석 및 수정