aiwf 0.1.0 → 0.3.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 (145) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/CLAUDE.md +220 -0
  3. package/LICENSE +1 -1
  4. package/README.ko.md +90 -62
  5. package/README.md +89 -62
  6. package/claude-code/{simone/.simone → aiwf/en/.aiwf}/01_PROJECT_DOCS/ARCHITECTURE.md +1 -1
  7. package/claude-code/{simone/.simone → aiwf/en/.aiwf}/02_REQUIREMENTS/M01_Backend_Setup/M01_milestone_meta.md +5 -1
  8. package/claude-code/{simone/.simone → aiwf/en/.aiwf}/02_REQUIREMENTS/M01_Backend_Setup/PRD_AMEND_01_Auth_Flow_Update.md +5 -1
  9. package/claude-code/{simone/.simone/03_SPRINTS/CLAUDE.MD → aiwf/en/.aiwf/03_SPRINTS/CLAUDE.md} +28 -7
  10. package/claude-code/{simone/.simone → aiwf/en/.aiwf}/03_SPRINTS/S01_M01_Initial_API/S01_sprint_meta.md +8 -1
  11. package/claude-code/{simone/.simone → aiwf/en/.aiwf}/03_SPRINTS/S01_M01_Initial_API/T01_S01_Setup_Project_Structure.md +5 -1
  12. package/claude-code/aiwf/en/.aiwf/04_GENERAL_TASKS/CLAUDE.md +96 -0
  13. package/claude-code/{simone/.simone → aiwf/en/.aiwf}/04_GENERAL_TASKS/T002_API_Rate_Limiting.md +7 -2
  14. package/claude-code/{simone/.simone → aiwf/en/.aiwf}/04_GENERAL_TASKS/TX001_Refactor_Logging_Module.md +7 -2
  15. package/claude-code/{simone/.simone → aiwf/en/.aiwf}/05_ARCHITECTURAL_DECISIONS/ADR001_Chosen_Database_System.md +7 -1
  16. package/claude-code/{simone/.simone → aiwf/en/.aiwf}/05_ARCHITECTURAL_DECISIONS/ADR002_API_Authentication_Method.md +7 -1
  17. package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/2025-06-12-12-00-needs-focus.md +139 -0
  18. package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/2025-06-12-12-00-test-alignment.md +155 -0
  19. package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/2025-06-13-00-50-solid-progress.md +122 -0
  20. package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/2025-06-14-08-30-infrastructure-challenges.md +141 -0
  21. package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/2025-06-16-21-48-critical-foundation-issues.md +177 -0
  22. package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/2025-06-17-15-08-solid-progress.md +149 -0
  23. package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/index.json +5 -0
  24. package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/sync-index.js +78 -0
  25. package/claude-code/aiwf/en/.aiwf/98_PROMPTS/github_integration.md +130 -0
  26. package/claude-code/aiwf/en/.aiwf/98_PROMPTS/useful-prompts.md +31 -0
  27. package/claude-code/aiwf/en/.aiwf/98_PROMPTS/vibe-front-prompts.md +89 -0
  28. package/claude-code/{simone/.simone → aiwf/en/.aiwf}/99_TEMPLATES/task_template.md +1 -0
  29. package/claude-code/{simone/.simone/CLAUDE.MD → aiwf/en/.aiwf/CLAUDE.md} +13 -4
  30. package/claude-code/{simone/.simone → aiwf/en/.aiwf}/README.md +6 -6
  31. package/claude-code/aiwf/en/.claude/CLAUDE_BE.md +276 -0
  32. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_changelog.md +82 -0
  33. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_code_review.md +88 -0
  34. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_commit.md +160 -0
  35. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_create_general_task.md +147 -0
  36. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_create_milestone_plan.md +194 -0
  37. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_create_prd.md +272 -0
  38. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_create_sprint_tasks.md +189 -0
  39. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_create_sprints_from_milestone.md +121 -0
  40. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_discuss_review.md +29 -0
  41. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_do_task.md +109 -0
  42. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_infinite.md +202 -0
  43. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_initialize.md +134 -0
  44. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_issue_create.md +65 -0
  45. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_mermaid.md +272 -0
  46. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_pr_create.md +76 -0
  47. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_prime.md +9 -0
  48. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_prime_context.md +5 -0
  49. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_project_review.md +261 -0
  50. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_test.md +125 -0
  51. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_testing_review.md +198 -0
  52. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_tm-run-all-subtask.md +206 -0
  53. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_ultrathink_code_advanced.md +460 -0
  54. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_ultrathink_code_basic.md +165 -0
  55. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_ultrathink_general.md +362 -0
  56. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_yolo.md +300 -0
  57. package/claude-code/aiwf/en/.claude/mcp.json +31 -0
  58. package/claude-code/aiwf/en/.claude/settings.json +102 -0
  59. package/claude-code/aiwf/ko/.aiwf/00_PROJECT_MANIFEST.md +49 -0
  60. package/claude-code/aiwf/ko/.aiwf/01_PROJECT_DOCS/ARCHITECTURE.md +55 -0
  61. package/claude-code/aiwf/ko/.aiwf/02_REQUIREMENTS/CLAUDE.md +78 -0
  62. package/claude-code/aiwf/ko/.aiwf/02_REQUIREMENTS/M01_Backend_Setup/M01_milestone_meta.md +42 -0
  63. package/claude-code/aiwf/ko/.aiwf/02_REQUIREMENTS/M01_Backend_Setup/PRD_AMEND_01_Auth_Flow_Update.md +73 -0
  64. package/claude-code/aiwf/ko/.aiwf/02_REQUIREMENTS/M01_Backend_Setup/PRD_Backend_Setup.md +98 -0
  65. package/claude-code/aiwf/ko/.aiwf/02_REQUIREMENTS/M01_Backend_Setup/SPECS_API_V1.md +232 -0
  66. package/claude-code/aiwf/ko/.aiwf/03_SPRINTS/CLAUDE.md +83 -0
  67. package/claude-code/aiwf/ko/.aiwf/03_SPRINTS/S01_M01_Initial_API/S01_sprint_meta.md +49 -0
  68. package/claude-code/aiwf/ko/.aiwf/03_SPRINTS/S01_M01_Initial_API/T01_S01_Setup_Project_Structure.md +60 -0
  69. package/claude-code/aiwf/ko/.aiwf/04_GENERAL_TASKS/CLAUDE.md +96 -0
  70. package/claude-code/aiwf/ko/.aiwf/04_GENERAL_TASKS/T002_API_Rate_Limiting.md +54 -0
  71. package/claude-code/aiwf/ko/.aiwf/04_GENERAL_TASKS/TX001_Refactor_Logging_Module.md +58 -0
  72. package/claude-code/aiwf/ko/.aiwf/05_ARCHITECTURAL_DECISIONS/ADR001_Chosen_Database_System.md +119 -0
  73. package/claude-code/aiwf/ko/.aiwf/05_ARCHITECTURAL_DECISIONS/ADR002_API_Authentication_Method.md +124 -0
  74. package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/2025-06-12-12-00-needs-focus.md +139 -0
  75. package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/2025-06-12-12-00-test-alignment.md +155 -0
  76. package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/2025-06-13-00-50-solid-progress.md +122 -0
  77. package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/2025-06-14-08-30-infrastructure-challenges.md +141 -0
  78. package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/2025-06-16-21-48-critical-foundation-issues.md +177 -0
  79. package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/2025-06-17-15-08-solid-progress.md +149 -0
  80. package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/index.json +5 -0
  81. package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/sync-index.js +78 -0
  82. package/claude-code/aiwf/ko/.aiwf/98_PROMPTS/github_integration.md +130 -0
  83. package/claude-code/aiwf/ko/.aiwf/98_PROMPTS/useful-prompts.md +31 -0
  84. package/claude-code/aiwf/ko/.aiwf/98_PROMPTS/vibe-front-prompts.md +89 -0
  85. package/claude-code/aiwf/ko/.aiwf/99_TEMPLATES/adr_template.md +49 -0
  86. package/claude-code/aiwf/ko/.aiwf/99_TEMPLATES/milestone_meta_template.md +25 -0
  87. package/claude-code/aiwf/ko/.aiwf/99_TEMPLATES/project_manifest_template.md +39 -0
  88. package/claude-code/aiwf/ko/.aiwf/99_TEMPLATES/sprint_meta_template.md +23 -0
  89. package/claude-code/aiwf/ko/.aiwf/99_TEMPLATES/task_template.md +36 -0
  90. package/claude-code/aiwf/ko/.aiwf/CLAUDE.md +76 -0
  91. package/claude-code/aiwf/ko/.aiwf/README.md +97 -0
  92. package/claude-code/aiwf/ko/.claude/CLAUDE_BE.md +276 -0
  93. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_changelog.md +82 -0
  94. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_code_review.md +88 -0
  95. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_commit.md +160 -0
  96. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_create_general_task.md +147 -0
  97. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_create_milestone_plan.md +194 -0
  98. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_create_prd.md +280 -0
  99. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_create_sprint_tasks.md +189 -0
  100. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_create_sprints_from_milestone.md +121 -0
  101. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_discuss_review.md +29 -0
  102. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_do_task.md +109 -0
  103. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_infinite.md +202 -0
  104. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_initialize.md +134 -0
  105. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_issue_create.md +65 -0
  106. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_mermaid.md +272 -0
  107. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_pr_create.md +76 -0
  108. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_prime.md +9 -0
  109. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_prime_context.md +8 -0
  110. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_project_review.md +261 -0
  111. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_test.md +125 -0
  112. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_testing_review.md +198 -0
  113. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_tm-run-all-subtask.md +210 -0
  114. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_ultrathink_code_advanced.md +460 -0
  115. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_ultrathink_code_basic.md +165 -0
  116. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_ultrathink_general.md +362 -0
  117. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_yolo.md +300 -0
  118. package/claude-code/aiwf/ko/.claude/mcp.json +31 -0
  119. package/claude-code/aiwf/ko/.claude/settings.json +102 -0
  120. package/{AI-WORKFLOW.md → docs/AI-WORKFLOW.ko.md} +31 -24
  121. package/docs/AI-WORKFLOW.md +292 -0
  122. package/docs/COMMANDS_GUIDE.ko.md +637 -0
  123. package/docs/COMMANDS_GUIDE.md +636 -0
  124. package/docs/CONTRIBUTING.md +406 -0
  125. package/docs/DEVELOPMENT_GUIDE.md +727 -0
  126. package/{PRD.ko.md → docs/PRD.ko.md} +9 -9
  127. package/{PRD.md → docs/PRD.md} +9 -9
  128. package/docs/moonklabs-metadata-system-prd.md +127 -0
  129. package/index.js +272 -121
  130. package/package.json +12 -7
  131. package/COMMANDS_GUIDE.md +0 -462
  132. package/claude-code/simone/.simone/04_GENERAL_TASKS/CLAUDE.MD +0 -51
  133. package/claude-code/simone/CHANGELOG.md +0 -71
  134. package/claude-code/simone/LICENSE +0 -21
  135. package/claude-code/simone/README.md +0 -219
  136. package/claude-code/simone/SYNC_GUIDE.md +0 -172
  137. package/claude-code/simone/sync-simone.sh +0 -138
  138. /package/claude-code/{simone/.simone → aiwf/en/.aiwf}/00_PROJECT_MANIFEST.md +0 -0
  139. /package/claude-code/{simone/.simone → aiwf/en/.aiwf}/02_REQUIREMENTS/CLAUDE.md +0 -0
  140. /package/claude-code/{simone/.simone → aiwf/en/.aiwf}/02_REQUIREMENTS/M01_Backend_Setup/PRD_Backend_Setup.md +0 -0
  141. /package/claude-code/{simone/.simone → aiwf/en/.aiwf}/02_REQUIREMENTS/M01_Backend_Setup/SPECS_API_V1.md +0 -0
  142. /package/claude-code/{simone/.simone → aiwf/en/.aiwf}/99_TEMPLATES/adr_template.md +0 -0
  143. /package/claude-code/{simone/.simone → aiwf/en/.aiwf}/99_TEMPLATES/milestone_meta_template.md +0 -0
  144. /package/claude-code/{simone/.simone → aiwf/en/.aiwf}/99_TEMPLATES/project_manifest_template.md +0 -0
  145. /package/claude-code/{simone/.simone → aiwf/en/.aiwf}/99_TEMPLATES/sprint_meta_template.md +0 -0
@@ -0,0 +1,210 @@
1
+ # 전체 작업 지능형 실행
2
+
3
+ Arguments: $ARGUMENTS
4
+
5
+ 프로젝트의 모든 작업(전체 task 또는 특정 작업의 하위 작업)을 지능적으로 분석하고 최적화된 순서로 실행합니다.
6
+
7
+ ## 지능형 분석 및 실행
8
+
9
+ ### 컨텍스트 분석
10
+
11
+ 실행 전 다음 요소들을 분석합니다:
12
+
13
+ - **작업 의존성**: 작업 간 의존 관계 파악 (상위-하위, 작업-작업 간)
14
+ - **작업 복잡도**: 각 작업의 난이도와 예상 소요 시간
15
+ - **현재 상태**: 진행 중인 작업, 블록된 작업, 완료된 작업 식별
16
+ - **사용자 패턴**: 이전 작업 수행 방식과 선호도
17
+ - **프로젝트 우선순위**: 전체 프로젝트 관점에서의 중요도
18
+
19
+ ### 스마트 실행 전략
20
+
21
+ 상황에 따른 최적화된 실행 방식:
22
+
23
+ **의존성 기반 실행**:
24
+
25
+ - 의존 관계가 있는 작업들을 올바른 순서로 배치
26
+ - 병렬 처리 가능한 작업들 식별
27
+ - 차단된 작업의 의존성 해결 우선
28
+
29
+ **복잡도 기반 실행**:
30
+
31
+ - 간단한 작업 먼저 → 빠른 성취감과 모멘텀
32
+ - 복잡한 작업 먼저 → 집중력이 높을 때 어려운 작업 처리
33
+
34
+ **시간대별 최적화**:
35
+
36
+ - 오전: 복잡한 작업 우선
37
+ - 오후: 루틴한 작업이나 리뷰 작업
38
+ - 저녁: 마무리 작업이나 문서화
39
+
40
+ **우선순위 기반 실행**:
41
+
42
+ - 프로젝트 전체 관점에서 중요한 작업 우선
43
+ - 마일스톤 달성에 필요한 작업 우선
44
+
45
+ ## 워크플로우
46
+
47
+ ### 1. 전체 프로젝트 분석
48
+
49
+ ```bash
50
+ # 모든 작업 조회
51
+ task-master get-tasks --with-subtasks
52
+
53
+ # 의존성 검증
54
+ task-master validate-dependencies
55
+
56
+ # 복잡도 분석
57
+ task-master complexity-report
58
+ ```
59
+
60
+ ### 2. 실행 모드 결정
61
+
62
+ **전체 프로젝트 실행**:
63
+
64
+ - 모든 pending 상태의 작업을 대상
65
+ - 전체 프로젝트 완료를 목표
66
+
67
+ **특정 작업 및 하위 작업 실행**:
68
+
69
+ - 특정 작업과 그 하위 작업들을 대상
70
+ - 해당 작업 완료를 목표
71
+
72
+ ### 3. 지능형 실행 순서 결정
73
+
74
+ ```bash
75
+ # 다음 실행 가능한 작업 찾기
76
+ task-master next
77
+
78
+ # 실행 가능한 모든 작업 나열 (차단되지 않은 작업들)
79
+ task-master get-tasks --status=pending --with-subtasks
80
+ ```
81
+
82
+ ### 4. 최적화된 작업 실행
83
+
84
+ **전체 작업 실행 루프**:
85
+
86
+ ```bash
87
+ # 실행 가능한 작업이 있는 동안 반복
88
+ while [ "$(task-master next)" != "No tasks available" ]; do
89
+ CURRENT_TASK=$(task-master next --format=id)
90
+
91
+ # 작업 정보 표시
92
+ echo "=== 실행 중: Task $CURRENT_TASK ==="
93
+ task-master show $CURRENT_TASK
94
+
95
+ # 하위 작업이 있는지 확인
96
+ if task-master show $CURRENT_TASK | grep -q "subtasks"; then
97
+ echo "하위 작업 실행 시작..."
98
+ # 하위 작업들을 순차적으로 실행
99
+ for subtask in $(task-master show $CURRENT_TASK --subtasks-only --format=ids); do
100
+ echo "--- 하위 작업 $subtask 실행 ---"
101
+ task-master show $subtask
102
+
103
+ # 실제 구현 로직 수행
104
+ echo "작업 구현 중..."
105
+
106
+ # 완료 표시
107
+ task-master set-status --id=$subtask --status=done
108
+ echo "하위 작업 $subtask 완료"
109
+ done
110
+ else
111
+ # 단일 작업 실행
112
+ echo "단일 작업 실행 중..."
113
+
114
+ # 실제 구현 로직 수행
115
+ echo "작업 구현 중..."
116
+ fi
117
+
118
+ # 작업 완료 표시
119
+ task-master set-status --id=$CURRENT_TASK --status=done
120
+ echo "Task $CURRENT_TASK 완료"
121
+ echo ""
122
+ done
123
+
124
+ echo "모든 실행 가능한 작업이 완료되었습니다!"
125
+ ```
126
+
127
+ ### 5. 진행 상황 추적 및 학습
128
+
129
+ - 실행 패턴 기록
130
+ - 예상 vs 실제 소요 시간 학습
131
+ - 효율성 메트릭 수집
132
+ - 차단된 작업들에 대한 해결 방안 제안
133
+
134
+ ### 6. 완료 후 상태 분석
135
+
136
+ ```bash
137
+ # 전체 프로젝트 상태 확인
138
+ task-master get-tasks --status=all
139
+
140
+ # 차단된 작업들 확인
141
+ task-master get-tasks --status=blocked,deferred
142
+
143
+ # 다음 마일스톤까지의 진행률
144
+ echo "프로젝트 진행률 분석..."
145
+ ```
146
+
147
+ ## 학습 모드
148
+
149
+ 이 명령어는 실행 패턴을 학습합니다:
150
+
151
+ - **실행 순서 최적화**: 성공적인 패턴 기억
152
+ - **시간 예측 개선**: 실제 소요 시간 데이터 축적
153
+ - **개인 선호도 학습**: 사용자의 작업 스타일 적응
154
+ - **효율성 향상**: 생산성 높은 워크플로우 식별
155
+ - **프로젝트 패턴 학습**: 프로젝트 유형별 최적 실행 전략
156
+
157
+ ## 사용법
158
+
159
+ ```bash
160
+ # 전체 프로젝트의 모든 작업 실행
161
+ /tm run-all-tasks
162
+
163
+ # 특정 작업과 그 하위 작업들 실행
164
+ /tm run-all-tasks <task-id>
165
+
166
+ # 실행 전략 지정
167
+ /tm run-all-tasks --strategy=dependency # 의존성 우선
168
+ /tm run-all-tasks --strategy=complexity # 복잡도 우선
169
+ /tm run-all-tasks --strategy=priority # 우선순위 우선
170
+ /tm run-all-tasks --strategy=time # 시간대 최적화
171
+
172
+ # 특정 상태의 작업만 실행
173
+ /tm run-all-tasks --status=pending # pending 작업만
174
+ /tm run-all-tasks --status=in-progress # 진행 중인 작업만
175
+
176
+ # 드라이런 모드 (실제 실행 없이 계획만 표시)
177
+ /tm run-all-tasks --dry-run
178
+
179
+ # 대화형 모드 (각 작업 실행 전 확인)
180
+ /tm run-all-tasks --interactive
181
+ ```
182
+
183
+ ## 지능형 기능
184
+
185
+ ### 자동 중단점
186
+
187
+ - 차단된 작업 발견 시 자동 일시 정지
188
+ - 의존성 해결 제안
189
+ - 대안 작업 경로 제시
190
+
191
+ ### 진행률 예측
192
+
193
+ - 남은 작업량 기반 완료 시간 예측
194
+ - 일일/주간 목표 달성 가능성 분석
195
+ - 프로젝트 전체 완료 예상 시점
196
+
197
+ ### 컨텍스트 기반 제안
198
+
199
+ 실행 완료 후 상황별 다음 액션:
200
+
201
+ - **모든 작업 완료** → 프로젝트 완료 축하 + 다음 프로젝트 제안
202
+ - **일부 작업 차단됨** → 차단 해제 방법 제안 + 대체 작업 제안
203
+ - **복잡한 작업 남음** → 휴식 제안 + 작업 분할 제안
204
+ - **의존성 문제** → 의존 관계 재구성 제안
205
+
206
+ ### 스마트 배치
207
+
208
+ - **에너지 수준 고려**: 오전에는 복잡한 작업, 오후에는 단순한 작업
209
+ - **컨텍스트 스위칭 최소화**: 유사한 작업들을 그룹핑하여 연속 실행
210
+ - **병렬 처리 기회**: 독립적인 작업들의 동시 진행 제안
@@ -0,0 +1,460 @@
1
+ # Ultra Think - 코드 심층사고 엔진 (/ultrathink_code_advanced 이 5000줄 클래스를 어떻게 분해할까?)
2
+
3
+ Activate Claude's maximum cognitive depth for code architecture decisions, complex implementation challenges, and discovering elegant solutions at the intersection of theory and practice.
4
+
5
+ ## 🧠 Code Intelligence Framework
6
+
7
+ ### Phase 0: Context Loading & Analysis
8
+
9
+ ```yaml
10
+ Initialize:
11
+ - Check for $ARGUMENTS presence
12
+ - If empty: STOP and request clarification
13
+ - Load current codebase context
14
+ - Analyze existing patterns and conventions
15
+ - Map dependency graph
16
+ - Identify technical debt zones
17
+ - Establish performance baselines
18
+ - Scan for anti-patterns
19
+ ```
20
+
21
+ ### ⚠️ Argument Validation
22
+
23
+ ```python
24
+ if not $ARGUMENTS or $ARGUMENTS.strip() == "":
25
+ return """
26
+ 🛑 **Ultra Think requires a specific problem or question to analyze.**
27
+
28
+ Please provide details about what you'd like me to think deeply about:
29
+
30
+ Examples:
31
+ - /ultrathink How should I refactor this authentication service?
32
+ - /ultrathink What's the best way to handle rate limiting in our API?
33
+ - /ultrathink Should we migrate from REST to GraphQL?
34
+ - /ultrathink How to optimize this O(n²) algorithm?
35
+
36
+ What specific code challenge would you like me to analyze?
37
+ """
38
+ ```
39
+
40
+ ## 🌀 Deep Code Reasoning Protocol
41
+
42
+ ### 1. **Problem Decomposition in Code Context**
43
+
44
+ ```typescript
45
+ interface ProblemSpace {
46
+ // Surface Layer
47
+ symptom: "What error/issue is manifesting?";
48
+
49
+ // Code Layer
50
+ implementation: "What code structures are involved?";
51
+
52
+ // Architecture Layer
53
+ design: "What architectural decisions led here?";
54
+
55
+ // Principle Layer
56
+ paradigm: "What programming paradigms are at play?";
57
+
58
+ // Meta Layer
59
+ evolution: "How will this code need to evolve?";
60
+ }
61
+ ```
62
+
63
+ **Analytical Questions:**
64
+
65
+ - What does the code want to be?
66
+ - What patterns is it trying to express?
67
+ - What constraints are real vs. assumed?
68
+ - What would the ideal solution look like if we had no legacy?
69
+ - What can we learn from how others solved this?
70
+
71
+ ### 2. **Multi-Paradigm Code Analysis**
72
+
73
+ #### 🔍 Static Analysis Thinking
74
+
75
+ ```python
76
+ def analyze_code_health():
77
+ return {
78
+ 'complexity': cyclomatic_complexity_analysis(),
79
+ 'coupling': dependency_coupling_matrix(),
80
+ 'cohesion': module_cohesion_score(),
81
+ 'duplication': code_duplication_patterns(),
82
+ 'test_coverage': coverage_gap_analysis(),
83
+ 'performance': big_o_complexity_map(),
84
+ 'security': vulnerability_surface_analysis()
85
+ }
86
+ ```
87
+
88
+ #### 🏗️ Architectural Reasoning
89
+
90
+ - **Layered Architecture**: How do layers communicate?
91
+ - **Domain Boundaries**: Where are the natural seams?
92
+ - **Data Flow**: How does information propagate?
93
+ - **State Management**: Where does truth live?
94
+ - **Error Propagation**: How do failures cascade?
95
+
96
+ #### 🧬 Pattern Mining
97
+
98
+ ```yaml
99
+ Identify Patterns:
100
+ Creational:
101
+ - Factory patterns needed?
102
+ - Builder complexity warranted?
103
+ - Singleton anti-patterns?
104
+
105
+ Structural:
106
+ - Adapter opportunities?
107
+ - Facade simplifications?
108
+ - Composite hierarchies?
109
+
110
+ Behavioral:
111
+ - Observer decoupling?
112
+ - Strategy flexibility?
113
+ - Command pattern undo/redo?
114
+
115
+ Concurrent:
116
+ - Actor model applicable?
117
+ - Producer-consumer queues?
118
+ - Lock-free algorithms possible?
119
+ ```
120
+
121
+ ### 3. **Solution Space Exploration**
122
+
123
+ #### 🎯 Implementation Strategies
124
+
125
+ **Strategy 1: Incremental Refactoring**
126
+
127
+ ```javascript
128
+ // Preserve existing behavior while improving structure
129
+ const refactoringPath = [
130
+ "Extract method for clarity",
131
+ "Introduce parameter object",
132
+ "Replace conditional with polymorphism",
133
+ "Extract interface",
134
+ "Dependency injection",
135
+ ];
136
+ ```
137
+
138
+ **Strategy 2: Parallel Implementation**
139
+
140
+ ```python
141
+ # Build new alongside old
142
+ class LegacyImplementation:
143
+ """Current working code"""
144
+ pass
145
+
146
+ class NextGenImplementation:
147
+ """Clean reimplementation"""
148
+ pass
149
+
150
+ class FeatureToggle:
151
+ """Gradual migration control"""
152
+ pass
153
+ ```
154
+
155
+ **Strategy 3: Abstraction Layer**
156
+
157
+ ```rust
158
+ // Introduce abstraction to hide complexity
159
+ trait UnifiedInterface {
160
+ fn execute(&self) -> Result<Output, Error>;
161
+ }
162
+
163
+ impl UnifiedInterface for ComplexSystemA { }
164
+ impl UnifiedInterface for ComplexSystemB { }
165
+ ```
166
+
167
+ ### 4. **Deep Technical Analysis**
168
+
169
+ #### ⚡ Performance Optimization Paths
170
+
171
+ ```yaml
172
+ CPU Bound:
173
+ - Algorithm complexity reduction
174
+ - Parallelization opportunities
175
+ - SIMD vectorization potential
176
+ - Cache-friendly data structures
177
+
178
+ Memory Bound:
179
+ - Memory pooling strategies
180
+ - Lazy evaluation patterns
181
+ - Streaming processing
182
+ - Memory-mapped approaches
183
+
184
+ I/O Bound:
185
+ - Async/await patterns
186
+ - Connection pooling
187
+ - Batch processing
188
+ - Caching strategies
189
+ ```
190
+
191
+ #### 🔐 Security Reasoning
192
+
193
+ ```python
194
+ security_analysis = {
195
+ 'input_validation': boundary_check_completeness(),
196
+ 'authentication': auth_flow_vulnerabilities(),
197
+ 'authorization': permission_model_gaps(),
198
+ 'data_protection': encryption_coverage(),
199
+ 'injection_risks': sanitization_audit(),
200
+ 'timing_attacks': constant_time_operations()
201
+ }
202
+ ```
203
+
204
+ #### 🧪 Testing Strategy Evolution
205
+
206
+ ```typescript
207
+ interface TestingDimensions {
208
+ unit: "Pure function isolation";
209
+ integration: "Component interaction";
210
+ contract: "API boundary verification";
211
+ property: "Invariant maintenance";
212
+ fuzzing: "Edge case discovery";
213
+ mutation: "Test quality verification";
214
+ performance: "Regression prevention";
215
+ }
216
+ ```
217
+
218
+ ### 5. **Code Quality Transcendence**
219
+
220
+ #### 📐 Elegance Metrics
221
+
222
+ - **Simplicity**: Can we remove code while adding functionality?
223
+ - **Orthogonality**: Are concerns properly separated?
224
+ - **Composability**: Do pieces combine naturally?
225
+ - **Readability**: Would a new developer understand immediately?
226
+ - **Extensibility**: How easy is adding new features?
227
+
228
+ #### 🌊 Flow State Code
229
+
230
+ ```python
231
+ # Code that feels natural to write and modify
232
+ class FlowStateExample:
233
+ """
234
+ - Clear intent
235
+ - Natural naming
236
+ - Obvious structure
237
+ - Minimal cognitive load
238
+ - Self-documenting
239
+ """
240
+ def process(self, data: Data) -> Result:
241
+ validated = self.validate(data)
242
+ transformed = self.transform(validated)
243
+ return self.persist(transformed)
244
+ ```
245
+
246
+ ### 6. **Advanced Code Patterns**
247
+
248
+ #### 🔄 Functional Composition
249
+
250
+ ```haskell
251
+ -- Pure functions that compose naturally
252
+ processData = validate >=> transform >=> persist
253
+ where
254
+ validate = ...
255
+ transform = ...
256
+ persist = ...
257
+ ```
258
+
259
+ #### 🎭 Type-Level Programming
260
+
261
+ ```typescript
262
+ // Encode business rules in type system
263
+ type ValidatedUser<T> = T & { __validated: true };
264
+ type AuthorizedUser<T> = T & { __authorized: true };
265
+
266
+ function process<T>(user: ValidatedUser<AuthorizedUser<T>>) {
267
+ // Compiler ensures user is validated AND authorized
268
+ }
269
+ ```
270
+
271
+ #### 🌀 Reactive Patterns
272
+
273
+ ```javascript
274
+ // Event-driven, responsive architecture
275
+ const userEvents$ = new Subject();
276
+
277
+ const processedUsers$ = userEvents$.pipe(
278
+ filter(isValid),
279
+ debounceTime(300),
280
+ switchMap(fetchUserDetails),
281
+ retry(3),
282
+ shareReplay(1)
283
+ );
284
+ ```
285
+
286
+ ### 7. **Meta-Code Reasoning**
287
+
288
+ #### 🤔 Code Philosophy Questions
289
+
290
+ - Is this code expressing the domain naturally?
291
+ - Are we fighting the language or flowing with it?
292
+ - What would this look like in 10 lines? 100 lines? 1000 lines?
293
+ - How would we explain this to a junior? To a senior? To a non-programmer?
294
+ - What parts will definitely change? What parts are eternal?
295
+
296
+ #### 🧩 Cross-Pollination
297
+
298
+ ```yaml
299
+ Borrow From:
300
+ Gaming: "Entity-Component-System for flexibility"
301
+ Databases: "Query optimization techniques"
302
+ Compilers: "AST transformation patterns"
303
+ OS Design: "Scheduling algorithms"
304
+ Biology: "Self-healing systems"
305
+ Physics: "Conservation laws in state management"
306
+ ```
307
+
308
+ ### 8. **Implementation Roadmap**
309
+
310
+ #### Phase 1: Immediate Wins
311
+
312
+ ```bash
313
+ # Quick improvements with high impact
314
+ - Extract constants
315
+ - Add type hints
316
+ - Improve naming
317
+ - Add critical tests
318
+ - Document intent
319
+ ```
320
+
321
+ #### Phase 2: Structural Improvements
322
+
323
+ ```python
324
+ # Refactoring for better architecture
325
+ - Introduce interfaces
326
+ - Separate concerns
327
+ - Reduce coupling
328
+ - Increase cohesion
329
+ - Establish boundaries
330
+ ```
331
+
332
+ #### Phase 3: Paradigm Shifts
333
+
334
+ ```rust
335
+ // Fundamental reimagining
336
+ - New architecture
337
+ - Different paradigm
338
+ - Modern patterns
339
+ - Performance overhaul
340
+ - Future-proofing
341
+ ```
342
+
343
+ ### 9. **Output Format**
344
+
345
+ ````markdown
346
+ # Ultra Think Analysis: [Code Challenge]
347
+
348
+ ## 📊 Current State Assessment
349
+
350
+ - Code health metrics
351
+ - Technical debt quantification
352
+ - Performance bottlenecks
353
+ - Security vulnerabilities
354
+
355
+ ## 🎯 Core Problem Identification
356
+
357
+ - Root cause (not symptoms)
358
+ - Systemic issues
359
+ - Architectural constraints
360
+
361
+ ## 💡 Solution Strategies
362
+
363
+ ### Option 1: [Minimal Refactor]
364
+
365
+ ```[language]
366
+ // Code example
367
+ ```
368
+ ````
369
+
370
+ - Effort: Low
371
+ - Risk: Low
372
+ - Impact: Medium
373
+
374
+ ### Option 2: [Architectural Shift]
375
+
376
+ ```[language]
377
+ // Code example
378
+ ```
379
+
380
+ - Effort: High
381
+ - Risk: Medium
382
+ - Impact: High
383
+
384
+ ### Option 3: [Innovation Path]
385
+
386
+ ```[language]
387
+ // Code example
388
+ ```
389
+
390
+ - Effort: Medium
391
+ - Risk: High
392
+ - Impact: Transformative
393
+
394
+ ## 🗺️ Implementation Plan
395
+
396
+ 1. Week 1: [Specific tasks]
397
+ 2. Week 2: [Specific tasks]
398
+ 3. Week 3: [Specific tasks]
399
+
400
+ ## ⚠️ Risk Mitigation
401
+
402
+ - Rollback strategy
403
+ - Feature flags
404
+ - Monitoring plan
405
+ - Performance benchmarks
406
+
407
+ ## 📈 Success Metrics
408
+
409
+ - Performance improvement: X%
410
+ - Code complexity reduction: Y%
411
+ - Test coverage increase: Z%
412
+ - Developer velocity impact
413
+
414
+ ## 🔮 Future Considerations
415
+
416
+ - Scalability path
417
+ - Maintenance strategy
418
+ - Evolution roadmap
419
+
420
+ ````
421
+
422
+ ### 10. **Activation Examples**
423
+
424
+ ```bash
425
+ # Architecture decision
426
+ /ultrathink Should we use microservices or modular monolith for our e-commerce platform?
427
+
428
+ # Performance optimization
429
+ /ultrathink Our API response time is 800ms. How do we get it under 100ms?
430
+
431
+ # Refactoring strategy
432
+ /ultrathink This 5000-line class is unmaintainable. What's the best decomposition approach?
433
+
434
+ # Technology choice
435
+ /ultrathink React vs Vue vs Svelte for our new dashboard - considering our team's background?
436
+
437
+ # Design pattern application
438
+ /ultrathink How to implement undo/redo in our collaborative editor efficiently?
439
+
440
+ # Debugging complex issues
441
+ /ultrathink Random crashes in production but not in staging - systematic debugging approach?
442
+ ````
443
+
444
+ ## 🚀 Pro Tips
445
+
446
+ 1. **Provide Context**: Include relevant code snippets, architecture diagrams, or performance metrics
447
+ 2. **Specify Constraints**: Mention tech stack, team size, deadlines, backwards compatibility needs
448
+ 3. **Share History**: What has been tried before? What failed? Why?
449
+ 4. **Define Success**: What does "better" mean? Performance? Maintainability? Features?
450
+
451
+ ## 🎓 Learning Integration
452
+
453
+ Ultra Think doesn't just solve - it teaches:
454
+
455
+ - Why certain patterns emerge
456
+ - When to apply specific solutions
457
+ - How to think about similar problems
458
+ - What to watch out for in the future
459
+
460
+ Remember: The best code often comes from deeply understanding the problem space, not just applying patterns. Ultra Think helps you see the forest AND the trees, finding elegant solutions that feel inevitable in hindsight.