moai-adk 0.9.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 (260) 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/.git-hooks/pre-push +143 -0
  5. moai_adk/templates/.github/workflows/moai-gitflow.yml +6 -1
  6. moai_adk/templates/.github/workflows/release.yml +6 -2
  7. moai_adk/templates/.github/workflows/tag-validation.yml +57 -8
  8. moai_adk/templates/CLAUDE.md +477 -28
  9. moai_adk/templates/README.md +256 -0
  10. {moai_adk-0.9.1.dist-info → moai_adk-0.11.0.dist-info}/METADATA +740 -90
  11. moai_adk-0.11.0.dist-info/RECORD +77 -0
  12. moai_adk/templates/.claude/agents/alfred/cc-manager.md +0 -316
  13. moai_adk/templates/.claude/agents/alfred/debug-helper.md +0 -208
  14. moai_adk/templates/.claude/agents/alfred/doc-syncer.md +0 -214
  15. moai_adk/templates/.claude/agents/alfred/git-manager.md +0 -406
  16. moai_adk/templates/.claude/agents/alfred/implementation-planner.md +0 -350
  17. moai_adk/templates/.claude/agents/alfred/project-manager.md +0 -273
  18. moai_adk/templates/.claude/agents/alfred/quality-gate.md +0 -343
  19. moai_adk/templates/.claude/agents/alfred/skill-factory.md +0 -865
  20. moai_adk/templates/.claude/agents/alfred/spec-builder.md +0 -287
  21. moai_adk/templates/.claude/agents/alfred/tag-agent.md +0 -287
  22. moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +0 -326
  23. moai_adk/templates/.claude/agents/alfred/trust-checker.md +0 -375
  24. moai_adk/templates/.claude/commands/alfred/0-project.md +0 -1189
  25. moai_adk/templates/.claude/commands/alfred/1-plan.md +0 -728
  26. moai_adk/templates/.claude/commands/alfred/2-run.md +0 -545
  27. moai_adk/templates/.claude/commands/alfred/3-sync.md +0 -683
  28. moai_adk/templates/.claude/commands/alfred/9-feedback.md +0 -149
  29. moai_adk/templates/.claude/hooks/alfred/.moai/cache/version-check.json +0 -9
  30. moai_adk/templates/.claude/hooks/alfred/README.md +0 -343
  31. moai_adk/templates/.claude/hooks/alfred/TROUBLESHOOTING.md +0 -471
  32. moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +0 -209
  33. moai_adk/templates/.claude/hooks/alfred/core/version_cache.py +0 -198
  34. moai_adk/templates/.claude/hooks/alfred/notification__handle_events.py +0 -102
  35. moai_adk/templates/.claude/hooks/alfred/post_tool__log_changes.py +0 -102
  36. moai_adk/templates/.claude/hooks/alfred/pre_tool__auto_checkpoint.py +0 -108
  37. moai_adk/templates/.claude/hooks/alfred/session_end__cleanup.py +0 -102
  38. moai_adk/templates/.claude/hooks/alfred/session_start__show_project_info.py +0 -102
  39. moai_adk/templates/.claude/hooks/alfred/shared/core/__init__.py +0 -170
  40. moai_adk/templates/.claude/hooks/alfred/shared/core/checkpoint.py +0 -271
  41. moai_adk/templates/.claude/hooks/alfred/shared/core/context.py +0 -67
  42. moai_adk/templates/.claude/hooks/alfred/shared/core/project.py +0 -683
  43. moai_adk/templates/.claude/hooks/alfred/shared/core/tags.py +0 -198
  44. moai_adk/templates/.claude/hooks/alfred/shared/core/version_cache.py +0 -198
  45. moai_adk/templates/.claude/hooks/alfred/shared/handlers/__init__.py +0 -21
  46. moai_adk/templates/.claude/hooks/alfred/shared/handlers/notification.py +0 -25
  47. moai_adk/templates/.claude/hooks/alfred/shared/handlers/session.py +0 -175
  48. moai_adk/templates/.claude/hooks/alfred/shared/handlers/tool.py +0 -90
  49. moai_adk/templates/.claude/hooks/alfred/shared/handlers/user.py +0 -61
  50. moai_adk/templates/.claude/hooks/alfred/stop__handle_interrupt.py +0 -102
  51. moai_adk/templates/.claude/hooks/alfred/subagent_stop__handle_subagent_end.py +0 -102
  52. moai_adk/templates/.claude/hooks/alfred/user_prompt__jit_load_docs.py +0 -120
  53. moai_adk/templates/.claude/output-styles/alfred/agentic-coding.md +0 -640
  54. moai_adk/templates/.claude/output-styles/alfred/moai-adk-learning.md +0 -696
  55. moai_adk/templates/.claude/output-styles/alfred/study-with-alfred.md +0 -474
  56. moai_adk/templates/.claude/settings.json +0 -144
  57. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/SKILL.md +0 -113
  58. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/examples.md +0 -29
  59. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/reference.md +0 -28
  60. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/SKILL.md +0 -122
  61. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/examples.md +0 -29
  62. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/reference.md +0 -29
  63. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/SKILL.md +0 -237
  64. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/examples.md +0 -615
  65. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/reference.md +0 -653
  66. moai_adk/templates/.claude/skills/moai-alfred-language-detection/SKILL.md +0 -113
  67. moai_adk/templates/.claude/skills/moai-alfred-language-detection/examples.md +0 -29
  68. moai_adk/templates/.claude/skills/moai-alfred-language-detection/reference.md +0 -28
  69. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/SKILL.md +0 -113
  70. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/examples.md +0 -29
  71. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/reference.md +0 -28
  72. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/SKILL.md +0 -113
  73. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/examples.md +0 -29
  74. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/reference.md +0 -28
  75. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/SKILL.md +0 -113
  76. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/examples.md +0 -29
  77. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/reference.md +0 -28
  78. moai_adk/templates/.claude/skills/moai-cc-agents/SKILL.md +0 -269
  79. moai_adk/templates/.claude/skills/moai-cc-agents/templates/agent-template.md +0 -32
  80. moai_adk/templates/.claude/skills/moai-cc-claude-md/SKILL.md +0 -298
  81. moai_adk/templates/.claude/skills/moai-cc-claude-md/templates/CLAUDE-template.md +0 -26
  82. moai_adk/templates/.claude/skills/moai-cc-commands/SKILL.md +0 -307
  83. moai_adk/templates/.claude/skills/moai-cc-commands/templates/command-template.md +0 -21
  84. moai_adk/templates/.claude/skills/moai-cc-hooks/SKILL.md +0 -252
  85. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/pre-bash-check.sh +0 -19
  86. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/preserve-permissions.sh +0 -19
  87. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/validate-bash-command.py +0 -24
  88. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/SKILL.md +0 -199
  89. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/templates/settings-mcp-template.json +0 -39
  90. moai_adk/templates/.claude/skills/moai-cc-memory/SKILL.md +0 -316
  91. moai_adk/templates/.claude/skills/moai-cc-memory/templates/session-summary-template.md +0 -18
  92. moai_adk/templates/.claude/skills/moai-cc-settings/SKILL.md +0 -263
  93. moai_adk/templates/.claude/skills/moai-cc-settings/templates/settings-complete-template.json +0 -30
  94. moai_adk/templates/.claude/skills/moai-cc-skills/SKILL.md +0 -291
  95. moai_adk/templates/.claude/skills/moai-cc-skills/templates/SKILL-template.md +0 -15
  96. moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +0 -290
  97. moai_adk/templates/.claude/skills/moai-domain-backend/examples.md +0 -1633
  98. moai_adk/templates/.claude/skills/moai-domain-backend/reference.md +0 -660
  99. moai_adk/templates/.claude/skills/moai-domain-cli-tool/SKILL.md +0 -123
  100. moai_adk/templates/.claude/skills/moai-domain-cli-tool/examples.md +0 -29
  101. moai_adk/templates/.claude/skills/moai-domain-cli-tool/reference.md +0 -30
  102. moai_adk/templates/.claude/skills/moai-domain-data-science/SKILL.md +0 -123
  103. moai_adk/templates/.claude/skills/moai-domain-data-science/examples.md +0 -29
  104. moai_adk/templates/.claude/skills/moai-domain-data-science/reference.md +0 -30
  105. moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +0 -123
  106. moai_adk/templates/.claude/skills/moai-domain-database/examples.md +0 -29
  107. moai_adk/templates/.claude/skills/moai-domain-database/reference.md +0 -30
  108. moai_adk/templates/.claude/skills/moai-domain-devops/SKILL.md +0 -124
  109. moai_adk/templates/.claude/skills/moai-domain-devops/examples.md +0 -29
  110. moai_adk/templates/.claude/skills/moai-domain-devops/reference.md +0 -31
  111. moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +0 -124
  112. moai_adk/templates/.claude/skills/moai-domain-frontend/examples.md +0 -29
  113. moai_adk/templates/.claude/skills/moai-domain-frontend/reference.md +0 -31
  114. moai_adk/templates/.claude/skills/moai-domain-ml/SKILL.md +0 -123
  115. moai_adk/templates/.claude/skills/moai-domain-ml/examples.md +0 -29
  116. moai_adk/templates/.claude/skills/moai-domain-ml/reference.md +0 -30
  117. moai_adk/templates/.claude/skills/moai-domain-mobile-app/SKILL.md +0 -123
  118. moai_adk/templates/.claude/skills/moai-domain-mobile-app/examples.md +0 -29
  119. moai_adk/templates/.claude/skills/moai-domain-mobile-app/reference.md +0 -30
  120. moai_adk/templates/.claude/skills/moai-domain-security/SKILL.md +0 -123
  121. moai_adk/templates/.claude/skills/moai-domain-security/examples.md +0 -29
  122. moai_adk/templates/.claude/skills/moai-domain-security/reference.md +0 -30
  123. moai_adk/templates/.claude/skills/moai-domain-web-api/SKILL.md +0 -123
  124. moai_adk/templates/.claude/skills/moai-domain-web-api/examples.md +0 -29
  125. moai_adk/templates/.claude/skills/moai-domain-web-api/reference.md +0 -30
  126. moai_adk/templates/.claude/skills/moai-essentials-debug/SKILL.md +0 -303
  127. moai_adk/templates/.claude/skills/moai-essentials-debug/examples.md +0 -1064
  128. moai_adk/templates/.claude/skills/moai-essentials-debug/reference.md +0 -1047
  129. moai_adk/templates/.claude/skills/moai-essentials-perf/SKILL.md +0 -113
  130. moai_adk/templates/.claude/skills/moai-essentials-perf/examples.md +0 -29
  131. moai_adk/templates/.claude/skills/moai-essentials-perf/reference.md +0 -28
  132. moai_adk/templates/.claude/skills/moai-essentials-refactor/SKILL.md +0 -113
  133. moai_adk/templates/.claude/skills/moai-essentials-refactor/examples.md +0 -29
  134. moai_adk/templates/.claude/skills/moai-essentials-refactor/reference.md +0 -28
  135. moai_adk/templates/.claude/skills/moai-essentials-review/SKILL.md +0 -113
  136. moai_adk/templates/.claude/skills/moai-essentials-review/examples.md +0 -29
  137. moai_adk/templates/.claude/skills/moai-essentials-review/reference.md +0 -28
  138. moai_adk/templates/.claude/skills/moai-foundation-ears/SKILL.md +0 -116
  139. moai_adk/templates/.claude/skills/moai-foundation-ears/examples.md +0 -29
  140. moai_adk/templates/.claude/skills/moai-foundation-ears/reference.md +0 -28
  141. moai_adk/templates/.claude/skills/moai-foundation-git/SKILL.md +0 -122
  142. moai_adk/templates/.claude/skills/moai-foundation-git/examples.md +0 -29
  143. moai_adk/templates/.claude/skills/moai-foundation-git/reference.md +0 -29
  144. moai_adk/templates/.claude/skills/moai-foundation-langs/SKILL.md +0 -113
  145. moai_adk/templates/.claude/skills/moai-foundation-langs/examples.md +0 -29
  146. moai_adk/templates/.claude/skills/moai-foundation-langs/reference.md +0 -28
  147. moai_adk/templates/.claude/skills/moai-foundation-specs/SKILL.md +0 -113
  148. moai_adk/templates/.claude/skills/moai-foundation-specs/examples.md +0 -29
  149. moai_adk/templates/.claude/skills/moai-foundation-specs/reference.md +0 -28
  150. moai_adk/templates/.claude/skills/moai-foundation-tags/SKILL.md +0 -113
  151. moai_adk/templates/.claude/skills/moai-foundation-tags/examples.md +0 -29
  152. moai_adk/templates/.claude/skills/moai-foundation-tags/reference.md +0 -28
  153. moai_adk/templates/.claude/skills/moai-foundation-trust/SKILL.md +0 -307
  154. moai_adk/templates/.claude/skills/moai-foundation-trust/examples.md +0 -0
  155. moai_adk/templates/.claude/skills/moai-foundation-trust/reference.md +0 -1099
  156. moai_adk/templates/.claude/skills/moai-lang-c/SKILL.md +0 -124
  157. moai_adk/templates/.claude/skills/moai-lang-c/examples.md +0 -29
  158. moai_adk/templates/.claude/skills/moai-lang-c/reference.md +0 -31
  159. moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +0 -124
  160. moai_adk/templates/.claude/skills/moai-lang-cpp/examples.md +0 -29
  161. moai_adk/templates/.claude/skills/moai-lang-cpp/reference.md +0 -31
  162. moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +0 -123
  163. moai_adk/templates/.claude/skills/moai-lang-csharp/examples.md +0 -29
  164. moai_adk/templates/.claude/skills/moai-lang-csharp/reference.md +0 -30
  165. moai_adk/templates/.claude/skills/moai-lang-dart/SKILL.md +0 -123
  166. moai_adk/templates/.claude/skills/moai-lang-dart/examples.md +0 -29
  167. moai_adk/templates/.claude/skills/moai-lang-dart/reference.md +0 -30
  168. moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +0 -124
  169. moai_adk/templates/.claude/skills/moai-lang-go/examples.md +0 -29
  170. moai_adk/templates/.claude/skills/moai-lang-go/reference.md +0 -31
  171. moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +0 -124
  172. moai_adk/templates/.claude/skills/moai-lang-java/examples.md +0 -29
  173. moai_adk/templates/.claude/skills/moai-lang-java/reference.md +0 -31
  174. moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +0 -125
  175. moai_adk/templates/.claude/skills/moai-lang-javascript/examples.md +0 -29
  176. moai_adk/templates/.claude/skills/moai-lang-javascript/reference.md +0 -32
  177. moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +0 -124
  178. moai_adk/templates/.claude/skills/moai-lang-kotlin/examples.md +0 -29
  179. moai_adk/templates/.claude/skills/moai-lang-kotlin/reference.md +0 -31
  180. moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +0 -123
  181. moai_adk/templates/.claude/skills/moai-lang-php/examples.md +0 -29
  182. moai_adk/templates/.claude/skills/moai-lang-php/reference.md +0 -30
  183. moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +0 -431
  184. moai_adk/templates/.claude/skills/moai-lang-python/examples.md +0 -624
  185. moai_adk/templates/.claude/skills/moai-lang-python/reference.md +0 -316
  186. moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +0 -123
  187. moai_adk/templates/.claude/skills/moai-lang-r/examples.md +0 -29
  188. moai_adk/templates/.claude/skills/moai-lang-r/reference.md +0 -30
  189. moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +0 -124
  190. moai_adk/templates/.claude/skills/moai-lang-ruby/examples.md +0 -29
  191. moai_adk/templates/.claude/skills/moai-lang-ruby/reference.md +0 -31
  192. moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +0 -124
  193. moai_adk/templates/.claude/skills/moai-lang-rust/examples.md +0 -29
  194. moai_adk/templates/.claude/skills/moai-lang-rust/reference.md +0 -31
  195. moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +0 -123
  196. moai_adk/templates/.claude/skills/moai-lang-scala/examples.md +0 -29
  197. moai_adk/templates/.claude/skills/moai-lang-scala/reference.md +0 -30
  198. moai_adk/templates/.claude/skills/moai-lang-shell/SKILL.md +0 -123
  199. moai_adk/templates/.claude/skills/moai-lang-shell/examples.md +0 -29
  200. moai_adk/templates/.claude/skills/moai-lang-shell/reference.md +0 -30
  201. moai_adk/templates/.claude/skills/moai-lang-sql/SKILL.md +0 -124
  202. moai_adk/templates/.claude/skills/moai-lang-sql/examples.md +0 -29
  203. moai_adk/templates/.claude/skills/moai-lang-sql/reference.md +0 -31
  204. moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +0 -123
  205. moai_adk/templates/.claude/skills/moai-lang-swift/examples.md +0 -29
  206. moai_adk/templates/.claude/skills/moai-lang-swift/reference.md +0 -30
  207. moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +0 -127
  208. moai_adk/templates/.claude/skills/moai-lang-typescript/examples.md +0 -29
  209. moai_adk/templates/.claude/skills/moai-lang-typescript/reference.md +0 -34
  210. moai_adk/templates/.claude/skills/moai-skill-factory/CHECKLIST.md +0 -482
  211. moai_adk/templates/.claude/skills/moai-skill-factory/EXAMPLES.md +0 -278
  212. moai_adk/templates/.claude/skills/moai-skill-factory/INTERACTIVE-DISCOVERY.md +0 -524
  213. moai_adk/templates/.claude/skills/moai-skill-factory/METADATA.md +0 -477
  214. moai_adk/templates/.claude/skills/moai-skill-factory/PARALLEL-ANALYSIS-REPORT.md +0 -429
  215. moai_adk/templates/.claude/skills/moai-skill-factory/PYTHON-VERSION-MATRIX.md +0 -391
  216. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL-FACTORY-WORKFLOW.md +0 -431
  217. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL-UPDATE-ADVISOR.md +0 -577
  218. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL.md +0 -271
  219. moai_adk/templates/.claude/skills/moai-skill-factory/STEP-BY-STEP-GUIDE.md +0 -466
  220. moai_adk/templates/.claude/skills/moai-skill-factory/STRUCTURE.md +0 -583
  221. moai_adk/templates/.claude/skills/moai-skill-factory/WEB-RESEARCH.md +0 -526
  222. moai_adk/templates/.claude/skills/moai-skill-factory/reference.md +0 -465
  223. moai_adk/templates/.claude/skills/moai-skill-factory/scripts/generate-structure.sh +0 -328
  224. moai_adk/templates/.claude/skills/moai-skill-factory/scripts/validate-skill.sh +0 -312
  225. moai_adk/templates/.claude/skills/moai-skill-factory/templates/SKILL_TEMPLATE.md +0 -245
  226. moai_adk/templates/.claude/skills/moai-skill-factory/templates/examples-template.md +0 -285
  227. moai_adk/templates/.claude/skills/moai-skill-factory/templates/reference-template.md +0 -278
  228. moai_adk/templates/.claude/skills/moai-skill-factory/templates/scripts-template.sh +0 -303
  229. moai_adk/templates/.claude/skills/moai-spec-authoring/README.md +0 -137
  230. moai_adk/templates/.claude/skills/moai-spec-authoring/SKILL.md +0 -219
  231. moai_adk/templates/.claude/skills/moai-spec-authoring/examples/validate-spec.sh +0 -161
  232. moai_adk/templates/.claude/skills/moai-spec-authoring/examples.md +0 -541
  233. moai_adk/templates/.claude/skills/moai-spec-authoring/reference.md +0 -622
  234. moai_adk/templates/.github/workflows/tag-report.yml +0 -261
  235. moai_adk/templates/.moai/config.json +0 -113
  236. moai_adk/templates/.moai/docs/quick-issue-creation-guide.md +0 -219
  237. moai_adk/templates/.moai/hooks/install.sh +0 -79
  238. moai_adk/templates/.moai/hooks/pre-commit.sh +0 -66
  239. moai_adk/templates/.moai/memory/CLAUDE-AGENTS-GUIDE.md +0 -208
  240. moai_adk/templates/.moai/memory/CLAUDE-PRACTICES.md +0 -369
  241. moai_adk/templates/.moai/memory/CLAUDE-RULES.md +0 -539
  242. moai_adk/templates/.moai/memory/DEVELOPMENT-GUIDE.md +0 -344
  243. moai_adk/templates/.moai/memory/GITFLOW-PROTECTION-POLICY.md +0 -220
  244. moai_adk/templates/.moai/memory/ISSUE-LABEL-MAPPING.md +0 -150
  245. moai_adk/templates/.moai/memory/SKILLS-DESCRIPTION-POLICY.md +0 -218
  246. moai_adk/templates/.moai/memory/SPEC-METADATA.md +0 -356
  247. moai_adk/templates/.moai/memory/gitflow-protection-policy.md +0 -220
  248. moai_adk/templates/.moai/memory/spec-metadata.md +0 -356
  249. moai_adk/templates/.moai/project/product.md +0 -161
  250. moai_adk/templates/.moai/project/structure.md +0 -156
  251. moai_adk/templates/.moai/project/tech.md +0 -227
  252. moai_adk/templates/src/moai_adk/core/__init__.py +0 -5
  253. moai_adk/templates/src/moai_adk/core/tags/__init__.py +0 -86
  254. moai_adk/templates/src/moai_adk/core/tags/ci_validator.py +0 -433
  255. moai_adk/templates/src/moai_adk/core/tags/cli.py +0 -283
  256. moai_adk/templates/src/moai_adk/core/tags/validator.py +0 -897
  257. moai_adk-0.9.1.dist-info/RECORD +0 -320
  258. {moai_adk-0.9.1.dist-info → moai_adk-0.11.0.dist-info}/WHEEL +0 -0
  259. {moai_adk-0.9.1.dist-info → moai_adk-0.11.0.dist-info}/entry_points.txt +0 -0
  260. {moai_adk-0.9.1.dist-info → moai_adk-0.11.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,1189 +0,0 @@
1
- ---
2
- name: alfred:0-project
3
- description: "Initialize project document - create product/structure/tech.md and set optimization for each language"
4
- # Translations:
5
- # - ko: "프로젝트 문서 초기화 - product/structure/tech.md 생성 및 언어별 최적화 설정"
6
- # - ja: "プロジェクト文書の初期化 - product/structure/tech.mdの作成と言語別最適化設定"
7
- # - zh: "初始化项目文档 - 创建product/structure/tech.md并设置语言优化"
8
- allowed-tools:
9
- - Read
10
- - Write
11
- - Edit
12
- - MultiEdit
13
- - Grep
14
- - Glob
15
- - TodoWrite
16
- - Bash(ls:*)
17
- - Bash(find:*)
18
- - Bash(cat:*)
19
- - Task
20
- ---
21
-
22
- # 📋 MoAI-ADK Step 0: Initialize/Update Universal Language Support Project Documentation
23
- > **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.
24
-
25
- ## 🎯 Command Purpose
26
-
27
- Automatically analyzes the project environment to create/update product/structure/tech.md documents and configure language-specific optimization settings.
28
-
29
- ## 📋 Execution flow
30
-
31
- 0. **Conversation Language Selection**: User selects the language for all dialogs and documentation
32
- 1. **Environment Analysis**: Automatically detect project type (new/legacy) and codebase language
33
- 2. **Establishment of interview strategy**: Select question tree suited to project characteristics
34
- 3. **User Verification**: Review and approve interview plan
35
- 4. **Create project documentation**: Create product/structure/tech.md in the selected language
36
- 5. **Create configuration file**: config.json auto-configuration
37
-
38
- ## 🧠 Associated Skills & Agents
39
-
40
- | Agent | Core Skill | Purpose |
41
- | --------------- | -------------------------------- | --------------------------------------------- |
42
- | project-manager | `moai-alfred-language-detection` | Initialize project and interview requirements |
43
- | trust-checker | `moai-alfred-trust-validation` | Verify initial project structure (optional) |
44
-
45
- **Note**: TUI Survey Skill is used for user confirmations during project initialization and is shared across all interactive prompts.
46
-
47
- ## 🔗 Associated Agent
48
-
49
- - **Primary**: project-manager (📋 planner) - Dedicated to project initialization
50
- - **Quality Check**: trust-checker (✅ Quality assurance lead) - Initial structural verification (optional)
51
- - **Secondary**: None (standalone execution)
52
-
53
- ## 💡 Example of use
54
-
55
- The user executes the `/alfred:8-project` command to analyze the project and create/update documents.
56
-
57
- ## Command Overview
58
-
59
- It is a systematic initialization system that analyzes the project environment and creates/updates product/structure/tech.md documents.
60
-
61
- - **Automatically detect language**: Automatically recognize Python, TypeScript, Java, Go, Rust, etc.
62
- - **Project type classification**: Automatically determine new vs. existing projects
63
- - **High-performance initialization**: Achieve 0.18 second initialization with TypeScript-based CLI
64
- - **2-step workflow**: 1) Analysis and planning → 2) Execution after user approval
65
-
66
- ## How to use
67
-
68
- The user executes the `/alfred:8-project` command to start analyzing the project and creating/updating documents.
69
-
70
- **Automatic processing**:
71
- - Update mode if there is an existing `.moai/project/` document
72
- - New creation mode if there is no document
73
- - Automatic detection of language and project type
74
-
75
- ## ⚠️ Prohibitions
76
-
77
- **What you should never do**:
78
-
79
- - ❌ Create a file in the `.claude/memory/` directory
80
- - ❌ Create a file `.claude/commands/alfred/*.json`
81
- - ❌ Unnecessary overwriting of existing documents
82
- - ❌ Date and numerical prediction (“within 3 months”, “50% reduction”) etc.)
83
- - ❌ Hypothetical scenarios, expected market size, future technology trend predictions
84
-
85
- **Expressions to use**:
86
-
87
- - ✅ "High/medium/low priority"
88
- - ✅ "Immediately needed", "step-by-step improvements"
89
- - ✅ Current facts
90
- - ✅ Existing technology stack
91
- - ✅ Real problems
92
-
93
- ---
94
-
95
- ## 🚀 STEP 0: 초기 설정 - 언어 및 사용자 정보 선택
96
-
97
- **목적**: 프로젝트 초기화 시작 전에 대화 언어를 설정하고 사용자 닉네임을 등록합니다. 이 설정은 모든 Alfred 프롬프트, 인터뷰 질문 및 생성된 문서에 적용됩니다.
98
-
99
- ### 0.0 Alfred 자기소개 및 환영 인사
100
-
101
- Alfred가 첫 상호작용으로 다음과 같이 인사합니다:
102
-
103
- ```
104
- 안녕하세요! 👋 저는 Alfred입니다.
105
- MoAI-ADK의 SuperAgent로서 당신의 프로젝트를 함께 만들어갈 준비가 되어 있습니다.
106
-
107
- 앞으로의 모든 대화에서 당신을 편하게 부르기 위해,
108
- 먼저 기본 설정을 진행하겠습니다.
109
- ```
110
-
111
- ### 0.1 언어 선택
112
-
113
- Alfred가 `AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)` 를 사용하여 **첫 번째 상호작용**으로 언어 선택 메뉴를 표시합니다:
114
-
115
- **Question**:
116
- ```
117
- Which language would you like to use for the project initialization and documentation?
118
- ```
119
-
120
- **Options** (AskUserQuestion with moai-alfred-interactive-questions):
121
- - **English** (en) — All dialogs and documentation in English
122
- - **한국어** (ko) — All dialogs and documentation in Korean
123
- - **日本語** (ja) — All dialogs and documentation in Japanese
124
- - **中文** (zh) — All dialogs and documentation in Chinese
125
- - **Other** — User can specify custom language (e.g., "Español", "Français", "Deutsch")
126
-
127
- ### 0.2 Store Language Preference
128
-
129
- Alfred records the selected language:
130
-
131
- ```json
132
- {
133
- "conversation_language": "ko",
134
- "conversation_language_name": "한국어",
135
- "selected_at": "2025-10-22T12:34:56Z"
136
- }
137
- ```
138
-
139
- This language preference is:
140
- - Passed to all sub-agents as a context parameter
141
- - Stored in `.moai/config.json` under `language` field
142
- - Used to generate all documentation in the selected language
143
- - Displayed in CLAUDE.md under "## Project Information"
144
-
145
- ### 0.2.5 사용자 닉네임 선택
146
-
147
- 언어 선택 완료 후, Alfred가 `AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)` 를 사용하여 사용자 닉네임을 요청합니다:
148
-
149
- **질문**:
150
- ```
151
- 앞으로 대화에서 당신을 어떻게 부르면 좋을까요?
152
- (예: GOOS, 팀장님, 개발자님, 또는 자유롭게 입력)
153
- ```
154
-
155
- **입력 방식**:
156
- - 텍스트 직접 입력 가능 (자유 형식)
157
- - 예시: "GOOS", "팀장", "개발자" 등
158
- - 최대 20자 한도
159
-
160
- ### 0.2.6 사용자 정보 저장
161
-
162
- Alfred가 선택된 닉네임을 다음과 같이 저장합니다:
163
-
164
- ```json
165
- {
166
- "conversation_language": "ko",
167
- "conversation_language_name": "한국어",
168
- "user_nickname": "GOOS",
169
- "selected_at": "2025-10-23T12:34:56Z"
170
- }
171
- ```
172
-
173
- 이 정보는:
174
- - 모든 sub-agents 에게 컨텍스트 파라미터로 전달됨
175
- - `.moai/config.json` 의 `user` 필드에 저장됨
176
- - CLAUDE.md의 `{{USER_NICKNAME}}` 변수로 치환됨
177
- - 모든 Alfred 대화에서 사용됨
178
-
179
- **예시**:
180
- ```
181
- 안녕하세요, GOOS님! 👋
182
-
183
- 이제 프로젝트 환경 분석으로 진행하겠습니다...
184
- ```
185
-
186
- ### 0.3 STEP 1로 전환
187
-
188
- 언어 및 사용자 정보 설정 완료 후, 모든 후속 상호작용이 선택된 언어로 진행됩니다:
189
- - Alfred의 모든 프롬프트가 선택된 언어로 번역됨
190
- - project-manager sub-agent이 언어 및 사용자 정보 파라미터를 수신
191
- - 인터뷰 질문이 선택된 언어로 진행됨
192
- - 생성된 문서 (product.md, structure.md, tech.md)가 선택된 언어로 작성됨
193
- - CLAUDE.md가 선택된 언어와 사용자 닉네임을 표시함
194
-
195
- **한국어 선택 시 출력 예시**:
196
- ```markdown
197
- ✅ 설정 완료!
198
-
199
- 언어: 한국어 (ko)
200
- 닉네임: GOOS
201
-
202
- 이제 GOOS님의 프로젝트 환경 분석으로 진행하겠습니다...
203
- ```
204
-
205
- ---
206
-
207
- ## 🚀 STEP 1: Environmental analysis and interview plan development
208
-
209
- Analyze the project environment and develop a systematic interview plan.
210
-
211
- ### 1.0 Check backup directory (highest priority)
212
-
213
- **Processing backup files after moai-adk init reinitialization**
214
-
215
- Alfred first checks the `.moai-backups/` directory:
216
-
217
- ```bash
218
- # Check latest backup timestamp
219
- ls -t .moai-backups/ | head -1
220
-
221
- # Check the optimized flag in config.json
222
- grep "optimized" .moai/config.json
223
- ```
224
-
225
- **Backup existence conditions**:
226
- - `.moai-backups/` directory exists
227
- - `.moai/project/*.md` file exists in the latest backup folder
228
- - `optimized: false` in `config.json` (immediately after reinitialization)
229
-
230
- **Select user if backup exists**
231
- Call `AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)` to display a TUI with the following options:
232
- - **Merge**: Merge backup contents and latest template (recommended)
233
- - **New**: Ignore the backup and start a new interview
234
- - **Skip**: Keep current file (terminate task)
235
-
236
- **Response processing**:
237
- - **"Merge"** → Proceed to Phase 1.1 (backup merge workflow)
238
- - **"Create new"** → Proceed to Phase 1.2 (Project environment analysis) (existing process)
239
- - **"Skip"** → End task
240
-
241
- **No backup or optimized: true**:
242
- - Proceed directly to Phase 1.2 (project environment analysis)
243
-
244
- ---
245
-
246
- ### 1.1 Backup merge workflow (when user selects “Merge”)
247
-
248
- **Purpose**: Restore only user customizations while maintaining the latest template structure.
249
-
250
- **STEP 1: Read backup file**
251
-
252
- Alfred reads files from the latest backup directory:
253
- ```bash
254
- # Latest backup directory path
255
- BACKUP_DIR=.moai-backups/$(ls -t .moai-backups/ | head -1)
256
-
257
- # Read backup file
258
- Read $BACKUP_DIR/.moai/project/product.md
259
- Read $BACKUP_DIR/.moai/project/structure.md
260
- Read $BACKUP_DIR/.moai/project/tech.md
261
- Read $BACKUP_DIR/CLAUDE.md
262
- ```
263
-
264
- **STEP 2: Detect template defaults**
265
-
266
- The following patterns are considered "template defaults" (not merged):
267
- - "Define your key user base"
268
- - "Describe the core problem you are trying to solve"
269
- - "List the strengths and differences of your project"
270
- - "MoAI-ADK", "MoAI-Agentic Development Kit", etc. Variable format
271
- - Guide phrases such as "Example:", "Sample:", "Example:", etc.
272
-
273
- **STEP 3: Extract user customization**
274
-
275
- Extract only **non-template default content** from the backup file:
276
- - `product.md`:
277
- - Define your actual user base in the USER section
278
- - Describe the actual problem in the PROBLEM section
279
- - Real differences in the STRATEGY section
280
- - Actual success metrics in the SUCCESS section
281
- - `structure.md`:
282
- - Actual design in the ARCHITECTURE section
283
- - Actual module structure in the MODULES section
284
- - Actual integration plan in the INTEGRATION section
285
- - `tech.md`:
286
- - The actual technology stack
287
- in the STACK section - The actual framework
288
- in the FRAMEWORK section - The actual quality policy
289
- in the QUALITY section - `HISTORY` section: **Full Preservation** (all files)
290
-
291
- **STEP 4: Merge Strategy**
292
-
293
- ```markdown
294
- Latest template structure (v0.4.0+)
295
-
296
- Insert user customization (extracted from backup file)
297
-
298
- HISTORY section updates
299
-
300
- Version update (v0.1.x → v0.1.x+1)
301
- ```
302
-
303
- **Merge Principle**:
304
- - ✅ Maintain the latest version of the template structure (section order, header, @TAG format)
305
- - ✅ Insert only user customization (actual content written)
306
- - ✅ Cumulative preservation of the HISTORY section (existing history + merge history)
307
- - ❌ Replace template default values ​​with the latest version
308
-
309
- **STEP 5: HISTORY Section Update**
310
-
311
- After the merge is complete, add history to the HISTORY section of each file:
312
- ```yaml
313
- ### v0.1.x+1 (2025-10-19)
314
- - **UPDATED**: Merge backup files (automatic optimization)
315
- - AUTHOR: @Alfred
316
- - BACKUP: .moai-backups/20251018-003638/
317
- - REASON: Restoring user customization after moai-adk init reinitialization
318
- ```
319
-
320
- **STEP 6: Update config.json**
321
-
322
- Set optimization flags after the merge is complete:
323
- ```json
324
- {
325
- "project": {
326
- "optimized": true,
327
- "last_merge": "2025-10-19T12:34:56+09:00",
328
- "backup_source": ".moai-backups/20251018-003638/"
329
- }
330
- }
331
- ```
332
-
333
- **STEP 7: Completion Report**
334
-
335
- ```markdown
336
- ✅ Backup merge completed!
337
-
338
- 📁 Merged files:
339
- - .moai/project/product.md (v0.1.4 → v0.1.5)
340
- - .moai/project/structure.md (v0.1.1 → v0.1.2)
341
- - .moai/project/tech.md (v0.1.1 → v0.1.2)
342
- - .moai/config.json (optimized: false → true)
343
-
344
- 🔍 Merge history:
345
- - USER section: Restore customized contents of backup file
346
- - PROBLEM section: Restore problem description of backup file
347
- - STRATEGY section: Restore differentials of backup file
348
- - HISTORY section: Add merge history (cumulative retention)
349
-
350
- 💾 Backup file location:
351
- - Original backup: .moai-backups/20251018-003638/
352
- - Retention period: Permanent (until manual deletion)
353
-
354
- 📋 Next steps:
355
- 1. Review the merged document
356
- 2. Additional modifications if necessary
357
- 3. Create your first SPEC with /alfred:1-plan
358
-
359
- ---
360
- **Task completed: /alfred:0-project terminated**
361
- ```
362
-
363
- **Finish work after merge**: Complete immediately without interview
364
-
365
- ---
366
-
367
- ### 1.2 Run project environment analysis (when user selects "New" or no backup)
368
-
369
- **Automatically analyzed items**:
370
-
371
- 1. **Project Type Detection**
372
- Alfred classifies new vs existing projects by analyzing the directory structure:
373
- - Empty directory → New project
374
- - Code/documentation present → Existing project
375
-
376
- 2. **Auto-detect language/framework**: Detects the main language of your project based on file patterns
377
- - pyproject.toml, requirements.txt → Python
378
- - package.json, tsconfig.json → TypeScript/Node.js
379
- - pom.xml, build.gradle → Java
380
- - go.mod → Go
381
- - Cargo.toml → Rust
382
- - backend/ + frontend/ → full stack
383
-
384
- 3. **Document status analysis**
385
- - Check the status of existing `.moai/project/*.md` files
386
- - Identify areas of insufficient information
387
- - Organize items that need supplementation
388
-
389
- 4. **Project structure evaluation**
390
- - Directory structure complexity
391
- - Monolingual vs. hybrid vs. microservice
392
- - Code base size estimation
393
-
394
- ### 1.3 Establish interview strategy (when user selects “New”)
395
-
396
- **Select question tree by project type**:
397
-
398
- | Project Type | Question Category | Focus Areas |
399
- | ------------------------- | ------------------ | --------------------------------------------- |
400
- | **New Project** | Product Discovery | Mission, Users, Problems Solved |
401
- | **Existing Project** | Legacy Analysis | Code Base, Technical Debt, Integration Points |
402
- | **TypeScript conversion** | Migration Strategy | TypeScript conversion for existing projects |
403
-
404
- **Question Priority**:
405
- - **Essential Questions**: Core Business Value, Key User Bases (all projects)
406
- - **Technical Questions**: Language/Framework, Quality Policy, Deployment Strategy
407
- - **Governance**: Security Requirements, Traceability Strategy (Optional)
408
-
409
- ### 1.4 Generate Interview Plan Report (when user selects “Create New”)
410
-
411
- **Format of plan to be presented to users**:
412
-
413
- ```markdown
414
- ## 📊 Project initialization plan: [PROJECT-NAME]
415
-
416
- ### Environmental Analysis Results
417
- - **Project Type**: [New/Existing/Hybrid]
418
- - **Languages ​​Detected**: [Language List]
419
- - **Current Document Status**: [Completeness Rating 0-100%]
420
- - **Structure Complexity**: [Simple/Medium/Complex]
421
-
422
- ### 🎯 Interview strategy
423
- - **Question category**: Product Discovery / Structure / Tech
424
- - **Expected number of questions**: [N (M required + K optional)]
425
- - **Estimated time required**: [Time estimation]
426
- - **Priority area**: [Focus on Areas to be covered]
427
-
428
- ### ⚠️ Notes
429
- - **Existing document**: [Overwrite vs supplementation strategy]
430
- - **Language settings**: [Automatic detection vs manual setting]
431
- - **Configuration conflicts**: [Compatibility with existing config.json]
432
-
433
- ### ✅ Expected deliverables
434
- - **product.md**: [Business requirements document]
435
- - **structure.md**: [System architecture document]
436
- - **tech.md**: [Technology stack and policy document]
437
- - **config.json**: [Project configuration file]
438
-
439
- ---
440
- **Approval Request**: Would you like to proceed with the interview using the above plan?
441
- (Choose “Proceed,” “Modify [Content],” or “Abort”)
442
- ```
443
-
444
- ### 1.5 Wait for user approval (moai-alfred-interactive-questions) (when user selects "New")
445
-
446
- After Alfred receives the project-manager's interview plan report, uses `AskUserQuestion` tool (documented in moai-alfred-interactive-questions skill) and asks whether Phase 2 is approved.
447
- - **Proceed**: Interview conducted according to approved plan
448
- - **Modify**: Re-establish the plan (re-execute Phase 1)
449
- - **Stop**: Stop initialization
450
-
451
- **Response processing**:
452
- - **"Progress"** (`answers["0"] === "Progress"`) → Execute Phase 2
453
- - **"Modify"** (`answers["0"] === "Modify"`) → Repeat Phase 1 (recall project-manager)
454
- - **"Abort"** (`answers["0"] === "Abort"`) → End task
455
-
456
- ---
457
-
458
- ## 🚀 STEP 2: Execute project initialization (after user approves “New”)
459
-
460
- **Note**: This step will only be executed if the user selects **"New"**.
461
- - When selecting "Merge": End the task in Phase 1.1 (Merge Backups)
462
- - When selecting "Skip": End the task
463
- - When selecting "New": Proceed with the process below
464
-
465
- After user approval, the project-manager agent performs initialization.
466
-
467
- ### 2.1 Call project-manager agent (when user selects "New")
468
-
469
- Alfred starts project initialization by calling the project-manager agent with the following parameters:
470
-
471
- **Parameters passed to project-manager**:
472
- - **conversation_language** (from STEP 0): Language code selected by user (e.g., "ko", "en", "ja", "zh")
473
- - **language_name** (from STEP 0): Display name of selected language (e.g., "Korean", "English")
474
- - Detected Languages: [Language List from codebase detection]
475
- - Project Type: [New/Existing]
476
- - Existing Document Status: [Existence/Absence]
477
- - Approved Interview Plan: [Plan Summary]
478
-
479
- **Execution**:
480
- ```
481
- Call the Task tool:
482
- - subagent_type: "project-manager"
483
- - description: "Initialize project with conversation language support"
484
- - prompt: """You are project-manager agent.
485
-
486
- LANGUAGE CONFIGURATION:
487
- - conversation_language: {{CONVERSATION_LANGUAGE}}
488
- - language_name: {{CONVERSATION_LANGUAGE_NAME}}
489
-
490
- PROJECT_TYPE: [new|existing]
491
- DETECTED_LANGUAGES: [detected codebase languages]
492
-
493
- CRITICAL INSTRUCTION:
494
- All interviews and generated documentation MUST be in conversation_language:
495
- - product.md: Generate in {{CONVERSATION_LANGUAGE}}
496
- - structure.md: Generate in {{CONVERSATION_LANGUAGE}}
497
- - tech.md: Generate in {{CONVERSATION_LANGUAGE}}
498
-
499
- If conversation_language is 'ko': All narrative content in Korean
500
- If conversation_language is 'ja': All narrative content in Japanese
501
- If conversation_language is other: Follow the specified language
502
-
503
- After project initialization, update .moai/config.json with nested language structure:
504
- {
505
- "language": {
506
- "conversation_language": "{{CONVERSATION_LANGUAGE}}",
507
- "conversation_language_name": "{{CONVERSATION_LANGUAGE_NAME}}"
508
- }
509
- }
510
-
511
- SKILL INVOCATION:
512
- Use explicit Skill() calls when needed:
513
- - Skill("moai-alfred-language-detection") for codebase language detection
514
- - Skill("moai-foundation-langs") for multi-language project setup
515
-
516
- TASK: Conduct project interviews and create/update product/structure/tech.md documents."""
517
- ```
518
-
519
- **Outcome**: The project-manager agent conducts structured interviews entirely in the selected language and creates/updates product/structure/tech.md documents in that language.
520
-
521
- ### 2.2 Automatic activation of Alfred Skills (optional)
522
-
523
- After the project-manager has finished creating the document, **Alfred can optionally call Skills** (upon user request).
524
-
525
- **Automatic activation conditions** (optional):
526
-
527
- | Conditions | Automatic selection Skill | Purpose |
528
- | ------------------------------------ | ---------------------------- | -------------------------------------- |
529
- | User Requests “Quality Verification” | moai-alfred-trust-validation | Initial project structure verification |
530
-
531
- **Execution flow** (optional):
532
- ```
533
- 1. project-manager completion
534
-
535
- 2. User selection:
536
- - "Quality verification required" → moai-alfred-trust-validation (Level 1 quick scan)
537
- - "Skip" → Complete immediately
538
- ```
539
-
540
- **Note**: Quality verification is optional during the project initialization phase.
541
-
542
- ### 2.3 Sub-agent moai-alfred-interactive-questions (Nested)
543
-
544
- **The project-manager agent can internally call the TUI survey skill** to check the details of the task.
545
-
546
- **When to call**:
547
- - Before overwriting existing project documents
548
- - When selecting language/framework
549
- - When changing important settings
550
-
551
- **Example** (inside project-manager): Ask whether to "overwrite file" with `AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)`,
552
- - Allows you to choose between **Overwrite** / **Merge** / **Skip**.
553
-
554
- **Nested pattern**:
555
- - **Command level** (Phase approval): Called by Alfred → "Shall we proceed with Phase 2?"
556
- - **Sub-agent level** (Detailed confirmation): Called by project-manager → "Shall we overwrite the file?"
557
-
558
- ### 2.4 Processing method by project type
559
-
560
- #### A. New project (Greenfield)
561
-
562
- **Interview Flow**:
563
-
564
- 1. **Product Discovery** (create product.md)
565
- - Define core mission (@DOC:MISSION-001)
566
- - Identify key user base (@SPEC:USER-001)
567
- - Identify key problems to solve (@SPEC:PROBLEM-001)
568
- - Summary of differences and strengths (@DOC:STRATEGY-001)
569
- - Setting success indicators (@SPEC:SUCCESS-001)
570
-
571
- 2. **Structure Blueprint** (create structure.md)
572
- - Selection of architecture strategy (@DOC:ARCHITECTURE-001)
573
- - Division of responsibilities by module (@DOC:MODULES-001)
574
- - External system integration plan (@DOC:INTEGRATION-001)
575
- - Define traceability strategy (@DOC:TRACEABILITY-001)
576
-
577
- 3. **Tech Stack Mapping** (written by tech.md)
578
- - Select language & runtime (@DOC:STACK-001)
579
- - Determine core framework (@DOC:FRAMEWORK-001)
580
- - Set quality gate (@DOC:QUALITY-001)
581
- - Define security policy (@DOC:SECURITY-001)
582
- - Plan distribution channels (@DOC:DEPLOY-001)
583
-
584
- **Automatically generate config.json**:
585
- ```json
586
- {
587
- "project_name": "detected-name",
588
- "project_type": "single|fullstack|microservice",
589
- "project_language": "python|typescript|java|go|rust",
590
- "test_framework": "pytest|vitest|junit|go test|cargo test",
591
- "linter": "ruff|biome|eslint|golint|clippy",
592
- "formatter": "black|biome|prettier|gofmt|rustfmt",
593
- "coverage_target": 85,
594
- "mode": "personal"
595
- }
596
- ```
597
-
598
- #### B. Existing project (legacy introduction)
599
-
600
- **Legacy Snapshot & Alignment**:
601
-
602
- **STEP 1: Identify the overall project structure**
603
-
604
- Alfred identifies the entire project structure:
605
- - Visualize the directory structure using the tree or find commands
606
- - Exclude build artifacts such as node_modules, .git, dist, build, __pycache__, etc.
607
- - Identify key source directories and configuration files.
608
-
609
- **Output**:
610
- - Visualize the entire folder/file hierarchy of the project
611
- - Identify major directories (src/, tests/, docs/, config/, etc.)
612
- - Check language/framework hint files (package.json, pyproject.toml, go.mod, etc.)
613
-
614
- **STEP 2: Establish parallel analysis strategy**
615
-
616
- Alfred identifies groups of files by the Glob pattern:
617
- 1. **Configuration files**: *.json, *.toml, *.yaml, *.yml, *.config.js
618
- 2. **Source code files**: src/**/*.{ts,js,py,go,rs,java}
619
- 3. **Test files**: tests/**/*.{ts,js,py,go,rs,java}, **/*.test.*, **/*.spec.*
620
- 4. **Documentation files**: *.md, docs/**/*.md, README*, CHANGELOG*
621
-
622
- **Parallel Read Strategy**:
623
- - Speed ​​up analysis by reading multiple files simultaneously with the Read tool
624
- - Batch processing for each file group
625
- - Priority: Configuration file → Core source → Test → Document
626
-
627
- **STEP 3: Analysis and reporting of characteristics for each file**
628
-
629
- As each file is read, the following information is collected:
630
-
631
- 1. **Configuration file analysis**
632
- - Project metadata (name, version, description)
633
- - Dependency list and versions
634
- - Build/test script
635
- - Confirm language/framework
636
-
637
- 2. **Source code analysis**
638
- - Identify major modules and classes
639
- - Architectural pattern inference (MVC, clean architecture, microservice, etc.)
640
- - Identify external API calls and integration points
641
- - Key areas of domain logic
642
-
643
- 3. **Test code analysis**
644
- - Check test framework
645
- - Identify coverage settings
646
- - Identify key test scenarios
647
- - Evaluate TDD compliance
648
-
649
- 4. **Document analysis**
650
- - Existing README contents
651
- - Existence of architecture document
652
- - API document status
653
- - Installation/deployment guide completeness
654
-
655
- **Report Format**:
656
- ```markdown
657
- ## Analysis results for each file
658
-
659
- ### Configuration file
660
- - package.json: Node.js 18+, TypeScript 5.x, Vitest test
661
- - tsconfig.json: strict mode, ESNext target
662
- - biome.json: Linter/formatter settings exist
663
-
664
- ### Source code (src/)
665
- - src/core/: Core business logic (3 modules)
666
- - src/api/: REST API endpoints (5 routers)
667
- - src/utils/: Utility functions (logging, verification, etc.)
668
- - Architecture: Hierarchical (controller) → service → repository)
669
-
670
- ### Tests (tests/)
671
- - Vitest + @testing-library used
672
- - Unit test coverage estimated at about 60%
673
- - E2E testing lacking
674
-
675
- ### Documentation
676
- - README.md: Only installation guide
677
- - Absence of API documentation
678
- - Absence of architecture document
679
- ```
680
-
681
- **STEP 4: Comprehensive analysis and product/structure/tech reflection**
682
-
683
- Based on the collected information, it is reflected in three major documents:
684
-
685
- 1. Contents reflected in **product.md**
686
- - Project mission extracted from existing README/document
687
- - Main user base and scenario inferred from code
688
- - Backtracking of core problem to be solved
689
- - Preservation of existing assets in “Legacy Context”
690
-
691
- 2. Contents reflected in **structure.md**
692
- - Identified actual directory structure
693
- - Responsibility analysis results for each module
694
- - External system integration points (API calls, DB connections, etc.)
695
- - Technical debt items (marked with @CODE tag)
696
-
697
- 3. **tech.md reflection content**
698
- - Languages/frameworks/libraries actually in use
699
- - Existing build/test pipeline
700
- - Status of quality gates (linter, formatter, test coverage)
701
- - Identification of security/distribution policy
702
- - Items requiring improvement (marked with TODO tags)
703
-
704
- **Preservation Policy**:
705
- - Supplement only the missing parts without overwriting existing documents
706
- - Preserve conflicting content in the “Legacy Context” section
707
- - Mark items needing improvement with @CODE and TODO tags
708
-
709
- **Example Final Report**:
710
- ```markdown
711
- ## Complete analysis of existing project
712
-
713
- ### Environment Information
714
- - **Language**: TypeScript 5.x (Node.js 18+)
715
- - **Framework**: Express.js
716
- - **Test**: Vitest (coverage ~60%)
717
- - **Linter/Formatter**: Biome
718
-
719
- ### Main findings
720
- 1. **Strengths**:
721
- - High type safety (strict mode)
722
- - Clear module structure (separation of core/api/utils)
723
-
724
- 2. **Needs improvement**:
725
- - Test coverage below 85% (TODO:TEST-COVERAGE-001)
726
- - Absence of API documentation (TODO:DOCS-API-001)
727
- - Insufficient E2E testing (@CODE:TEST-E2E-001)
728
-
729
- ### Next step
730
- 1. product/structure/tech.md creation completed
731
- 2. @CODE/TODO item priority confirmation
732
- 3. /alfred:Start writing an improvement SPEC with 1-spec
733
- ```
734
-
735
- ### 2.3 Document creation and verification
736
-
737
- **Output**:
738
- - `.moai/project/product.md` (Business Requirements)
739
- - `.moai/project/structure.md` (System Architecture)
740
- - `.moai/project/tech.md` (Technology Stack and policy)
741
- - `.moai/config.json` (project settings)
742
-
743
- **Quality Verification**:
744
- - [ ] Verify existence of all required @TAG sections
745
- - [ ] Verify compliance with EARS syntax format
746
- - [ ] Verify config.json syntax validity
747
- - [ ] Verify cross-document consistency
748
-
749
- ### 2.4 Completion Report
750
-
751
- ```markdown
752
- ✅ Project initialization complete!
753
-
754
- 📁 Documents generated:
755
- - .moai/project/product.md (Business Definition)
756
- - .moai/project/structure.md (Architecture Design)
757
- - .moai/project/tech.md (Technology Stack)
758
- - .moai/config.json (project settings)
759
-
760
- 🔍 Detected environments:
761
- - Language: [List of languages]
762
- - Frameworks: [List of frameworks]
763
- - Test tools: [List of tools]
764
-
765
- 📋 Next steps:
766
- 1. Review the generated document
767
- 2. Create your first SPEC with /alfred:1-plan
768
- 3. If necessary, readjust with /alfred:8-project update
769
- ```
770
-
771
- ### 2.5: Initial structural verification (optional)
772
-
773
- After project initialization is complete, you can optionally run quality verification.
774
-
775
- **Execution Conditions**: Only when explicitly requested by the user.
776
-
777
- **Verification Purpose**:
778
- - Basic verification of project documentation and configuration files
779
- - Verification of compliance with the TRUST principles of the initial structure
780
- - Validation of configuration files
781
-
782
- **How ​​it works**:
783
- Alfred only calls the trust-checker agent to perform project initial structural verification if explicitly requested by the user.
784
-
785
- **Verification items**:
786
- - **Document completeness**: Check existence of required sections in product/structure/tech.md
787
- - **Settings validity**: Verify config.json JSON syntax and required fields
788
- - **TAG scheme**: Check compliance with @TAG format in document
789
- - **EARS syntax**: Validation of the EARS template to be used when writing SPECs
790
-
791
- **Run Verification**: Level 1 quick scan (3-5 seconds)
792
-
793
- **Handling verification results**:
794
-
795
- ✅ **Pass**: Can proceed to next step
796
- - Documents and settings are all normal
797
-
798
- ⚠️ **Warning**: Proceed after warning
799
- - Some optional sections are missing
800
- - Recommendations not applied
801
-
802
- ❌ **Critical**: Needs fix
803
- - Required section missing
804
- - config.json syntax error
805
- - User choice: “Revalidate after fix” or “Skip”
806
-
807
- **Skip verification**:
808
- - Verification is not run by default
809
- - Run only when explicitly requested by the user
810
-
811
- ### 2.6: Agent & Skill Tailoring (Project Optimization)
812
-
813
- Based on the results of the interviews and initial analysis, we recommend and activate sub-agents and skills that should be immediately utilized in the project.
814
- Before actual application, user confirmation is received with `AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)`, and selected items are recorded in `CLAUDE.md` and `.moai/config.json`.
815
-
816
- #### 2.6.0 Create cc-manager briefing
817
-
818
- Once the document creation is complete, **read all three documents (product/structure/tech.md)** and summarize the following information to create a text called `cc_manager_briefing`.
819
-
820
- - `product.md`: Organize the mission, key users, problems to be solved, success indicators, and backlog (TODO) with a quotation from the original text or a one-line summary.
821
- - `structure.md`: Records architecture type, module boundaries and scope of responsibility, external integration, traceability strategy, and TODO contents.
822
- - `tech.md`: Organizes language/framework version, build/test/deployment procedures, quality/security policy, operation/monitoring method, and TODO items.
823
-
824
- Be sure to include the source (e.g. `product.md@SPEC:SUCCESS-001`) for each item so that cc-manager can understand the basis.
825
-
826
- #### 2.6.1 cc-manager judgment guide
827
-
828
- cc-manager selects the required sub-agents and skills based on the briefing.The table below is a reference guide to help you make a decision, and when making an actual call, the supporting sentences from the relevant document are also delivered.
829
-
830
- | Project requirements (document basis) | Recommended sub-agent/skill | Purpose |
831
- | ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
832
- | High quality and coverage goals (`product.md@SPEC:SUCCESS-001`) | `tdd-implementer`, `moai-essentials-debug`, `moai-essentials-review` | Establishment of RED·GREEN·REFACTOR workflow |
833
- | Traceability/TAG improvement request (`structure.md@DOC:TRACEABILITY-001`) | `doc-syncer`, `moai-alfred-tag-scanning`, `moai-alfred-trust-validation` | Enhanced TAG traceability and document/code synchronization |
834
- | Deployment automation/branch strategy required (`structure.md` Architecture/TODO) | `git-manager`, `moai-alfred-git-workflow`, `moai-foundation-git` | Branch Strategy·Commit Policy·PR Automation |
835
- | Refactoring legacy modules (`product.md` BACKLOG, `tech.md` TODO) | `implementation-planner`, `moai-essentials-refactor` | Technical Debt Diagnosis and Refactoring Roadmap |
836
- | Strengthening regulatory/security compliance (`tech.md@DOC:SECURITY-001`) | `quality-gate`, `moai-alfred-trust-validation`, `moai-foundation-trust`, `moai-domain-security` | TRUST S (Secured) and Trackable Compliance, Security Consulting |
837
- | CLI Automation/Tooling Requirements (`tech.md` BUILD/CLI section) | `implementation-planner`, `moai-domain-cli-tool`, detected language skills (e.g. `moai-lang-python`) | CLI command design, input/output standardization |
838
- | Data analysis/reporting needs (`product.md` DATA, `tech.md` ANALYTICS) | `implementation-planner`, `moai-domain-data-science`, detected language skills | Data Pipeline·Notebook Job Definition |
839
- | Improved database structure (`structure.md` DB, `tech.md` STORAGE) | `doc-syncer`, `moai-domain-database`, `moai-alfred-tag-scanning` | Strengthening schema documentation and TAG-DB mapping |
840
- | DevOps/Infrastructure automation required (`tech.md` DEVOPS, `structure.md` CI/CD) | `implementation-planner`, `moai-domain-devops`, `moai-alfred-git-workflow` | Establishing a deployment pipeline and IaC strategy |
841
- | Introduction of ML/AI functions (`product.md` AI, `tech.md` MODEL) | `implementation-planner`, `moai-domain-ml`, detected language skills | Model training/inference pipeline definition |
842
- | Mobile app strategy (`product.md` MOBILE, `structure.md` CLIENT) | `implementation-planner`, `moai-domain-mobile-app`, detected language skills (e.g. `moai-lang-dart`, `moai-lang-swift`) | Mobile client structure design |
843
- | Strengthening coding standards/review process (`tech.md` REVIEW) | `quality-gate`, `moai-essentials-review` | Strengthening review checklist and quality reporting |
844
- | Requires onboarding/training mode (`tech.md` STACK description, etc.) | `moai-alfred-interactive-questions`, `moai-adk-learning`, `agentic-coding` Output style | Enhanced interview TUI and automatically provided onboarding materials |
845
-
846
- > **Language/Domain Skill Selection Rules**
847
- > - Select and add one relevant language skill (`moai-lang-python`, `moai-lang-java`, …) based on the `moai-alfred-language-detection` results or the stack recorded in the Tech section of the briefing.
848
- > - Skills listed in the domain row are automatically included by cc-manager in the `selected_skills` list when the conditions are met.
849
- > - The skill directory is always copied in its entirety, and only actual activation is recorded in `skill_pack` and `CLAUDE.md`.
850
-
851
- If multiple conditions are met, the candidates are merged without duplicates and organized into sets of `candidate_agents`, `candidate_skills`, and `candidate_styles`.
852
-
853
- #### 2.6.2 User confirmation flow
854
-
855
- `AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)` asks “whether to enable recommended items.”
856
- - Provides three options: **Install all** / **Install selectively** / **Do not install**.
857
- Selecting “Selective Install” presents the list of candidates again as multiple choices, allowing the user to select only the items they need.
858
-
859
- #### 2.6.3 Activation and Recording Steps
860
-
861
- 1. **Preparing briefing**: Organize the results of user selection (install all/install selectively) and the full text of `cc_manager_briefing`.
862
- 2. **Call the cc-manager agent**:
863
- - Call `subagent_type: "cc-manager"` with the `Task` tool and include a briefing and user selections in the prompt.
864
- - cc-manager determines the necessary sub-agents and skills based on the briefing, and copies and updates `CLAUDE.md`, `.claude/agents/alfred/*.md`, and `.claude/skills/*.md` as customized for the project.
865
- 3. **Check for configuration updates**: Review the results reflected by cc-manager.
866
- - Sub-Agents: Keep the `.claude/agents/alfred/` template active and list it in the `CLAUDE.md` “Agents” section.
867
- - Skills: Check the `.claude/skills/` document and add it to the `CLAUDE.md` “Skills” section.
868
- - Output style: Apply `.claude/output-styles/alfred/` and record the activation in `CLAUDE.md` “Output Styles”.
869
- 4. **Update config.json**
870
- ```json
871
- {
872
- "project": {
873
- "optimized": true,
874
- "agent_pack": ["tdd-implementer", "doc-syncer"],
875
- "skill_pack": ["moai-alfred-git-workflow", "moai-alfred-tag-scanning"],
876
- "output_styles": ["moai-adk-learning"]
877
- }
878
- }
879
- ```
880
- Merge existing properties, if any.
881
- 5. **Final Report**: Add a list of “Activated Sub-Agents/Skills/Style” and a `cc_manager_briefing` summary at the top of the Completion Report, and reflect the same contents in the `CLAUDE.md` table so that they are automatically searched in subsequent commands.
882
-
883
- ## Interview guide by project type
884
-
885
- ### New project interview area
886
-
887
- **Product Discovery** (product.md)
888
- - Core mission and value proposition
889
- - Key user bases and needs
890
- - 3 key problems to solve
891
- - Differentiation compared to competing solutions
892
- - Measurable indicators of success
893
-
894
- **Structure Blueprint** (structure.md)
895
- - System architecture strategy
896
- - Separation of modules and division of responsibilities
897
- - External system integration plan
898
- - @TAG-based traceability strategy
899
-
900
- **Tech Stack Mapping** (tech.md)
901
- - Language/runtime selection and version
902
- - Framework and libraries
903
- - Quality gate policy (coverage, linter)
904
- - Security policy and distribution channel
905
-
906
- ### Existing project interview area
907
-
908
- **Legacy Analysis**
909
- - Identify current code structure and modules
910
- - Status of build/test pipeline
911
- - Identify technical debt and constraints
912
- - External integration and authentication methods
913
- - MoAI-ADK transition priority plan
914
-
915
- **Retention Policy**: Preserve existing documents in the "Legacy Context" section and mark items needing improvement with @CODE/TODO tags
916
-
917
- ## 🏷️ TAG system application rules
918
-
919
- **Automatically create @TAGs per section**:
920
-
921
- - Mission/Vision → @DOC:MISSION-XXX, @DOC:STRATEGY-XXX
922
- - Customization → @SPEC:USER-XXX, @SPEC:PERSONA-XXX
923
- - Problem analysis → @SPEC:PROBLEM-XXX, @SPEC:SOLUTION-XXX
924
- - Architecture → @DOC:ARCHITECTURE-XXX, @SPEC:PATTERN-XXX
925
- - Technology Stack → @DOC:STACK-XXX, @DOC:FRAMEWORK-XXX
926
-
927
- **Legacy Project Tags**:
928
-
929
- - Technical debt → @CODE:REFACTOR-XXX, @CODE:TEST-XXX, @CODE:MIGRATION-XXX
930
- - Resolution plan → @CODE:MIGRATION-XXX, TODO:SPEC-BACKLOG-XXX
931
- - Quality improvement → TODO:TEST-COVERAGE-XXX, TODO:DOCS-SYNC-XXX
932
-
933
- ## Error handling
934
-
935
- ### Common errors and solutions
936
-
937
- **Error 1**: Project language detection failed
938
- ```
939
- Symptom: “Language not detected” message
940
- Solution: Specify language manually or create language-specific settings file
941
- ```
942
-
943
- **Error 2**: Conflict with existing document
944
- ```
945
- Symptom: product.md already exists and has different contents
946
- Solution: Preserve existing contents and add new contents in “Legacy Context” section
947
- ```
948
-
949
- **Error 3**: Failed to create config.json
950
- ```
951
- Symptom: JSON syntax error or permission denied
952
- Solution: Check file permissions (chmod 644) or create config.json manually
953
- ```
954
-
955
- ---
956
-
957
- ## /alfred:0-project update: Template optimization (subcommand)
958
-
959
- > **Purpose**: After running moai-adk update, compare the backup and new template to optimize the template while preserving user customization.
960
-
961
- ### Execution conditions
962
-
963
- This subcommand is executed under the following conditions:
964
-
965
- 1. **After executing moai-adk update**: `optimized=false` status in `config.json`
966
- 2. **Template update required**: When there is a difference between the backup and the new template
967
- 3. **User explicit request**: User directly executes `/alfred:0-project update`
968
-
969
- ### Execution flow
970
-
971
- #### Phase 1: Backup analysis and comparison
972
-
973
- 1. **Make sure you have the latest backup**:
974
- ```bash
975
- # Browse the latest backups in the .moai-backups/ directory
976
- ls -lt .moai-backups/ | head -1
977
- ```
978
-
979
- 2. **Change Analysis**:
980
- - Compare `.claude/` directory from backup with current template
981
- - Compare `.moai/project/` document from backup with current document
982
- - Identify user customization items
983
-
984
- 3. **Create Comparison Report**:
985
- ```markdown
986
- ## 📊 Template optimization analysis
987
-
988
- ### Changed items
989
- - CLAUDE.md: "## Project Information" section needs to be preserved
990
- - settings.json: 3 env variables need to be preserved
991
- - product.md: Has user-written content
992
-
993
- ### Recommended Action
994
- - Run Smart Merge
995
- - Preserve User Customizations
996
- - Set optimized=true
997
- ```
998
-
999
- 4. **Waiting for user approval**
1000
- `AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)` asks “Do you want to proceed with template optimization?” and provides the following options.
1001
- - **Proceed** → Phase 2 execution
1002
- - **Preview** → Display change details and recheck
1003
- - **Skip** → keep optimized=false
1004
-
1005
- #### Phase 2: Run smart merge (after user approval)
1006
-
1007
- 1. **Execute smart merge logic**:
1008
- - Run `TemplateProcessor.copy_templates()`
1009
- - CLAUDE.md: Preserve "## Project Information" section
1010
- - settings.json: env variables and permissions.allow merge
1011
-
1012
- 2. Set **optimized=true**:
1013
- ```python
1014
- # update config.json
1015
- config_data["project"]["optimized"] = True
1016
- ```
1017
-
1018
- 3. **Optimization completion report**:
1019
- ```markdown
1020
- ✅ Template optimization completed!
1021
-
1022
- 📄 Merged files:
1023
- - CLAUDE.md (preserves project information)
1024
- - settings.json (preserves env variables)
1025
-
1026
- ⚙️ config.json: optimized=true Configuration complete
1027
- ```
1028
-
1029
- ### Alfred Automation Strategy
1030
-
1031
- **Alfred automatic decision**:
1032
- - Automatically call project-manager agent
1033
- - Check backup freshness (within 24 hours)
1034
- - Automatically analyze changes
1035
-
1036
- **Auto-activation of Skills**:
1037
- - moai-alfred-tag-scanning: TAG chain verification
1038
- - moai-alfred-trust-validation: Verification of compliance with TRUST principles
1039
-
1040
- ### Running example
1041
-
1042
- ```bash
1043
- # After running moai-adk update
1044
- moai-adk update
1045
-
1046
- # Output:
1047
- # ✓ Update complete!
1048
- # ℹ️ Next step: Run /alfred:0-project update to optimize template changes
1049
-
1050
- # Run Alfred
1051
- /alfred:0-project update
1052
-
1053
- # → Phase 1: Generate backup analysis and comparison report
1054
- # → Wait for user approval
1055
- # → Phase 2: Run smart merge, set optimized=true
1056
- ```
1057
-
1058
- ### caution
1059
-
1060
- - **Backup required**: Cannot run without backup in `.moai-backups/` directory
1061
- - **Manual review recommended**: Preview is required if there are important customizations
1062
- - **Conflict resolution**: Request user selection in case of merge conflict
1063
-
1064
- ---
1065
-
1066
- ## 🚀 STEP 3: Project Custom Optimization (Optional)
1067
-
1068
- **Execution conditions**:
1069
- - After completion of Phase 2 (project initialization)
1070
- - or after completion of Phase 1.1 (backup merge)
1071
- - Explicitly requested by the user or automatically determined by Alfred
1072
-
1073
- **Purpose**: Lightweight by selecting only Commands, Agents, and Skills that fit the project characteristics (37 skills → 3~5)
1074
-
1075
- ### 3.1 Automatic execution of Feature Selection
1076
-
1077
- **Alfred automatically calls the moai-alfred-feature-selector skill**:
1078
-
1079
- **Skill Entry**:
1080
- - `.moai/project/product.md` (project category hint)
1081
- - `.moai/project/tech.md` (main language, framework)
1082
- - `.moai/config.json` (project settings)
1083
-
1084
- **Skill Output**:
1085
- ```json
1086
- {
1087
- "category": "web-api",
1088
- "language": "python",
1089
- "framework": "fastapi",
1090
- "commands": ["1-spec", "2-build", "3-sync"],
1091
- "agents": ["spec-builder", "code-builder", "doc-syncer", "git-manager", "debug-helper"],
1092
- "skills": ["moai-lang-python", "moai-domain-web-api", "moai-domain-backend"],
1093
- "excluded_skills_count": 34,
1094
- "optimization_rate": "87%"
1095
- }
1096
- ```
1097
-
1098
- **How ​​to Run**:
1099
- ```
1100
- Alfred: Skill("moai-alfred-feature-selector")
1101
- ```
1102
-
1103
- ---
1104
-
1105
- ### 3.2 Automatic execution of Template Generation
1106
-
1107
- **Alfred automatically calls the moai-alfred-template-generator skill**:
1108
-
1109
- **Skill input**:
1110
- - `.moai/.feature-selection.json` (feature-selector output)
1111
- - `CLAUDE.md` template
1112
- - Entire commands/agents/skills file
1113
-
1114
- **Skill Output**:
1115
- - `CLAUDE.md` (custom agent table - selected agents only)
1116
- - `.claude/commands/` (selected commands only)
1117
- - `.claude/agents/` (selected agents only)
1118
- - `.claude/skills/` (selected skills only)
1119
- - `.moai/config.json` (updates `optimized: true`)
1120
-
1121
- **How ​​to Run**:
1122
- ```
1123
- Alfred: Skill("moai-alfred-template-generator")
1124
- ```
1125
-
1126
- ---
1127
-
1128
- ### 3.3 Optimization completion report
1129
-
1130
- **Report Format**:
1131
- ```markdown
1132
- ✅ Project customized optimization completed!
1133
-
1134
- 📊 Optimization results:
1135
- - **Project**: MoAI-ADK
1136
- - **Category**: web-api
1137
- - **Main language**: python
1138
- - **Framework**: fastapi
1139
-
1140
- 🎯 Selected capabilities:
1141
- - Commands: 4 items (0-project, 1-spec, 2-build, 3-sync)
1142
- - Agents: 5 items (spec-builder, code-builder, doc-syncer, git-manager, debug-helper)
1143
- - Skills: 3 items (moai-lang-python, moai-domain-web-api, moai-domain-backend)
1144
-
1145
- 💡 Lightweight effect:
1146
- - Skills excluded: 34
1147
- - Lightweight: 87%
1148
- - CLAUDE.md: Create custom agent table
1149
-
1150
- 📋 Next steps:
1151
- 1. Check the CLAUDE.md file (only 5 agents are displayed)
1152
- 2. Run /alfred:1-plan "first function"
1153
- 3. Start the MoAI-ADK workflow
1154
- ```
1155
-
1156
- ---
1157
-
1158
- ### 3.4 Skip Phase 3 (optional)
1159
-
1160
- **Users can skip Phase 3**:
1161
-
1162
- **Skip condition**:
1163
- - User explicitly selects “Skip”
1164
- - “Simple project” when Alfred automatically determines (only basic features required)
1165
-
1166
- **Skip effect**:
1167
- - Maintain all 37 skills (no lightweighting)
1168
- - Maintain default 9 agents in CLAUDE.md template
1169
- - Maintain `optimized: false` in config.json
1170
-
1171
- ---
1172
-
1173
- ## Next steps
1174
-
1175
- **Recommendation**: For better performance and context management, start a new chat session with the `/clear` or `/new` command before proceeding to the next step.
1176
-
1177
- After initialization is complete:
1178
-
1179
- - **New project**: Run `/alfred:1-plan` to create design-based SPEC backlog
1180
- - **Legacy project**: Review @CODE/@CODE/TODO items in product/structure/tech document and confirm priority
1181
- - **Set Change**: Run `/alfred:0-project` again to update document
1182
- - **Template optimization**: Run `/alfred:0-project update` after `moai-adk update`
1183
-
1184
- ## Related commands
1185
-
1186
- - `/alfred:1-plan` - Start writing SPEC
1187
- - `/alfred:9-update` - MoAI-ADK update
1188
- - `moai doctor` - System diagnosis
1189
- - `moai status` - Check project status