moai-adk 0.10.1__py3-none-any.whl → 0.11.0__py3-none-any.whl

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.

Potentially problematic release.


This version of moai-adk might be problematic. Click here for more details.

Files changed (245) hide show
  1. moai_adk/core/project/phase_executor.py +4 -0
  2. moai_adk/core/tags/ci_validator.py +33 -3
  3. moai_adk/core/template_engine.py +6 -2
  4. moai_adk/templates/.github/workflows/moai-gitflow.yml +6 -1
  5. moai_adk/templates/.github/workflows/release.yml +6 -2
  6. moai_adk/templates/.github/workflows/tag-validation.yml +53 -8
  7. moai_adk/templates/CLAUDE.md +458 -67
  8. {moai_adk-0.10.1.dist-info → moai_adk-0.11.0.dist-info}/METADATA +28 -13
  9. moai_adk-0.11.0.dist-info/RECORD +77 -0
  10. moai_adk/templates/.claude/agents/alfred/cc-manager.md +0 -316
  11. moai_adk/templates/.claude/agents/alfred/debug-helper.md +0 -208
  12. moai_adk/templates/.claude/agents/alfred/doc-syncer.md +0 -214
  13. moai_adk/templates/.claude/agents/alfred/git-manager.md +0 -406
  14. moai_adk/templates/.claude/agents/alfred/implementation-planner.md +0 -350
  15. moai_adk/templates/.claude/agents/alfred/project-manager.md +0 -273
  16. moai_adk/templates/.claude/agents/alfred/quality-gate.md +0 -343
  17. moai_adk/templates/.claude/agents/alfred/skill-factory.md +0 -865
  18. moai_adk/templates/.claude/agents/alfred/spec-builder.md +0 -287
  19. moai_adk/templates/.claude/agents/alfred/tag-agent.md +0 -287
  20. moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +0 -326
  21. moai_adk/templates/.claude/agents/alfred/trust-checker.md +0 -375
  22. moai_adk/templates/.claude/commands/alfred/0-project.md +0 -1189
  23. moai_adk/templates/.claude/commands/alfred/1-plan.md +0 -728
  24. moai_adk/templates/.claude/commands/alfred/2-run.md +0 -545
  25. moai_adk/templates/.claude/commands/alfred/3-sync.md +0 -683
  26. moai_adk/templates/.claude/commands/alfred/9-feedback.md +0 -149
  27. moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +0 -209
  28. moai_adk/templates/.claude/hooks/alfred/core/project.py +0 -750
  29. moai_adk/templates/.claude/hooks/alfred/core/version_cache.py +0 -198
  30. moai_adk/templates/.claude/hooks/alfred/notification__handle_events.py +0 -102
  31. moai_adk/templates/.claude/hooks/alfred/post_tool__log_changes.py +0 -102
  32. moai_adk/templates/.claude/hooks/alfred/pre_tool__auto_checkpoint.py +0 -108
  33. moai_adk/templates/.claude/hooks/alfred/session_end__cleanup.py +0 -102
  34. moai_adk/templates/.claude/hooks/alfred/session_start__show_project_info.py +0 -102
  35. moai_adk/templates/.claude/hooks/alfred/shared/core/__init__.py +0 -170
  36. moai_adk/templates/.claude/hooks/alfred/shared/core/checkpoint.py +0 -271
  37. moai_adk/templates/.claude/hooks/alfred/shared/core/context.py +0 -67
  38. moai_adk/templates/.claude/hooks/alfred/shared/core/project.py +0 -756
  39. moai_adk/templates/.claude/hooks/alfred/shared/core/tags.py +0 -198
  40. moai_adk/templates/.claude/hooks/alfred/shared/core/version_cache.py +0 -198
  41. moai_adk/templates/.claude/hooks/alfred/shared/handlers/__init__.py +0 -21
  42. moai_adk/templates/.claude/hooks/alfred/shared/handlers/notification.py +0 -25
  43. moai_adk/templates/.claude/hooks/alfred/shared/handlers/session.py +0 -175
  44. moai_adk/templates/.claude/hooks/alfred/shared/handlers/tool.py +0 -90
  45. moai_adk/templates/.claude/hooks/alfred/shared/handlers/user.py +0 -61
  46. moai_adk/templates/.claude/hooks/alfred/stop__handle_interrupt.py +0 -102
  47. moai_adk/templates/.claude/hooks/alfred/subagent_stop__handle_subagent_end.py +0 -102
  48. moai_adk/templates/.claude/hooks/alfred/user_prompt__jit_load_docs.py +0 -120
  49. moai_adk/templates/.claude/output-styles/alfred/agentic-coding.md +0 -640
  50. moai_adk/templates/.claude/output-styles/alfred/moai-adk-learning.md +0 -696
  51. moai_adk/templates/.claude/output-styles/alfred/study-with-alfred.md +0 -474
  52. moai_adk/templates/.claude/settings.json +0 -144
  53. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/SKILL.md +0 -113
  54. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/examples.md +0 -29
  55. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/reference.md +0 -28
  56. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/SKILL.md +0 -122
  57. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/examples.md +0 -29
  58. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/reference.md +0 -29
  59. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/SKILL.md +0 -237
  60. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/examples.md +0 -615
  61. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/reference.md +0 -653
  62. moai_adk/templates/.claude/skills/moai-alfred-language-detection/SKILL.md +0 -113
  63. moai_adk/templates/.claude/skills/moai-alfred-language-detection/examples.md +0 -29
  64. moai_adk/templates/.claude/skills/moai-alfred-language-detection/reference.md +0 -28
  65. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/SKILL.md +0 -113
  66. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/examples.md +0 -29
  67. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/reference.md +0 -28
  68. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/SKILL.md +0 -113
  69. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/examples.md +0 -29
  70. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/reference.md +0 -28
  71. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/SKILL.md +0 -113
  72. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/examples.md +0 -29
  73. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/reference.md +0 -28
  74. moai_adk/templates/.claude/skills/moai-cc-agents/SKILL.md +0 -269
  75. moai_adk/templates/.claude/skills/moai-cc-agents/templates/agent-template.md +0 -32
  76. moai_adk/templates/.claude/skills/moai-cc-claude-md/SKILL.md +0 -298
  77. moai_adk/templates/.claude/skills/moai-cc-claude-md/templates/CLAUDE-template.md +0 -26
  78. moai_adk/templates/.claude/skills/moai-cc-commands/SKILL.md +0 -307
  79. moai_adk/templates/.claude/skills/moai-cc-commands/templates/command-template.md +0 -21
  80. moai_adk/templates/.claude/skills/moai-cc-hooks/SKILL.md +0 -252
  81. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/pre-bash-check.sh +0 -19
  82. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/preserve-permissions.sh +0 -19
  83. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/validate-bash-command.py +0 -24
  84. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/SKILL.md +0 -199
  85. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/templates/settings-mcp-template.json +0 -39
  86. moai_adk/templates/.claude/skills/moai-cc-memory/SKILL.md +0 -316
  87. moai_adk/templates/.claude/skills/moai-cc-memory/templates/session-summary-template.md +0 -18
  88. moai_adk/templates/.claude/skills/moai-cc-settings/SKILL.md +0 -263
  89. moai_adk/templates/.claude/skills/moai-cc-settings/templates/settings-complete-template.json +0 -30
  90. moai_adk/templates/.claude/skills/moai-cc-skills/SKILL.md +0 -291
  91. moai_adk/templates/.claude/skills/moai-cc-skills/templates/SKILL-template.md +0 -15
  92. moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +0 -290
  93. moai_adk/templates/.claude/skills/moai-domain-backend/examples.md +0 -1633
  94. moai_adk/templates/.claude/skills/moai-domain-backend/reference.md +0 -660
  95. moai_adk/templates/.claude/skills/moai-domain-cli-tool/SKILL.md +0 -123
  96. moai_adk/templates/.claude/skills/moai-domain-cli-tool/examples.md +0 -29
  97. moai_adk/templates/.claude/skills/moai-domain-cli-tool/reference.md +0 -30
  98. moai_adk/templates/.claude/skills/moai-domain-data-science/SKILL.md +0 -123
  99. moai_adk/templates/.claude/skills/moai-domain-data-science/examples.md +0 -29
  100. moai_adk/templates/.claude/skills/moai-domain-data-science/reference.md +0 -30
  101. moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +0 -123
  102. moai_adk/templates/.claude/skills/moai-domain-database/examples.md +0 -29
  103. moai_adk/templates/.claude/skills/moai-domain-database/reference.md +0 -30
  104. moai_adk/templates/.claude/skills/moai-domain-devops/SKILL.md +0 -124
  105. moai_adk/templates/.claude/skills/moai-domain-devops/examples.md +0 -29
  106. moai_adk/templates/.claude/skills/moai-domain-devops/reference.md +0 -31
  107. moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +0 -124
  108. moai_adk/templates/.claude/skills/moai-domain-frontend/examples.md +0 -29
  109. moai_adk/templates/.claude/skills/moai-domain-frontend/reference.md +0 -31
  110. moai_adk/templates/.claude/skills/moai-domain-ml/SKILL.md +0 -123
  111. moai_adk/templates/.claude/skills/moai-domain-ml/examples.md +0 -29
  112. moai_adk/templates/.claude/skills/moai-domain-ml/reference.md +0 -30
  113. moai_adk/templates/.claude/skills/moai-domain-mobile-app/SKILL.md +0 -123
  114. moai_adk/templates/.claude/skills/moai-domain-mobile-app/examples.md +0 -29
  115. moai_adk/templates/.claude/skills/moai-domain-mobile-app/reference.md +0 -30
  116. moai_adk/templates/.claude/skills/moai-domain-security/SKILL.md +0 -123
  117. moai_adk/templates/.claude/skills/moai-domain-security/examples.md +0 -29
  118. moai_adk/templates/.claude/skills/moai-domain-security/reference.md +0 -30
  119. moai_adk/templates/.claude/skills/moai-domain-web-api/SKILL.md +0 -123
  120. moai_adk/templates/.claude/skills/moai-domain-web-api/examples.md +0 -29
  121. moai_adk/templates/.claude/skills/moai-domain-web-api/reference.md +0 -30
  122. moai_adk/templates/.claude/skills/moai-essentials-debug/SKILL.md +0 -303
  123. moai_adk/templates/.claude/skills/moai-essentials-debug/examples.md +0 -1064
  124. moai_adk/templates/.claude/skills/moai-essentials-debug/reference.md +0 -1047
  125. moai_adk/templates/.claude/skills/moai-essentials-perf/SKILL.md +0 -113
  126. moai_adk/templates/.claude/skills/moai-essentials-perf/examples.md +0 -29
  127. moai_adk/templates/.claude/skills/moai-essentials-perf/reference.md +0 -28
  128. moai_adk/templates/.claude/skills/moai-essentials-refactor/SKILL.md +0 -113
  129. moai_adk/templates/.claude/skills/moai-essentials-refactor/examples.md +0 -29
  130. moai_adk/templates/.claude/skills/moai-essentials-refactor/reference.md +0 -28
  131. moai_adk/templates/.claude/skills/moai-essentials-review/SKILL.md +0 -113
  132. moai_adk/templates/.claude/skills/moai-essentials-review/examples.md +0 -29
  133. moai_adk/templates/.claude/skills/moai-essentials-review/reference.md +0 -28
  134. moai_adk/templates/.claude/skills/moai-foundation-ears/SKILL.md +0 -116
  135. moai_adk/templates/.claude/skills/moai-foundation-ears/examples.md +0 -29
  136. moai_adk/templates/.claude/skills/moai-foundation-ears/reference.md +0 -28
  137. moai_adk/templates/.claude/skills/moai-foundation-git/SKILL.md +0 -122
  138. moai_adk/templates/.claude/skills/moai-foundation-git/examples.md +0 -29
  139. moai_adk/templates/.claude/skills/moai-foundation-git/reference.md +0 -29
  140. moai_adk/templates/.claude/skills/moai-foundation-langs/SKILL.md +0 -113
  141. moai_adk/templates/.claude/skills/moai-foundation-langs/examples.md +0 -29
  142. moai_adk/templates/.claude/skills/moai-foundation-langs/reference.md +0 -28
  143. moai_adk/templates/.claude/skills/moai-foundation-specs/SKILL.md +0 -113
  144. moai_adk/templates/.claude/skills/moai-foundation-specs/examples.md +0 -29
  145. moai_adk/templates/.claude/skills/moai-foundation-specs/reference.md +0 -28
  146. moai_adk/templates/.claude/skills/moai-foundation-tags/SKILL.md +0 -113
  147. moai_adk/templates/.claude/skills/moai-foundation-tags/examples.md +0 -29
  148. moai_adk/templates/.claude/skills/moai-foundation-tags/reference.md +0 -28
  149. moai_adk/templates/.claude/skills/moai-foundation-trust/SKILL.md +0 -307
  150. moai_adk/templates/.claude/skills/moai-foundation-trust/examples.md +0 -0
  151. moai_adk/templates/.claude/skills/moai-foundation-trust/reference.md +0 -1099
  152. moai_adk/templates/.claude/skills/moai-lang-c/SKILL.md +0 -124
  153. moai_adk/templates/.claude/skills/moai-lang-c/examples.md +0 -29
  154. moai_adk/templates/.claude/skills/moai-lang-c/reference.md +0 -31
  155. moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +0 -124
  156. moai_adk/templates/.claude/skills/moai-lang-cpp/examples.md +0 -29
  157. moai_adk/templates/.claude/skills/moai-lang-cpp/reference.md +0 -31
  158. moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +0 -123
  159. moai_adk/templates/.claude/skills/moai-lang-csharp/examples.md +0 -29
  160. moai_adk/templates/.claude/skills/moai-lang-csharp/reference.md +0 -30
  161. moai_adk/templates/.claude/skills/moai-lang-dart/SKILL.md +0 -123
  162. moai_adk/templates/.claude/skills/moai-lang-dart/examples.md +0 -29
  163. moai_adk/templates/.claude/skills/moai-lang-dart/reference.md +0 -30
  164. moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +0 -124
  165. moai_adk/templates/.claude/skills/moai-lang-go/examples.md +0 -29
  166. moai_adk/templates/.claude/skills/moai-lang-go/reference.md +0 -31
  167. moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +0 -124
  168. moai_adk/templates/.claude/skills/moai-lang-java/examples.md +0 -29
  169. moai_adk/templates/.claude/skills/moai-lang-java/reference.md +0 -31
  170. moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +0 -125
  171. moai_adk/templates/.claude/skills/moai-lang-javascript/examples.md +0 -29
  172. moai_adk/templates/.claude/skills/moai-lang-javascript/reference.md +0 -32
  173. moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +0 -124
  174. moai_adk/templates/.claude/skills/moai-lang-kotlin/examples.md +0 -29
  175. moai_adk/templates/.claude/skills/moai-lang-kotlin/reference.md +0 -31
  176. moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +0 -123
  177. moai_adk/templates/.claude/skills/moai-lang-php/examples.md +0 -29
  178. moai_adk/templates/.claude/skills/moai-lang-php/reference.md +0 -30
  179. moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +0 -431
  180. moai_adk/templates/.claude/skills/moai-lang-python/examples.md +0 -624
  181. moai_adk/templates/.claude/skills/moai-lang-python/reference.md +0 -316
  182. moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +0 -123
  183. moai_adk/templates/.claude/skills/moai-lang-r/examples.md +0 -29
  184. moai_adk/templates/.claude/skills/moai-lang-r/reference.md +0 -30
  185. moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +0 -124
  186. moai_adk/templates/.claude/skills/moai-lang-ruby/examples.md +0 -29
  187. moai_adk/templates/.claude/skills/moai-lang-ruby/reference.md +0 -31
  188. moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +0 -124
  189. moai_adk/templates/.claude/skills/moai-lang-rust/examples.md +0 -29
  190. moai_adk/templates/.claude/skills/moai-lang-rust/reference.md +0 -31
  191. moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +0 -123
  192. moai_adk/templates/.claude/skills/moai-lang-scala/examples.md +0 -29
  193. moai_adk/templates/.claude/skills/moai-lang-scala/reference.md +0 -30
  194. moai_adk/templates/.claude/skills/moai-lang-shell/SKILL.md +0 -123
  195. moai_adk/templates/.claude/skills/moai-lang-shell/examples.md +0 -29
  196. moai_adk/templates/.claude/skills/moai-lang-shell/reference.md +0 -30
  197. moai_adk/templates/.claude/skills/moai-lang-sql/SKILL.md +0 -124
  198. moai_adk/templates/.claude/skills/moai-lang-sql/examples.md +0 -29
  199. moai_adk/templates/.claude/skills/moai-lang-sql/reference.md +0 -31
  200. moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +0 -123
  201. moai_adk/templates/.claude/skills/moai-lang-swift/examples.md +0 -29
  202. moai_adk/templates/.claude/skills/moai-lang-swift/reference.md +0 -30
  203. moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +0 -127
  204. moai_adk/templates/.claude/skills/moai-lang-typescript/examples.md +0 -29
  205. moai_adk/templates/.claude/skills/moai-lang-typescript/reference.md +0 -34
  206. moai_adk/templates/.claude/skills/moai-skill-factory/CHECKLIST.md +0 -482
  207. moai_adk/templates/.claude/skills/moai-skill-factory/EXAMPLES.md +0 -278
  208. moai_adk/templates/.claude/skills/moai-skill-factory/INTERACTIVE-DISCOVERY.md +0 -524
  209. moai_adk/templates/.claude/skills/moai-skill-factory/METADATA.md +0 -477
  210. moai_adk/templates/.claude/skills/moai-skill-factory/PARALLEL-ANALYSIS-REPORT.md +0 -429
  211. moai_adk/templates/.claude/skills/moai-skill-factory/PYTHON-VERSION-MATRIX.md +0 -391
  212. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL-FACTORY-WORKFLOW.md +0 -431
  213. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL-UPDATE-ADVISOR.md +0 -577
  214. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL.md +0 -271
  215. moai_adk/templates/.claude/skills/moai-skill-factory/STEP-BY-STEP-GUIDE.md +0 -466
  216. moai_adk/templates/.claude/skills/moai-skill-factory/STRUCTURE.md +0 -583
  217. moai_adk/templates/.claude/skills/moai-skill-factory/WEB-RESEARCH.md +0 -526
  218. moai_adk/templates/.claude/skills/moai-skill-factory/reference.md +0 -465
  219. moai_adk/templates/.claude/skills/moai-skill-factory/scripts/generate-structure.sh +0 -328
  220. moai_adk/templates/.claude/skills/moai-skill-factory/scripts/validate-skill.sh +0 -312
  221. moai_adk/templates/.claude/skills/moai-skill-factory/templates/SKILL_TEMPLATE.md +0 -245
  222. moai_adk/templates/.claude/skills/moai-skill-factory/templates/examples-template.md +0 -285
  223. moai_adk/templates/.claude/skills/moai-skill-factory/templates/reference-template.md +0 -278
  224. moai_adk/templates/.claude/skills/moai-skill-factory/templates/scripts-template.sh +0 -303
  225. moai_adk/templates/.claude/skills/moai-spec-authoring/README.md +0 -137
  226. moai_adk/templates/.claude/skills/moai-spec-authoring/SKILL.md +0 -219
  227. moai_adk/templates/.claude/skills/moai-spec-authoring/examples/validate-spec.sh +0 -161
  228. moai_adk/templates/.claude/skills/moai-spec-authoring/examples.md +0 -541
  229. moai_adk/templates/.claude/skills/moai-spec-authoring/reference.md +0 -622
  230. moai_adk/templates/.moai/config.json +0 -113
  231. moai_adk/templates/.moai/memory/CLAUDE-AGENTS-GUIDE.md +0 -208
  232. moai_adk/templates/.moai/memory/CLAUDE-PRACTICES.md +0 -369
  233. moai_adk/templates/.moai/memory/CLAUDE-RULES.md +0 -539
  234. moai_adk/templates/.moai/memory/DEVELOPMENT-GUIDE.md +0 -344
  235. moai_adk/templates/.moai/memory/ISSUE-LABEL-MAPPING.md +0 -150
  236. moai_adk/templates/.moai/memory/SKILLS-DESCRIPTION-POLICY.md +0 -218
  237. moai_adk/templates/.moai/memory/gitflow-protection-policy.md +0 -330
  238. moai_adk/templates/.moai/memory/spec-metadata.md +0 -356
  239. moai_adk/templates/.moai/project/product.md +0 -161
  240. moai_adk/templates/.moai/project/structure.md +0 -156
  241. moai_adk/templates/.moai/project/tech.md +0 -227
  242. moai_adk-0.10.1.dist-info/RECORD +0 -309
  243. {moai_adk-0.10.1.dist-info → moai_adk-0.11.0.dist-info}/WHEEL +0 -0
  244. {moai_adk-0.10.1.dist-info → moai_adk-0.11.0.dist-info}/entry_points.txt +0 -0
  245. {moai_adk-0.10.1.dist-info → moai_adk-0.11.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,728 +0,0 @@
1
- ---
2
- name: alfred:1-plan
3
- description: "Planning (brainstorming, plan writing, design discussion) + Branch/PR creation"
4
- # Translations:
5
- # - ko: "계획 수립 (브레인스토밍, 설계 논의) + 브랜치/PR 생성"
6
- # - ja: "計画策定(ブレインストーミング、設計議論)+ ブランチ/PR作成"
7
- # - zh: "规划(头脑风暴、设计讨论)+ 分支/PR创建"
8
- argument-hint: Title 1 Title 2 ... | SPEC-ID modifications
9
- allowed-tools:
10
- - Read
11
- - Write
12
- - Edit
13
- - MultiEdit
14
- - Grep
15
- - Glob
16
- - TodoWrite
17
- - Bash(git:*)
18
- - Bash(gh:*)
19
- - Bash(rg:*)
20
- - Bash(mkdir:*)
21
- ---
22
-
23
- # 🏗️ MoAI-ADK Step 1: Establish a plan (Plan) - Always make a plan first and then proceed.
24
- > **Note**: Interactive prompts use `AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)` for TUI selection menus. The skill is loaded on-demand when user interaction is required.
25
-
26
- ## 🎯 Command Purpose
27
-
28
- **"Plan → Run → Sync"** As the first step in the workflow, it supports the entire planning process from ideation to plan creation.
29
-
30
- **Plan for**: $ARGUMENTS
31
-
32
- ## 🤖 CodeRabbit AI Integration (Local Only)
33
-
34
- This local environment includes CodeRabbit AI review integration for SPEC documents:
35
-
36
- **Automatic workflows:**
37
- - ✅ SPEC review: CodeRabbit analyzes SPEC metadata and EARS structure
38
- - ✅ GitHub Issue sync: SPEC files automatically create/update GitHub Issues
39
- - ✅ Auto-approval: Draft PRs are approved when quality meets standards (80%+)
40
- - ✅ SPEC quality validation: Checklist for metadata, structure, and content
41
-
42
- **Scope:**
43
- - 🏠 **Local environment**: Full CodeRabbit integration with auto-approval
44
- - 📦 **Published packages**: Users get GitHub Issue sync only (no CodeRabbit)
45
-
46
- > See `.coderabbit.yaml` for detailed review rules and SPEC validation checklist
47
-
48
- ## 💡 Planning philosophy: "Always make a plan first and then proceed."
49
-
50
- `/alfred:1-plan` is a general-purpose command that **creates a plan**, rather than simply “creating” a SPEC document.
51
-
52
- ### 3 main scenarios
53
-
54
- #### Scenario 1: Creating a Plan (Primary Method) ⭐
55
- ```bash
56
- /alfred:1-plan "User authentication function"
57
- → Refine idea
58
- → Requirements specification using EARS syntax
59
- → Create feature/SPEC-XXX branch
60
- → Create Draft PR
61
- ```
62
-
63
- #### Scenario 2: Brainstorming
64
- ```bash
65
- /alfred:1-plan "Payment system improvement idea"
66
- → Organizing and structuring ideas
67
- → Deriving requirements candidates
68
- → Technical review and risk analysis
69
- ```
70
-
71
- #### Scenario 3: Improve existing SPEC
72
- ```bash
73
- /alfred:1-plan "SPEC-AUTH-001 Security Enhancement"
74
- → Analyze existing plan
75
- → Establish improvement direction
76
- → Create new version plan
77
- ```
78
-
79
- > **Standard two-step workflow** (see `CLAUDE.md` - "Alfred Command Execution Pattern" for details)
80
-
81
- ## 📋 Execution flow
82
-
83
- 1. **Project Analysis**: In-depth analysis of product/structure/tech.md
84
- 2. **SPEC candidate discovery**: Prioritization based on business requirements
85
- 3. **User Verification**: Review and approve writing plan
86
- 4. **Plan creation**: Generate specifications of EARS structure (spec.md, plan.md, acceptance.md)
87
- 5. **Git operations**: Create branches/PRs via git-manager
88
-
89
- ## 🧠 Associated Skills & Agents
90
-
91
- | Agent | Core Skill | Purpose |
92
- | ------------ | -------------------------- | --------------------------- |
93
- | spec-builder | `moai-foundation-ears` | Write SPEC with EARS syntax |
94
- | git-manager | `moai-alfred-git-workflow` | Create branch and PR |
95
-
96
- **Note**: TUI Survey Skill is used for user confirmations during the plan phase and is shared across all interactive prompts.
97
-
98
- ## 🔗 Associated Agent
99
-
100
- - **Primary**: spec-builder (🏗️ System Architect) - Dedicated to writing SPEC documents
101
- - **Secondary**: git-manager (🚀 Release Engineer) - Dedicated to creating Git branches/PRs
102
-
103
- ## 💡 Example of use
104
-
105
- Users can run commands like this:
106
- - `/alfred:1-plan` - Auto-suggestion based on project documents
107
- - `/alfred:1-plan "JWT authentication system"` - Manually create a single SPEC
108
- - `/alfred:1-plan SPEC-001 "Security hardening"` - Supplementation of existing SPEC
109
-
110
- ## 🔍 STEP 1: Project analysis and planning
111
-
112
- STEP 1 consists of **two independent phases** to provide flexible workflow based on user request clarity:
113
-
114
- ### 📋 STEP 1 Workflow Overview
115
-
116
- ```
117
- ┌─────────────────────────────────────────────────────────────┐
118
- │ STEP 1: Project Analysis & Planning │
119
- ├─────────────────────────────────────────────────────────────┤
120
- │ │
121
- │ Phase A (OPTIONAL) │
122
- │ ┌─────────────────────────────────────────┐ │
123
- │ │ 🔍 Explore Agent │ │
124
- │ │ • Find relevant files by keywords │ │
125
- │ │ • Locate existing SPEC documents │ │
126
- │ │ • Identify implementation patterns │ │
127
- │ └─────────────────────────────────────────┘ │
128
- │ ↓ │
129
- │ (exploration results) │
130
- │ ↓ │
131
- │ Phase B (REQUIRED) │
132
- │ ┌─────────────────────────────────────────┐ │
133
- │ │ ⚙️ spec-builder Agent │ │
134
- │ │ • Analyze project documents │ │
135
- │ │ • Propose SPEC candidates │ │
136
- │ │ • Design EARS structure │ │
137
- │ │ • Request user approval │ │
138
- │ └─────────────────────────────────────────┘ │
139
- │ ↓ │
140
- │ (user approval via AskUserQuestion) │
141
- │ ↓ │
142
- │ PROCEED TO STEP 2 │
143
- └─────────────────────────────────────────────────────────────┘
144
- ```
145
-
146
- **Key Points**:
147
- - **Phase A is optional** - Skip if user provides clear SPEC title
148
- - **Phase B is required** - Always runs to analyze project and create SPEC
149
- - **Results flow forward** - Exploration results (if any) are passed to spec-builder
150
-
151
- ---
152
-
153
- ### 🔍 Phase A: Codebase Exploration (OPTIONAL)
154
-
155
- **Use the Explore agent when user request is unclear or needs context.**
156
-
157
- #### When to use Phase A:
158
-
159
- - ✅ User uses vague keywords ("where is...", "find me...", "related to...")
160
- - ✅ Need to understand existing code structure before planning
161
- - ✅ Feature spans multiple files or modules
162
- - ❌ User provides clear SPEC title (skip to Phase B)
163
-
164
- #### How to invoke Explore agent:
165
-
166
- ```
167
- Invoking the Task tool (Explore agent):
168
- - subagent_type: "Explore"
169
- - description: "Explore related files in the codebase"
170
- - prompt: "Please find all files related to the following keywords: $ARGUMENTS
171
- - File location (src/, tests/, docs/)
172
- - Relevant SPEC document (.moai/specs/)
173
- - Existing implementation code
174
- thoroughness level: medium"
175
- ```
176
-
177
- **Note**: If user provides clear SPEC title, skip Phase A and proceed directly to Phase B.
178
-
179
- ---
180
-
181
- ### ⚙️ Phase B: SPEC Planning (REQUIRED)
182
-
183
- **Call the spec-builder agent to analyze project and create SPEC documents.**
184
-
185
- This phase is **always required** regardless of whether Phase A was executed.
186
-
187
- #### How to invoke spec-builder:
188
-
189
- ```
190
- Call the Task tool:
191
- - subagent_type: "spec-builder"
192
- - description: "Analyze the plan and establish a plan"
193
- - prompt: """You are spec-builder agent.
194
-
195
- LANGUAGE CONFIGURATION:
196
- - conversation_language: {{CONVERSATION_LANGUAGE}}
197
- - language_name: {{CONVERSATION_LANGUAGE_NAME}}
198
-
199
- CRITICAL INSTRUCTION:
200
- All SPEC documents and analysis must be generated in conversation_language.
201
- - If conversation_language is 'ko' (Korean): Generate ALL analysis, plans, and SPEC documents in Korean
202
- - If conversation_language is 'ja' (Japanese): Generate ALL analysis, plans, and SPEC documents in Japanese
203
- - If conversation_language is other language: Follow the specified language
204
-
205
- SKILL INVOCATION:
206
- Use explicit Skill() calls when needed:
207
- - Skill("moai-foundation-specs") for SPEC structure guidance
208
- - Skill("moai-foundation-ears") for EARS syntax requirements
209
- - Skill("moai-alfred-spec-metadata-validation") for metadata validation
210
-
211
- TASK:
212
- Please analyze the project document and suggest SPEC candidates.
213
- Run in analysis mode, and must include the following:
214
- 1. In-depth analysis of product/structure/tech.md
215
- 2. Identify SPEC candidates and Determine priorities
216
- 3. Design EARS structure
217
- 4. Wait for user approval
218
-
219
- User input: $ARGUMENTS
220
- (Optional) Explore results: $EXPLORE_RESULTS"""
221
- ```
222
-
223
- **Note**: If Phase A was executed, pass the exploration results via `$EXPLORE_RESULTS` variable.
224
-
225
- ### Plan analysis progress
226
-
227
- 1. **Project document analysis**
228
- - In-depth analysis of product/structure/tech.md
229
- - Review existing SPEC list and priorities (.moai/specs/ scan)
230
- - Evaluate implementation feasibility and complexity
231
- - (Optional) Identify existing code structure by reflecting the Explore results
232
-
233
- 2. **Discovering SPEC candidates**
234
- - Extracting core business requirements
235
- - Reflecting technical constraints
236
- - Creating a list of SPEC candidates by priority
237
-
238
- 3. **Implementation plan report**
239
- - Present step-by-step plan creation plan
240
- - Estimated scope of work and dependency analysis
241
- - Design EARS structure and Acceptance Criteria
242
-
243
- ### User verification steps
244
-
245
- After reviewing your implementation plan, Alfred invokes `AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)` to present the following options:
246
- - **"Go"** or **"Start"**: Start writing the plan as planned
247
- - **"Modify [Content]"**: Request modifications to the plan
248
- - **"Stop"**: Stop writing the plan
249
-
250
- ---
251
-
252
- ## 🚀 STEP 2: Create plan document (after user approval)
253
-
254
- After user approval (collected via `AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)`), call the spec-builder and git-manager agents using the **Task tool**.
255
-
256
- ### ⚙️ How to call an agent
257
-
258
- ```
259
- 1. Call spec-builder (create plan):
260
- - subagent_type: "spec-builder"
261
- - description: "Create SPEC document"
262
- - prompt: """You are spec-builder agent.
263
-
264
- LANGUAGE CONFIGURATION:
265
- - conversation_language: {{CONVERSATION_LANGUAGE}}
266
- - language_name: {{CONVERSATION_LANGUAGE_NAME}}
267
-
268
- CRITICAL INSTRUCTION:
269
- ALL SPEC documents MUST be generated in conversation_language:
270
- - spec.md: Full document in conversation_language
271
- - plan.md: Full document in conversation_language
272
- - acceptance.md: Full document in conversation_language
273
-
274
- YAML frontmatter and @TAG identifiers MUST remain in English.
275
- Code examples and technical keywords can be mixed (code in English, narrative in user language).
276
-
277
- SKILL INVOCATION:
278
- Use explicit Skill() calls when needed:
279
- - Skill("moai-foundation-specs") for SPEC structure guidance
280
- - Skill("moai-foundation-ears") for EARS syntax requirements
281
- - Skill("moai-alfred-spec-metadata-validation") for metadata validation
282
- - Skill("moai-alfred-tag-scanning") for TAG chain references
283
-
284
- TASK:
285
- Please fill out the SPEC document according to the plan approved in STEP 1.
286
- Create a specification for the EARS structure."""
287
-
288
- 2. Invoke git-manager (Git task):
289
- - subagent_type: "git-manager"
290
- - description: "Create Git branch/PR"
291
- - prompt: "After completing the plan, please create a branch and Draft PR."
292
- ```
293
-
294
- ## function
295
-
296
- - **Project document analysis**: Analyzes `.moai/project/{product,structure,tech}.md` to suggest implementation candidates and generates SPEC after user approval.
297
- - **Personal mode**: Create a `.moai/specs/SPEC-{ID}/` directory and a template document (**Directory name format required**: `SPEC-` prefix + TAG ID).
298
- - **Team mode**: Create a GitHub Issue (or Discussion) Associate it with a branch template.
299
-
300
- ## How to use
301
-
302
- The user executes the command in the form:
303
- - `/alfred:1-plan` - Auto-suggestion based on project documents (recommended)
304
- - `/alfred:1-plan "JWT Authentication System"` - Manually create a single SPEC
305
- - `/alfred:1-plan SPEC-001 "Security Reinforcement"` - Supplementation of existing SPEC
306
-
307
- If not entered, 3 to 5 priorities will be suggested based on the Q&A results, and only the approved items will be confirmed as actual SPECs.
308
-
309
- ## Summary of processing by mode
310
-
311
- | mode | output | Branch Strategy | Additional Actions |
312
- | -------- | -------------------------------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- |
313
- | Personal | Templates `.moai/specs/SPEC-XXX/spec.md`, `plan.md`, `acceptance.md`, etc. | Branch from `main` or `develop` (based on settings) | git-manager agent automatically creates checkpoints |
314
- | Team | GitHub Issue (`[SPEC-XXX] Title`), Draft PR (optional) | **Always branch from `develop`** (GitFlow standard) | `gh` CLI stay logged in, Draft PR → develop created |
315
-
316
- ## Input options
317
-
318
- - **Automatic suggestion**: `/alfred:1-plan` → Create a list of candidates based on the core bullet of the project document
319
- - **Manual creation**: Pass the title as an argument → Create only 1 case, Acceptance template is supplemented after reply
320
- - **Supplementation mode**: `SPEC-ID Delivered in “memo” format → Update existing SPEC document/Issue
321
-
322
- ## 📋 STEP 1 Execution Guide: Project Analysis and Planning
323
-
324
- ### ⚠️ Essential rules: Directory naming convention
325
-
326
- **Format that must be followed**: `.moai/specs/SPEC-{ID}/`
327
-
328
- **Correct Example**:
329
- - ✅ `SPEC-AUTH-001/`
330
- - ✅ `SPEC-REFACTOR-001/`
331
- - ✅ `SPEC-UPDATE-REFACTOR-001/`
332
-
333
- **Incorrect example**:
334
- - ❌ `AUTH-001/` (missing SPEC- prefix)
335
- - ❌ `SPEC-001-auth/` (additional text after ID)
336
- - ❌ `SPEC-AUTH-001-jwt/` (additional text after ID)
337
-
338
- **Duplicate check required**: Before creating a new SPEC ID, be sure to search the existing TAG ID to prevent duplication.
339
-
340
- **Composite Domain Rules**:
341
- - ✅ Allow: `UPDATE-REFACTOR-001` (2 domains)
342
- - ⚠️ Caution: `UPDATE-REFACTOR-FIX-001` (3+ domains, simplification recommended)
343
-
344
- ---
345
-
346
- ### 1. Analysis of project documents
347
-
348
- Alfred calls the spec-builder agent to perform project document-based planning analysis and planning.
349
-
350
- #### Analysis Checklist
351
-
352
- - [ ] **Requirements extraction**: Identify key business requirements in product.md
353
- - [ ] **Architectural constraints**: Identify system design constraints in structure.md
354
- - [ ] **Technical constraints**: Technology stack and quality policy in tech.md
355
- - [ ] **Existing SPEC**: Review current SPEC list and priorities
356
-
357
- ### 2. SPEC candidate discovery strategy
358
-
359
- #### Prioritization criteria
360
-
361
- | Priority | standards | SPEC Candidate Type |
362
- | ---------- | --------------------------- | ------------------------------------------- |
363
- | **High** | Core Business Values ​​ | User core functions, API design |
364
- | **Medium** | System Stability | Authentication/Security, Data Management |
365
- | **Low** | Improvements and expansions | UI/UX improvement, performance optimization |
366
-
367
- #### Approach by SPEC type
368
-
369
- - **API/Backend**: Endpoint design, data model, authentication
370
- - **Frontend**: User interface, state management, routing
371
- - **Infrastructure**: Deployment, monitoring, security policy
372
- - **Quality**: Test strategy, performance criteria, documentation
373
-
374
- ### 3. Create a plan Create a plan report
375
-
376
- Present your plan in the following format:
377
-
378
- ```
379
- ## Plan Creation Plan Report: [TARGET]
380
-
381
- ### 📊 Analysis Results
382
- - **Discovered SPEC Candidates**: [Number and Category]
383
- - **High Priority**: [List of Core SPECs]
384
- - **Estimated Work Time**: [Time Estimation]
385
-
386
- ### 🎯 Writing Strategy
387
- - **Selected SPEC**: [SPEC ID and Title to Write]
388
- - **EARS Structure**: [Event-Action-Response-State Design]
389
- - **Acceptance Criteria**: [Given-When-Then Scenario]
390
-
391
- ### 📦 Technology stack and library versions (optional)
392
- **Included only if technology stack is determined during planning stage**:
393
- - **Web search**: Use `WebSearch` to find the latest stable versions of key libraries to use
394
- - **Specify versions**: Specify exact versions for each library, e.g. `fastapi>=0.118.3`)
395
- - **Stability priority**: Exclude beta/alpha versions, select only production stable versions
396
- - **Note**: Detailed version is finalized in `/alfred:2-run` stage
397
-
398
- ### ⚠️ Precautions
399
- - **Technical constraints**: [Restraints to consider]
400
- - **Dependency**: [Relevance with other SPECs]
401
- - **Branch strategy**: [Processing by Personal/Team mode]
402
-
403
- ### ✅ Expected deliverables
404
- - **spec.md**: [Core specifications of the EARS structure]
405
- - **plan.md**: [Implementation plan]
406
- - **acceptance.md**: [Acceptance criteria]
407
- - **Branches/PR**: [Git operations by mode]
408
-
409
- ---
410
- **Approval Request**: Would you like to proceed with creating a plan with the above plan?
411
- (Choose between “Proceed,” “Modify [Content],” or “Abort”)
412
- ```
413
-
414
- ---
415
-
416
- ## 🚀 STEP 2 Implementation Guide: Create a Plan (After Approval)
417
-
418
- Only if the user selects **"Proceed"** or **"Start"** will Alfred call the spec-builder agent to begin building the SPEC document.
419
-
420
- ### EARS specification writing guide
421
-
422
- 1. **Event**: Define trigger events that occur in the system
423
- 2. **Action**: Specification of the system's action for an event
424
- 3. **Response**: Defining a response as a result of an action
425
- 4. **State**: Specifies system state changes and side effects
426
-
427
- **Example** (see `development-guide.md` for details):
428
- ```markdown
429
- ### Ubiquitous Requirements
430
- - The system must provide user authentication functionality
431
-
432
- ### Event-driven Requirements
433
- - WHEN the user logs in with valid credentials, the system must issue a JWT token
434
-
435
- ### State-driven Requirements
436
- - When the WHILE token is in an unexpired state, the system must allow access to the protected resource.
437
-
438
- ### Unwanted Behaviors
439
- - If the IF token has expired, the system must return a 401 Unauthorized response.
440
- ```
441
-
442
- ### 📄 SPEC Document Template
443
-
444
- #### YAML Front Matter Schema
445
-
446
- > **📋 SPEC Metadata Standard (SSOT)**: `.moai/memory/spec-metadata.md`
447
-
448
- **Metadata that must be included** at the top of the spec.md file:
449
- - **7 required fields**: id, version, status, created, updated, author, priority
450
- - **9 optional fields**: category, labels, depends_on, blocks, related_specs, related_issue, scope
451
-
452
- **Simple reference example**:
453
- ```yaml
454
- ---
455
- id: AUTH-001
456
- version: 0.0.1
457
- status: draft
458
- created: 2025-09-15
459
- updated: 2025-09-15
460
- author: @Goos
461
- priority: high
462
- ---
463
- ```
464
-
465
- **Core rules**:
466
- - **id**: Same as TAG ID (`<domain>-<3 digits>`) - Never change after creation
467
- - **Directory name**: `.moai/specs/SPEC-{ID}/` (e.g. `SPEC-AUTH-001/`)
468
- - **Duplicate Check**: `rg "@SPEC:{ID}" -n .moai/specs/` Required
469
- - **version**: v0.0.1 (INITIAL) → v0.1.0 (Implementation Completed) → v1.0.0 (Stable)
470
- - **author**: GitHub @ prefix is required before ID (e.g. `@Goos`)
471
- - **priority**: critical | high | medium | low
472
-
473
- **Full field description and validation methods**: see `.moai/memory/spec-metadata.md`
474
-
475
- #### HISTORY section (required)
476
-
477
- You must include a HISTORY section **right after the YAML Front Matter**:
478
-
479
- ```markdown
480
- # @SPEC:DOMAIN-NNN: JWT-based authentication system
481
-
482
- ## HISTORY
483
-
484
- ### v0.0.1 (2025-09-15)
485
- - **INITIAL**: Initial creation of JWT-based authentication system specification
486
- - **AUTHOR**: @Goos
487
- - **SCOPE**: Token issuance, verification, and renewal logic
488
- - **CONTEXT**: Reflects requirements for strengthening user authentication
489
-
490
- ### v0.0.2 (2025-09-20)
491
- - **ADDED**: Added social login requirements (Draft modification)
492
- - **AUTHOR**: @Goos
493
- - **REVIEW**: @security-team (approved)
494
- - **CHANGES**:
495
- - OAuth2 integration requirements
496
- - Google/GitHub login support
497
-
498
- ### v0.1.0 (2025-10-01)
499
- - **IMPLEMENTATION COMPLETED**: TDD implementation completed (status: draft → completed)
500
- - **TDD CYCLE**: RED → GREEN → REFACTOR
501
- - **COMMITS**: [Implementation commit hash list]
502
- - **FILES**: [Created/modified file list]
503
- ```
504
-
505
- **HISTORY writing rules**:
506
- - **Version system**: v0.0.1 (INITIAL) → v0.1.0 (implementation complete) → v1.0.0 (stabilization)
507
- - Detailed version system: See `.moai/memory/spec-metadata.md#version-system`
508
- - **Version order**: Latest version on top (reverse order)
509
- - **Change type tag**: INITIAL, ADDED, CHANGED, IMPLEMENTATION COMPLETED, BREAKING, DEPRECATED, REMOVED, FIXED
510
- - Detailed description: See `.moai/memory/spec-metadata.md#history-writing-guide`
511
- - **Required items**: Version, date, AUTHOR, changes
512
- - **Optional items**: REVIEW, SCOPE, CONTEXT, MIGRATION
513
-
514
- #### SPEC document overall structure
515
-
516
- ```markdown
517
- ---
518
- id: AUTH-001
519
- version: 1.0.0
520
- status: draft
521
- created: 2025-09-15
522
- updated: 2025-09-15
523
- author: @username
524
- ---
525
-
526
- # @SPEC:DOMAIN-NNN: [SPEC title]
527
-
528
- ## HISTORY
529
- [Change history by version – see example above]
530
-
531
- ## Environment
532
- [System environment and prerequisites]
533
-
534
- ## Assumptions
535
- [Design assumptions]
536
-
537
- ## Requirements
538
- ### Ubiquitous
539
- - The system must provide [feature]
540
-
541
- ### Event-driven (event-driven)
542
- - WHEN [condition], the system must [operate]
543
-
544
- ### State-driven
545
- - WHILE When in [state], the system must [operate]
546
-
547
- ### Optional (Optional function)
548
- - If WHERE [condition], the system can [operate]
549
-
550
- ### Unwanted Behaviors
551
- - IF [condition], the system must [respond appropriately with error handling or quality gates]
552
-
553
- ## Traceability (@TAG)
554
- - **SPEC**: @SPEC:DOMAIN-NNN
555
- - **TEST**: tests/auth/test_service.py
556
- - **CODE**: src/auth/service.py
557
- - **DOC**: docs/api/authentication.md
558
- ```
559
-
560
- ### Agent collaboration structure
561
-
562
- - **Step 1**: The `spec-builder` agent is dedicated to analyzing project documents and creating SPEC documents.
563
- - **Step 2**: The `git-manager` agent is dedicated to branch creation and GitHub Issue/PR creation.
564
- - **Single Responsibility Principle**: spec-builder only writes plans, git-manager only performs Git/GitHub operations.
565
- - **Sequential execution**: Executes in the order spec-builder → git-manager to maintain clear dependencies.
566
- - **No inter-agent calls**: Each agent calls the other agents. It is not called directly, but is executed sequentially only at the command level.
567
-
568
- ## 🚀 Optimized workflow execution order
569
-
570
- ### Phase 1: Parallel project analysis (performance optimization)
571
-
572
- **Perform simultaneously**:
573
-
574
- ```
575
- Task 1 (haiku): Scan project structure
576
- ├── Detect languages/frameworks
577
- ├── Collect list of existing SPECs
578
- └── Draft priority backlog
579
-
580
- Task 2 (sonnet): In-depth document analysis
581
- ├── product.md requirements extraction
582
- ├── structure.md architecture analysis
583
- └── tech.md technical constraints
584
- ```
585
-
586
- **Performance improvements**: Parallelize basic scans and deep analysis to minimize latency
587
-
588
- ### Phase 2: Create SPEC document integration
589
-
590
- The `spec-builder` agent (sonnet) integrates the results of the parallel analysis:
591
-
592
- - Proposal of function candidates based on project document
593
- - Creation of SPEC document after user approval (using MultiEdit)
594
- - Simultaneous creation of 3 files (spec.md, plan.md, acceptance.md)
595
-
596
- ### Phase 3: Git task processing
597
-
598
- Final processing by the `git-manager` agent (haiku):
599
-
600
- - **Branch creation**: Apply strategy for each mode
601
- - **Personal mode**: Branch from `main` or `develop` (based on project settings)
602
- - **Team mode**: **Always branch from `develop`** (GitFlow standard)
603
- - Branch name: `feature/SPEC-{ID}` format
604
- - **Create GitHub Issue**: Create SPEC Issue in Team mode
605
- - **Create Draft PR**: `feature/SPEC-{ID}` → `develop` in Team mode Create PR
606
- - **Initial Commit**: Commit SPEC document and create tags
607
-
608
- **Important**: Each agent runs independently, and direct calls between agents are prohibited.
609
-
610
- ## Agent role separation
611
-
612
- ### spec-builder dedicated area
613
-
614
- - Analysis of project documents and discovery of SPEC candidates
615
- - Preparation of EARS structure specifications
616
- - Preparation of Acceptance Criteria (Given-When-Then)
617
- - Verification of SPEC document quality
618
- - Application of @TAG system
619
-
620
- ### git-manager dedicated area
621
-
622
- - Create and manage all Git branches
623
- - **Apply branch strategy for each mode**
624
- - Personal: Branch from `main` or `develop`
625
- - Team: **Always branch from `develop`** (GitFlow)
626
- - Create GitHub Issue/PR
627
- - Team Mode: Create Draft PR (`feature/SPEC-{ID}` → `develop`)
628
- - Create initial commit and tags
629
- - Handle remote synchronization
630
-
631
- ## Step 2 workflow execution sequence
632
-
633
- ### Phase 1: Analysis and planning phase
634
-
635
- **Plan Analyzer** does the following:
636
-
637
- 1. **Loading project document**: In-depth analysis of product/structure/tech.md
638
- 2. **SPEC candidate discovery**: Prioritization based on business requirements
639
- 3. **Establishment of implementation strategy**: EARS structure and acceptance design
640
- 4. **Creating a Writing Plan**: Presents a step-by-step approach to writing a plan
641
- 5. **Awaiting user approval**: Review plan and gather feedback
642
-
643
- ### Phase 2: Plan preparation phase (after approval)
644
-
645
- The `spec-builder` agent **continuously** performs after user approval:
646
-
647
- 1. **Writing EARS specification**: Event-Action-Response-State structuring
648
- 2. **Acceptance Criteria**: Given-When-Then Scenario Writing
649
- 3. **Document quality verification**: Apply TRUST principles and @TAG
650
- 4. **Template creation**: Simultaneous creation of spec.md, plan.md, acceptance.md
651
-
652
- ### Phase 3: Git operations (git-manager)
653
-
654
- The `git-manager` agent does **all at once** after the SPEC is complete:
655
-
656
- 1. **Create branch**: Apply branch strategy for each mode
657
- 2. **GitHub Issue**: Create SPEC Issue in Team mode
658
- 3. **Initial commit**: Commit SPEC document and create tags
659
- 4. **Remote Sync**: Apply synchronization strategy for each mode
660
-
661
- ### Phase 3.5: CodeRabbit SPEC Review (Local Only)
662
-
663
- **After Draft PR is created, CodeRabbit automatically:**
664
-
665
- ```bash
666
- echo "🤖 Waiting for CodeRabbit SPEC review..."
667
-
668
- # CodeRabbit triggers automatically on Draft PR creation
669
- # Review includes:
670
- # - SPEC metadata validation (YAML frontmatter)
671
- # - EARS structure completeness check
672
- # - Acceptance criteria quality (Given-When-Then)
673
- # - @TAG system traceability
674
- # - Documentation clarity
675
-
676
- # Expected time: 1-2 minutes
677
- for i in {1..12}; do
678
- sleep 10
679
-
680
- # Check PR review status
681
- approval=$(gh pr view $pr_num --json reviewDecision --jq '.reviewDecision')
682
-
683
- if [ "$approval" = "APPROVED" ]; then
684
- echo "✅ CodeRabbit approved SPEC PR!"
685
- echo "→ Ready for development with /alfred:2-run SPEC-$spec_id"
686
- break
687
- fi
688
-
689
- echo "⏳ CodeRabbit reviewing... ($i/12)"
690
- done
691
- ```
692
-
693
- **CodeRabbit review includes:**
694
- - ✅ YAML frontmatter validation (7 required fields)
695
- - ✅ HISTORY section structure and completeness
696
- - ✅ EARS requirements clarity (Ubiquitous/Event-driven/State-driven/Optional/Unwanted Behaviors)
697
- - ✅ Acceptance criteria quality (Given-When-Then scenarios)
698
- - ✅ @TAG system compliance (SPEC/TEST/CODE/DOC traceability)
699
- - ✅ Documentation and formatting
700
-
701
- See `.coderabbit.yaml` for detailed SPEC review checklist.
702
-
703
- ## Writing Tips
704
-
705
- - Information that is not in the product/structure/tech document is supplemented by asking a new question.
706
- - Acceptance Criteria is encouraged to be written at least 2 times in 3 columns Given/When/Then.
707
- - The number of modules is reduced due to the relaxation of the Readable standard among the TRUST principles. If the recommended value (default 5) is exceeded, please include justification in the SPEC `context` section.
708
-
709
- ---
710
-
711
- ## 🧠 Context Management
712
-
713
- > For more information: `.moai/memory/development-guide.md` - see section "Context Engineering"
714
-
715
- ### Core strategy of this command
716
-
717
- **Load first**: `.moai/project/product.md` (business requirement)
718
-
719
- **Recommendation**: The plan is complete. You can experience better performance and context management by starting a new chat session with the `/clear` or `/new` command before proceeding to the next step (`/alfred:2-run`).
720
-
721
- ---
722
-
723
- ## Next steps
724
-
725
- **Recommendation**: For better performance and context management, start a new chat session with the `/clear` or `/new` command before proceeding to the next step.
726
-
727
- - Start implementing TDD with `/alfred:2-run SPEC-XXX`
728
- - Team mode: After creating an issue, the git-manager agent automatically creates a branch.