moai-adk 0.8.0__py3-none-any.whl → 0.34.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.
Files changed (654) hide show
  1. moai_adk/__init__.py +2 -6
  2. moai_adk/__main__.py +136 -21
  3. moai_adk/cli/__init__.py +6 -2
  4. moai_adk/cli/commands/__init__.py +1 -4
  5. moai_adk/cli/commands/analyze.py +116 -0
  6. moai_adk/cli/commands/doctor.py +17 -5
  7. moai_adk/cli/commands/init.py +118 -48
  8. moai_adk/cli/commands/language.py +248 -0
  9. moai_adk/cli/commands/status.py +8 -13
  10. moai_adk/cli/commands/update.py +1978 -149
  11. moai_adk/cli/main.py +3 -2
  12. moai_adk/cli/prompts/init_prompts.py +144 -91
  13. moai_adk/cli/spec_status.py +263 -0
  14. moai_adk/cli/ui/__init__.py +44 -0
  15. moai_adk/cli/ui/progress.py +422 -0
  16. moai_adk/cli/ui/prompts.py +389 -0
  17. moai_adk/cli/ui/theme.py +129 -0
  18. moai_adk/cli/worktree/__init__.py +27 -0
  19. moai_adk/cli/worktree/__main__.py +31 -0
  20. moai_adk/cli/worktree/cli.py +683 -0
  21. moai_adk/cli/worktree/exceptions.py +89 -0
  22. moai_adk/cli/worktree/manager.py +493 -0
  23. moai_adk/cli/worktree/models.py +65 -0
  24. moai_adk/cli/worktree/registry.py +422 -0
  25. moai_adk/core/PHASE2_OPTIMIZATIONS.md +467 -0
  26. moai_adk/core/__init__.py +0 -1
  27. moai_adk/core/analysis/__init__.py +9 -0
  28. moai_adk/core/analysis/session_analyzer.py +400 -0
  29. moai_adk/core/claude_integration.py +393 -0
  30. moai_adk/core/command_helpers.py +270 -0
  31. moai_adk/core/comprehensive_monitoring_system.py +1183 -0
  32. moai_adk/core/config/__init__.py +6 -0
  33. moai_adk/core/config/auto_spec_config.py +340 -0
  34. moai_adk/core/config/migration.py +148 -17
  35. moai_adk/core/config/unified.py +436 -0
  36. moai_adk/core/context_manager.py +273 -0
  37. moai_adk/core/diagnostics/slash_commands.py +0 -1
  38. moai_adk/core/enterprise_features.py +1404 -0
  39. moai_adk/core/error_recovery_system.py +1902 -0
  40. moai_adk/core/event_driven_hook_system.py +1371 -0
  41. moai_adk/core/git/__init__.py +8 -1
  42. moai_adk/core/git/branch.py +0 -1
  43. moai_adk/core/git/branch_manager.py +2 -10
  44. moai_adk/core/git/checkpoint.py +1 -7
  45. moai_adk/core/git/commit.py +0 -1
  46. moai_adk/core/git/conflict_detector.py +413 -0
  47. moai_adk/core/git/event_detector.py +3 -5
  48. moai_adk/core/git/manager.py +91 -2
  49. moai_adk/core/hooks/post_tool_auto_spec_completion.py +901 -0
  50. moai_adk/core/input_validation_middleware.py +1006 -0
  51. moai_adk/core/integration/__init__.py +22 -0
  52. moai_adk/core/integration/engine.py +157 -0
  53. moai_adk/core/integration/integration_tester.py +226 -0
  54. moai_adk/core/integration/models.py +88 -0
  55. moai_adk/core/integration/utils.py +211 -0
  56. moai_adk/core/issue_creator.py +305 -0
  57. moai_adk/core/jit_context_loader.py +956 -0
  58. moai_adk/core/jit_enhanced_hook_manager.py +1987 -0
  59. moai_adk/core/language_config.py +202 -0
  60. moai_adk/core/language_config_resolver.py +572 -0
  61. moai_adk/core/language_validator.py +543 -0
  62. moai_adk/core/mcp/setup.py +116 -0
  63. moai_adk/core/merge/__init__.py +9 -0
  64. moai_adk/core/merge/analyzer.py +481 -0
  65. moai_adk/core/migration/__init__.py +18 -0
  66. moai_adk/core/migration/alfred_to_moai_migrator.py +383 -0
  67. moai_adk/core/migration/backup_manager.py +277 -0
  68. moai_adk/core/migration/custom_element_scanner.py +358 -0
  69. moai_adk/core/migration/file_migrator.py +209 -0
  70. moai_adk/core/migration/interactive_checkbox_ui.py +488 -0
  71. moai_adk/core/migration/selective_restorer.py +470 -0
  72. moai_adk/core/migration/template_utils.py +74 -0
  73. moai_adk/core/migration/user_selection_ui.py +338 -0
  74. moai_adk/core/migration/version_detector.py +139 -0
  75. moai_adk/core/migration/version_migrator.py +228 -0
  76. moai_adk/core/performance/__init__.py +6 -0
  77. moai_adk/core/performance/cache_system.py +316 -0
  78. moai_adk/core/performance/parallel_processor.py +116 -0
  79. moai_adk/core/phase_optimized_hook_scheduler.py +879 -0
  80. moai_adk/core/project/__init__.py +0 -1
  81. moai_adk/core/project/backup_utils.py +2 -7
  82. moai_adk/core/project/checker.py +2 -4
  83. moai_adk/core/project/detector.py +189 -22
  84. moai_adk/core/project/initializer.py +218 -27
  85. moai_adk/core/project/phase_executor.py +416 -44
  86. moai_adk/core/project/validator.py +7 -32
  87. moai_adk/core/quality/__init__.py +1 -1
  88. moai_adk/core/quality/trust_checker.py +37 -101
  89. moai_adk/core/quality/validators/__init__.py +1 -1
  90. moai_adk/core/quality/validators/base_validator.py +1 -1
  91. moai_adk/core/realtime_monitoring_dashboard.py +1724 -0
  92. moai_adk/core/robust_json_parser.py +611 -0
  93. moai_adk/core/rollback_manager.py +918 -0
  94. moai_adk/core/session_manager.py +651 -0
  95. moai_adk/core/skill_loading_system.py +579 -0
  96. moai_adk/core/spec/confidence_scoring.py +680 -0
  97. moai_adk/core/spec/ears_template_engine.py +1247 -0
  98. moai_adk/core/spec/quality_validator.py +687 -0
  99. moai_adk/core/spec_status_manager.py +478 -0
  100. moai_adk/core/template/__init__.py +0 -1
  101. moai_adk/core/template/backup.py +82 -17
  102. moai_adk/core/template/config.py +112 -40
  103. moai_adk/core/template/languages.py +0 -1
  104. moai_adk/core/template/merger.py +75 -26
  105. moai_adk/core/template/processor.py +750 -72
  106. moai_adk/core/template_engine.py +310 -0
  107. moai_adk/core/template_variable_synchronizer.py +417 -0
  108. moai_adk/core/unified_permission_manager.py +745 -0
  109. moai_adk/core/user_behavior_analytics.py +851 -0
  110. moai_adk/core/version_sync.py +429 -0
  111. moai_adk/foundation/__init__.py +56 -0
  112. moai_adk/foundation/backend.py +1027 -0
  113. moai_adk/foundation/database.py +1115 -0
  114. moai_adk/foundation/devops.py +1585 -0
  115. moai_adk/foundation/ears.py +431 -0
  116. moai_adk/foundation/frontend.py +870 -0
  117. moai_adk/foundation/git/commit_templates.py +557 -0
  118. moai_adk/foundation/git.py +376 -0
  119. moai_adk/foundation/langs.py +484 -0
  120. moai_adk/foundation/ml_ops.py +1162 -0
  121. moai_adk/foundation/testing.py +1524 -0
  122. moai_adk/foundation/trust/trust_principles.py +676 -0
  123. moai_adk/foundation/trust/validation_checklist.py +1573 -0
  124. moai_adk/project/__init__.py +0 -0
  125. moai_adk/project/configuration.py +1084 -0
  126. moai_adk/project/documentation.py +566 -0
  127. moai_adk/project/schema.py +447 -0
  128. moai_adk/statusline/__init__.py +38 -0
  129. moai_adk/statusline/alfred_detector.py +105 -0
  130. moai_adk/statusline/config.py +376 -0
  131. moai_adk/statusline/enhanced_output_style_detector.py +372 -0
  132. moai_adk/statusline/git_collector.py +190 -0
  133. moai_adk/statusline/main.py +322 -0
  134. moai_adk/statusline/metrics_tracker.py +78 -0
  135. moai_adk/statusline/renderer.py +343 -0
  136. moai_adk/statusline/update_checker.py +129 -0
  137. moai_adk/statusline/version_reader.py +741 -0
  138. moai_adk/templates/.claude/agents/moai/ai-nano-banana.md +670 -0
  139. moai_adk/templates/.claude/agents/moai/builder-agent.md +474 -0
  140. moai_adk/templates/.claude/agents/moai/builder-command.md +1172 -0
  141. moai_adk/templates/.claude/agents/moai/builder-skill.md +666 -0
  142. moai_adk/templates/.claude/agents/moai/expert-backend.md +899 -0
  143. moai_adk/templates/.claude/agents/moai/expert-database.md +777 -0
  144. moai_adk/templates/.claude/agents/moai/expert-debug.md +401 -0
  145. moai_adk/templates/.claude/agents/moai/expert-devops.md +720 -0
  146. moai_adk/templates/.claude/agents/moai/expert-frontend.md +734 -0
  147. moai_adk/templates/.claude/agents/moai/expert-performance.md +657 -0
  148. moai_adk/templates/.claude/agents/moai/expert-security.md +509 -0
  149. moai_adk/templates/.claude/agents/moai/expert-testing.md +733 -0
  150. moai_adk/templates/.claude/agents/moai/expert-uiux.md +1041 -0
  151. moai_adk/templates/.claude/agents/moai/manager-claude-code.md +432 -0
  152. moai_adk/templates/.claude/agents/moai/manager-docs.md +573 -0
  153. moai_adk/templates/.claude/agents/moai/manager-git.md +1020 -0
  154. moai_adk/templates/.claude/agents/moai/manager-project.md +891 -0
  155. moai_adk/templates/.claude/agents/moai/manager-quality.md +624 -0
  156. moai_adk/templates/.claude/agents/moai/manager-spec.md +809 -0
  157. moai_adk/templates/.claude/agents/moai/manager-strategy.md +780 -0
  158. moai_adk/templates/.claude/agents/moai/manager-tdd.md +784 -0
  159. moai_adk/templates/.claude/agents/moai/mcp-context7.md +458 -0
  160. moai_adk/templates/.claude/agents/moai/mcp-figma.md +1607 -0
  161. moai_adk/templates/.claude/agents/moai/mcp-notion.md +789 -0
  162. moai_adk/templates/.claude/agents/moai/mcp-playwright.md +469 -0
  163. moai_adk/templates/.claude/agents/moai/mcp-sequential-thinking.md +1032 -0
  164. moai_adk/templates/.claude/commands/moai/0-project.md +1384 -0
  165. moai_adk/templates/.claude/commands/moai/1-plan.md +1427 -0
  166. moai_adk/templates/.claude/commands/moai/2-run.md +943 -0
  167. moai_adk/templates/.claude/commands/moai/3-sync.md +1324 -0
  168. moai_adk/templates/.claude/commands/moai/9-feedback.md +314 -0
  169. moai_adk/templates/.claude/hooks/__init__.py +8 -0
  170. moai_adk/templates/.claude/hooks/moai/__init__.py +8 -0
  171. moai_adk/templates/.claude/hooks/moai/lib/__init__.py +85 -0
  172. moai_adk/templates/.claude/hooks/{alfred/core → moai/lib}/checkpoint.py +10 -37
  173. moai_adk/templates/.claude/hooks/moai/lib/common.py +131 -0
  174. moai_adk/templates/.claude/hooks/moai/lib/config_manager.py +446 -0
  175. moai_adk/templates/.claude/hooks/moai/lib/config_validator.py +639 -0
  176. moai_adk/templates/.claude/hooks/moai/lib/example_config.json +104 -0
  177. moai_adk/templates/.claude/hooks/moai/lib/git_operations_manager.py +590 -0
  178. moai_adk/templates/.claude/hooks/moai/lib/language_validator.py +317 -0
  179. moai_adk/templates/.claude/hooks/moai/lib/models.py +102 -0
  180. moai_adk/templates/.claude/hooks/moai/lib/path_utils.py +28 -0
  181. moai_adk/templates/.claude/hooks/moai/lib/project.py +768 -0
  182. moai_adk/templates/.claude/hooks/moai/lib/test_hooks_improvements.py +443 -0
  183. moai_adk/templates/.claude/hooks/moai/lib/timeout.py +160 -0
  184. moai_adk/templates/.claude/hooks/moai/lib/unified_timeout_manager.py +530 -0
  185. moai_adk/templates/.claude/hooks/moai/session_end__auto_cleanup.py +862 -0
  186. moai_adk/templates/.claude/hooks/moai/session_start__show_project_info.py +1075 -0
  187. moai_adk/templates/.claude/output-styles/moai/r2d2.md +560 -0
  188. moai_adk/templates/.claude/output-styles/moai/yoda.md +359 -0
  189. moai_adk/templates/.claude/settings.json +78 -50
  190. moai_adk/templates/.claude/skills/moai-ai-nano-banana/SKILL.md +438 -0
  191. moai_adk/templates/.claude/skills/moai-ai-nano-banana/examples.md +431 -0
  192. moai_adk/templates/.claude/skills/moai-docs-generation/SKILL.md +249 -0
  193. moai_adk/templates/.claude/skills/moai-docs-generation/examples.md +406 -0
  194. moai_adk/templates/.claude/skills/moai-docs-generation/modules/README.md +44 -0
  195. moai_adk/templates/.claude/skills/moai-docs-generation/modules/api-documentation.md +130 -0
  196. moai_adk/templates/.claude/skills/moai-docs-generation/modules/code-documentation.md +152 -0
  197. moai_adk/templates/.claude/skills/moai-docs-generation/modules/multi-format-output.md +178 -0
  198. moai_adk/templates/.claude/skills/moai-docs-generation/modules/user-guides.md +147 -0
  199. moai_adk/templates/.claude/skills/moai-docs-generation/reference.md +328 -0
  200. moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +313 -283
  201. moai_adk/templates/.claude/skills/moai-domain-backend/examples.md +610 -1525
  202. moai_adk/templates/.claude/skills/moai-domain-backend/reference.md +423 -619
  203. moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +295 -95
  204. moai_adk/templates/.claude/skills/moai-domain-database/examples.md +817 -16
  205. moai_adk/templates/.claude/skills/moai-domain-database/modules/README.md +53 -0
  206. moai_adk/templates/.claude/skills/moai-domain-database/modules/mongodb.md +231 -0
  207. moai_adk/templates/.claude/skills/moai-domain-database/modules/postgresql.md +169 -0
  208. moai_adk/templates/.claude/skills/moai-domain-database/modules/redis.md +262 -0
  209. moai_adk/templates/.claude/skills/moai-domain-database/reference.md +532 -17
  210. moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +470 -97
  211. moai_adk/templates/.claude/skills/moai-domain-frontend/examples.md +955 -16
  212. moai_adk/templates/.claude/skills/moai-domain-frontend/reference.md +651 -18
  213. moai_adk/templates/.claude/skills/moai-domain-uiux/SKILL.md +455 -0
  214. moai_adk/templates/.claude/skills/moai-domain-uiux/examples.md +560 -0
  215. moai_adk/templates/.claude/skills/moai-domain-uiux/modules/accessibility-wcag.md +260 -0
  216. moai_adk/templates/.claude/skills/moai-domain-uiux/modules/component-architecture.md +228 -0
  217. moai_adk/templates/.claude/skills/moai-domain-uiux/modules/design-system-tokens.md +405 -0
  218. moai_adk/templates/.claude/skills/moai-domain-uiux/modules/icon-libraries.md +401 -0
  219. moai_adk/templates/.claude/skills/moai-domain-uiux/modules/theming-system.md +373 -0
  220. moai_adk/templates/.claude/skills/moai-domain-uiux/reference.md +243 -0
  221. moai_adk/templates/.claude/skills/moai-formats-data/SKILL.md +492 -0
  222. moai_adk/templates/.claude/skills/moai-formats-data/examples.md +804 -0
  223. moai_adk/templates/.claude/skills/moai-formats-data/modules/README.md +98 -0
  224. moai_adk/templates/.claude/skills/moai-formats-data/modules/SKILL-MODULARIZATION-TEMPLATE.md +278 -0
  225. moai_adk/templates/.claude/skills/moai-formats-data/modules/caching-performance.md +459 -0
  226. moai_adk/templates/.claude/skills/moai-formats-data/modules/data-validation.md +485 -0
  227. moai_adk/templates/.claude/skills/moai-formats-data/modules/json-optimization.md +374 -0
  228. moai_adk/templates/.claude/skills/moai-formats-data/modules/toon-encoding.md +308 -0
  229. moai_adk/templates/.claude/skills/moai-formats-data/reference.md +585 -0
  230. moai_adk/templates/.claude/skills/moai-foundation-claude/SKILL.md +202 -0
  231. moai_adk/templates/.claude/skills/moai-foundation-claude/examples.md +732 -0
  232. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/best-practices-checklist.md +616 -0
  233. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-custom-slash-commands-official.md +729 -0
  234. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-hooks-official.md +560 -0
  235. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-iam-official.md +635 -0
  236. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-memory-official.md +543 -0
  237. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-settings-official.md +663 -0
  238. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-skills-official.md +113 -0
  239. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-sub-agents-official.md +238 -0
  240. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/complete-configuration-guide.md +175 -0
  241. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/skill-examples.md +1674 -0
  242. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/skill-formatting-guide.md +729 -0
  243. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/sub-agents/sub-agent-examples.md +1513 -0
  244. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/sub-agents/sub-agent-formatting-guide.md +1086 -0
  245. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/sub-agents/sub-agent-integration-patterns.md +1100 -0
  246. moai_adk/templates/.claude/skills/moai-foundation-claude/reference.md +209 -0
  247. moai_adk/templates/.claude/skills/moai-foundation-context/SKILL.md +441 -0
  248. moai_adk/templates/.claude/skills/moai-foundation-context/examples.md +1048 -0
  249. moai_adk/templates/.claude/skills/moai-foundation-context/reference.md +246 -0
  250. moai_adk/templates/.claude/skills/moai-foundation-core/SKILL.md +420 -0
  251. moai_adk/templates/.claude/skills/moai-foundation-core/examples.md +358 -0
  252. moai_adk/templates/.claude/skills/moai-foundation-core/modules/README.md +296 -0
  253. moai_adk/templates/.claude/skills/moai-foundation-core/modules/agents-reference.md +359 -0
  254. moai_adk/templates/.claude/skills/moai-foundation-core/modules/commands-reference.md +432 -0
  255. moai_adk/templates/.claude/skills/moai-foundation-core/modules/delegation-patterns.md +757 -0
  256. moai_adk/templates/.claude/skills/moai-foundation-core/modules/execution-rules.md +687 -0
  257. moai_adk/templates/.claude/skills/moai-foundation-core/modules/modular-system.md +665 -0
  258. moai_adk/templates/.claude/skills/moai-foundation-core/modules/progressive-disclosure.md +649 -0
  259. moai_adk/templates/.claude/skills/moai-foundation-core/modules/spec-first-tdd.md +864 -0
  260. moai_adk/templates/.claude/skills/moai-foundation-core/modules/token-optimization.md +708 -0
  261. moai_adk/templates/.claude/skills/moai-foundation-core/modules/trust-5-framework.md +981 -0
  262. moai_adk/templates/.claude/skills/moai-foundation-core/reference.md +478 -0
  263. moai_adk/templates/.claude/skills/moai-foundation-philosopher/SKILL.md +315 -0
  264. moai_adk/templates/.claude/skills/moai-foundation-philosopher/examples.md +228 -0
  265. moai_adk/templates/.claude/skills/moai-foundation-philosopher/modules/assumption-matrix.md +80 -0
  266. moai_adk/templates/.claude/skills/moai-foundation-philosopher/modules/cognitive-bias.md +199 -0
  267. moai_adk/templates/.claude/skills/moai-foundation-philosopher/modules/first-principles.md +140 -0
  268. moai_adk/templates/.claude/skills/moai-foundation-philosopher/modules/trade-off-analysis.md +154 -0
  269. moai_adk/templates/.claude/skills/moai-foundation-philosopher/reference.md +157 -0
  270. moai_adk/templates/.claude/skills/moai-foundation-quality/SKILL.md +364 -0
  271. moai_adk/templates/.claude/skills/moai-foundation-quality/examples.md +1232 -0
  272. moai_adk/templates/.claude/skills/moai-foundation-quality/modules/best-practices.md +261 -0
  273. moai_adk/templates/.claude/skills/moai-foundation-quality/modules/integration-patterns.md +194 -0
  274. moai_adk/templates/.claude/skills/moai-foundation-quality/modules/proactive-analysis.md +229 -0
  275. moai_adk/templates/.claude/skills/moai-foundation-quality/modules/trust5-validation.md +169 -0
  276. moai_adk/templates/.claude/skills/moai-foundation-quality/reference.md +1266 -0
  277. moai_adk/templates/.claude/skills/moai-foundation-quality/scripts/quality-gate.sh +668 -0
  278. moai_adk/templates/.claude/skills/moai-foundation-quality/templates/github-actions-quality.yml +481 -0
  279. moai_adk/templates/.claude/skills/moai-foundation-quality/templates/quality-config.yaml +519 -0
  280. moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +618 -93
  281. moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +446 -91
  282. moai_adk/templates/.claude/skills/moai-lang-elixir/SKILL.md +612 -0
  283. moai_adk/templates/.claude/skills/moai-lang-flutter/SKILL.md +477 -0
  284. moai_adk/templates/.claude/skills/moai-lang-flutter/examples.md +1090 -0
  285. moai_adk/templates/.claude/skills/moai-lang-flutter/reference.md +686 -0
  286. moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +346 -94
  287. moai_adk/templates/.claude/skills/moai-lang-go/examples.md +906 -16
  288. moai_adk/templates/.claude/skills/moai-lang-go/reference.md +721 -15
  289. moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +352 -91
  290. moai_adk/templates/.claude/skills/moai-lang-java/examples.md +851 -16
  291. moai_adk/templates/.claude/skills/moai-lang-java/reference.md +278 -18
  292. moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +344 -86
  293. moai_adk/templates/.claude/skills/moai-lang-kotlin/examples.md +993 -16
  294. moai_adk/templates/.claude/skills/moai-lang-kotlin/reference.md +549 -18
  295. moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +617 -96
  296. moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +364 -314
  297. moai_adk/templates/.claude/skills/moai-lang-python/examples.md +849 -496
  298. moai_adk/templates/.claude/skills/moai-lang-python/reference.md +731 -243
  299. moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +545 -89
  300. moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +650 -87
  301. moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +341 -93
  302. moai_adk/templates/.claude/skills/moai-lang-rust/examples.md +646 -16
  303. moai_adk/templates/.claude/skills/moai-lang-rust/reference.md +491 -18
  304. moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +463 -89
  305. moai_adk/templates/.claude/skills/moai-lang-scala/examples.md +620 -16
  306. moai_adk/templates/.claude/skills/moai-lang-scala/reference.md +410 -17
  307. moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +486 -112
  308. moai_adk/templates/.claude/skills/moai-lang-swift/examples.md +905 -16
  309. moai_adk/templates/.claude/skills/moai-lang-swift/reference.md +659 -17
  310. moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +333 -92
  311. moai_adk/templates/.claude/skills/moai-lang-typescript/examples.md +1076 -16
  312. moai_adk/templates/.claude/skills/moai-lang-typescript/reference.md +718 -21
  313. moai_adk/templates/.claude/skills/moai-library-mermaid/SKILL.md +300 -0
  314. moai_adk/templates/.claude/skills/moai-library-mermaid/advanced-patterns.md +465 -0
  315. moai_adk/templates/.claude/skills/moai-library-mermaid/examples.md +270 -0
  316. moai_adk/templates/.claude/skills/moai-library-mermaid/optimization.md +440 -0
  317. moai_adk/templates/.claude/skills/moai-library-mermaid/reference.md +228 -0
  318. moai_adk/templates/.claude/skills/moai-library-nextra/SKILL.md +319 -0
  319. moai_adk/templates/.claude/skills/moai-library-nextra/advanced-patterns.md +336 -0
  320. moai_adk/templates/.claude/skills/moai-library-nextra/examples.md +592 -0
  321. moai_adk/templates/.claude/skills/moai-library-nextra/modules/advanced-deployment-patterns.md +182 -0
  322. moai_adk/templates/.claude/skills/moai-library-nextra/modules/advanced-patterns.md +17 -0
  323. moai_adk/templates/.claude/skills/moai-library-nextra/modules/configuration.md +57 -0
  324. moai_adk/templates/.claude/skills/moai-library-nextra/modules/content-architecture-optimization.md +162 -0
  325. moai_adk/templates/.claude/skills/moai-library-nextra/modules/deployment.md +52 -0
  326. moai_adk/templates/.claude/skills/moai-library-nextra/modules/framework-core-configuration.md +186 -0
  327. moai_adk/templates/.claude/skills/moai-library-nextra/modules/i18n-setup.md +55 -0
  328. moai_adk/templates/.claude/skills/moai-library-nextra/modules/mdx-components.md +52 -0
  329. moai_adk/templates/.claude/skills/moai-library-nextra/optimization.md +303 -0
  330. moai_adk/templates/.claude/skills/moai-library-nextra/reference.md +379 -0
  331. moai_adk/templates/.claude/skills/moai-library-shadcn/SKILL.md +372 -0
  332. moai_adk/templates/.claude/skills/moai-library-shadcn/examples.md +575 -0
  333. moai_adk/templates/.claude/skills/moai-library-shadcn/modules/advanced-patterns.md +394 -0
  334. moai_adk/templates/.claude/skills/moai-library-shadcn/modules/optimization.md +278 -0
  335. moai_adk/templates/.claude/skills/moai-library-shadcn/modules/shadcn-components.md +457 -0
  336. moai_adk/templates/.claude/skills/moai-library-shadcn/modules/shadcn-theming.md +373 -0
  337. moai_adk/templates/.claude/skills/moai-library-shadcn/reference.md +74 -0
  338. moai_adk/templates/.claude/skills/moai-mcp-figma/SKILL.md +402 -0
  339. moai_adk/templates/.claude/skills/moai-mcp-figma/advanced-patterns.md +607 -0
  340. moai_adk/templates/.claude/skills/moai-mcp-notion/SKILL.md +300 -0
  341. moai_adk/templates/.claude/skills/moai-mcp-notion/advanced-patterns.md +537 -0
  342. moai_adk/templates/.claude/skills/moai-platform-auth0/SKILL.md +290 -0
  343. moai_adk/templates/.claude/skills/moai-platform-clerk/SKILL.md +390 -0
  344. moai_adk/templates/.claude/skills/moai-platform-convex/SKILL.md +398 -0
  345. moai_adk/templates/.claude/skills/moai-platform-firebase-auth/SKILL.md +379 -0
  346. moai_adk/templates/.claude/skills/moai-platform-firestore/SKILL.md +358 -0
  347. moai_adk/templates/.claude/skills/moai-platform-neon/SKILL.md +467 -0
  348. moai_adk/templates/.claude/skills/moai-platform-railway/SKILL.md +377 -0
  349. moai_adk/templates/.claude/skills/moai-platform-supabase/SKILL.md +466 -0
  350. moai_adk/templates/.claude/skills/moai-platform-vercel/SKILL.md +482 -0
  351. moai_adk/templates/.claude/skills/moai-workflow-jit-docs/SKILL.md +449 -0
  352. moai_adk/templates/.claude/skills/moai-workflow-jit-docs/advanced-patterns.md +379 -0
  353. moai_adk/templates/.claude/skills/moai-workflow-jit-docs/examples.md +544 -0
  354. moai_adk/templates/.claude/skills/moai-workflow-jit-docs/optimization.md +286 -0
  355. moai_adk/templates/.claude/skills/moai-workflow-jit-docs/reference.md +307 -0
  356. moai_adk/templates/.claude/skills/moai-workflow-project/README.md +190 -0
  357. moai_adk/templates/.claude/skills/moai-workflow-project/SKILL.md +390 -0
  358. moai_adk/templates/.claude/skills/moai-workflow-project/__init__.py +520 -0
  359. moai_adk/templates/.claude/skills/moai-workflow-project/complete_workflow_demo_fixed.py +574 -0
  360. moai_adk/templates/.claude/skills/moai-workflow-project/examples/complete_project_setup.py +317 -0
  361. moai_adk/templates/.claude/skills/moai-workflow-project/examples/complete_workflow_demo.py +663 -0
  362. moai_adk/templates/.claude/skills/moai-workflow-project/examples/config-migration-example.json +190 -0
  363. moai_adk/templates/.claude/skills/moai-workflow-project/examples/question-examples.json +175 -0
  364. moai_adk/templates/.claude/skills/moai-workflow-project/examples/quick_start.py +196 -0
  365. moai_adk/templates/.claude/skills/moai-workflow-project/examples.md +547 -0
  366. moai_adk/templates/.claude/skills/moai-workflow-project/modules/__init__.py +17 -0
  367. moai_adk/templates/.claude/skills/moai-workflow-project/modules/advanced-patterns.md +158 -0
  368. moai_adk/templates/.claude/skills/moai-workflow-project/modules/ask_user_integration.py +340 -0
  369. moai_adk/templates/.claude/skills/moai-workflow-project/modules/batch_questions.py +713 -0
  370. moai_adk/templates/.claude/skills/moai-workflow-project/modules/config_manager.py +538 -0
  371. moai_adk/templates/.claude/skills/moai-workflow-project/modules/documentation_manager.py +1336 -0
  372. moai_adk/templates/.claude/skills/moai-workflow-project/modules/language_initializer.py +730 -0
  373. moai_adk/templates/.claude/skills/moai-workflow-project/modules/migration_manager.py +608 -0
  374. moai_adk/templates/.claude/skills/moai-workflow-project/modules/template_optimizer.py +1005 -0
  375. moai_adk/templates/.claude/skills/moai-workflow-project/reference.md +275 -0
  376. moai_adk/templates/.claude/skills/moai-workflow-project/schemas/config-schema.json +316 -0
  377. moai_adk/templates/.claude/skills/moai-workflow-project/schemas/tab_schema.json +1462 -0
  378. moai_adk/templates/.claude/skills/moai-workflow-project/templates/config-template.json +71 -0
  379. moai_adk/templates/.claude/skills/moai-workflow-project/templates/doc-templates/product-template.md +44 -0
  380. moai_adk/templates/.claude/skills/moai-workflow-project/templates/doc-templates/structure-template.md +48 -0
  381. moai_adk/templates/.claude/skills/moai-workflow-project/templates/doc-templates/tech-template.md +92 -0
  382. moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/config-manager-setup.json +109 -0
  383. moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/language-initializer.json +228 -0
  384. moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/menu-project-config.json +130 -0
  385. moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/project-batch-questions.json +97 -0
  386. moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/spec-workflow-setup.json +150 -0
  387. moai_adk/templates/.claude/skills/moai-workflow-project/test_integration_simple.py +436 -0
  388. moai_adk/templates/.claude/skills/moai-workflow-spec/SKILL.md +534 -0
  389. moai_adk/templates/.claude/skills/moai-workflow-spec/examples.md +900 -0
  390. moai_adk/templates/.claude/skills/moai-workflow-spec/reference.md +704 -0
  391. moai_adk/templates/.claude/skills/moai-workflow-templates/SKILL.md +377 -0
  392. moai_adk/templates/.claude/skills/moai-workflow-templates/examples.md +552 -0
  393. moai_adk/templates/.claude/skills/moai-workflow-templates/modules/code-templates.md +124 -0
  394. moai_adk/templates/.claude/skills/moai-workflow-templates/modules/feedback-templates.md +100 -0
  395. moai_adk/templates/.claude/skills/moai-workflow-templates/modules/template-optimizer.md +138 -0
  396. moai_adk/templates/.claude/skills/moai-workflow-templates/reference.md +346 -0
  397. moai_adk/templates/.claude/skills/moai-workflow-testing/LICENSE.txt +202 -0
  398. moai_adk/templates/.claude/skills/moai-workflow-testing/SKILL.md +456 -0
  399. moai_adk/templates/.claude/skills/moai-workflow-testing/advanced-patterns.md +576 -0
  400. moai_adk/templates/.claude/skills/moai-workflow-testing/examples/ai-powered-testing.py +294 -0
  401. moai_adk/templates/.claude/skills/moai-workflow-testing/examples/console_logging.py +35 -0
  402. moai_adk/templates/.claude/skills/moai-workflow-testing/examples/element_discovery.py +40 -0
  403. moai_adk/templates/.claude/skills/moai-workflow-testing/examples/static_html_automation.py +34 -0
  404. moai_adk/templates/.claude/skills/moai-workflow-testing/examples.md +672 -0
  405. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/README.md +220 -0
  406. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/ai-debugging.md +845 -0
  407. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review.md +1416 -0
  408. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance-optimization.md +1234 -0
  409. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/smart-refactoring.md +1243 -0
  410. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/tdd-context7.md +1260 -0
  411. moai_adk/templates/.claude/skills/moai-workflow-testing/optimization.md +505 -0
  412. moai_adk/templates/.claude/skills/moai-workflow-testing/reference/playwright-best-practices.md +57 -0
  413. moai_adk/templates/.claude/skills/moai-workflow-testing/reference.md +440 -0
  414. moai_adk/templates/.claude/skills/moai-workflow-testing/scripts/with_server.py +218 -0
  415. moai_adk/templates/.claude/skills/moai-workflow-testing/templates/alfred-integration.md +376 -0
  416. moai_adk/templates/.claude/skills/moai-workflow-testing/workflows/enterprise-testing-workflow.py +571 -0
  417. moai_adk/templates/.claude/skills/moai-worktree/SKILL.md +411 -0
  418. moai_adk/templates/.claude/skills/moai-worktree/examples.md +606 -0
  419. moai_adk/templates/.claude/skills/moai-worktree/modules/integration-patterns.md +982 -0
  420. moai_adk/templates/.claude/skills/moai-worktree/modules/parallel-development.md +778 -0
  421. moai_adk/templates/.claude/skills/moai-worktree/modules/worktree-commands.md +646 -0
  422. moai_adk/templates/.claude/skills/moai-worktree/modules/worktree-management.md +782 -0
  423. moai_adk/templates/.claude/skills/moai-worktree/reference.md +357 -0
  424. moai_adk/templates/.git-hooks/pre-commit +128 -0
  425. moai_adk/templates/.git-hooks/pre-push +365 -0
  426. moai_adk/templates/.github/workflows/ci-universal.yml +513 -0
  427. moai_adk/templates/.github/workflows/security-secrets-check.yml +179 -0
  428. moai_adk/templates/.github/workflows/spec-issue-sync.yml +206 -36
  429. moai_adk/templates/.gitignore +194 -13
  430. moai_adk/templates/.mcp.json +31 -0
  431. moai_adk/templates/.moai/config/config.yaml +58 -0
  432. moai_adk/templates/.moai/config/questions/_schema.yaml +151 -0
  433. moai_adk/templates/.moai/config/questions/tab0-init.yaml +251 -0
  434. moai_adk/templates/.moai/config/questions/tab1-user.yaml +108 -0
  435. moai_adk/templates/.moai/config/questions/tab2-project.yaml +81 -0
  436. moai_adk/templates/.moai/config/questions/tab3-git.yaml +634 -0
  437. moai_adk/templates/.moai/config/questions/tab4-quality.yaml +170 -0
  438. moai_adk/templates/.moai/config/questions/tab5-system.yaml +87 -0
  439. moai_adk/templates/.moai/config/sections/git-strategy.yaml +116 -0
  440. moai_adk/templates/.moai/config/sections/language.yaml +11 -0
  441. moai_adk/templates/.moai/config/sections/project.yaml +13 -0
  442. moai_adk/templates/.moai/config/sections/quality.yaml +17 -0
  443. moai_adk/templates/.moai/config/sections/system.yaml +14 -0
  444. moai_adk/templates/.moai/config/sections/user.yaml +5 -0
  445. moai_adk/templates/.moai/config/statusline-config.yaml +92 -0
  446. moai_adk/templates/.moai/scripts/setup-glm.py +136 -0
  447. moai_adk/templates/CLAUDE.md +571 -244
  448. moai_adk/utils/__init__.py +24 -2
  449. moai_adk/utils/banner.py +9 -13
  450. moai_adk/utils/common.py +294 -0
  451. moai_adk/utils/link_validator.py +241 -0
  452. moai_adk/utils/logger.py +4 -9
  453. moai_adk/utils/safe_file_reader.py +206 -0
  454. moai_adk/utils/timeout.py +160 -0
  455. moai_adk/utils/toon_utils.py +256 -0
  456. moai_adk/version.py +22 -0
  457. moai_adk-0.34.0.dist-info/METADATA +2999 -0
  458. moai_adk-0.34.0.dist-info/RECORD +463 -0
  459. {moai_adk-0.8.0.dist-info → moai_adk-0.34.0.dist-info}/WHEEL +1 -1
  460. {moai_adk-0.8.0.dist-info → moai_adk-0.34.0.dist-info}/entry_points.txt +1 -0
  461. moai_adk/cli/commands/backup.py +0 -80
  462. moai_adk/templates/.claude/agents/alfred/cc-manager.md +0 -293
  463. moai_adk/templates/.claude/agents/alfred/debug-helper.md +0 -196
  464. moai_adk/templates/.claude/agents/alfred/doc-syncer.md +0 -207
  465. moai_adk/templates/.claude/agents/alfred/git-manager.md +0 -375
  466. moai_adk/templates/.claude/agents/alfred/implementation-planner.md +0 -343
  467. moai_adk/templates/.claude/agents/alfred/project-manager.md +0 -246
  468. moai_adk/templates/.claude/agents/alfred/quality-gate.md +0 -320
  469. moai_adk/templates/.claude/agents/alfred/skill-factory.md +0 -837
  470. moai_adk/templates/.claude/agents/alfred/spec-builder.md +0 -272
  471. moai_adk/templates/.claude/agents/alfred/tag-agent.md +0 -265
  472. moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +0 -311
  473. moai_adk/templates/.claude/agents/alfred/trust-checker.md +0 -352
  474. moai_adk/templates/.claude/commands/alfred/0-project.md +0 -1184
  475. moai_adk/templates/.claude/commands/alfred/1-plan.md +0 -665
  476. moai_adk/templates/.claude/commands/alfred/2-run.md +0 -488
  477. moai_adk/templates/.claude/commands/alfred/3-sync.md +0 -623
  478. moai_adk/templates/.claude/hooks/alfred/HOOK_SCHEMA_VALIDATION.md +0 -313
  479. moai_adk/templates/.claude/hooks/alfred/README.md +0 -230
  480. moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +0 -174
  481. moai_adk/templates/.claude/hooks/alfred/core/__init__.py +0 -170
  482. moai_adk/templates/.claude/hooks/alfred/core/context.py +0 -67
  483. moai_adk/templates/.claude/hooks/alfred/core/project.py +0 -416
  484. moai_adk/templates/.claude/hooks/alfred/core/tags.py +0 -198
  485. moai_adk/templates/.claude/hooks/alfred/handlers/__init__.py +0 -21
  486. moai_adk/templates/.claude/hooks/alfred/handlers/notification.py +0 -25
  487. moai_adk/templates/.claude/hooks/alfred/handlers/session.py +0 -161
  488. moai_adk/templates/.claude/hooks/alfred/handlers/tool.py +0 -90
  489. moai_adk/templates/.claude/hooks/alfred/handlers/user.py +0 -42
  490. moai_adk/templates/.claude/hooks/alfred/test_hook_output.py +0 -175
  491. moai_adk/templates/.claude/output-styles/alfred/agentic-coding.md +0 -640
  492. moai_adk/templates/.claude/output-styles/alfred/moai-adk-learning.md +0 -696
  493. moai_adk/templates/.claude/output-styles/alfred/study-with-alfred.md +0 -474
  494. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/SKILL.md +0 -113
  495. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/examples.md +0 -29
  496. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/reference.md +0 -28
  497. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/SKILL.md +0 -122
  498. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/examples.md +0 -29
  499. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/reference.md +0 -29
  500. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/SKILL.md +0 -237
  501. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/examples.md +0 -615
  502. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/reference.md +0 -653
  503. moai_adk/templates/.claude/skills/moai-alfred-language-detection/SKILL.md +0 -113
  504. moai_adk/templates/.claude/skills/moai-alfred-language-detection/examples.md +0 -29
  505. moai_adk/templates/.claude/skills/moai-alfred-language-detection/reference.md +0 -28
  506. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/SKILL.md +0 -113
  507. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/examples.md +0 -29
  508. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/reference.md +0 -28
  509. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/SKILL.md +0 -113
  510. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/examples.md +0 -29
  511. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/reference.md +0 -28
  512. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/SKILL.md +0 -113
  513. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/examples.md +0 -29
  514. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/reference.md +0 -28
  515. moai_adk/templates/.claude/skills/moai-cc-agents/SKILL.md +0 -269
  516. moai_adk/templates/.claude/skills/moai-cc-agents/templates/agent-template.md +0 -32
  517. moai_adk/templates/.claude/skills/moai-cc-claude-md/SKILL.md +0 -298
  518. moai_adk/templates/.claude/skills/moai-cc-claude-md/templates/CLAUDE-template.md +0 -26
  519. moai_adk/templates/.claude/skills/moai-cc-commands/SKILL.md +0 -307
  520. moai_adk/templates/.claude/skills/moai-cc-commands/templates/command-template.md +0 -21
  521. moai_adk/templates/.claude/skills/moai-cc-hooks/SKILL.md +0 -252
  522. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/pre-bash-check.sh +0 -19
  523. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/preserve-permissions.sh +0 -19
  524. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/validate-bash-command.py +0 -24
  525. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/SKILL.md +0 -199
  526. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/templates/settings-mcp-template.json +0 -39
  527. moai_adk/templates/.claude/skills/moai-cc-memory/SKILL.md +0 -316
  528. moai_adk/templates/.claude/skills/moai-cc-memory/templates/session-summary-template.md +0 -18
  529. moai_adk/templates/.claude/skills/moai-cc-settings/SKILL.md +0 -263
  530. moai_adk/templates/.claude/skills/moai-cc-settings/templates/settings-complete-template.json +0 -30
  531. moai_adk/templates/.claude/skills/moai-cc-skills/SKILL.md +0 -291
  532. moai_adk/templates/.claude/skills/moai-cc-skills/templates/SKILL-template.md +0 -15
  533. moai_adk/templates/.claude/skills/moai-domain-cli-tool/SKILL.md +0 -123
  534. moai_adk/templates/.claude/skills/moai-domain-cli-tool/examples.md +0 -29
  535. moai_adk/templates/.claude/skills/moai-domain-cli-tool/reference.md +0 -30
  536. moai_adk/templates/.claude/skills/moai-domain-data-science/SKILL.md +0 -123
  537. moai_adk/templates/.claude/skills/moai-domain-data-science/examples.md +0 -29
  538. moai_adk/templates/.claude/skills/moai-domain-data-science/reference.md +0 -30
  539. moai_adk/templates/.claude/skills/moai-domain-devops/SKILL.md +0 -124
  540. moai_adk/templates/.claude/skills/moai-domain-devops/examples.md +0 -29
  541. moai_adk/templates/.claude/skills/moai-domain-devops/reference.md +0 -31
  542. moai_adk/templates/.claude/skills/moai-domain-ml/SKILL.md +0 -123
  543. moai_adk/templates/.claude/skills/moai-domain-ml/examples.md +0 -29
  544. moai_adk/templates/.claude/skills/moai-domain-ml/reference.md +0 -30
  545. moai_adk/templates/.claude/skills/moai-domain-mobile-app/SKILL.md +0 -123
  546. moai_adk/templates/.claude/skills/moai-domain-mobile-app/examples.md +0 -29
  547. moai_adk/templates/.claude/skills/moai-domain-mobile-app/reference.md +0 -30
  548. moai_adk/templates/.claude/skills/moai-domain-security/SKILL.md +0 -123
  549. moai_adk/templates/.claude/skills/moai-domain-security/examples.md +0 -29
  550. moai_adk/templates/.claude/skills/moai-domain-security/reference.md +0 -30
  551. moai_adk/templates/.claude/skills/moai-domain-web-api/SKILL.md +0 -123
  552. moai_adk/templates/.claude/skills/moai-domain-web-api/examples.md +0 -29
  553. moai_adk/templates/.claude/skills/moai-domain-web-api/reference.md +0 -30
  554. moai_adk/templates/.claude/skills/moai-essentials-debug/SKILL.md +0 -303
  555. moai_adk/templates/.claude/skills/moai-essentials-debug/examples.md +0 -1064
  556. moai_adk/templates/.claude/skills/moai-essentials-debug/reference.md +0 -1047
  557. moai_adk/templates/.claude/skills/moai-essentials-perf/SKILL.md +0 -113
  558. moai_adk/templates/.claude/skills/moai-essentials-perf/examples.md +0 -29
  559. moai_adk/templates/.claude/skills/moai-essentials-perf/reference.md +0 -28
  560. moai_adk/templates/.claude/skills/moai-essentials-refactor/SKILL.md +0 -113
  561. moai_adk/templates/.claude/skills/moai-essentials-refactor/examples.md +0 -29
  562. moai_adk/templates/.claude/skills/moai-essentials-refactor/reference.md +0 -28
  563. moai_adk/templates/.claude/skills/moai-essentials-review/SKILL.md +0 -113
  564. moai_adk/templates/.claude/skills/moai-essentials-review/examples.md +0 -29
  565. moai_adk/templates/.claude/skills/moai-essentials-review/reference.md +0 -28
  566. moai_adk/templates/.claude/skills/moai-foundation-ears/SKILL.md +0 -113
  567. moai_adk/templates/.claude/skills/moai-foundation-ears/examples.md +0 -29
  568. moai_adk/templates/.claude/skills/moai-foundation-ears/reference.md +0 -28
  569. moai_adk/templates/.claude/skills/moai-foundation-git/SKILL.md +0 -122
  570. moai_adk/templates/.claude/skills/moai-foundation-git/examples.md +0 -29
  571. moai_adk/templates/.claude/skills/moai-foundation-git/reference.md +0 -29
  572. moai_adk/templates/.claude/skills/moai-foundation-langs/SKILL.md +0 -113
  573. moai_adk/templates/.claude/skills/moai-foundation-langs/examples.md +0 -29
  574. moai_adk/templates/.claude/skills/moai-foundation-langs/reference.md +0 -28
  575. moai_adk/templates/.claude/skills/moai-foundation-specs/SKILL.md +0 -113
  576. moai_adk/templates/.claude/skills/moai-foundation-specs/examples.md +0 -29
  577. moai_adk/templates/.claude/skills/moai-foundation-specs/reference.md +0 -28
  578. moai_adk/templates/.claude/skills/moai-foundation-tags/SKILL.md +0 -113
  579. moai_adk/templates/.claude/skills/moai-foundation-tags/examples.md +0 -29
  580. moai_adk/templates/.claude/skills/moai-foundation-tags/reference.md +0 -28
  581. moai_adk/templates/.claude/skills/moai-foundation-trust/SKILL.md +0 -307
  582. moai_adk/templates/.claude/skills/moai-foundation-trust/examples.md +0 -0
  583. moai_adk/templates/.claude/skills/moai-foundation-trust/reference.md +0 -1099
  584. moai_adk/templates/.claude/skills/moai-lang-c/SKILL.md +0 -124
  585. moai_adk/templates/.claude/skills/moai-lang-c/examples.md +0 -29
  586. moai_adk/templates/.claude/skills/moai-lang-c/reference.md +0 -31
  587. moai_adk/templates/.claude/skills/moai-lang-cpp/examples.md +0 -29
  588. moai_adk/templates/.claude/skills/moai-lang-cpp/reference.md +0 -31
  589. moai_adk/templates/.claude/skills/moai-lang-csharp/examples.md +0 -29
  590. moai_adk/templates/.claude/skills/moai-lang-csharp/reference.md +0 -30
  591. moai_adk/templates/.claude/skills/moai-lang-dart/SKILL.md +0 -123
  592. moai_adk/templates/.claude/skills/moai-lang-dart/examples.md +0 -29
  593. moai_adk/templates/.claude/skills/moai-lang-dart/reference.md +0 -30
  594. moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +0 -125
  595. moai_adk/templates/.claude/skills/moai-lang-javascript/examples.md +0 -29
  596. moai_adk/templates/.claude/skills/moai-lang-javascript/reference.md +0 -32
  597. moai_adk/templates/.claude/skills/moai-lang-php/examples.md +0 -29
  598. moai_adk/templates/.claude/skills/moai-lang-php/reference.md +0 -30
  599. moai_adk/templates/.claude/skills/moai-lang-r/examples.md +0 -29
  600. moai_adk/templates/.claude/skills/moai-lang-r/reference.md +0 -30
  601. moai_adk/templates/.claude/skills/moai-lang-ruby/examples.md +0 -29
  602. moai_adk/templates/.claude/skills/moai-lang-ruby/reference.md +0 -31
  603. moai_adk/templates/.claude/skills/moai-lang-shell/SKILL.md +0 -123
  604. moai_adk/templates/.claude/skills/moai-lang-shell/examples.md +0 -29
  605. moai_adk/templates/.claude/skills/moai-lang-shell/reference.md +0 -30
  606. moai_adk/templates/.claude/skills/moai-lang-sql/SKILL.md +0 -124
  607. moai_adk/templates/.claude/skills/moai-lang-sql/examples.md +0 -29
  608. moai_adk/templates/.claude/skills/moai-lang-sql/reference.md +0 -31
  609. moai_adk/templates/.claude/skills/moai-skill-factory/CHECKLIST.md +0 -482
  610. moai_adk/templates/.claude/skills/moai-skill-factory/EXAMPLES.md +0 -278
  611. moai_adk/templates/.claude/skills/moai-skill-factory/INTERACTIVE-DISCOVERY.md +0 -524
  612. moai_adk/templates/.claude/skills/moai-skill-factory/METADATA.md +0 -477
  613. moai_adk/templates/.claude/skills/moai-skill-factory/PARALLEL-ANALYSIS-REPORT.md +0 -429
  614. moai_adk/templates/.claude/skills/moai-skill-factory/PYTHON-VERSION-MATRIX.md +0 -391
  615. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL-FACTORY-WORKFLOW.md +0 -431
  616. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL-UPDATE-ADVISOR.md +0 -577
  617. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL.md +0 -271
  618. moai_adk/templates/.claude/skills/moai-skill-factory/STEP-BY-STEP-GUIDE.md +0 -466
  619. moai_adk/templates/.claude/skills/moai-skill-factory/STRUCTURE.md +0 -583
  620. moai_adk/templates/.claude/skills/moai-skill-factory/WEB-RESEARCH.md +0 -526
  621. moai_adk/templates/.claude/skills/moai-skill-factory/reference.md +0 -465
  622. moai_adk/templates/.claude/skills/moai-skill-factory/scripts/generate-structure.sh +0 -328
  623. moai_adk/templates/.claude/skills/moai-skill-factory/scripts/validate-skill.sh +0 -312
  624. moai_adk/templates/.claude/skills/moai-skill-factory/templates/SKILL_TEMPLATE.md +0 -245
  625. moai_adk/templates/.claude/skills/moai-skill-factory/templates/examples-template.md +0 -285
  626. moai_adk/templates/.claude/skills/moai-skill-factory/templates/reference-template.md +0 -278
  627. moai_adk/templates/.claude/skills/moai-skill-factory/templates/scripts-template.sh +0 -303
  628. moai_adk/templates/.claude/skills/moai-spec-authoring/README.md +0 -137
  629. moai_adk/templates/.claude/skills/moai-spec-authoring/SKILL.md +0 -218
  630. moai_adk/templates/.claude/skills/moai-spec-authoring/examples/validate-spec.sh +0 -161
  631. moai_adk/templates/.claude/skills/moai-spec-authoring/examples.md +0 -541
  632. moai_adk/templates/.claude/skills/moai-spec-authoring/reference.md +0 -622
  633. moai_adk/templates/.github/ISSUE_TEMPLATE/spec.yml +0 -176
  634. moai_adk/templates/.github/PULL_REQUEST_TEMPLATE.md +0 -69
  635. moai_adk/templates/.github/workflows/moai-gitflow.yml +0 -256
  636. moai_adk/templates/.moai/config.json +0 -96
  637. moai_adk/templates/.moai/memory/CLAUDE-AGENTS-GUIDE.md +0 -208
  638. moai_adk/templates/.moai/memory/CLAUDE-PRACTICES.md +0 -369
  639. moai_adk/templates/.moai/memory/CLAUDE-RULES.md +0 -539
  640. moai_adk/templates/.moai/memory/CONFIG-SCHEMA.md +0 -444
  641. moai_adk/templates/.moai/memory/DEVELOPMENT-GUIDE.md +0 -344
  642. moai_adk/templates/.moai/memory/GITFLOW-PROTECTION-POLICY.md +0 -220
  643. moai_adk/templates/.moai/memory/SKILLS-DESCRIPTION-POLICY.md +0 -218
  644. moai_adk/templates/.moai/memory/SPEC-METADATA.md +0 -356
  645. moai_adk/templates/.moai/memory/config-schema.md +0 -444
  646. moai_adk/templates/.moai/memory/gitflow-protection-policy.md +0 -220
  647. moai_adk/templates/.moai/memory/spec-metadata.md +0 -356
  648. moai_adk/templates/.moai/project/product.md +0 -161
  649. moai_adk/templates/.moai/project/structure.md +0 -156
  650. moai_adk/templates/.moai/project/tech.md +0 -227
  651. moai_adk/templates/__init__.py +0 -2
  652. moai_adk-0.8.0.dist-info/METADATA +0 -1722
  653. moai_adk-0.8.0.dist-info/RECORD +0 -282
  654. {moai_adk-0.8.0.dist-info → moai_adk-0.34.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,1184 +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
- TASK: Conduct project interviews and create/update product/structure/tech.md documents."""
512
- ```
513
-
514
- **Outcome**: The project-manager agent conducts structured interviews entirely in the selected language and creates/updates product/structure/tech.md documents in that language.
515
-
516
- ### 2.2 Automatic activation of Alfred Skills (optional)
517
-
518
- After the project-manager has finished creating the document, **Alfred can optionally call Skills** (upon user request).
519
-
520
- **Automatic activation conditions** (optional):
521
-
522
- | Conditions | Automatic selection Skill | Purpose |
523
- | ------------------------------------ | ---------------------------- | -------------------------------------- |
524
- | User Requests “Quality Verification” | moai-alfred-trust-validation | Initial project structure verification |
525
-
526
- **Execution flow** (optional):
527
- ```
528
- 1. project-manager completion
529
-
530
- 2. User selection:
531
- - "Quality verification required" → moai-alfred-trust-validation (Level 1 quick scan)
532
- - "Skip" → Complete immediately
533
- ```
534
-
535
- **Note**: Quality verification is optional during the project initialization phase.
536
-
537
- ### 2.3 Sub-agent moai-alfred-interactive-questions (Nested)
538
-
539
- **The project-manager agent can internally call the TUI survey skill** to check the details of the task.
540
-
541
- **When to call**:
542
- - Before overwriting existing project documents
543
- - When selecting language/framework
544
- - When changing important settings
545
-
546
- **Example** (inside project-manager): Ask whether to "overwrite file" with `AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)`,
547
- - Allows you to choose between **Overwrite** / **Merge** / **Skip**.
548
-
549
- **Nested pattern**:
550
- - **Command level** (Phase approval): Called by Alfred → "Shall we proceed with Phase 2?"
551
- - **Sub-agent level** (Detailed confirmation): Called by project-manager → "Shall we overwrite the file?"
552
-
553
- ### 2.4 Processing method by project type
554
-
555
- #### A. New project (Greenfield)
556
-
557
- **Interview Flow**:
558
-
559
- 1. **Product Discovery** (create product.md)
560
- - Define core mission (@DOC:MISSION-001)
561
- - Identify key user base (@SPEC:USER-001)
562
- - Identify key problems to solve (@SPEC:PROBLEM-001)
563
- - Summary of differences and strengths (@DOC:STRATEGY-001)
564
- - Setting success indicators (@SPEC:SUCCESS-001)
565
-
566
- 2. **Structure Blueprint** (create structure.md)
567
- - Selection of architecture strategy (@DOC:ARCHITECTURE-001)
568
- - Division of responsibilities by module (@DOC:MODULES-001)
569
- - External system integration plan (@DOC:INTEGRATION-001)
570
- - Define traceability strategy (@DOC:TRACEABILITY-001)
571
-
572
- 3. **Tech Stack Mapping** (written by tech.md)
573
- - Select language & runtime (@DOC:STACK-001)
574
- - Determine core framework (@DOC:FRAMEWORK-001)
575
- - Set quality gate (@DOC:QUALITY-001)
576
- - Define security policy (@DOC:SECURITY-001)
577
- - Plan distribution channels (@DOC:DEPLOY-001)
578
-
579
- **Automatically generate config.json**:
580
- ```json
581
- {
582
- "project_name": "detected-name",
583
- "project_type": "single|fullstack|microservice",
584
- "project_language": "python|typescript|java|go|rust",
585
- "test_framework": "pytest|vitest|junit|go test|cargo test",
586
- "linter": "ruff|biome|eslint|golint|clippy",
587
- "formatter": "black|biome|prettier|gofmt|rustfmt",
588
- "coverage_target": 85,
589
- "mode": "personal"
590
- }
591
- ```
592
-
593
- #### B. Existing project (legacy introduction)
594
-
595
- **Legacy Snapshot & Alignment**:
596
-
597
- **STEP 1: Identify the overall project structure**
598
-
599
- Alfred identifies the entire project structure:
600
- - Visualize the directory structure using the tree or find commands
601
- - Exclude build artifacts such as node_modules, .git, dist, build, __pycache__, etc.
602
- - Identify key source directories and configuration files.
603
-
604
- **Output**:
605
- - Visualize the entire folder/file hierarchy of the project
606
- - Identify major directories (src/, tests/, docs/, config/, etc.)
607
- - Check language/framework hint files (package.json, pyproject.toml, go.mod, etc.)
608
-
609
- **STEP 2: Establish parallel analysis strategy**
610
-
611
- Alfred identifies groups of files by the Glob pattern:
612
- 1. **Configuration files**: *.json, *.toml, *.yaml, *.yml, *.config.js
613
- 2. **Source code files**: src/**/*.{ts,js,py,go,rs,java}
614
- 3. **Test files**: tests/**/*.{ts,js,py,go,rs,java}, **/*.test.*, **/*.spec.*
615
- 4. **Documentation files**: *.md, docs/**/*.md, README*, CHANGELOG*
616
-
617
- **Parallel Read Strategy**:
618
- - Speed ​​up analysis by reading multiple files simultaneously with the Read tool
619
- - Batch processing for each file group
620
- - Priority: Configuration file → Core source → Test → Document
621
-
622
- **STEP 3: Analysis and reporting of characteristics for each file**
623
-
624
- As each file is read, the following information is collected:
625
-
626
- 1. **Configuration file analysis**
627
- - Project metadata (name, version, description)
628
- - Dependency list and versions
629
- - Build/test script
630
- - Confirm language/framework
631
-
632
- 2. **Source code analysis**
633
- - Identify major modules and classes
634
- - Architectural pattern inference (MVC, clean architecture, microservice, etc.)
635
- - Identify external API calls and integration points
636
- - Key areas of domain logic
637
-
638
- 3. **Test code analysis**
639
- - Check test framework
640
- - Identify coverage settings
641
- - Identify key test scenarios
642
- - Evaluate TDD compliance
643
-
644
- 4. **Document analysis**
645
- - Existing README contents
646
- - Existence of architecture document
647
- - API document status
648
- - Installation/deployment guide completeness
649
-
650
- **Report Format**:
651
- ```markdown
652
- ## Analysis results for each file
653
-
654
- ### Configuration file
655
- - package.json: Node.js 18+, TypeScript 5.x, Vitest test
656
- - tsconfig.json: strict mode, ESNext target
657
- - biome.json: Linter/formatter settings exist
658
-
659
- ### Source code (src/)
660
- - src/core/: Core business logic (3 modules)
661
- - src/api/: REST API endpoints (5 routers)
662
- - src/utils/: Utility functions (logging, verification, etc.)
663
- - Architecture: Hierarchical (controller) → service → repository)
664
-
665
- ### Tests (tests/)
666
- - Vitest + @testing-library used
667
- - Unit test coverage estimated at about 60%
668
- - E2E testing lacking
669
-
670
- ### Documentation
671
- - README.md: Only installation guide
672
- - Absence of API documentation
673
- - Absence of architecture document
674
- ```
675
-
676
- **STEP 4: Comprehensive analysis and product/structure/tech reflection**
677
-
678
- Based on the collected information, it is reflected in three major documents:
679
-
680
- 1. Contents reflected in **product.md**
681
- - Project mission extracted from existing README/document
682
- - Main user base and scenario inferred from code
683
- - Backtracking of core problem to be solved
684
- - Preservation of existing assets in “Legacy Context”
685
-
686
- 2. Contents reflected in **structure.md**
687
- - Identified actual directory structure
688
- - Responsibility analysis results for each module
689
- - External system integration points (API calls, DB connections, etc.)
690
- - Technical debt items (marked with @CODE tag)
691
-
692
- 3. **tech.md reflection content**
693
- - Languages/frameworks/libraries actually in use
694
- - Existing build/test pipeline
695
- - Status of quality gates (linter, formatter, test coverage)
696
- - Identification of security/distribution policy
697
- - Items requiring improvement (marked with TODO tags)
698
-
699
- **Preservation Policy**:
700
- - Supplement only the missing parts without overwriting existing documents
701
- - Preserve conflicting content in the “Legacy Context” section
702
- - Mark items needing improvement with @CODE and TODO tags
703
-
704
- **Example Final Report**:
705
- ```markdown
706
- ## Complete analysis of existing project
707
-
708
- ### Environment Information
709
- - **Language**: TypeScript 5.x (Node.js 18+)
710
- - **Framework**: Express.js
711
- - **Test**: Vitest (coverage ~60%)
712
- - **Linter/Formatter**: Biome
713
-
714
- ### Main findings
715
- 1. **Strengths**:
716
- - High type safety (strict mode)
717
- - Clear module structure (separation of core/api/utils)
718
-
719
- 2. **Needs improvement**:
720
- - Test coverage below 85% (TODO:TEST-COVERAGE-001)
721
- - Absence of API documentation (TODO:DOCS-API-001)
722
- - Insufficient E2E testing (@CODE:TEST-E2E-001)
723
-
724
- ### Next step
725
- 1. product/structure/tech.md creation completed
726
- 2. @CODE/TODO item priority confirmation
727
- 3. /alfred:Start writing an improvement SPEC with 1-spec
728
- ```
729
-
730
- ### 2.3 Document creation and verification
731
-
732
- **Output**:
733
- - `.moai/project/product.md` (Business Requirements)
734
- - `.moai/project/structure.md` (System Architecture)
735
- - `.moai/project/tech.md` (Technology Stack and policy)
736
- - `.moai/config.json` (project settings)
737
-
738
- **Quality Verification**:
739
- - [ ] Verify existence of all required @TAG sections
740
- - [ ] Verify compliance with EARS syntax format
741
- - [ ] Verify config.json syntax validity
742
- - [ ] Verify cross-document consistency
743
-
744
- ### 2.4 Completion Report
745
-
746
- ```markdown
747
- ✅ Project initialization complete!
748
-
749
- 📁 Documents generated:
750
- - .moai/project/product.md (Business Definition)
751
- - .moai/project/structure.md (Architecture Design)
752
- - .moai/project/tech.md (Technology Stack)
753
- - .moai/config.json (project settings)
754
-
755
- 🔍 Detected environments:
756
- - Language: [List of languages]
757
- - Frameworks: [List of frameworks]
758
- - Test tools: [List of tools]
759
-
760
- 📋 Next steps:
761
- 1. Review the generated document
762
- 2. Create your first SPEC with /alfred:1-plan
763
- 3. If necessary, readjust with /alfred:8-project update
764
- ```
765
-
766
- ### 2.5: Initial structural verification (optional)
767
-
768
- After project initialization is complete, you can optionally run quality verification.
769
-
770
- **Execution Conditions**: Only when explicitly requested by the user.
771
-
772
- **Verification Purpose**:
773
- - Basic verification of project documentation and configuration files
774
- - Verification of compliance with the TRUST principles of the initial structure
775
- - Validation of configuration files
776
-
777
- **How ​​it works**:
778
- Alfred only calls the trust-checker agent to perform project initial structural verification if explicitly requested by the user.
779
-
780
- **Verification items**:
781
- - **Document completeness**: Check existence of required sections in product/structure/tech.md
782
- - **Settings validity**: Verify config.json JSON syntax and required fields
783
- - **TAG scheme**: Check compliance with @TAG format in document
784
- - **EARS syntax**: Validation of the EARS template to be used when writing SPECs
785
-
786
- **Run Verification**: Level 1 quick scan (3-5 seconds)
787
-
788
- **Handling verification results**:
789
-
790
- ✅ **Pass**: Can proceed to next step
791
- - Documents and settings are all normal
792
-
793
- ⚠️ **Warning**: Proceed after warning
794
- - Some optional sections are missing
795
- - Recommendations not applied
796
-
797
- ❌ **Critical**: Needs fix
798
- - Required section missing
799
- - config.json syntax error
800
- - User choice: “Revalidate after fix” or “Skip”
801
-
802
- **Skip verification**:
803
- - Verification is not run by default
804
- - Run only when explicitly requested by the user
805
-
806
- ### 2.6: Agent & Skill Tailoring (Project Optimization)
807
-
808
- 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.
809
- 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`.
810
-
811
- #### 2.6.0 Create cc-manager briefing
812
-
813
- 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`.
814
-
815
- - `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.
816
- - `structure.md`: Records architecture type, module boundaries and scope of responsibility, external integration, traceability strategy, and TODO contents.
817
- - `tech.md`: Organizes language/framework version, build/test/deployment procedures, quality/security policy, operation/monitoring method, and TODO items.
818
-
819
- Be sure to include the source (e.g. `product.md@SPEC:SUCCESS-001`) for each item so that cc-manager can understand the basis.
820
-
821
- #### 2.6.1 cc-manager judgment guide
822
-
823
- 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.
824
-
825
- | Project requirements (document basis) | Recommended sub-agent/skill | Purpose |
826
- | ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
827
- | High quality and coverage goals (`product.md@SPEC:SUCCESS-001`) | `tdd-implementer`, `moai-essentials-debug`, `moai-essentials-review` | Establishment of RED·GREEN·REFACTOR workflow |
828
- | 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 |
829
- | Deployment automation/branch strategy required (`structure.md` Architecture/TODO) | `git-manager`, `moai-alfred-git-workflow`, `moai-foundation-git` | Branch Strategy·Commit Policy·PR Automation |
830
- | Refactoring legacy modules (`product.md` BACKLOG, `tech.md` TODO) | `implementation-planner`, `moai-essentials-refactor` | Technical Debt Diagnosis and Refactoring Roadmap |
831
- | 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 |
832
- | 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 |
833
- | Data analysis/reporting needs (`product.md` DATA, `tech.md` ANALYTICS) | `implementation-planner`, `moai-domain-data-science`, detected language skills | Data Pipeline·Notebook Job Definition |
834
- | 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 |
835
- | 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 |
836
- | Introduction of ML/AI functions (`product.md` AI, `tech.md` MODEL) | `implementation-planner`, `moai-domain-ml`, detected language skills | Model training/inference pipeline definition |
837
- | 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 |
838
- | Strengthening coding standards/review process (`tech.md` REVIEW) | `quality-gate`, `moai-essentials-review` | Strengthening review checklist and quality reporting |
839
- | 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 |
840
-
841
- > **Language/Domain Skill Selection Rules**
842
- > - 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.
843
- > - Skills listed in the domain row are automatically included by cc-manager in the `selected_skills` list when the conditions are met.
844
- > - The skill directory is always copied in its entirety, and only actual activation is recorded in `skill_pack` and `CLAUDE.md`.
845
-
846
- If multiple conditions are met, the candidates are merged without duplicates and organized into sets of `candidate_agents`, `candidate_skills`, and `candidate_styles`.
847
-
848
- #### 2.6.2 User confirmation flow
849
-
850
- `AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)` asks “whether to enable recommended items.”
851
- - Provides three options: **Install all** / **Install selectively** / **Do not install**.
852
- Selecting “Selective Install” presents the list of candidates again as multiple choices, allowing the user to select only the items they need.
853
-
854
- #### 2.6.3 Activation and Recording Steps
855
-
856
- 1. **Preparing briefing**: Organize the results of user selection (install all/install selectively) and the full text of `cc_manager_briefing`.
857
- 2. **Call the cc-manager agent**:
858
- - Call `subagent_type: "cc-manager"` with the `Task` tool and include a briefing and user selections in the prompt.
859
- - 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.
860
- 3. **Check for configuration updates**: Review the results reflected by cc-manager.
861
- - Sub-Agents: Keep the `.claude/agents/alfred/` template active and list it in the `CLAUDE.md` “Agents” section.
862
- - Skills: Check the `.claude/skills/` document and add it to the `CLAUDE.md` “Skills” section.
863
- - Output style: Apply `.claude/output-styles/alfred/` and record the activation in `CLAUDE.md` “Output Styles”.
864
- 4. **Update config.json**
865
- ```json
866
- {
867
- "project": {
868
- "optimized": true,
869
- "agent_pack": ["tdd-implementer", "doc-syncer"],
870
- "skill_pack": ["moai-alfred-git-workflow", "moai-alfred-tag-scanning"],
871
- "output_styles": ["moai-adk-learning"]
872
- }
873
- }
874
- ```
875
- Merge existing properties, if any.
876
- 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.
877
-
878
- ## Interview guide by project type
879
-
880
- ### New project interview area
881
-
882
- **Product Discovery** (product.md)
883
- - Core mission and value proposition
884
- - Key user bases and needs
885
- - 3 key problems to solve
886
- - Differentiation compared to competing solutions
887
- - Measurable indicators of success
888
-
889
- **Structure Blueprint** (structure.md)
890
- - System architecture strategy
891
- - Separation of modules and division of responsibilities
892
- - External system integration plan
893
- - @TAG-based traceability strategy
894
-
895
- **Tech Stack Mapping** (tech.md)
896
- - Language/runtime selection and version
897
- - Framework and libraries
898
- - Quality gate policy (coverage, linter)
899
- - Security policy and distribution channel
900
-
901
- ### Existing project interview area
902
-
903
- **Legacy Analysis**
904
- - Identify current code structure and modules
905
- - Status of build/test pipeline
906
- - Identify technical debt and constraints
907
- - External integration and authentication methods
908
- - MoAI-ADK transition priority plan
909
-
910
- **Retention Policy**: Preserve existing documents in the "Legacy Context" section and mark items needing improvement with @CODE/TODO tags
911
-
912
- ## 🏷️ TAG system application rules
913
-
914
- **Automatically create @TAGs per section**:
915
-
916
- - Mission/Vision → @DOC:MISSION-XXX, @DOC:STRATEGY-XXX
917
- - Customization → @SPEC:USER-XXX, @SPEC:PERSONA-XXX
918
- - Problem analysis → @SPEC:PROBLEM-XXX, @SPEC:SOLUTION-XXX
919
- - Architecture → @DOC:ARCHITECTURE-XXX, @SPEC:PATTERN-XXX
920
- - Technology Stack → @DOC:STACK-XXX, @DOC:FRAMEWORK-XXX
921
-
922
- **Legacy Project Tags**:
923
-
924
- - Technical debt → @CODE:REFACTOR-XXX, @CODE:TEST-XXX, @CODE:MIGRATION-XXX
925
- - Resolution plan → @CODE:MIGRATION-XXX, TODO:SPEC-BACKLOG-XXX
926
- - Quality improvement → TODO:TEST-COVERAGE-XXX, TODO:DOCS-SYNC-XXX
927
-
928
- ## Error handling
929
-
930
- ### Common errors and solutions
931
-
932
- **Error 1**: Project language detection failed
933
- ```
934
- Symptom: “Language not detected” message
935
- Solution: Specify language manually or create language-specific settings file
936
- ```
937
-
938
- **Error 2**: Conflict with existing document
939
- ```
940
- Symptom: product.md already exists and has different contents
941
- Solution: Preserve existing contents and add new contents in “Legacy Context” section
942
- ```
943
-
944
- **Error 3**: Failed to create config.json
945
- ```
946
- Symptom: JSON syntax error or permission denied
947
- Solution: Check file permissions (chmod 644) or create config.json manually
948
- ```
949
-
950
- ---
951
-
952
- ## /alfred:0-project update: Template optimization (subcommand)
953
-
954
- > **Purpose**: After running moai-adk update, compare the backup and new template to optimize the template while preserving user customization.
955
-
956
- ### Execution conditions
957
-
958
- This subcommand is executed under the following conditions:
959
-
960
- 1. **After executing moai-adk update**: `optimized=false` status in `config.json`
961
- 2. **Template update required**: When there is a difference between the backup and the new template
962
- 3. **User explicit request**: User directly executes `/alfred:0-project update`
963
-
964
- ### Execution flow
965
-
966
- #### Phase 1: Backup analysis and comparison
967
-
968
- 1. **Make sure you have the latest backup**:
969
- ```bash
970
- # Browse the latest backups in the .moai-backups/ directory
971
- ls -lt .moai-backups/ | head -1
972
- ```
973
-
974
- 2. **Change Analysis**:
975
- - Compare `.claude/` directory from backup with current template
976
- - Compare `.moai/project/` document from backup with current document
977
- - Identify user customization items
978
-
979
- 3. **Create Comparison Report**:
980
- ```markdown
981
- ## 📊 Template optimization analysis
982
-
983
- ### Changed items
984
- - CLAUDE.md: "## Project Information" section needs to be preserved
985
- - settings.json: 3 env variables need to be preserved
986
- - product.md: Has user-written content
987
-
988
- ### Recommended Action
989
- - Run Smart Merge
990
- - Preserve User Customizations
991
- - Set optimized=true
992
- ```
993
-
994
- 4. **Waiting for user approval**
995
- `AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)` asks “Do you want to proceed with template optimization?” and provides the following options.
996
- - **Proceed** → Phase 2 execution
997
- - **Preview** → Display change details and recheck
998
- - **Skip** → keep optimized=false
999
-
1000
- #### Phase 2: Run smart merge (after user approval)
1001
-
1002
- 1. **Execute smart merge logic**:
1003
- - Run `TemplateProcessor.copy_templates()`
1004
- - CLAUDE.md: Preserve "## Project Information" section
1005
- - settings.json: env variables and permissions.allow merge
1006
-
1007
- 2. Set **optimized=true**:
1008
- ```python
1009
- # update config.json
1010
- config_data["project"]["optimized"] = True
1011
- ```
1012
-
1013
- 3. **Optimization completion report**:
1014
- ```markdown
1015
- ✅ Template optimization completed!
1016
-
1017
- 📄 Merged files:
1018
- - CLAUDE.md (preserves project information)
1019
- - settings.json (preserves env variables)
1020
-
1021
- ⚙️ config.json: optimized=true Configuration complete
1022
- ```
1023
-
1024
- ### Alfred Automation Strategy
1025
-
1026
- **Alfred automatic decision**:
1027
- - Automatically call project-manager agent
1028
- - Check backup freshness (within 24 hours)
1029
- - Automatically analyze changes
1030
-
1031
- **Auto-activation of Skills**:
1032
- - moai-alfred-tag-scanning: TAG chain verification
1033
- - moai-alfred-trust-validation: Verification of compliance with TRUST principles
1034
-
1035
- ### Running example
1036
-
1037
- ```bash
1038
- # After running moai-adk update
1039
- moai-adk update
1040
-
1041
- # Output:
1042
- # ✓ Update complete!
1043
- # ℹ️ Next step: Run /alfred:0-project update to optimize template changes
1044
-
1045
- # Run Alfred
1046
- /alfred:0-project update
1047
-
1048
- # → Phase 1: Generate backup analysis and comparison report
1049
- # → Wait for user approval
1050
- # → Phase 2: Run smart merge, set optimized=true
1051
- ```
1052
-
1053
- ### caution
1054
-
1055
- - **Backup required**: Cannot run without backup in `.moai-backups/` directory
1056
- - **Manual review recommended**: Preview is required if there are important customizations
1057
- - **Conflict resolution**: Request user selection in case of merge conflict
1058
-
1059
- ---
1060
-
1061
- ## 🚀 STEP 3: Project Custom Optimization (Optional)
1062
-
1063
- **Execution conditions**:
1064
- - After completion of Phase 2 (project initialization)
1065
- - or after completion of Phase 1.1 (backup merge)
1066
- - Explicitly requested by the user or automatically determined by Alfred
1067
-
1068
- **Purpose**: Lightweight by selecting only Commands, Agents, and Skills that fit the project characteristics (37 skills → 3~5)
1069
-
1070
- ### 3.1 Automatic execution of Feature Selection
1071
-
1072
- **Alfred automatically calls the moai-alfred-feature-selector skill**:
1073
-
1074
- **Skill Entry**:
1075
- - `.moai/project/product.md` (project category hint)
1076
- - `.moai/project/tech.md` (main language, framework)
1077
- - `.moai/config.json` (project settings)
1078
-
1079
- **Skill Output**:
1080
- ```json
1081
- {
1082
- "category": "web-api",
1083
- "language": "python",
1084
- "framework": "fastapi",
1085
- "commands": ["1-spec", "2-build", "3-sync"],
1086
- "agents": ["spec-builder", "code-builder", "doc-syncer", "git-manager", "debug-helper"],
1087
- "skills": ["moai-lang-python", "moai-domain-web-api", "moai-domain-backend"],
1088
- "excluded_skills_count": 34,
1089
- "optimization_rate": "87%"
1090
- }
1091
- ```
1092
-
1093
- **How ​​to Run**:
1094
- ```
1095
- Alfred: Skill("moai-alfred-feature-selector")
1096
- ```
1097
-
1098
- ---
1099
-
1100
- ### 3.2 Automatic execution of Template Generation
1101
-
1102
- **Alfred automatically calls the moai-alfred-template-generator skill**:
1103
-
1104
- **Skill input**:
1105
- - `.moai/.feature-selection.json` (feature-selector output)
1106
- - `CLAUDE.md` template
1107
- - Entire commands/agents/skills file
1108
-
1109
- **Skill Output**:
1110
- - `CLAUDE.md` (custom agent table - selected agents only)
1111
- - `.claude/commands/` (selected commands only)
1112
- - `.claude/agents/` (selected agents only)
1113
- - `.claude/skills/` (selected skills only)
1114
- - `.moai/config.json` (updates `optimized: true`)
1115
-
1116
- **How ​​to Run**:
1117
- ```
1118
- Alfred: Skill("moai-alfred-template-generator")
1119
- ```
1120
-
1121
- ---
1122
-
1123
- ### 3.3 Optimization completion report
1124
-
1125
- **Report Format**:
1126
- ```markdown
1127
- ✅ Project customized optimization completed!
1128
-
1129
- 📊 Optimization results:
1130
- - **Project**: MoAI-ADK
1131
- - **Category**: web-api
1132
- - **Main language**: python
1133
- - **Framework**: fastapi
1134
-
1135
- 🎯 Selected capabilities:
1136
- - Commands: 4 items (0-project, 1-spec, 2-build, 3-sync)
1137
- - Agents: 5 items (spec-builder, code-builder, doc-syncer, git-manager, debug-helper)
1138
- - Skills: 3 items (moai-lang-python, moai-domain-web-api, moai-domain-backend)
1139
-
1140
- 💡 Lightweight effect:
1141
- - Skills excluded: 34
1142
- - Lightweight: 87%
1143
- - CLAUDE.md: Create custom agent table
1144
-
1145
- 📋 Next steps:
1146
- 1. Check the CLAUDE.md file (only 5 agents are displayed)
1147
- 2. Run /alfred:1-plan "first function"
1148
- 3. Start the MoAI-ADK workflow
1149
- ```
1150
-
1151
- ---
1152
-
1153
- ### 3.4 Skip Phase 3 (optional)
1154
-
1155
- **Users can skip Phase 3**:
1156
-
1157
- **Skip condition**:
1158
- - User explicitly selects “Skip”
1159
- - “Simple project” when Alfred automatically determines (only basic features required)
1160
-
1161
- **Skip effect**:
1162
- - Maintain all 37 skills (no lightweighting)
1163
- - Maintain default 9 agents in CLAUDE.md template
1164
- - Maintain `optimized: false` in config.json
1165
-
1166
- ---
1167
-
1168
- ## Next steps
1169
-
1170
- **Recommendation**: For better performance and context management, start a new chat session with the `/clear` or `/new` command before proceeding to the next step.
1171
-
1172
- After initialization is complete:
1173
-
1174
- - **New project**: Run `/alfred:1-plan` to create design-based SPEC backlog
1175
- - **Legacy project**: Review @CODE/@CODE/TODO items in product/structure/tech document and confirm priority
1176
- - **Set Change**: Run `/alfred:0-project` again to update document
1177
- - **Template optimization**: Run `/alfred:0-project update` after `moai-adk update`
1178
-
1179
- ## Related commands
1180
-
1181
- - `/alfred:1-plan` - Start writing SPEC
1182
- - `/alfred:9-update` - MoAI-ADK update
1183
- - `moai doctor` - System diagnosis
1184
- - `moai status` - Check project status