moai-adk 0.34.0__py3-none-any.whl → 1.1.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 (524) hide show
  1. moai_adk/__main__.py +136 -5
  2. moai_adk/astgrep/__init__.py +37 -0
  3. moai_adk/astgrep/analyzer.py +522 -0
  4. moai_adk/astgrep/models.py +124 -0
  5. moai_adk/astgrep/rules.py +179 -0
  6. moai_adk/cli/commands/analyze.py +11 -2
  7. moai_adk/cli/commands/doctor.py +7 -1
  8. moai_adk/cli/commands/init.py +321 -11
  9. moai_adk/cli/commands/language.py +7 -1
  10. moai_adk/cli/commands/rank.py +449 -0
  11. moai_adk/cli/commands/status.py +7 -1
  12. moai_adk/cli/commands/switch.py +325 -0
  13. moai_adk/cli/commands/update.py +296 -23
  14. moai_adk/cli/prompts/init_prompts.py +362 -66
  15. moai_adk/cli/prompts/translations/__init__.py +573 -0
  16. moai_adk/cli/ui/prompts.py +61 -2
  17. moai_adk/cli/worktree/cli.py +106 -1
  18. moai_adk/cli/worktree/manager.py +155 -0
  19. moai_adk/core/config/unified.py +244 -63
  20. moai_adk/core/credentials.py +264 -0
  21. moai_adk/core/error_recovery_system.py +22 -4
  22. moai_adk/core/git/conflict_detector.py +10 -1
  23. moai_adk/core/git/event_detector.py +16 -5
  24. moai_adk/core/integration/engine.py +2 -2
  25. moai_adk/core/integration/integration_tester.py +5 -5
  26. moai_adk/core/language_config_resolver.py +9 -3
  27. moai_adk/core/merge/analyzer.py +509 -324
  28. moai_adk/core/migration/alfred_to_moai_migrator.py +7 -1
  29. moai_adk/core/migration/backup_manager.py +54 -4
  30. moai_adk/core/migration/file_migrator.py +174 -2
  31. moai_adk/core/migration/interactive_checkbox_ui.py +42 -31
  32. moai_adk/core/migration/version_detector.py +123 -19
  33. moai_adk/core/migration/version_migrator.py +44 -9
  34. moai_adk/core/model_allocator.py +241 -0
  35. moai_adk/core/project/backup_utils.py +12 -2
  36. moai_adk/core/project/initializer.py +44 -87
  37. moai_adk/core/project/phase_executor.py +95 -33
  38. moai_adk/core/project/validator.py +16 -1
  39. moai_adk/core/quality/trust_checker.py +30 -10
  40. moai_adk/core/rollback_manager.py +60 -25
  41. moai_adk/core/template/backup.py +88 -6
  42. moai_adk/core/template/config.py +33 -9
  43. moai_adk/core/template/merger.py +34 -8
  44. moai_adk/core/template/processor.py +334 -11
  45. moai_adk/core/template_engine.py +10 -1
  46. moai_adk/core/template_variable_synchronizer.py +16 -2
  47. moai_adk/core/version_sync.py +54 -6
  48. moai_adk/foundation/__init__.py +1 -20
  49. moai_adk/foundation/testing.py +1 -1
  50. moai_adk/loop/__init__.py +54 -0
  51. moai_adk/loop/controller.py +305 -0
  52. moai_adk/loop/feedback.py +230 -0
  53. moai_adk/loop/state.py +209 -0
  54. moai_adk/loop/storage.py +220 -0
  55. moai_adk/lsp/__init__.py +70 -0
  56. moai_adk/lsp/client.py +320 -0
  57. moai_adk/lsp/models.py +261 -0
  58. moai_adk/lsp/protocol.py +404 -0
  59. moai_adk/lsp/server_manager.py +248 -0
  60. moai_adk/project/configuration.py +8 -1
  61. moai_adk/py.typed +0 -0
  62. moai_adk/ralph/__init__.py +37 -0
  63. moai_adk/ralph/engine.py +307 -0
  64. moai_adk/rank/__init__.py +21 -0
  65. moai_adk/rank/auth.py +425 -0
  66. moai_adk/rank/client.py +557 -0
  67. moai_adk/rank/config.py +147 -0
  68. moai_adk/rank/hook.py +1503 -0
  69. moai_adk/rank/py.typed +0 -0
  70. moai_adk/statusline/__init__.py +3 -0
  71. moai_adk/statusline/enhanced_output_style_detector.py +5 -5
  72. moai_adk/statusline/main.py +20 -1
  73. moai_adk/statusline/memory_collector.py +268 -0
  74. moai_adk/statusline/renderer.py +54 -38
  75. moai_adk/tag_system/__init__.py +48 -0
  76. moai_adk/tag_system/atomic_ops.py +117 -0
  77. moai_adk/tag_system/linkage.py +335 -0
  78. moai_adk/tag_system/parser.py +176 -0
  79. moai_adk/tag_system/validator.py +200 -0
  80. moai_adk/templates/.claude/agents/moai/builder-agent.md +19 -3
  81. moai_adk/templates/.claude/agents/moai/builder-command.md +62 -16
  82. moai_adk/templates/.claude/agents/moai/builder-plugin.md +763 -0
  83. moai_adk/templates/.claude/agents/moai/builder-skill.md +21 -5
  84. moai_adk/templates/.claude/agents/moai/expert-backend.md +103 -39
  85. moai_adk/templates/.claude/agents/moai/expert-debug.md +9 -3
  86. moai_adk/templates/.claude/agents/moai/expert-devops.md +16 -14
  87. moai_adk/templates/.claude/agents/moai/expert-frontend.md +45 -31
  88. moai_adk/templates/.claude/agents/moai/expert-performance.md +13 -9
  89. moai_adk/templates/.claude/agents/moai/expert-refactoring.md +228 -0
  90. moai_adk/templates/.claude/agents/moai/expert-security.md +19 -3
  91. moai_adk/templates/.claude/agents/moai/expert-testing.md +13 -9
  92. moai_adk/templates/.claude/agents/moai/manager-claude-code.md +8 -2
  93. moai_adk/templates/.claude/agents/moai/manager-docs.md +10 -5
  94. moai_adk/templates/.claude/agents/moai/manager-git.md +99 -27
  95. moai_adk/templates/.claude/agents/moai/manager-project.md +87 -7
  96. moai_adk/templates/.claude/agents/moai/manager-quality.md +22 -5
  97. moai_adk/templates/.claude/agents/moai/manager-spec.md +8 -2
  98. moai_adk/templates/.claude/agents/moai/manager-strategy.md +45 -14
  99. moai_adk/templates/.claude/agents/moai/manager-tdd.md +16 -3
  100. moai_adk/templates/.claude/commands/moai/0-project.md +239 -1185
  101. moai_adk/templates/.claude/commands/moai/1-plan.md +383 -363
  102. moai_adk/templates/.claude/commands/moai/2-run.md +254 -347
  103. moai_adk/templates/.claude/commands/moai/3-sync.md +174 -100
  104. moai_adk/templates/.claude/commands/moai/9-feedback.md +49 -33
  105. moai_adk/templates/.claude/commands/moai/alfred.md +339 -0
  106. moai_adk/templates/.claude/commands/moai/cancel-loop.md +163 -0
  107. moai_adk/templates/.claude/commands/moai/fix.md +264 -0
  108. moai_adk/templates/.claude/commands/moai/loop.md +363 -0
  109. moai_adk/templates/.claude/hooks/moai/lib/README.md +143 -0
  110. moai_adk/templates/.claude/hooks/moai/lib/__init__.py +37 -81
  111. moai_adk/templates/.claude/hooks/moai/lib/alfred_detector.py +105 -0
  112. moai_adk/templates/.claude/hooks/moai/lib/atomic_write.py +122 -0
  113. moai_adk/templates/.claude/hooks/moai/lib/checkpoint.py +4 -1
  114. moai_adk/templates/.claude/hooks/moai/lib/common.py +35 -5
  115. moai_adk/templates/.claude/hooks/moai/lib/config.py +376 -0
  116. moai_adk/templates/.claude/hooks/moai/lib/config_manager.py +24 -28
  117. moai_adk/templates/.claude/hooks/moai/lib/config_validator.py +14 -14
  118. moai_adk/templates/.claude/hooks/moai/lib/enhanced_output_style_detector.py +372 -0
  119. moai_adk/templates/.claude/hooks/moai/lib/exceptions.py +171 -0
  120. moai_adk/templates/.claude/hooks/moai/lib/file_utils.py +95 -0
  121. moai_adk/templates/.claude/hooks/moai/lib/git_collector.py +190 -0
  122. moai_adk/templates/.claude/hooks/moai/lib/git_operations_manager.py +15 -13
  123. moai_adk/templates/.claude/hooks/moai/lib/language_detector.py +298 -0
  124. moai_adk/templates/.claude/hooks/moai/lib/language_validator.py +125 -25
  125. moai_adk/templates/.claude/hooks/moai/lib/main.py +341 -0
  126. moai_adk/templates/.claude/hooks/moai/lib/memory_collector.py +268 -0
  127. moai_adk/templates/.claude/hooks/moai/lib/metrics_tracker.py +78 -0
  128. moai_adk/templates/.claude/hooks/moai/lib/models.py +9 -7
  129. moai_adk/templates/.claude/hooks/moai/lib/path_utils.py +204 -13
  130. moai_adk/templates/.claude/hooks/moai/lib/project.py +23 -14
  131. moai_adk/templates/.claude/hooks/moai/lib/renderer.py +359 -0
  132. moai_adk/templates/.claude/hooks/moai/lib/tag_linkage.py +333 -0
  133. moai_adk/templates/.claude/hooks/moai/lib/tag_parser.py +176 -0
  134. moai_adk/templates/.claude/hooks/moai/lib/tag_validator.py +200 -0
  135. moai_adk/templates/.claude/hooks/moai/lib/timeout.py +5 -5
  136. moai_adk/templates/.claude/hooks/moai/lib/tool_registry.py +896 -0
  137. moai_adk/templates/.claude/hooks/moai/lib/unified_timeout_manager.py +30 -18
  138. moai_adk/templates/.claude/hooks/moai/lib/update_checker.py +129 -0
  139. moai_adk/templates/.claude/hooks/moai/lib/version_reader.py +741 -0
  140. moai_adk/templates/.claude/hooks/moai/post_tool__ast_grep_scan.py +276 -0
  141. moai_adk/templates/.claude/hooks/moai/post_tool__code_formatter.py +255 -0
  142. moai_adk/templates/.claude/hooks/moai/post_tool__coverage_guard.py +325 -0
  143. moai_adk/templates/.claude/hooks/moai/post_tool__linter.py +315 -0
  144. moai_adk/templates/.claude/hooks/moai/post_tool__lsp_diagnostic.py +508 -0
  145. moai_adk/templates/.claude/hooks/moai/pre_commit__tag_validator.py +287 -0
  146. moai_adk/templates/.claude/hooks/moai/pre_tool__security_guard.py +268 -0
  147. moai_adk/templates/.claude/hooks/moai/pre_tool__tdd_enforcer.py +208 -0
  148. moai_adk/templates/.claude/hooks/moai/session_end__auto_cleanup.py +93 -61
  149. moai_adk/templates/.claude/hooks/moai/session_end__rank_submit.py +69 -0
  150. moai_adk/templates/.claude/hooks/moai/session_start__show_project_info.py +165 -70
  151. moai_adk/templates/.claude/hooks/moai/shared/utils/announcement_translator.py +206 -0
  152. moai_adk/templates/.claude/hooks/moai/stop__loop_controller.py +621 -0
  153. moai_adk/templates/.claude/output-styles/moai/alfred.md +758 -0
  154. moai_adk/templates/.claude/output-styles/moai/r2d2.md +86 -3
  155. moai_adk/templates/.claude/output-styles/moai/yoda.md +2 -2
  156. moai_adk/templates/.claude/settings.json +154 -77
  157. moai_adk/templates/.claude/skills/moai-docs-generation/SKILL.md +252 -198
  158. moai_adk/templates/.claude/skills/moai-docs-generation/examples.md +169 -323
  159. moai_adk/templates/.claude/skills/moai-docs-generation/modules/README.md +39 -27
  160. moai_adk/templates/.claude/skills/moai-docs-generation/modules/api-documentation.md +115 -125
  161. moai_adk/templates/.claude/skills/moai-docs-generation/modules/code-documentation.md +150 -150
  162. moai_adk/templates/.claude/skills/moai-docs-generation/modules/multi-format-output.md +182 -175
  163. moai_adk/templates/.claude/skills/moai-docs-generation/modules/user-guides.md +198 -138
  164. moai_adk/templates/.claude/skills/moai-docs-generation/reference.md +226 -320
  165. moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +43 -222
  166. moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +75 -219
  167. moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +103 -463
  168. moai_adk/templates/.claude/skills/moai-domain-frontend/modules/component-architecture.md +723 -0
  169. moai_adk/templates/.claude/skills/moai-domain-frontend/modules/nextjs16-patterns.md +713 -0
  170. moai_adk/templates/.claude/skills/moai-domain-frontend/modules/performance-optimization.md +694 -0
  171. moai_adk/templates/.claude/skills/moai-domain-frontend/modules/react19-patterns.md +591 -0
  172. moai_adk/templates/.claude/skills/moai-domain-frontend/modules/state-management.md +680 -0
  173. moai_adk/templates/.claude/skills/moai-domain-frontend/modules/vue35-patterns.md +802 -0
  174. moai_adk/templates/.claude/skills/moai-domain-uiux/SKILL.md +118 -339
  175. moai_adk/templates/.claude/skills/moai-formats-data/SKILL.md +74 -377
  176. moai_adk/templates/.claude/skills/moai-formats-data/modules/README.md +299 -70
  177. moai_adk/templates/.claude/skills/moai-foundation-claude/SKILL.md +205 -182
  178. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/advanced-agent-patterns.md +370 -0
  179. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-cli-reference-official.md +420 -0
  180. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-custom-slash-commands-official.md +32 -22
  181. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-devcontainers-official.md +381 -0
  182. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-discover-plugins-official.md +379 -0
  183. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-headless-official.md +378 -0
  184. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-hooks-official.md +110 -0
  185. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-plugin-marketplaces-official.md +308 -0
  186. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-plugins-official.md +640 -0
  187. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-sandboxing-official.md +282 -0
  188. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-skills-official.md +425 -71
  189. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-statusline-official.md +293 -0
  190. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-sub-agents-official.md +325 -143
  191. moai_adk/templates/.claude/skills/moai-foundation-context/SKILL.md +96 -316
  192. moai_adk/templates/.claude/skills/moai-foundation-core/SKILL.md +116 -294
  193. moai_adk/templates/.claude/skills/moai-foundation-core/modules/delegation-advanced.md +279 -0
  194. moai_adk/templates/.claude/skills/moai-foundation-core/modules/delegation-implementation.md +267 -0
  195. moai_adk/templates/.claude/skills/moai-foundation-core/modules/delegation-patterns.md +121 -650
  196. moai_adk/templates/.claude/skills/moai-foundation-core/modules/patterns.md +22 -0
  197. moai_adk/templates/.claude/skills/moai-foundation-core/modules/spec-ears-format.md +200 -0
  198. moai_adk/templates/.claude/skills/moai-foundation-core/modules/spec-first-tdd.md +37 -730
  199. moai_adk/templates/.claude/skills/moai-foundation-core/modules/spec-tdd-implementation.md +275 -0
  200. moai_adk/templates/.claude/skills/moai-foundation-core/modules/trust-5-framework.md +77 -819
  201. moai_adk/templates/.claude/skills/moai-foundation-core/modules/trust-5-implementation.md +244 -0
  202. moai_adk/templates/.claude/skills/moai-foundation-core/modules/trust-5-validation.md +219 -0
  203. moai_adk/templates/.claude/skills/moai-foundation-philosopher/SKILL.md +14 -18
  204. moai_adk/templates/.claude/skills/moai-foundation-quality/SKILL.md +86 -270
  205. moai_adk/templates/.claude/skills/moai-framework-electron/SKILL.md +288 -0
  206. moai_adk/templates/.claude/skills/moai-framework-electron/examples.md +2082 -0
  207. moai_adk/templates/.claude/skills/moai-framework-electron/reference.md +1649 -0
  208. moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +76 -582
  209. moai_adk/templates/.claude/skills/moai-lang-cpp/examples.md +1239 -0
  210. moai_adk/templates/.claude/skills/moai-lang-cpp/modules/advanced-patterns.md +401 -0
  211. moai_adk/templates/.claude/skills/moai-lang-cpp/reference.md +1136 -0
  212. moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +82 -436
  213. moai_adk/templates/.claude/skills/moai-lang-csharp/examples.md +585 -0
  214. moai_adk/templates/.claude/skills/moai-lang-csharp/modules/aspnet-core.md +627 -0
  215. moai_adk/templates/.claude/skills/moai-lang-csharp/modules/blazor-components.md +767 -0
  216. moai_adk/templates/.claude/skills/moai-lang-csharp/modules/cqrs-validation.md +626 -0
  217. moai_adk/templates/.claude/skills/moai-lang-csharp/modules/csharp12-features.md +580 -0
  218. moai_adk/templates/.claude/skills/moai-lang-csharp/modules/efcore-patterns.md +622 -0
  219. moai_adk/templates/.claude/skills/moai-lang-csharp/reference.md +403 -0
  220. moai_adk/templates/.claude/skills/moai-lang-elixir/SKILL.md +65 -542
  221. moai_adk/templates/.claude/skills/moai-lang-elixir/examples.md +1171 -0
  222. moai_adk/templates/.claude/skills/moai-lang-elixir/modules/advanced-patterns.md +531 -0
  223. moai_adk/templates/.claude/skills/moai-lang-elixir/reference.md +889 -0
  224. moai_adk/templates/.claude/skills/moai-lang-flutter/SKILL.md +32 -405
  225. moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +114 -293
  226. moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +83 -307
  227. moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +179 -0
  228. moai_adk/templates/.claude/skills/moai-lang-javascript/examples.md +973 -0
  229. moai_adk/templates/.claude/skills/moai-lang-javascript/reference.md +1543 -0
  230. moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +42 -279
  231. moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +94 -556
  232. moai_adk/templates/.claude/skills/moai-lang-php/examples.md +1608 -0
  233. moai_adk/templates/.claude/skills/moai-lang-php/modules/advanced-patterns.md +538 -0
  234. moai_adk/templates/.claude/skills/moai-lang-php/reference.md +1323 -0
  235. moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +108 -358
  236. moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +84 -482
  237. moai_adk/templates/.claude/skills/moai-lang-r/examples.md +1154 -0
  238. moai_adk/templates/.claude/skills/moai-lang-r/modules/advanced-patterns.md +489 -0
  239. moai_adk/templates/.claude/skills/moai-lang-r/reference.md +1087 -0
  240. moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +106 -610
  241. moai_adk/templates/.claude/skills/moai-lang-ruby/examples.md +1106 -0
  242. moai_adk/templates/.claude/skills/moai-lang-ruby/modules/advanced-patterns.md +309 -0
  243. moai_adk/templates/.claude/skills/moai-lang-ruby/modules/testing-patterns.md +306 -0
  244. moai_adk/templates/.claude/skills/moai-lang-ruby/reference.md +1024 -0
  245. moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +51 -265
  246. moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +106 -442
  247. moai_adk/templates/.claude/skills/moai-lang-scala/modules/akka-actors.md +479 -0
  248. moai_adk/templates/.claude/skills/moai-lang-scala/modules/cats-effect.md +489 -0
  249. moai_adk/templates/.claude/skills/moai-lang-scala/modules/functional-programming.md +460 -0
  250. moai_adk/templates/.claude/skills/moai-lang-scala/modules/spark-data.md +498 -0
  251. moai_adk/templates/.claude/skills/moai-lang-scala/modules/zio-patterns.md +541 -0
  252. moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +88 -457
  253. moai_adk/templates/.claude/skills/moai-lang-swift/modules/combine-reactive.md +256 -0
  254. moai_adk/templates/.claude/skills/moai-lang-swift/modules/concurrency.md +270 -0
  255. moai_adk/templates/.claude/skills/moai-lang-swift/modules/swift6-features.md +265 -0
  256. moai_adk/templates/.claude/skills/moai-lang-swift/modules/swiftui-patterns.md +314 -0
  257. moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +75 -283
  258. moai_adk/templates/.claude/skills/moai-library-mermaid/SKILL.md +97 -252
  259. moai_adk/templates/.claude/skills/moai-library-nextra/SKILL.md +64 -240
  260. moai_adk/templates/.claude/skills/moai-library-nextra/modules/advanced-patterns.md +331 -12
  261. moai_adk/templates/.claude/skills/moai-library-nextra/modules/configuration.md +330 -37
  262. moai_adk/templates/.claude/skills/moai-library-shadcn/SKILL.md +90 -287
  263. moai_adk/templates/.claude/skills/moai-platform-auth0/SKILL.md +200 -206
  264. moai_adk/templates/.claude/skills/moai-platform-auth0/examples.md +2446 -0
  265. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/adaptive-mfa.md +233 -0
  266. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/akamai-integration.md +214 -0
  267. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/application-credentials.md +280 -0
  268. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/attack-protection-log-events.md +224 -0
  269. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/attack-protection-overview.md +140 -0
  270. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/bot-detection.md +144 -0
  271. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/breached-password-detection.md +187 -0
  272. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/brute-force-protection.md +189 -0
  273. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/certifications.md +282 -0
  274. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/compliance-overview.md +263 -0
  275. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/continuous-session-protection.md +307 -0
  276. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/customize-mfa.md +177 -0
  277. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/dpop-implementation.md +283 -0
  278. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/fapi-implementation.md +259 -0
  279. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/gdpr-compliance.md +313 -0
  280. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/guardian-configuration.md +269 -0
  281. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/highly-regulated-identity.md +272 -0
  282. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/jwt-fundamentals.md +248 -0
  283. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/mdl-verification.md +210 -0
  284. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/mfa-api-management.md +278 -0
  285. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/mfa-factors.md +226 -0
  286. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/mfa-overview.md +174 -0
  287. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/mtls-sender-constraining.md +316 -0
  288. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/ropg-flow-mfa.md +216 -0
  289. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/security-center.md +325 -0
  290. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/security-guidance.md +277 -0
  291. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/state-parameters.md +177 -0
  292. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/step-up-authentication.md +251 -0
  293. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/suspicious-ip-throttling.md +240 -0
  294. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/tenant-access-control.md +179 -0
  295. moai_adk/templates/.claude/skills/moai-platform-auth0/modules/webauthn-fido.md +235 -0
  296. moai_adk/templates/.claude/skills/moai-platform-auth0/reference.md +224 -0
  297. moai_adk/templates/.claude/skills/moai-platform-clerk/SKILL.md +75 -330
  298. moai_adk/templates/.claude/skills/moai-platform-clerk/examples.md +1426 -0
  299. moai_adk/templates/.claude/skills/moai-platform-clerk/modules/advanced-patterns.md +417 -0
  300. moai_adk/templates/.claude/skills/moai-platform-clerk/reference.md +273 -0
  301. moai_adk/templates/.claude/skills/moai-platform-convex/SKILL.md +100 -340
  302. moai_adk/templates/.claude/skills/moai-platform-convex/examples.md +506 -0
  303. moai_adk/templates/.claude/skills/moai-platform-convex/modules/auth-integration.md +421 -0
  304. moai_adk/templates/.claude/skills/moai-platform-convex/modules/file-storage.md +474 -0
  305. moai_adk/templates/.claude/skills/moai-platform-convex/modules/reactive-queries.md +302 -0
  306. moai_adk/templates/.claude/skills/moai-platform-convex/modules/server-functions.md +452 -0
  307. moai_adk/templates/.claude/skills/moai-platform-convex/reference.md +385 -0
  308. moai_adk/templates/.claude/skills/moai-platform-firebase-auth/SKILL.md +113 -326
  309. moai_adk/templates/.claude/skills/moai-platform-firebase-auth/examples.md +514 -0
  310. moai_adk/templates/.claude/skills/moai-platform-firebase-auth/modules/custom-claims.md +374 -0
  311. moai_adk/templates/.claude/skills/moai-platform-firebase-auth/modules/phone-auth.md +372 -0
  312. moai_adk/templates/.claude/skills/moai-platform-firebase-auth/modules/social-auth.md +339 -0
  313. moai_adk/templates/.claude/skills/moai-platform-firebase-auth/reference.md +382 -0
  314. moai_adk/templates/.claude/skills/moai-platform-firestore/SKILL.md +71 -302
  315. moai_adk/templates/.claude/skills/moai-platform-firestore/examples.md +445 -0
  316. moai_adk/templates/.claude/skills/moai-platform-firestore/modules/offline-cache.md +392 -0
  317. moai_adk/templates/.claude/skills/moai-platform-firestore/modules/realtime-listeners.md +441 -0
  318. moai_adk/templates/.claude/skills/moai-platform-firestore/modules/security-rules.md +352 -0
  319. moai_adk/templates/.claude/skills/moai-platform-firestore/modules/transactions.md +452 -0
  320. moai_adk/templates/.claude/skills/moai-platform-firestore/reference.md +322 -0
  321. moai_adk/templates/.claude/skills/moai-platform-neon/SKILL.md +101 -412
  322. moai_adk/templates/.claude/skills/moai-platform-neon/examples.md +470 -0
  323. moai_adk/templates/.claude/skills/moai-platform-neon/modules/auto-scaling.md +349 -0
  324. moai_adk/templates/.claude/skills/moai-platform-neon/modules/branching-workflows.md +354 -0
  325. moai_adk/templates/.claude/skills/moai-platform-neon/modules/connection-pooling.md +412 -0
  326. moai_adk/templates/.claude/skills/moai-platform-neon/modules/pitr-backups.md +458 -0
  327. moai_adk/templates/.claude/skills/moai-platform-neon/reference.md +272 -0
  328. moai_adk/templates/.claude/skills/moai-platform-railway/SKILL.md +96 -327
  329. moai_adk/templates/.claude/skills/moai-platform-railway/examples.md +539 -0
  330. moai_adk/templates/.claude/skills/moai-platform-railway/modules/docker-deployment.md +261 -0
  331. moai_adk/templates/.claude/skills/moai-platform-railway/modules/multi-service.md +291 -0
  332. moai_adk/templates/.claude/skills/moai-platform-railway/modules/networking-domains.md +338 -0
  333. moai_adk/templates/.claude/skills/moai-platform-railway/modules/volumes-storage.md +353 -0
  334. moai_adk/templates/.claude/skills/moai-platform-railway/reference.md +374 -0
  335. moai_adk/templates/.claude/skills/moai-platform-supabase/SKILL.md +103 -428
  336. moai_adk/templates/.claude/skills/moai-platform-supabase/examples.md +502 -0
  337. moai_adk/templates/.claude/skills/moai-platform-supabase/modules/auth-integration.md +384 -0
  338. moai_adk/templates/.claude/skills/moai-platform-supabase/modules/edge-functions.md +371 -0
  339. moai_adk/templates/.claude/skills/moai-platform-supabase/modules/postgresql-pgvector.md +231 -0
  340. moai_adk/templates/.claude/skills/moai-platform-supabase/modules/realtime-presence.md +354 -0
  341. moai_adk/templates/.claude/skills/moai-platform-supabase/modules/row-level-security.md +286 -0
  342. moai_adk/templates/.claude/skills/moai-platform-supabase/modules/storage-cdn.md +319 -0
  343. moai_adk/templates/.claude/skills/moai-platform-supabase/modules/typescript-patterns.md +453 -0
  344. moai_adk/templates/.claude/skills/moai-platform-supabase/reference.md +284 -0
  345. moai_adk/templates/.claude/skills/moai-platform-vercel/SKILL.md +96 -446
  346. moai_adk/templates/.claude/skills/moai-platform-vercel/examples.md +502 -0
  347. moai_adk/templates/.claude/skills/moai-platform-vercel/modules/analytics-speed.md +348 -0
  348. moai_adk/templates/.claude/skills/moai-platform-vercel/modules/deployment-config.md +344 -0
  349. moai_adk/templates/.claude/skills/moai-platform-vercel/modules/edge-functions.md +222 -0
  350. moai_adk/templates/.claude/skills/moai-platform-vercel/modules/isr-caching.md +306 -0
  351. moai_adk/templates/.claude/skills/moai-platform-vercel/modules/kv-storage.md +399 -0
  352. moai_adk/templates/.claude/skills/moai-platform-vercel/reference.md +360 -0
  353. moai_adk/templates/.claude/skills/moai-tool-ast-grep/SKILL.md +193 -0
  354. moai_adk/templates/.claude/skills/moai-tool-ast-grep/examples.md +1099 -0
  355. moai_adk/templates/.claude/skills/moai-tool-ast-grep/modules/language-specific.md +307 -0
  356. moai_adk/templates/.claude/skills/moai-tool-ast-grep/modules/pattern-syntax.md +237 -0
  357. moai_adk/templates/.claude/skills/moai-tool-ast-grep/modules/refactoring-patterns.md +260 -0
  358. moai_adk/templates/.claude/skills/moai-tool-ast-grep/modules/security-rules.md +239 -0
  359. moai_adk/templates/.claude/skills/moai-tool-ast-grep/reference.md +288 -0
  360. moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/languages/go.yml +90 -0
  361. moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/languages/python.yml +101 -0
  362. moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/languages/typescript.yml +83 -0
  363. moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/quality/complexity-check.yml +94 -0
  364. moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/quality/deprecated-apis.yml +84 -0
  365. moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/security/secrets-detection.yml +89 -0
  366. moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/security/sql-injection.yml +45 -0
  367. moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/security/xss-prevention.yml +50 -0
  368. moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/sgconfig.yml +54 -0
  369. moai_adk/templates/.claude/skills/moai-workflow-jit-docs/SKILL.md +225 -423
  370. moai_adk/templates/.claude/skills/moai-workflow-loop/SKILL.md +197 -0
  371. moai_adk/templates/.claude/skills/moai-workflow-loop/examples.md +1063 -0
  372. moai_adk/templates/.claude/skills/moai-workflow-loop/reference.md +1414 -0
  373. moai_adk/templates/.claude/skills/moai-workflow-project/SKILL.md +211 -314
  374. moai_adk/templates/.claude/skills/moai-workflow-project/schemas/tab_schema.json +15 -43
  375. moai_adk/templates/.claude/skills/moai-workflow-spec/SKILL.md +119 -316
  376. moai_adk/templates/.claude/skills/moai-workflow-spec/modules/advanced-patterns.md +237 -0
  377. moai_adk/templates/.claude/skills/moai-workflow-templates/SKILL.md +96 -203
  378. moai_adk/templates/.claude/skills/moai-workflow-testing/SKILL.md +201 -388
  379. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/README.md +52 -3
  380. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/ai-debugging.md +263 -806
  381. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/context7-integration.md +286 -0
  382. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/review-workflows.md +500 -0
  383. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/trust5-framework/relevance-analysis.md +154 -0
  384. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/trust5-framework/safety-analysis.md +148 -0
  385. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/trust5-framework/scoring-algorithms.md +196 -0
  386. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/trust5-framework/timeliness-analysis.md +168 -0
  387. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/trust5-framework/truthfulness-analysis.md +136 -0
  388. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/trust5-framework/usability-analysis.md +153 -0
  389. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/trust5-framework.md +257 -0
  390. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review.md +191 -1344
  391. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/code-review/analysis-patterns.md +340 -0
  392. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/code-review/core-classes.md +299 -0
  393. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/code-review/tool-integration.md +380 -0
  394. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/debugging/debugging-workflows.md +451 -0
  395. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/debugging/error-analysis.md +442 -0
  396. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance/optimization-patterns.md +473 -0
  397. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance/profiling-techniques.md +481 -0
  398. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance-optimization/ai-optimization.md +241 -0
  399. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance-optimization/bottleneck-detection.md +397 -0
  400. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance-optimization/optimization-plan.md +315 -0
  401. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance-optimization/profiler-core.md +277 -0
  402. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance-optimization/real-time-monitoring.md +187 -0
  403. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance-optimization.md +287 -1194
  404. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/quality-metrics.md +415 -0
  405. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/refactoring/ai-workflows.md +620 -0
  406. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/refactoring/patterns.md +692 -0
  407. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/security-analysis.md +429 -0
  408. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/smart-refactoring.md +262 -1192
  409. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/static-analysis.md +438 -0
  410. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/tdd/core-classes.md +397 -0
  411. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/tdd-context7/advanced-features.md +494 -0
  412. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/tdd-context7/red-green-refactor.md +316 -0
  413. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/tdd-context7/test-generation.md +471 -0
  414. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/tdd-context7/test-patterns.md +371 -0
  415. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/tdd-context7.md +227 -1222
  416. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/trust5-validation.md +428 -0
  417. moai_adk/templates/.claude/skills/moai-workflow-worktree/SKILL.md +228 -0
  418. moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/integration-patterns.md +149 -0
  419. moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/moai-adk-integration.md +245 -0
  420. moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/parallel-advanced.md +310 -0
  421. moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/parallel-development.md +202 -0
  422. moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/parallel-workflows.md +302 -0
  423. moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/registry-architecture.md +271 -0
  424. moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/resource-optimization.md +300 -0
  425. moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/tools-integration.md +280 -0
  426. moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/troubleshooting.md +397 -0
  427. moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/worktree-commands.md +296 -0
  428. moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/worktree-management.md +217 -0
  429. moai_adk/templates/.git-hooks/pre-push +162 -59
  430. moai_adk/templates/.github/workflows/ci-universal.yml +934 -133
  431. moai_adk/templates/.gitignore +65 -107
  432. moai_adk/templates/.lsp.json +152 -0
  433. moai_adk/templates/.mcp.json +2 -20
  434. moai_adk/templates/.moai/announcements/en.json +18 -0
  435. moai_adk/templates/.moai/announcements/ja.json +18 -0
  436. moai_adk/templates/.moai/announcements/ko.json +18 -0
  437. moai_adk/templates/.moai/announcements/zh.json +18 -0
  438. moai_adk/templates/.moai/config/config.yaml +8 -2
  439. moai_adk/templates/.moai/config/multilingual-triggers.yaml +213 -0
  440. moai_adk/templates/.moai/config/sections/language.yaml +2 -2
  441. moai_adk/templates/.moai/config/sections/llm.yaml +41 -0
  442. moai_adk/templates/.moai/config/sections/pricing.yaml +30 -0
  443. moai_adk/templates/.moai/config/sections/project.yaml +2 -2
  444. moai_adk/templates/.moai/config/sections/quality.yaml +43 -5
  445. moai_adk/templates/.moai/config/sections/ralph.yaml +55 -0
  446. moai_adk/templates/.moai/config/sections/system.yaml +46 -1
  447. moai_adk/templates/.moai/config/sections/user.yaml +1 -1
  448. moai_adk/templates/.moai/config/statusline-config.yaml +2 -2
  449. moai_adk/templates/.moai/llm-configs/glm.json +22 -0
  450. moai_adk/templates/CLAUDE.ja.md +343 -0
  451. moai_adk/templates/CLAUDE.ko.md +343 -0
  452. moai_adk/templates/CLAUDE.md +200 -499
  453. moai_adk/templates/CLAUDE.zh.md +343 -0
  454. moai_adk/utils/common.py +37 -0
  455. moai_adk/version.py +1 -1
  456. moai_adk-1.1.0.dist-info/METADATA +2443 -0
  457. moai_adk-1.1.0.dist-info/RECORD +701 -0
  458. {moai_adk-0.34.0.dist-info → moai_adk-1.1.0.dist-info}/entry_points.txt +2 -0
  459. moai_adk-1.1.0.dist-info/licenses/LICENSE +99 -0
  460. moai_adk/core/config/auto_spec_config.py +0 -340
  461. moai_adk/core/hooks/post_tool_auto_spec_completion.py +0 -901
  462. moai_adk/core/spec/confidence_scoring.py +0 -680
  463. moai_adk/core/spec/ears_template_engine.py +0 -1247
  464. moai_adk/core/spec/quality_validator.py +0 -687
  465. moai_adk/templates/.claude/agents/moai/ai-nano-banana.md +0 -670
  466. moai_adk/templates/.claude/agents/moai/expert-database.md +0 -777
  467. moai_adk/templates/.claude/agents/moai/expert-uiux.md +0 -1041
  468. moai_adk/templates/.claude/agents/moai/mcp-context7.md +0 -458
  469. moai_adk/templates/.claude/agents/moai/mcp-figma.md +0 -1607
  470. moai_adk/templates/.claude/agents/moai/mcp-notion.md +0 -789
  471. moai_adk/templates/.claude/agents/moai/mcp-playwright.md +0 -469
  472. moai_adk/templates/.claude/agents/moai/mcp-sequential-thinking.md +0 -1032
  473. moai_adk/templates/.claude/skills/moai-ai-nano-banana/SKILL.md +0 -438
  474. moai_adk/templates/.claude/skills/moai-ai-nano-banana/examples.md +0 -431
  475. moai_adk/templates/.claude/skills/moai-domain-uiux/modules/design-system-tokens.md +0 -405
  476. moai_adk/templates/.claude/skills/moai-library-nextra/advanced-patterns.md +0 -336
  477. moai_adk/templates/.claude/skills/moai-mcp-figma/SKILL.md +0 -402
  478. moai_adk/templates/.claude/skills/moai-mcp-figma/advanced-patterns.md +0 -607
  479. moai_adk/templates/.claude/skills/moai-mcp-notion/SKILL.md +0 -300
  480. moai_adk/templates/.claude/skills/moai-mcp-notion/advanced-patterns.md +0 -537
  481. moai_adk/templates/.claude/skills/moai-workflow-project/__init__.py +0 -520
  482. moai_adk/templates/.claude/skills/moai-workflow-project/complete_workflow_demo_fixed.py +0 -574
  483. moai_adk/templates/.claude/skills/moai-workflow-project/examples/complete_project_setup.py +0 -317
  484. moai_adk/templates/.claude/skills/moai-workflow-project/examples/complete_workflow_demo.py +0 -663
  485. moai_adk/templates/.claude/skills/moai-workflow-project/examples/config-migration-example.json +0 -190
  486. moai_adk/templates/.claude/skills/moai-workflow-project/examples/question-examples.json +0 -175
  487. moai_adk/templates/.claude/skills/moai-workflow-project/examples/quick_start.py +0 -196
  488. moai_adk/templates/.claude/skills/moai-workflow-project/modules/__init__.py +0 -17
  489. moai_adk/templates/.claude/skills/moai-workflow-project/modules/advanced-patterns.md +0 -158
  490. moai_adk/templates/.claude/skills/moai-workflow-project/modules/ask_user_integration.py +0 -340
  491. moai_adk/templates/.claude/skills/moai-workflow-project/modules/batch_questions.py +0 -713
  492. moai_adk/templates/.claude/skills/moai-workflow-project/modules/config_manager.py +0 -538
  493. moai_adk/templates/.claude/skills/moai-workflow-project/modules/documentation_manager.py +0 -1336
  494. moai_adk/templates/.claude/skills/moai-workflow-project/modules/language_initializer.py +0 -730
  495. moai_adk/templates/.claude/skills/moai-workflow-project/modules/migration_manager.py +0 -608
  496. moai_adk/templates/.claude/skills/moai-workflow-project/modules/template_optimizer.py +0 -1005
  497. moai_adk/templates/.claude/skills/moai-workflow-project/test_integration_simple.py +0 -436
  498. moai_adk/templates/.claude/skills/moai-worktree/SKILL.md +0 -411
  499. moai_adk/templates/.claude/skills/moai-worktree/modules/integration-patterns.md +0 -982
  500. moai_adk/templates/.claude/skills/moai-worktree/modules/parallel-development.md +0 -778
  501. moai_adk/templates/.claude/skills/moai-worktree/modules/worktree-commands.md +0 -646
  502. moai_adk/templates/.claude/skills/moai-worktree/modules/worktree-management.md +0 -782
  503. moai_adk/templates/.moai/config/questions/_schema.yaml +0 -151
  504. moai_adk/templates/.moai/config/questions/tab0-init.yaml +0 -251
  505. moai_adk/templates/.moai/config/questions/tab1-user.yaml +0 -108
  506. moai_adk/templates/.moai/config/questions/tab2-project.yaml +0 -81
  507. moai_adk/templates/.moai/config/questions/tab3-git.yaml +0 -634
  508. moai_adk/templates/.moai/config/questions/tab4-quality.yaml +0 -170
  509. moai_adk/templates/.moai/config/questions/tab5-system.yaml +0 -87
  510. moai_adk/templates/.moai/scripts/setup-glm.py +0 -136
  511. moai_adk-0.34.0.dist-info/METADATA +0 -2999
  512. moai_adk-0.34.0.dist-info/RECORD +0 -463
  513. moai_adk-0.34.0.dist-info/licenses/LICENSE +0 -21
  514. /moai_adk/foundation/{git.py → git/__init__.py} +0 -0
  515. /moai_adk/templates/.claude/skills/moai-library-mermaid/{advanced-patterns.md → modules/advanced-patterns.md} +0 -0
  516. /moai_adk/templates/.claude/skills/moai-library-mermaid/{optimization.md → modules/optimization.md} +0 -0
  517. /moai_adk/templates/.claude/skills/moai-library-nextra/{optimization.md → modules/optimization.md} +0 -0
  518. /moai_adk/templates/.claude/skills/moai-workflow-jit-docs/{advanced-patterns.md → modules/advanced-patterns.md} +0 -0
  519. /moai_adk/templates/.claude/skills/moai-workflow-jit-docs/{optimization.md → modules/optimization.md} +0 -0
  520. /moai_adk/templates/.claude/skills/moai-workflow-testing/{advanced-patterns.md → modules/advanced-patterns.md} +0 -0
  521. /moai_adk/templates/.claude/skills/moai-workflow-testing/{optimization.md → modules/optimization.md} +0 -0
  522. /moai_adk/templates/.claude/skills/{moai-worktree → moai-workflow-worktree}/examples.md +0 -0
  523. /moai_adk/templates/.claude/skills/{moai-worktree → moai-workflow-worktree}/reference.md +0 -0
  524. {moai_adk-0.34.0.dist-info → moai_adk-1.1.0.dist-info}/WHEEL +0 -0
@@ -1,2999 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: moai-adk
3
- Version: 0.34.0
4
- Summary: MoAI Agentic Development Kit - SPEC-First TDD with Alfred SuperAgent & Unified moai-core-* Skills
5
- Project-URL: Homepage, https://github.com/modu-ai/moai-adk
6
- Project-URL: Repository, https://github.com/modu-ai/moai-adk
7
- Project-URL: Issues, https://github.com/modu-ai/moai-adk/issues
8
- Project-URL: Changelog, https://github.com/modu-ai/moai-adk/releases
9
- Author-email: MoAI Team <support@moduai.kr>
10
- License: MIT
11
- License-File: LICENSE
12
- Keywords: agentic,ai,alfred,claude,development,spec-first,tdd,toolkit
13
- Classifier: Development Status :: 4 - Beta
14
- Classifier: Intended Audience :: Developers
15
- Classifier: License :: OSI Approved :: MIT License
16
- Classifier: Programming Language :: Python :: 3
17
- Classifier: Programming Language :: Python :: 3.11
18
- Classifier: Programming Language :: Python :: 3.12
19
- Classifier: Programming Language :: Python :: 3.13
20
- Classifier: Programming Language :: Python :: 3.14
21
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
- Classifier: Topic :: Software Development :: Quality Assurance
23
- Classifier: Topic :: Software Development :: Testing
24
- Requires-Python: >=3.11
25
- Requires-Dist: aiohttp>=3.13.2
26
- Requires-Dist: click>=8.1.0
27
- Requires-Dist: gitpython>=3.1.45
28
- Requires-Dist: google-genai>=1.0.0
29
- Requires-Dist: inquirerpy>=0.3.4
30
- Requires-Dist: jinja2>=3.0.0
31
- Requires-Dist: packaging>=21.0
32
- Requires-Dist: pillow>=10.0.0
33
- Requires-Dist: psutil>=7.1.3
34
- Requires-Dist: pyfiglet>=1.0.2
35
- Requires-Dist: pytest-asyncio>=1.2.0
36
- Requires-Dist: pytest-cov>=7.0.0
37
- Requires-Dist: pyyaml>=6.0
38
- Requires-Dist: questionary>=2.0.0
39
- Requires-Dist: requests>=2.28.0
40
- Requires-Dist: rich>=13.0.0
41
- Provides-Extra: dev
42
- Requires-Dist: black>=24.0.0; extra == 'dev'
43
- Requires-Dist: mypy>=1.7.0; extra == 'dev'
44
- Requires-Dist: pytest-cov>=7.0.0; extra == 'dev'
45
- Requires-Dist: pytest-xdist>=3.8.0; extra == 'dev'
46
- Requires-Dist: pytest>=8.4.2; extra == 'dev'
47
- Requires-Dist: ruff>=0.1.0; extra == 'dev'
48
- Requires-Dist: types-pyyaml>=6.0.0; extra == 'dev'
49
- Provides-Extra: security
50
- Requires-Dist: bandit>=1.8.0; extra == 'security'
51
- Requires-Dist: pip-audit>=2.7.0; extra == 'security'
52
- Description-Content-Type: text/markdown
53
-
54
- # 🗿 MoAI-ADK: Agentic AI-Based SPEC-First TDD Development Framework
55
-
56
- ![MoAI-ADK Hero Banner](./assets/images/readme/hero-banner-moai-adk.png)
57
-
58
- **Available Languages:** [🇰🇷 한국어](./README.ko.md) | [🇺🇸 English](./README.md) | [🇯🇵 日本語](./README.ja.md) | [🇨🇳 中文](./README.zh.md)
59
-
60
- [![PyPI version](https://img.shields.io/pypi/v/moai-adk)](https://pypi.org/project/moai-adk/)
61
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
62
- [![Python](https://img.shields.io/badge/Python-3.11--3.14-blue)](https://www.python.org/)
63
-
64
- MoAI-ADK (Agentic Development Kit) is an open-source framework that combines **SPEC-First development**, **Test-Driven Development** (TDD), and **AI agents** to deliver a complete and transparent development lifecycle.
65
-
66
- ---
67
-
68
- ## 📑 Table of Contents (Quick Navigation)
69
-
70
- ### PART A: Getting Started (30 minutes)
71
-
72
- | Section | Time | Goal |
73
- | ------------------------------------------------- | ----- | --------------------------- |
74
- | [1. Introduction](#1-introduction) | 2min | Understand what MoAI-ADK is |
75
- | [2. Installation & Setup](#2-installation--setup) | 10min | Configure basic environment |
76
- | [3. Quick Start](#3-quick-start) | 5min | Complete your first feature |
77
-
78
- ### PART B: Core Concepts (45 minutes)
79
-
80
- | Section | Time | Goal |
81
- | -------------------------------------------------- | ----- | ------------------------- |
82
- | [4. SPEC and EARS Format](#4-spec-and-ears-format) | 10min | Understand specifications |
83
- | [5. Mr.Alfred & Agents](#5-mralfred--agents) | 12min | Understand agent system |
84
- | [6. Development Workflow](#6-development-workflow) | 15min | Plan → Run → Sync |
85
- | [7. Core Commands](#7-core-commands) | 8min | `> /moai:0-3` commands |
86
-
87
- ### PART C: Advanced Learning (2-3 hours)
88
-
89
- | Section | Goal |
90
- | ----------------------------------------------------------------- | -------------------------- |
91
- | [8. Agent Guide](#8-agent-guide-24-agents) | Utilize specialized agents |
92
- | [9. Skill Library](#9-skill-library-46-skills) | Explore 46 skills |
93
- | [10. Composition Patterns](#10-composition-patterns-and-examples) | Real project examples |
94
- | [11. TRUST 5 Quality](#11-trust-5-quality-assurance) | Quality assurance system |
95
- | [12. Advanced Features](#12-advanced-features) | Git Worktree & enhanced log management |
96
-
97
- ### PART D: Advanced & Reference (As Needed)
98
-
99
- | Section | Purpose |
100
- | ------------------------------------------------------------------------------------------- | ------------------------- |
101
- | [13. Advanced Configuration](#13-advanced-configuration) | Project customization |
102
- | [14. FAQ & Quick Reference](#14-faq--quick-reference) | Common questions |
103
- | [15. 📸 ai-nano-banana Agent Usage Guide](#15---ai-nano-banana-agent-usage-guide) | Image generation guide |
104
- | [16. Additional Resources](#16-additional-resources) | Support & information |
105
-
106
- ---
107
-
108
- ## 1. Introduction
109
-
110
- ### 🗿 What is MoAI-ADK?
111
-
112
- **MoAI-ADK** (Agentic Development Kit) is a next-generation development framework powered by AI agents. It combines **SPEC-First development methodology**, **TDD** (Test-Driven Development), and **24 specialized AI agents** to deliver a complete and transparent development lifecycle.
113
-
114
- ### ✨ Why Use MoAI-ADK?
115
-
116
- ![Traditional vs MoAI-ADK](./assets/images/readme/before-after-comparison.png)
117
-
118
- Limitations of traditional development:
119
-
120
- - ❌ Frequent rework due to unclear requirements
121
- - ❌ Documentation out of sync with code
122
- - ❌ Quality degradation from postponed testing
123
- - ❌ Repetitive boilerplate code writing
124
-
125
- MoAI-ADK solutions:
126
-
127
- - ✅ Start with **clear SPEC documents** to eliminate misunderstandings
128
- - ✅ **Automatic documentation sync** keeps everything up-to-date
129
- - ✅ **TDD enforcement** guarantees 85%+ test coverage
130
- - ✅ **AI agents** automate repetitive tasks
131
-
132
- ### 🎯 Core Features
133
-
134
- ![5 Core Features](./assets/images/readme/feature-overview-grid.png)
135
-
136
- | Feature | Description | Quantitative Impact |
137
- | ---------------------- | ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
138
- | **SPEC-First** | All development starts with clear specifications | **90% reduction** in rework from requirement changes<br/>Clear SPEC eliminates developer-planner misunderstandings |
139
- | **TDD Enforcement** | Automated Red-Green-Refactor cycle | **70% reduction** in bugs (with 85%+ coverage)<br/>**15% shorter** total development time including test writing |
140
- | **AI Orchestration** | Mr.Alfred commands 24 specialized AI agents (7-Tier) | **Average token savings**: 5,000 tokens per session (Conditional Auto-load)<br/>**Simple tasks**: 0 tokens (Quick Reference)<br/>**Complex tasks**: 8,470 tokens (Auto-load skill)<br/>**60-70% time savings** vs manual |
141
- | **Auto Documentation** | Automatic doc sync on code changes (`> /moai:3-sync`) | **100% documentation freshness**<br/>Eliminates manual doc writing<br/>Auto-sync since last commit |
142
- | **TRUST 5 Quality** | Test, Readable, Unified, Secured, Trackable | Enterprise-grade quality assurance<br/>**99% reduction** in post-deployment emergency patches |
143
-
144
- ---
145
-
146
- ## 2. Installation & Setup
147
-
148
- ### 🎯 Basic Installation (10 minutes)
149
-
150
- #### Step 1: Install uv (1 minute)
151
-
152
- ```bash
153
- # macOS / Linux
154
- curl -LsSf https://astral.sh/uv/install.sh | sh
155
-
156
- # Windows (PowerShell)
157
- powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
158
-
159
- # Verify installation
160
- uv --version
161
- ```
162
-
163
- #### Step 2: Install MoAI-ADK (2 minutes)
164
-
165
- ```bash
166
- # Install latest version
167
- uv tool install moai-adk
168
-
169
- # Verify installation
170
- moai-adk --version
171
- ```
172
-
173
- #### Step 3A: Initialize New Project (3 minutes)
174
-
175
- ```bash
176
- # Create new project
177
- moai-adk init my-project
178
- cd my-project
179
-
180
- # Check project structure
181
- ls -la
182
- ```
183
-
184
- Generated file structure:
185
-
186
- ```text
187
- my-project/
188
- ├── .claude/ # Claude Code configuration
189
- ├── .moai/ # MoAI-ADK configuration
190
- ├── src/ # Source code
191
- ├── tests/ # Test code
192
- ├── .moai/specs/ # SPEC documents
193
- ├── README.md
194
- └── pyproject.toml
195
- ```
196
-
197
- ---
198
-
199
- #### Step 3B: Setup Existing Project (5 minutes)
200
-
201
- **For existing projects, integrate MoAI-ADK in 3 simple steps:**
202
-
203
- ```bash
204
- # Navigate to your existing project
205
- cd your-existing-project
206
-
207
- # Initialize MoAI-ADK in current directory
208
- moai-adk init .
209
-
210
- # Verify MoAI-ADK integration
211
- ls -la .claude/ .moai/
212
- ```
213
-
214
- **What gets added to your project:**
215
-
216
- ```text
217
- your-existing-project/
218
- ├── .claude/ # Claude Code configuration (added)
219
- │ ├── agents/ # MoAI-ADK agents
220
- │ ├── commands/ # Custom commands
221
- │ ├── hooks/ # Automated workflows
222
- │ └── settings.json # Project settings
223
- ├── .moai/ # MoAI-ADK configuration (added)
224
- │ ├── config/ # Project configuration
225
- │ ├── memory/ # Session memory
226
- │ ├── specs/ # SPEC documents
227
- │ └── docs/ # Auto-generated docs
228
- ├── src/ # Your existing source code (unchanged)
229
- ├── tests/ # Your existing tests (unchanged)
230
- └── README.md # Your existing README (unchanged)
231
- ```
232
-
233
- **Important:** Your existing files remain untouched. MoAI-ADK only adds configuration files.
234
-
235
- ---
236
-
237
- #### Step 4: Run Claude Code & Initialize Project Metadata
238
-
239
- ```bash
240
- # Run Claude Code in your project directory
241
- claude
242
-
243
- # Inside Claude Code, initialize project metadata
244
- > /moai:0-project
245
- ```
246
-
247
- **What `> /moai:0-project` does:**
248
-
249
- - ✅ Analyzes your project structure
250
- - ✅ Detects programming language and framework
251
- - ✅ Generates project metadata in `.moai/config/config.json`
252
- - ✅ Sets up default Git workflow configuration
253
- - ✅ Creates session memory system
254
- - ✅ Configures quality assurance standards
255
-
256
- **Expected output:**
257
-
258
- ```
259
- ✓ Project analyzed: Python project detected
260
- ✓ Metadata generated: .moai/config/config.json
261
- ✓ Git strategy: Manual mode configured
262
- ✓ Quality gates: 85% test coverage target
263
- ✓ Project initialized successfully
264
- ```
265
-
266
- Project metadata and environment are now ready for SPEC-First TDD development!
267
-
268
- ---
269
-
270
- ## 3. Quick Start
271
-
272
- ### 🎯 Goal: Complete Your First Feature in 5 Minutes
273
-
274
- ![Quick Start Journey](./assets/images/readme/quickstart-journey-map.png)
275
-
276
- ---
277
-
278
- ### **Step 1: Plan Your First Feature** ⏱️ 2min
279
-
280
- In Claude Code:
281
-
282
- ```
283
- > /moai:1-plan "Add user login feature"
284
- ```
285
-
286
- This command:
287
-
288
- - Auto-generates SPEC-001 document
289
- - Defines requirements, constraints, success criteria
290
- - Creates test scenarios
291
-
292
- ---
293
-
294
- ### **Step 2: Initialize Context** ⏱️ 1min
295
-
296
- ```
297
- > /clear
298
- ```
299
-
300
- Clears previous context for token efficiency.
301
-
302
- ---
303
-
304
- ### **Step 3: Implementation (Run)** ⏱️ 2min
305
-
306
- ```
307
- > /moai:2-run SPEC-001
308
- ```
309
-
310
- This command:
311
-
312
- - Writes tests first (Red)
313
- - Implements code (Green)
314
- - Refactors (Refactor)
315
- - Automatically performs TRUST 5 validation
316
-
317
- ---
318
-
319
- ### **Step 4: Documentation (Sync)** ⏱️ (Optional)
320
-
321
- ```
322
- > /moai:3-sync SPEC-001
323
- ```
324
-
325
- Automatically:
326
-
327
- - Generates API documentation
328
- - Creates architecture diagrams
329
- - Updates README
330
- - Prepares for deployment
331
-
332
- **Done!** Your first feature is fully implemented. 🎉
333
-
334
- ---
335
-
336
- ### 📁 More Details
337
-
338
- - **Advanced installation options**: [13. Advanced Configuration](#13-advanced-configuration)
339
- - **Detailed command usage**: [7. Core Commands](#7-core-commands)
340
- - **Development workflow**: [6. Development Workflow](#6-development-workflow)
341
-
342
- ---
343
-
344
- ## 4. SPEC and EARS Format
345
-
346
- ### 📋 SPEC-First Development
347
-
348
- ![SPEC-First Visual Guide](./assets/images/readme/spec-first-visual-guide.png)
349
-
350
- **What is SPEC-First?**
351
-
352
- All development starts with **clear specifications**. SPECs follow the **EARS (Easy Approach to Requirements Syntax) format** and include:
353
-
354
- - **Requirements**: What to build?
355
- - **Constraints**: What are the limitations?
356
- - **Success Criteria**: When is it complete?
357
- - **Test Scenarios**: How to verify?
358
-
359
- ### 🎯 EARS Format Example
360
-
361
- ```markdown
362
- # SPEC-001: User Login Feature
363
-
364
- ## Requirements
365
-
366
- - WHEN a user enters email and password and clicks "Login"
367
- - IF credentials are valid
368
- - THEN the system issues a JWT (JSON Web Token) and navigates to dashboard
369
-
370
- ## Constraints
371
-
372
- - Password must be at least 8 characters
373
- - Lock account after 5 consecutive failures (30 minutes)
374
- - Response time must be under 500ms
375
-
376
- ## Success Criteria
377
-
378
- - 100% success rate with valid credentials
379
- - Display clear error messages for invalid credentials
380
- - Response time < 500ms
381
- - Test coverage >= 85%
382
-
383
- ## Test Scenarios
384
-
385
- ### TC-1: Successful Login
386
-
387
- - Input: email="user@example.com", password="secure123"
388
- - Expected: Token issued, navigate to dashboard
389
-
390
- ### TC-2: Invalid Password
391
-
392
- - Input: email="user@example.com", password="wrong"
393
- - Expected: "Incorrect password" error message
394
-
395
- ### TC-3: Account Lock
396
-
397
- - Input: 5 consecutive failures
398
- - Expected: "Account locked. Try again in 30 minutes"
399
- ```
400
-
401
- ### 💡 5 Types of EARS Format
402
-
403
- | Type | Syntax | Example |
404
- | ---------------- | -------------- | ----------------------------------------------- |
405
- | **Ubiquitous** | Always perform | "System shall always log activities" |
406
- | **Event-driven** | WHEN...THEN | "When user logs in, issue token" |
407
- | **State-driven** | IF...THEN | "If account is active, allow login" |
408
- | **Unwanted** | shall not | "System shall not store passwords in plaintext" |
409
- | **Optional** | where possible | "Provide OAuth login where possible" |
410
-
411
- ---
412
-
413
- ## 5. Mr.Alfred & Agents
414
-
415
- ### 🎩 Mr. Alfred - Super Agent Orchestrator
416
-
417
- **Who is Alfred?**
418
-
419
- Mr.Alfred is MoAI-ADK's **chief orchestrator** who analyzes user requests, selects appropriate specialized agents for task delegation, and integrates results.
420
-
421
- **Alfred's Roles:**
422
-
423
- 1. **Understand**: Analyze user requests and clarify ambiguities
424
- 2. **Plan**: Establish execution plan through Plan agent
425
- 3. **Execute**: Delegate tasks to specialized agents (sequential/parallel)
426
- 4. **Integrate**: Collect all results and report to user
427
-
428
- ```mermaid
429
- flowchart TD
430
- User[👤 User] -->|Request| Alfred[🎩 Mr.Alfred]
431
- Alfred -->|Analyze| Plan[📋 Plan Agent]
432
- Plan -->|Plan| Alfred
433
- Alfred -->|Delegate| Agents[👥 Specialized Agents]
434
- Agents -->|Results| Alfred
435
- Alfred -->|Integrated Report| User
436
-
437
- style Alfred fill:#fff,stroke:#333,stroke-width:2px
438
- style Agents fill:#fff,stroke:#333,stroke-width:1px,stroke-dasharray: 5 5
439
- ```
440
-
441
- ### 🔧 Agent System (5-Tier Hierarchy)
442
-
443
- MoAI-ADK organizes **24 specialized agents** into **5 tiers** for optimal performance.
444
-
445
- **Tier 1: Domain Experts** (7 agents)
446
-
447
- - `expert-backend`: Backend architecture, API development
448
- - `expert-frontend`: Frontend, React/Vue implementation
449
- - `expert-database`: Database design, optimization
450
- - `expert-security`: Security analysis, vulnerability scanning
451
- - `expert-devops`: Deployment, infrastructure, CI/CD
452
- - `expert-uiux`: UI/UX design, components
453
- - `expert-debug`: Debugging, error analysis
454
-
455
- **Tier 2: Workflow Managers** (8 agents)
456
-
457
- - `manager-spec`: SPEC writing (EARS format)
458
- - `manager-tdd`: TDD implementation (RED-GREEN-REFACTOR)
459
- - `manager-docs`: Automatic documentation
460
- - `manager-quality`: Quality verification (TRUST 5)
461
- - `manager-strategy`: Execution strategy planning
462
- - `manager-project`: Project initialization
463
- - `manager-git`: Git workflow
464
- - `manager-claude-code`: Claude Code integration
465
-
466
- **Tier 3: Meta-generators** (3 agents)
467
-
468
- - `builder-agent`: Create new agents
469
- - `builder-skill`: Create new skills
470
- - `builder-command`: Create new commands
471
-
472
- **Tier 4: MCP Integrators** (6 agents)
473
-
474
- - `mcp-context7`: Real-time library documentation lookup
475
- - `mcp-sequential-thinking`: Complex reasoning analysis
476
- - `mcp-playwright`: Web automation testing
477
- - `mcp-figma`: Figma design system
478
- - `mcp-notion`: Notion workspace management
479
-
480
- **Tier 5: AI Services** (1 agent)
481
-
482
- - `ai-nano-banana`: Gemini 3 image generation
483
-
484
- ---
485
-
486
- ## 6. Development Workflow
487
-
488
- ### 🔄 Infinite Plan-Run-Sync Loop
489
-
490
- MoAI-ADK development proceeds in a **3-phase infinite loop**:
491
-
492
- ```mermaid
493
- sequenceDiagram
494
- participant U as 👤 User
495
- participant A as 🎩 Alfred
496
- participant S as 📝 SPEC Builder
497
- participant T as 💻 TDD Implementer
498
- participant D as 📚 Docs Manager
499
-
500
- Note over U,D: 🔄 Plan → Run → Sync Loop
501
-
502
- rect rgb(245, 245, 245)
503
- Note right of U: Phase 1: Plan
504
- U->>A: > /moai:1-plan "login feature"
505
- A->>S: Request SPEC writing
506
- S-->>A: SPEC-001 draft
507
- A-->>U: Request review
508
- U->>A: Approve
509
- A->>U: 💡 Recommend /clear
510
- end
511
-
512
- rect rgb(250, 250, 250)
513
- Note right of U: Phase 2: Run
514
- U->>A: > /moai:2-run SPEC-001
515
- A->>T: Request TDD implementation
516
- T->>T: 🔴 Write tests (fail)
517
- T->>T: 🟢 Implement code (pass)
518
- T->>T: 🔵 Refactor & optimize
519
- T-->>A: Implementation complete (tests pass)
520
- A-->>U: Confirm completion
521
- end
522
-
523
- rect rgb(240, 250, 240)
524
- Note right of U: Phase 3: Sync (Automation)
525
- U->>A: > /moai:3-sync SPEC-001
526
- A->>D: Request documentation
527
- D->>D: 🔴 Final testing
528
- D->>D: 📊 Coverage verification
529
- D->>D: 🔍 Code quality check
530
- D->>D: 📝 Auto commit generation
531
- D->>D: 📚 Documentation update
532
- D-->>A: All complete (automation)
533
- A-->>U: Ready for merge
534
- end
535
- ```
536
-
537
- ### 📊 Detailed Phase Descriptions
538
-
539
- #### Phase 1: Plan (Design, 5-10min)
540
-
541
- **Goal**: What to build?
542
-
543
- ```bash
544
- > /moai:1-plan "user login feature"
545
- ```
546
-
547
- In this phase:
548
-
549
- - ✅ Auto-generate SPEC-001 document
550
- - ✅ Define requirements in EARS format
551
- - ✅ Clarify success criteria
552
- - ✅ Write test scenarios
553
-
554
- **Output**: `.moai/specs/SPEC-001/spec.md`
555
-
556
- ---
557
-
558
- #### Phase 2: Run (Implementation, 20-40min)
559
-
560
- **Goal**: How to build it?
561
-
562
- ```bash
563
- > /clear
564
- > /moai:2-run SPEC-001
565
- ```
566
-
567
- In this phase:
568
-
569
- - 🔴 **RED**: Write failing tests
570
- - 🟢 **GREEN**: Pass tests with minimal code
571
- - 🔵 **REFACTOR**: Clean and optimize code
572
-
573
- **Automatic verification**:
574
-
575
- - Test coverage >= 85%
576
- - Pass code linting
577
- - Pass security checks
578
- - Pass type checking
579
-
580
- **Output**: Implementation complete + test code + 85%+ coverage
581
-
582
- ---
583
-
584
- #### Phase 3: Sync (Automation, 5-10min)
585
-
586
- **Goal**: Is it complete? (Automation)
587
-
588
- ```bash
589
- > /clear
590
- > /moai:3-sync SPEC-001
591
- ```
592
-
593
- This phase automatically executes:
594
-
595
- - 🔍 **Phase 0.5: Quality Verification** *(NEW)*
596
- - Auto-detect project language (16 languages supported)
597
- - Run language-specific test runner, linter, and type checker
598
- - Execute code-review via manager-quality agent
599
- - Coverage target from config (`constitution.test_coverage_target`)
600
- - 🔴 **Final test execution**: Auto-run all tests
601
- - 📊 **Coverage verification**: Auto-guarantee configured coverage target
602
- - 🔍 **Code quality check**: Language-specific linting (ruff/eslint/clippy/etc.)
603
- - 📝 **Auto commit generation**: Auto-create "Ready for merge" commit
604
- - 📚 **Documentation update**: Auto-update API docs, README
605
- - 🚀 **Merge readiness**: Claude Code auto-completes merge preparation
606
-
607
- **Supported Languages for Phase 0.5**:
608
- Python, TypeScript, JavaScript, Go, Rust, Ruby, Java, PHP, Kotlin, Swift, C#, C++, Elixir, R, Flutter/Dart, Scala
609
-
610
- **Output**: Tests pass + documentation complete + merge ready
611
-
612
- ---
613
-
614
- ### 💡 Visual Workflow: "Blog Comment Feature" Example
615
-
616
- ```mermaid
617
- flowchart LR
618
- Start([👤 User Request]) -->|"<br/>Can you create<br/>comment feature?<br/>"| Plan["<b>📋 PLAN</b><br/>(Design)<br/>━━━━━━<br/>✨ Write SPEC<br/>✅ Define success criteria<br/>⏱️ 5min"]
619
-
620
- Plan -->|"<br/>SPEC-001<br/>ready<br/>"| Run["<b>💻 RUN</b><br/>(Implementation)<br/>━━━━━━<br/>🔴 Write tests<br/>🟢 Implement code<br/>🔵 Refactor<br/>⏱️ 20min"]
621
-
622
- Run -->|"<br/>Tests pass<br/>Code complete<br/>"| Sync["<b>📚 SYNC</b><br/>(Automation)<br/>━━━━━━<br/>🔴 Final testing<br/>📊 Coverage verification<br/>🔍 Code quality check<br/>📝 Auto commit generation<br/>🚀 Merge ready<br/>⏱️ 5min"]
623
-
624
- Sync -->|"<br/>Fully automated complete!<br/>🚀 Merge ready<br/>"| End([✅ Feature Deployed])
625
-
626
- classDef planStyle fill:#e3f2fd,stroke:#1976d2,stroke-width:3px,color:#000
627
- classDef runStyle fill:#f3e5f5,stroke:#7b1fa2,stroke-width:3px,color:#000
628
- classDef syncStyle fill:#fff8e1,stroke:#ff9800,stroke-width:3px,color:#000
629
- classDef normalStyle fill:#fafafa,stroke:#666,stroke-width:2px
630
-
631
- class Plan planStyle
632
- class Run runStyle
633
- class Sync syncStyle
634
- class Start,End normalStyle
635
- ```
636
-
637
- ---
638
-
639
- ## 7. Core Commands
640
-
641
- ### 🎯 `> /moai:0-project` - Project Initialization
642
-
643
- **Purpose**: Generate project metadata
644
-
645
- **When to use**: When starting a new project
646
-
647
- ```bash
648
- > /moai:0-project
649
- ```
650
-
651
- **Generated files**:
652
-
653
- - `.moai/config/config.json`: Project configuration
654
- - `.moai/memory/`: Project memory
655
- - `.moai/docs/`: Auto-generated documentation
656
-
657
- ---
658
-
659
- ### 📋 `> /moai:1-plan` - SPEC Writing
660
-
661
- **Purpose**: Generate SPEC document in EARS format
662
-
663
- **When to use**: Before starting new feature development
664
-
665
- ```bash
666
- > /moai:1-plan "add login feature"
667
- ```
668
-
669
- **Example**:
670
-
671
- ```bash
672
- > /moai:1-plan "implement user profile page"
673
- # → Creates SPEC-002 (.moai/specs/SPEC-002/spec.md)
674
-
675
- > /moai:1-plan "develop payment API"
676
- # → Creates SPEC-003
677
- ```
678
-
679
- **SPEC includes**:
680
-
681
- - Requirements
682
- - Constraints
683
- - Success Criteria
684
- - Test Scenarios
685
-
686
- **Important**: Must execute `> /clear` next
687
-
688
- ```bash
689
- > /moai:1-plan "feature name"
690
- # After completion
691
- > /clear
692
- ```
693
-
694
- ---
695
-
696
- ### 💻 `> /moai:2-run` - TDD Implementation
697
-
698
- **Purpose**: Implement code with RED-GREEN-REFACTOR cycle
699
-
700
- **When to use**: After SPEC writing for implementation
701
-
702
- ```bash
703
- > /moai:2-run SPEC-001
704
- ```
705
-
706
- **Example**:
707
-
708
- ```bash
709
- > /moai:2-run SPEC-001 # Basic implementation
710
- ```
711
-
712
- **Automatic execution**:
713
-
714
- - 🔴 Write tests first
715
- - 🟢 Pass tests with code
716
- - 🔵 Refactor & optimize
717
- - ✅ TRUST 5 validation (automatic)
718
-
719
- **Verification items**:
720
-
721
- - Test coverage >= 85%
722
- - Pass linting checks
723
- - Pass type checks
724
- - Pass security checks
725
-
726
- ---
727
-
728
- ### 📚 `> /moai:3-sync` - Documentation Sync
729
-
730
- **Purpose**: Reflect code changes in documentation
731
-
732
- **When to use**: After implementation completion
733
-
734
- ```bash
735
- > /moai:3-sync SPEC-001
736
- ```
737
-
738
- **Example**:
739
-
740
- ```bash
741
- > /moai:3-sync SPEC-001 # All documentation
742
- ```
743
-
744
- **Auto-generated documentation**:
745
-
746
- - API reference
747
- - Architecture diagrams
748
- - Deployment guide
749
- - README updates
750
- - CHANGELOG
751
-
752
- ---
753
-
754
- ### 🌳 **moai-worktree** - Git Worktree Management for Parallel SPEC Development
755
-
756
- #### Why moai-worktree? The Problem It Solves
757
-
758
- In modern software development, especially when following SPEC-First TDD methodology, developers frequently face the challenge of working on multiple features simultaneously. Traditional Git workflow forces developers to:
759
-
760
- - **Context Switch Hell**: Constantly switch branches in the same workspace, losing context and risking incomplete work
761
- - **Sequential Development**: Work on one SPEC at a time, reducing productivity
762
- - **Environment Conflicts**: Different SPECs may require different dependencies, database states, or configurations
763
-
764
- **moai-worktree solves these problems** by providing isolated workspaces for each SPEC, enabling true parallel development without context switching overhead.
765
-
766
- #### Core Concept: SPEC-Based Parallel Development
767
-
768
- **What is a Git Worktree?**
769
-
770
- A Git worktree is a separate working directory linked to the same Git repository, allowing you to check out different branches into different working directories simultaneously. Each worktree has its own:
771
-
772
- - Independent file system
773
- - Separate working directory state
774
- - Isolated build artifacts and dependencies
775
- - Own staging area and unstaged changes
776
-
777
- **moai-worktree Architecture:**
778
-
779
- ```
780
- Main Repository/
781
- ├── .git/ # Shared Git repository
782
- ├── src/ # Main branch files
783
- └── worktrees/ # Auto-created worktrees
784
- ├── SPEC-001/
785
- │ ├── .git # Worktree-specific git file
786
- │ ├── src/ # SPEC-001 implementation
787
- │ └── tests/ # SPEC-001 tests
788
- ├── SPEC-002/
789
- │ ├── .git # Worktree-specific git file
790
- │ ├── src/ # SPEC-002 implementation
791
- │ └── tests/ # SPEC-002 tests
792
- └── SPEC-003/
793
- ├── .git # Worktree-specific git file
794
- ├── src/ # SPEC-003 implementation
795
- └── tests/ # SPEC-003 tests
796
- ```
797
-
798
- #### Key Benefits for SPEC-First Development
799
-
800
- **1. Zero Context Switching**
801
-
802
- - Each SPEC has its own dedicated workspace
803
- - Never lose work context when switching between SPECs
804
- - Maintain mental focus on specific requirements
805
-
806
- **2. True Parallel Development**
807
-
808
- - Work on SPEC-001 implementation while SPEC-002 tests run
809
- - Debug SPEC-003 while SPEC-004 documentation syncs
810
- - No waiting for other processes to complete
811
-
812
- **3. Isolated Environments**
813
-
814
- - Different SPECs can use different dependency versions
815
- - Separate database states and configurations
816
- - No cross-SPEC contamination
817
-
818
- **4. SPEC Completion Tracking**
819
-
820
- - Clear visual indication of which SPECs are active
821
- - Easy to identify abandoned or incomplete SPECs
822
- - Systematic cleanup of completed work
823
-
824
- #### Advanced Features
825
-
826
- **Smart Synchronization**
827
-
828
- ```bash
829
- # Sync all worktrees with latest main branch
830
- moai-worktree sync --all
831
-
832
- # Sync specific worktree with conflict resolution
833
- moai-worktree sync SPEC-001 --auto-resolve
834
- ```
835
-
836
- **Intelligent Cleanup**
837
-
838
- ```bash
839
- # Auto-remove worktrees for merged branches
840
- moai-worktree clean --merged-only
841
-
842
- # Safe cleanup with confirmation prompts
843
- moai-worktree clean --interactive
844
- ```
845
-
846
- **Performance Optimization**
847
-
848
- - **Concurrent Operations**: Multiple worktrees can be modified simultaneously
849
- - **Shared History**: All worktrees share the same Git object database
850
- - **Selective Sync**: Only sync changes when needed, not entire repositories
851
-
852
- #### When to Use moai-worktree
853
-
854
- **Ideal Scenarios:**
855
-
856
- - **Multiple Active SPECs**: Working on 3+ SPECs simultaneously
857
- - **Long-running Tasks**: SPEC implementation takes days or weeks
858
- - **Team Collaboration**: Multiple developers working on different SPECs
859
- - **Feature Branching**: Each SPEC becomes its own feature branch
860
- - **Environment Isolation**: Different SPECs require different configurations
861
-
862
- #### Complete Development Workflow (Start to Merge)
863
-
864
- **Step 1: SPEC Creation and Worktree Setup**
865
-
866
- ```bash
867
- # Method 1: Automatic worktree creation with SPEC creation
868
- > /moai:1-plan 'Implement user authentication system' --worktree
869
- # → Auto-create SPEC-AUTH-001 and setup worktree
870
-
871
- # Method 2: Manual worktree creation
872
- > /moai:1-plan 'Implement user authentication system'
873
- # SPEC-AUTH-001 created
874
- moai-worktree new SPEC-AUTH-001
875
- # → Create isolated worktree environment
876
- ```
877
-
878
- **Step 2: Navigate to Worktree and Start Development**
879
-
880
- ```bash
881
- # Navigate to worktree (opens new shell)
882
- moai-worktree go SPEC-AUTH-001
883
- # → Opens new shell in ~/moai/worktrees/MoAI-ADK/SPEC-AUTH-001
884
- ```
885
-
886
- **Step 3: Develop in Isolated Environment**
887
-
888
- ```bash
889
- # TDD development within worktree
890
- > /moai:2-run SPEC-AUTH-001
891
- # → Execute RED → GREEN → REFACTOR cycle
892
-
893
- # Check status during development
894
- moai-worktree status
895
- git status
896
- git log --oneline -5
897
-
898
- # Intermediate save
899
- git add .
900
- git commit -m "Auth: Implement user login endpoint"
901
- ```
902
-
903
- **Step 4: Synchronization and Conflict Resolution**
904
-
905
- ```bash
906
- # Get main branch changes
907
- moai-worktree sync SPEC-AUTH-001
908
-
909
- # Sync with automatic conflict resolution
910
- moai-worktree sync SPEC-AUTH-001 --auto-resolve
911
-
912
- # Sync all worktrees
913
- moai-worktree sync --all --auto-resolve
914
- ```
915
-
916
- **Step 5: Development Completion and Testing (Automation)**
917
-
918
- ```bash
919
- # MoAI workflow sync - automatically run tests, quality checks, commits
920
- > /moai:3-sync SPEC-AUTH-001
921
- # → Auto final testing, coverage verification, code quality checks, final commit complete
922
- ```
923
-
924
- **Step 6: Merge Preparation (Automation + Direct Commands)**
925
-
926
- **Option A: Claude Code Automation (Beginner Friendly)**
927
-
928
- ```bash
929
- # Claude Code automatically handles merge preparation
930
- # User just needs to request:
931
- > Prepare SPEC-AUTH-001 for merge to main branch
932
-
933
- # Claude Code automatically executes:
934
- # - Fetch worktree branch
935
- # - Local merge testing
936
- # - Conflict check and resolution suggestions
937
- # - Merge preparation complete report
938
- ```
939
-
940
- **Option B: Direct Git Commands (Advanced Users)**
941
-
942
- ```bash
943
- # 1. Navigate from worktree to main
944
- moai-worktree go SPEC-AUTH-001 # or cd /path/to/main/repo
945
-
946
- # 2. Fetch worktree branch
947
- git fetch origin feature/SPEC-AUTH-001
948
- git checkout -b merge/SPEC-AUTH-001 origin/feature/SPEC-AUTH-001
949
-
950
- # 3. Local merge testing
951
- git merge main --no-ff # Merge changes from main
952
-
953
- # 4. Manual resolution if conflicts exist
954
- git status # Check conflict files
955
- # After editing conflict files:
956
- git add .
957
- git commit -m "Resolve: Merge conflicts in SPEC-AUTH-001"
958
-
959
- # 5. Confirm merge preparation complete
960
- git log --oneline -5
961
- git status # Confirm clean working directory
962
- ```
963
-
964
- **Direct Command Collection for Conflict Resolution:**
965
-
966
- ```bash
967
- # Strategic approach when conflicts occur
968
- git checkout --ours conflicted_file.py # Prioritize main branch
969
- git checkout --theirs conflicted_file.py # Prioritize worktree changes
970
-
971
- # Cancel merge and retry
972
- git merge --abort
973
- git merge main --no-ff
974
-
975
- # Change overall merge strategy
976
- git rebase main # Use rebase instead
977
- ```
978
-
979
- **Step 7: Completion and Cleanup (Automation + Direct Commands)**
980
-
981
- **Option A: Claude Code Automation (Beginner Friendly)**
982
-
983
- ```bash
984
- # Worktree cleanup (request Claude Code auto-processing)
985
- > Clean up SPEC-AUTH-001 worktree
986
-
987
- # README.ko.md update (request Claude Code auto-processing)
988
- > Add completed SPEC-AUTH-001 feature to README.ko.md
989
-
990
- # Claude Code automatically executes:
991
- # - Check worktree status
992
- # - Document completed features
993
- # - README update
994
- # - Cleanup complete report
995
- ```
996
-
997
- **Option B: Direct moai-worktree Commands (Advanced Users)**
998
-
999
- ```bash
1000
- # 1. Final worktree status check
1001
- moai-worktree status
1002
- # Output example:
1003
- # SPEC-AUTH-001
1004
- # Branch: feature/SPEC-AUTH-001
1005
- # Status: completed
1006
- # Path: ~/moai/worktrees/MoAI-ADK/SPEC-AUTH-001
1007
-
1008
- # 2. Worktree cleanup (safe method)
1009
- moai-worktree clean --merged-only
1010
- # → Auto-remove worktrees for merged branches only
1011
-
1012
- # 3. Or interactive cleanup (optional removal)
1013
- moai-worktree clean --interactive
1014
- # → Select worktrees to remove
1015
-
1016
- # 4. Direct removal of specific worktree (force)
1017
- moai-worktree remove SPEC-AUTH-001 --force
1018
-
1019
- # 5. Overall worktree status check
1020
- moai-worktree list
1021
- # or
1022
- moai-worktree status
1023
- ```
1024
-
1025
- **Practical Worktree Management Command Collection:**
1026
-
1027
- ```bash
1028
- # Daily worktree management
1029
- moai-worktree list # List all worktrees
1030
- moai-worktree status # Detailed status check
1031
- moai-worktree sync SPEC-AUTH-001 # Sync specific worktree
1032
- moai-worktree sync --all # Sync all worktrees
1033
-
1034
- # Worktree navigation
1035
- moai-worktree go SPEC-001 # Open worktree in new shell
1036
-
1037
- # Automatic conflict resolution
1038
- moai-worktree sync SPEC-AUTH-001 --auto-resolve
1039
-
1040
- # Settings check
1041
- moai-worktree config get # View current settings
1042
- moai-worktree config root # Check worktree root path
1043
- ```
1044
-
1045
- **Mixed Workflow Recommended Pattern:**
1046
-
1047
- ```bash
1048
- # Steps 1-5: Claude Code automation (fast development)
1049
- > /moai:1-plan "feature name"
1050
- > /moai:2-run SPEC-XXX
1051
- > /moai:3-sync SPEC-XXX
1052
-
1053
- # Steps 6-7: Direct commands (precise control)
1054
- moai-worktree sync SPEC-XXX --auto-resolve # Auto conflict resolution
1055
- moai-worktree clean --merged-only # Cleanup completed worktrees
1056
- ```
1057
-
1058
- ---
1059
-
1060
- ### 🔧 Manual Command Reference (Manual Command Reference)
1061
-
1062
- This section details direct commands that can be used alongside Claude Code automation.
1063
-
1064
- #### **Basic moai-worktree Commands**
1065
-
1066
- | Command | Purpose | Usage Example | Description |
1067
- | ---------------------- | --------------------------- | ----------------------------------- | -------------------------------------------- |
1068
- | `moai-worktree new` | Create new worktree | `moai-worktree new SPEC-001` | Create isolated workspace for SPEC-001 |
1069
- | `moai-worktree list` | List worktrees | `moai-worktree list` | Display all active worktrees |
1070
- | `moai-worktree go` | Go to worktree | `moai-worktree go SPEC-001` | Open worktree in new shell |
1071
- | `moai-worktree remove` | Remove worktree | `moai-worktree remove SPEC-001` | Delete specific worktree |
1072
- | `moai-worktree status` | Check status | `moai-worktree status` | Display all worktree statuses |
1073
-
1074
- #### **Synchronization Commands**
1075
-
1076
- | Command | Purpose | Usage Example | Description |
1077
- | ----------------------------------- | ----------------------- | ----------------------------------------------- | ------------------------------------- |
1078
- | `moai-worktree sync` | Sync specific worktree | `moai-worktree sync SPEC-001` | Sync changes with main branch |
1079
- | `moai-worktree sync --all` | Sync all worktrees | `moai-worktree sync --all` | Sync all worktrees at once |
1080
- | `moai-worktree sync --auto-resolve` | Auto conflict resolution| `moai-worktree sync SPEC-001 --auto-resolve` | Auto-attempt conflict resolution |
1081
- | `moai-worktree sync --rebase` | Rebase-based sync | `moai-worktree sync SPEC-001 --rebase` | Use rebase instead of merge |
1082
-
1083
- #### **Cleanup Commands**
1084
-
1085
- | Command | Purpose | Usage Example | Description |
1086
- | ----------------------------------- | ------------------------- | ------------------------------------- | ---------------------------------- |
1087
- | `moai-worktree clean` | Clean worktrees | `moai-worktree clean` | Clean all worktrees |
1088
- | `moai-worktree clean --merged-only` | Clean merged worktrees | `moai-worktree clean --merged-only` | Remove worktrees for merged branches |
1089
- | `moai-worktree clean --interactive` | Interactive cleanup | `moai-worktree clean --interactive` | Select worktrees to remove |
1090
-
1091
- #### **Settings Commands**
1092
-
1093
- | Command | Purpose | Usage Example | Description |
1094
- | --------------------------- | ----------------- | --------------------------- | -------------------------------------- |
1095
- | `moai-worktree config` | View settings | `moai-worktree config` | Display current worktree settings |
1096
- | `moai-worktree config root` | Check root path | `moai-worktree config root` | Check worktree root directory path |
1097
-
1098
- #### **Advanced Usage Patterns**
1099
-
1100
- **1. Multi-SPEC Parallel Development**
1101
-
1102
- ```bash
1103
- # Create multiple SPECs simultaneously
1104
- moai-worktree new SPEC-AUTH-001 # User authentication
1105
- moai-worktree new SPEC-PAY-002 # Payment system
1106
- moai-worktree new SPEC-UI-003 # UI improvement
1107
-
1108
- # Check each worktree status
1109
- moai-worktree status
1110
-
1111
- # Sync all worktrees
1112
- moai-worktree sync --all --auto-resolve
1113
- ```
1114
-
1115
- **2. Auto Conflict Resolution Workflow**
1116
-
1117
- ```bash
1118
- # Step 1: Attempt auto sync
1119
- moai-worktree sync SPEC-001 --auto-resolve
1120
-
1121
- # Step 2: Manual intervention if auto resolution fails
1122
- moai-worktree go SPEC-001
1123
- git status # Check conflict files
1124
-
1125
- # Step 3: Select conflict resolution strategy
1126
- git checkout --ours conflicted_file.py # Prioritize main branch
1127
- # or
1128
- git checkout --theirs conflicted_file.py # Prioritize worktree changes
1129
-
1130
- # Step 4: Complete resolution and commit
1131
- git add conflicted_file.py
1132
- git commit -m "Resolve: Auto-resolved conflicts in SPEC-001"
1133
- ```
1134
-
1135
- **3. Regular Worktree Maintenance**
1136
-
1137
- ```bash
1138
- # Recommended to run daily
1139
- moai-worktree status # Check current status
1140
- moai-worktree sync --all # Sync all worktrees
1141
-
1142
- # Recommended to run weekly
1143
- moai-worktree clean --merged-only # Clean completed worktrees
1144
-
1145
- # Recommended to run monthly
1146
- moai-worktree clean --interactive # Interactive cleanup of unnecessary worktrees
1147
- ```
1148
-
1149
- #### **Claude Code and Command Combination Guide**
1150
-
1151
- **Beginner Users:**
1152
-
1153
- ```bash
1154
- # Steps 1-3: Claude Code automation for quick start
1155
- /moai:1-plan "user login feature"
1156
- /moai:2-run SPEC-001
1157
- /moai:3-sync SPEC-001
1158
-
1159
- # Steps 4-5: Direct commands for basic management
1160
- moai-worktree status # Check status
1161
- moai-worktree sync SPEC-001 # Sync
1162
- moai-worktree clean --merged-only # Cleanup
1163
- ```
1164
-
1165
- **Intermediate Users:**
1166
-
1167
- ```bash
1168
- # Steps 1-2: Claude Code automation
1169
- > /moai:1-plan "payment system development"
1170
- > /moai:2-run SPEC-PAY-001
1171
-
1172
- # Step 3: Direct commands for precise control
1173
- moai-worktree go SPEC-PAY-001
1174
- # Direct development and testing
1175
- git add .
1176
- git commit -m "Pay: Implement core payment processing"
1177
-
1178
- # Steps 4-5: Mixed approach
1179
- > /moai:3-sync SPEC-PAY-001 # Automation for quality verification
1180
- moai-worktree sync SPEC-PAY-001 --auto-resolve # Direct sync
1181
- ```
1182
-
1183
- **Advanced Users:**
1184
-
1185
- ```bash
1186
- # Control entire process with direct commands
1187
- moai-worktree new SPEC-ADV-001
1188
- moai-worktree go SPEC-ADV-001
1189
- # Complete manual development process
1190
- git add .
1191
- git commit -m "Adv: Complex feature implementation"
1192
- moai-worktree sync SPEC-ADV-001 --rebase
1193
- moai-worktree clean --interactive
1194
- ```
1195
-
1196
- **Productivity Tips:**
1197
-
1198
- 1. **Alias Setup** (add to ~/.zshrc or ~/.bashrc):
1199
-
1200
- ```bash
1201
- alias wt-new='moai-worktree new'
1202
- alias wt-go='moai-worktree go'
1203
- alias wt-list='moai-worktree list'
1204
- alias wt-status='moai-worktree status'
1205
- alias wt-sync='moai-worktree sync'
1206
- alias wt-clean='moai-worktree clean'
1207
- ```
1208
-
1209
- 2. **Quick Workflow Functions**:
1210
-
1211
- ```bash
1212
- # Quick worktree creation and navigation
1213
- wt-dev() {
1214
- moai-worktree new "SPEC-$1"
1215
- moai-worktree go "SPEC-$1"
1216
- }
1217
-
1218
- # Usage: wt-dev AUTH-001
1219
- ```
1220
-
1221
- ---
1222
-
1223
- ### 🎯 **Perfect Combination of Automation and Direct Control**
1224
-
1225
- MoAI-ADK is designed to leverage the benefits of both **Claude Code automation** and **direct command control**.
1226
-
1227
- #### **When to Use What**
1228
-
1229
- | Situation | Recommended Approach | Reason |
1230
- | ------------------------- | ------------------------ | ------------------------------ |
1231
- | **Start new feature** | Claude Code automation | Fast SPEC creation and initial setup |
1232
- | **Complex algorithms** | Direct control | Step-by-step debugging and optimization needed |
1233
- | **Daily synchronization** | Direct commands | Fast execution and precise control |
1234
- | **Quality verification** | Claude Code automation | Automated testing and verification |
1235
- | **Conflict resolution** | Mixed approach | Auto detection + manual resolution |
1236
- | **Cleanup & maintenance** | Direct commands | Optional control and safe cleanup |
1237
-
1238
- #### **Recommended Combination Workflows**
1239
-
1240
- ##### Beginners: Automation-focused (70% automation + 30% direct control)
1241
-
1242
- ```bash
1243
- # Step 1: Quick start with automation
1244
- > /moai:1-plan "feature development"
1245
- > /moai:2-run SPEC-001
1246
-
1247
- # Step 2: Basic management with direct commands
1248
- moai-worktree status
1249
- moai-worktree sync SPEC-001
1250
- moai-worktree clean --merged-only
1251
-
1252
- # Step 3: Complete with automation
1253
- > /moai:3-sync SPEC-001
1254
- ```
1255
-
1256
- ##### Intermediate: Balanced approach (50% automation + 50% direct control)
1257
-
1258
- ```bash
1259
- # Step 1: Plan with automation
1260
- > /moai:1-plan "complex feature"
1261
-
1262
- # Step 2: Detailed implementation with direct control
1263
- moai-worktree new SPEC-001
1264
- moai-worktree go SPEC-001
1265
- # Detailed development work
1266
-
1267
- # Step 3: Quality assurance with automation
1268
- > /moai:3-sync SPEC-001
1269
- ```
1270
-
1271
- ##### Advanced: Direct control-focused (30% automation + 70% direct control)
1272
-
1273
- ```bash
1274
- # Control entire process with direct commands but use automation when needed
1275
- moai-worktree new SPEC-001
1276
- moai-worktree go SPEC-001
1277
- # Complete manual development
1278
- # Use > /moai:3-sync for quality verification when needed
1279
- ```
1280
-
1281
- #### Merge Conflict Resolution Strategies
1282
-
1283
- ##### 1. Auto Resolution (Recommended)
1284
-
1285
- ```bash
1286
- # Auto resolution trying all strategies
1287
- moai-worktree sync SPEC-AUTH-001 --auto-resolve
1288
- ```
1289
-
1290
- ##### 2. Manual Resolution
1291
-
1292
- ```bash
1293
- # Navigate to worktree
1294
- moai-worktree go SPEC-AUTH-001
1295
-
1296
- # Check conflict status
1297
- git status
1298
-
1299
- # Edit conflict files
1300
- # <<<<<<< HEAD
1301
- # Main branch content
1302
- # =======
1303
- # Worktree branch content
1304
- # >>>>>>> feature/SPEC-AUTH-001
1305
-
1306
- # Mark as resolved after editing
1307
- git add conflict_file.py
1308
- git commit -m "Resolve: Merge conflicts in auth system"
1309
- ```
1310
-
1311
- ##### 3. Strategic Approach
1312
-
1313
- ```bash
1314
- # Prioritize main branch when conflicts occur
1315
- git checkout --ours conflict_file.py
1316
- git add conflict_file.py
1317
- git commit
1318
-
1319
- # Or prioritize worktree changes
1320
- git checkout --theirs conflict_file.py
1321
- git add conflict_file.py
1322
- git commit
1323
- ```
1324
-
1325
- #### Completion Checklist
1326
-
1327
- ##### Before Development Completion
1328
-
1329
- - [ ] All tests pass (>= 95% coverage)
1330
- - [ ] Pass code quality checks (ruff, mypy)
1331
- - [ ] Security review complete
1332
- - [ ] Documentation updated
1333
- - [ ] Local merge testing
1334
-
1335
- ##### After Merge Completion
1336
-
1337
- - [ ] Push to remote repository
1338
- - [ ] Create and approve Pull Request
1339
- - [ ] Merge to main branch
1340
- - [ ] Worktree cleanup complete
1341
- - [ ] Run > /moai:3-sync
1342
- - [ ] Deployment testing
1343
-
1344
- #### Parallel Development Tips
1345
-
1346
- ##### Multiple SPECs Simultaneous Work
1347
-
1348
- ```bash
1349
- # Work on first SPEC
1350
- moai-worktree go SPEC-AUTH-001
1351
- > /moai:2-run SPEC-AUTH-001
1352
-
1353
- # Work on second SPEC in different terminal
1354
- moai-worktree go SPEC-PAY-002
1355
- > /moai:2-run SPEC-PAY-002
1356
-
1357
- # Work on third SPEC
1358
- moai-worktree go SPEC-UI-003
1359
- > /moai:2-run SPEC-UI-003
1360
-
1361
- # Regularly sync all worktrees
1362
- moai-worktree sync --all --auto-resolve
1363
- ```
1364
-
1365
- ##### Work Without Context Switching
1366
-
1367
- - Each worktree is completely isolated environment
1368
- - Independent Git state
1369
- - Allow different dependency versions
1370
- - Enable simultaneous development of multiple features
1371
-
1372
- ##### Real Example Workflow
1373
-
1374
- ```bash
1375
- # Morning: Start new SPEC
1376
- moai-worktree new SPEC-005 "User Profile Enhancement"
1377
- moai-worktree go SPEC-005
1378
-
1379
- # Implement SPEC-005 while other SPECs complete
1380
- > /moai:2-run SPEC-005
1381
-
1382
- # Afternoon: Check all SPEC statuses
1383
- moai-worktree status
1384
- # Output:
1385
- # ✓ SPEC-001: Complete (ready for merge)
1386
- # ✓ SPEC-002: Testing in progress
1387
- # ⏳ SPEC-003: Implementation phase
1388
- # 🔄 SPEC-005: Active development
1389
-
1390
- # Evening: Clean completed SPECs
1391
- moai-worktree clean --merged-only
1392
- ```
1393
-
1394
- #### Technical Benefits
1395
-
1396
- ##### Memory Efficiency: Shared Git object database means minimal memory overhead compared to multiple full repositories
1397
-
1398
- ##### Disk Space Optimization: Worktrees share repository history, using only additional space for working files
1399
-
1400
- ##### Atomic Operations: Each worktree operation is atomic, preventing repository corruption
1401
-
1402
- ##### Git Native: Uses standard Git worktree functionality, ensuring compatibility with all Git tools
1403
-
1404
- #### Integration with MoAI-ADK Workflow
1405
-
1406
- moai-worktree seamlessly integrates with the MoAI-ADK Plan-Run-Sync cycle:
1407
-
1408
- 1. **Plan Phase**: `moai-worktree new SPEC-XXX` creates dedicated workspace
1409
- 2. **Run Phase**: Work in isolation without affecting other SPECs
1410
- 3. **Sync Phase**: `moai-worktree sync SPEC-XXX` ensures clean integration
1411
- 4. **Cleanup Phase**: `moai-worktree clean` removes completed worktrees
1412
-
1413
- This integration provides a complete, systematic approach to managing multiple SPECs simultaneously while maintaining the SPEC-First TDD methodology principles.
1414
-
1415
- ##### Important Note: Local files excluded from Git (such as .CLAUDE.local.md, .env, .claude/settings.local.json, etc.) are not automatically synchronized between worktrees. These files must be manually copied to each worktree directory after creation to ensure consistent development environment configuration
1416
-
1417
- ##### Command Overview
1418
-
1419
- ```bash
1420
- # List available commands
1421
- moai-worktree --help
1422
-
1423
- # Create new worktree for SPEC development
1424
- moai-worktree new SPEC-001
1425
-
1426
- # List all active worktrees
1427
- moai-worktree list
1428
-
1429
- # Go to worktree (opens new shell)
1430
- moai-worktree go SPEC-001
1431
-
1432
- # Sync worktree with base branch
1433
- moai-worktree sync SPEC-001
1434
-
1435
- # Remove specific worktree
1436
- moai-worktree remove SPEC-001
1437
-
1438
- # Clean merged branch worktrees
1439
- moai-worktree clean
1440
-
1441
- # Show worktree status and configuration
1442
- moai-worktree status
1443
-
1444
- # Configure worktree settings
1445
- moai-worktree config get
1446
- moai-worktree config set <key> <value>
1447
- ```
1448
-
1449
- ---
1450
-
1451
- ## 8. Agent Guide (28 Agents)
1452
-
1453
- ### 🎯 Agent Selection Guide
1454
-
1455
- Each agent has specific domain expertise. Select the right agent for your task.
1456
-
1457
- ### Tier 1: Domain Experts (Domain Experts)
1458
-
1459
- #### expert-backend (Backend Development)
1460
-
1461
- **Expertise**: FastAPI, Django, Node.js backend development
1462
- **Use cases**:
1463
-
1464
- - RESTful API design and implementation
1465
- - Database query optimization
1466
- - Authentication and authorization
1467
- - Server performance optimization
1468
-
1469
- ```bash
1470
- > @agent-expert-backend "Develop user authentication API with FastAPI"
1471
- ```
1472
-
1473
- ---
1474
-
1475
- #### expert-frontend (Frontend Development)
1476
-
1477
- **Expertise**: React, Vue, Next.js frontend
1478
- **Use cases**:
1479
-
1480
- - UI component implementation
1481
- - State management (Redux, Zustand)
1482
- - API integration
1483
- - Responsive design
1484
-
1485
- ```bash
1486
- > @agent-expert-frontend "Implement dashboard UI with React"
1487
- ```
1488
-
1489
- ---
1490
-
1491
- #### expert-database (Database)
1492
-
1493
- **Expertise**: SQL, NoSQL, ORM, optimization
1494
- **Use cases**:
1495
-
1496
- - Database schema design
1497
- - Query optimization
1498
- - Migration
1499
- - Performance tuning
1500
-
1501
- ```bash
1502
- > @agent-expert-database "Optimize large PostgreSQL tables"
1503
- ```
1504
-
1505
- ---
1506
-
1507
- #### expert-security (Security)
1508
-
1509
- **Expertise**: Security analysis, vulnerability scanning, OWASP
1510
- **Use cases**:
1511
-
1512
- - Security code review
1513
- - Vulnerability analysis
1514
- - OWASP Top 10 verification
1515
- - Data encryption
1516
-
1517
- ```bash
1518
- > @agent-expert-security "Security audit for login feature"
1519
- ```
1520
-
1521
- ---
1522
-
1523
- #### expert-devops (DevOps)
1524
-
1525
- **Expertise**: Docker, Kubernetes, CI/CD, deployment
1526
- **Use cases**:
1527
-
1528
- - Docker image optimization
1529
- - Kubernetes configuration
1530
- - GitHub Actions CI/CD
1531
- - Infrastructure automation
1532
-
1533
- ```bash
1534
- > @agent-expert-devops "Setup Docker deployment for Next.js app"
1535
- ```
1536
-
1537
- ---
1538
-
1539
- #### expert-uiux (UI/UX Design)
1540
-
1541
- **Expertise**: Design systems, components, accessibility
1542
- **Use cases**:
1543
-
1544
- - UI component library design
1545
- - Design system development
1546
- - Accessibility (A11y) verification
1547
- - User experience optimization
1548
-
1549
- ```bash
1550
- > @agent-expert-uiux "Build design system based on shadcn/ui"
1551
- ```
1552
-
1553
- ---
1554
-
1555
- #### expert-debug (Debugging)
1556
-
1557
- **Expertise**: Problem analysis, error tracking, performance profiling
1558
- **Use cases**:
1559
-
1560
- - Bug analysis
1561
- - Performance bottleneck analysis
1562
- - Log analysis
1563
- - Memory leak detection
1564
-
1565
- ```bash
1566
- > @agent-expert-debug "Analyze slow API response time"
1567
- ```
1568
-
1569
- ---
1570
-
1571
- #### expert-performance (Performance Optimization)
1572
-
1573
- **Expertise**: Performance profiling, load testing, optimization strategies
1574
- **Use cases**:
1575
-
1576
- - Application performance optimization
1577
- - Memory usage analysis
1578
- - Database query optimization
1579
- - Caching strategies
1580
-
1581
- ```bash
1582
- > @agent-expert-performance "Optimize application response time"
1583
- ```
1584
-
1585
- ---
1586
-
1587
- #### expert-testing (Testing Strategy)
1588
-
1589
- **Expertise**: Test planning, test automation, quality assurance
1590
- **Use cases**:
1591
-
1592
- - Test strategy design
1593
- - Test automation framework setup
1594
- - Performance testing
1595
- - Integration testing
1596
-
1597
- ```bash
1598
- > @agent-expert-testing "Design comprehensive test strategy"
1599
- ```
1600
-
1601
- ---
1602
-
1603
- ### Tier 2: Workflow Managers (8 Managers)
1604
-
1605
- #### manager-spec (SPEC Writing)
1606
-
1607
- **Purpose**: Generate SPEC documents in EARS format
1608
- **Auto-invoked**: When executing `> /moai:1-plan`
1609
-
1610
- ```bash
1611
- > @agent-manager-spec "Write SPEC for user profile API"
1612
- ```
1613
-
1614
- ---
1615
-
1616
- #### manager-tdd (TDD Implementation)
1617
-
1618
- **Purpose**: Auto-execute RED-GREEN-REFACTOR
1619
- **Auto-invoked**: When executing `> /moai:2-run`
1620
-
1621
- ```bash
1622
- > @agent-manager-tdd "Implement SPEC-001"
1623
- ```
1624
-
1625
- ---
1626
-
1627
- #### manager-docs (Documentation Automation)
1628
-
1629
- **Purpose**: Auto-generate API docs, diagrams, guides
1630
- **Auto-invoked**: When executing `> /moai:3-sync`
1631
-
1632
- ```bash
1633
- > @agent-manager-docs "Generate documentation for login feature"
1634
- ```
1635
-
1636
- ---
1637
-
1638
- #### manager-quality (Quality Verification)
1639
-
1640
- **Purpose**: TRUST 5 verification (Test, Readable, Unified, Secured, Trackable)
1641
- **Auto-invoked**: After `> /moai:2-run` completion
1642
-
1643
- ```bash
1644
- > @agent-manager-quality "Verify code quality"
1645
- ```
1646
-
1647
- ---
1648
-
1649
- #### manager-strategy (Strategy Planning)
1650
-
1651
- **Purpose**: Establish complex implementation strategies
1652
- **Use cases**:
1653
-
1654
- - Microservice architecture design
1655
- - Migration planning
1656
- - Performance optimization strategy
1657
-
1658
- ```bash
1659
- > @agent-manager-strategy "Plan monolith to microservices migration"
1660
- # Or use Built-in agent
1661
- > @agent-Plan "Plan monolith to microservices migration"
1662
- ```
1663
-
1664
- ---
1665
-
1666
- #### manager-claude-code (Claude Code Integration)
1667
-
1668
- **Purpose**: Claude Code configuration, optimization, and integration management
1669
- **Use cases**:
1670
-
1671
- - Claude Code settings optimization
1672
- - Hook configuration and management
1673
- - MCP server integration
1674
- - Performance tuning
1675
-
1676
- ```bash
1677
- > @agent-manager-claude-code "Optimize Claude Code configuration"
1678
- ```
1679
-
1680
- ---
1681
-
1682
- #### manager-git (Git Workflow)
1683
-
1684
- **Purpose**: Git workflow management, branch strategies, and automation
1685
- **Use cases**:
1686
-
1687
- - Git workflow setup
1688
- - Branch strategy design
1689
- - Commit message optimization
1690
- - Merge request automation
1691
-
1692
- ```bash
1693
- > @agent-manager-git "Setup Git workflow for team collaboration"
1694
- ```
1695
-
1696
- ---
1697
-
1698
- #### manager-project (Project Management)
1699
-
1700
- **Purpose**: Project initialization, metadata management, and template optimization
1701
- **Auto-invoked**: When executing `> /moai:0-project`
1702
-
1703
- ```bash
1704
- > @agent-manager-project "Initialize project with optimal settings"
1705
- ```
1706
-
1707
- ---
1708
-
1709
- ### Tier 3: Meta-generators (3 Generators)
1710
-
1711
- #### builder-agent
1712
-
1713
- **Purpose**: Create new agents
1714
- **Use case**: Create organization-specific agents
1715
-
1716
- ```bash
1717
- > @agent-builder-agent "Create data analysis specialist agent"
1718
- ```
1719
-
1720
- ---
1721
-
1722
- #### builder-skill
1723
-
1724
- **Purpose**: Create new skills
1725
- **Use case**: Develop team-specific skills
1726
-
1727
- ```bash
1728
- > @agent-builder-skill "Create GraphQL API development skill module"
1729
- ```
1730
-
1731
- ---
1732
-
1733
- #### builder-command
1734
-
1735
- **Purpose**: Create new commands
1736
- **Use case**: Custom workflow automation
1737
-
1738
- ```bash
1739
- > @agent-builder-command "Create > /moai:deploy command (auto-deployment workflow)"
1740
- ```
1741
-
1742
- ---
1743
-
1744
- ### Tier 4: MCP Integrators (6 Integrators)
1745
-
1746
- #### mcp-context7 (Documentation Lookup)
1747
-
1748
- **Purpose**: Real-time lookup of latest library documentation
1749
- **Use cases**:
1750
-
1751
- - Check React latest APIs
1752
- - Reference FastAPI documentation
1753
- - Verify library compatibility
1754
-
1755
- ```bash
1756
- > @agent-mcp-context7 "Lookup React 19 latest Hooks API"
1757
- ```
1758
-
1759
- ---
1760
-
1761
- #### mcp-sequential-thinking (Advanced Reasoning)
1762
-
1763
- **Purpose**: Multi-step analysis of complex problems
1764
- **Auto-activated**: When complexity > medium
1765
- **Use cases**:
1766
-
1767
- - Architecture design
1768
- - Algorithm optimization
1769
- - SPEC analysis
1770
-
1771
- ```bash
1772
- > @agent-mcp-sequential-thinking "Analyze microservices architecture design"
1773
- ```
1774
-
1775
- ---
1776
-
1777
- #### mcp-playwright (Web Automation)
1778
-
1779
- **Purpose**: E2E testing, web automation
1780
- **Use cases**:
1781
-
1782
- - E2E test writing
1783
- - Visual regression testing
1784
- - Cross-browser verification
1785
-
1786
- ```bash
1787
- > @agent-mcp-playwright "Create E2E tests for login feature"
1788
- ```
1789
-
1790
- ---
1791
-
1792
- #### mcp-figma (Design Integration)
1793
-
1794
- **Purpose**: Figma design system integration, UI components extraction
1795
- **Use cases**:
1796
-
1797
- - Design system analysis
1798
- - UI component extraction
1799
- - Design token management
1800
- - Design-to-code workflow
1801
-
1802
- ```bash
1803
- > @agent-mcp-figma "Extract design system from Figma file"
1804
- ```
1805
-
1806
- ---
1807
-
1808
- #### mcp-notion (Workspace Management)
1809
-
1810
- **Purpose**: Notion workspace management, database operations, content management
1811
- **Use cases**:
1812
-
1813
- - Documentation management
1814
- - Database operations
1815
- - Content synchronization
1816
- - Knowledge base organization
1817
-
1818
- ```bash
1819
- > @agent-mcp-notion "Sync project documentation with Notion"
1820
- ```
1821
-
1822
- ---
1823
-
1824
- ### Tier 5: AI Services (1 Service)
1825
-
1826
- #### ai-nano-banana (Image Generation)
1827
-
1828
- **Purpose**: Generate high-quality images with Gemini 3
1829
- **Use cases**:
1830
-
1831
- - UI/UX mockup generation
1832
- - Technical diagram creation
1833
- - Marketing materials
1834
- - Logo/icon generation
1835
-
1836
- For more details, see [15. 📸 ai-nano-banana Agent Usage Guide](#15---ai-nano-banana-agent-usage-guide)
1837
-
1838
- ---
1839
-
1840
- ## 9. Skill Library (46 Skills)
1841
-
1842
- ![Skill Usage Statistics](./assets/images/readme/skill-usage-stats.png)
1843
-
1844
- MoAI-ADK provides **46 specialized skills** in 7 categories. Each skill can be used independently or in combination.
1845
-
1846
- ### 🏗️ Foundation
1847
-
1848
- Core philosophy and execution rules foundation skills.
1849
-
1850
- - **moai-foundation-core**
1851
- - TRUST 5, SPEC-First TDD, agent delegation patterns, token optimization
1852
- - Execution rules for building all AI-powered development workflows
1853
-
1854
- - **moai-foundation-context**
1855
- - Enterprise context management with token budget optimization and state persistence
1856
- - Session memory system and efficient token utilization strategies
1857
-
1858
- - **moai-foundation-claude**
1859
- - Skill authoring kit aligned with Claude Code official documentation
1860
- - Agents, sub-agent templates, slash commands, hooks, memory, IAM rules
1861
-
1862
- - **moai-foundation-quality**
1863
- - TRUST 5 validation, proactive analysis, automated best practices enforcement
1864
- - Enterprise-grade code quality assurance system
1865
-
1866
- ### 🎯 Domain
1867
-
1868
- Deep expertise for specific technology domains.
1869
-
1870
- - **moai-domain-backend**
1871
- - Framework-agnostic backend design, 13+ framework expertise
1872
- - API design, database integration, microservices architecture
1873
-
1874
- - **moai-domain-frontend**
1875
- - Modern UI/UX patterns including React 19, Next.js 16, Vue 3.5
1876
- - Component architecture, state management, responsive design
1877
-
1878
- - **moai-domain-database**
1879
- - Database expertise including PostgreSQL, MongoDB, Redis
1880
- - Query performance optimization, data modeling, database strategies
1881
-
1882
- - **moai-domain-uiux**
1883
- - Enterprise design systems, component architecture, accessibility
1884
- - WCAG compliance, design tokens, icons, theming system
1885
-
1886
- ### 💻 Language (16 Skills)
1887
-
1888
- Support for various programming languages and frameworks.
1889
-
1890
- - **moai-lang-python**
1891
- - Python 3.13+ for FastAPI, Django, async patterns, data science
1892
- - Testing with pytest, modern Python features and async programming
1893
-
1894
- - **moai-lang-javascript** *(NEW)*
1895
- - ES2024+, Node.js 22 LTS, Deno, Bun runtimes
1896
- - Express, Fastify, Hono frameworks; Vitest/Jest testing; ESLint 9 flat config
1897
-
1898
- - **moai-lang-typescript**
1899
- - React 19, Next.js 16 App Router, type-safe APIs with tRPC
1900
- - Zod validation, modern TypeScript 5.9+ patterns and frontend
1901
-
1902
- - **moai-lang-go**
1903
- - High-performance microservices with Fiber, Gin, GORM
1904
- - Go 1.23+ concurrency patterns and cloud-native applications
1905
-
1906
- - **moai-lang-rust**
1907
- - Memory-safe systems programming with Axum, Tokio, SQLx
1908
- - Rust 1.91+ for WebAssembly and high-performance applications
1909
-
1910
- - **moai-lang-java**
1911
- - Spring Boot 3.3, virtual threads, Java 21 LTS enterprise patterns
1912
- - Microservices, Android apps, Akka actor systems
1913
-
1914
- - **moai-lang-csharp**
1915
- - C# 12/.NET 8 for ASP.NET Core, Entity Framework, Blazor
1916
- - Enterprise applications and MAUI cross-platform development
1917
-
1918
- - **moai-lang-swift**
1919
- - iOS/macOS development with SwiftUI, Combine, Swift 6 concurrency
1920
- - Apple ecosystem and modern Swift language features
1921
-
1922
- - **moai-lang-kotlin**
1923
- - Kotlin 2.0 for Ktor, coroutines, Compose Multiplatform
1924
- - Android 15, KMP cross-platform and Kotlin-idiomatic patterns
1925
-
1926
- - **moai-lang-ruby**
1927
- - Ruby 3.3+ for Ruby on Rails 8, ActiveRecord, Hotwire/Turbo
1928
- - Modern Ruby patterns and web development automation
1929
-
1930
- - **moai-lang-php**
1931
- - PHP 8.3+ for Laravel 11, Symfony 7, Eloquent ORM
1932
- - Modern PHP architecture and web application development
1933
-
1934
- - **moai-lang-elixir**
1935
- - Elixir 1.17+ development with Phoenix 1.7, LiveView, Ecto
1936
- - Real-time applications, distributed systems, OTP patterns
1937
-
1938
- - **moai-lang-scala**
1939
- - Scala 3.4+ for Akka, Cats Effect, ZIO, Spark
1940
- - Distributed systems and big data applications
1941
-
1942
- - **moai-lang-cpp**
1943
- - C++23/20 with RAII, smart pointers, concepts, modules
1944
- - High-performance systems, game engines, embedded systems
1945
-
1946
- - **moai-lang-flutter**
1947
- - Flutter 3.24+/Dart 3.5+ development with Riverpod, go_router
1948
- - Cross-platform mobile apps and desktop applications
1949
-
1950
- - **moai-lang-r**
1951
- - R 4.4+ data analysis with tidyverse, ggplot2, Shiny
1952
- - Statistical modeling, data visualization, interactive web apps
1953
-
1954
- ### 🚀 Platform (9 Skills)
1955
-
1956
- Integration with major cloud platforms and BaaS services.
1957
-
1958
- - **moai-platform-supabase**
1959
- - Supabase with PostgreSQL 16, pgvector, RLS, real-time subscriptions
1960
- - Serverless functions, auto-sync, Edge Functions deployment
1961
-
1962
- - **moai-platform-auth0**
1963
- - Auth0 for SSO, SAML, OIDC, organizations, B2B multi-tenancy
1964
- - Enterprise identity federation and complex auth workflows
1965
-
1966
- - **moai-platform-clerk**
1967
- - Clerk for WebAuthn, passkeys, passwordless authentication
1968
- - Modern user management and beautiful UI components
1969
-
1970
- - **moai-platform-neon**
1971
- - Neon with auto-scaling, database branching, PITR
1972
- - Serverless PostgreSQL and connection pooling optimization
1973
-
1974
- - **moai-platform-firebase-auth**
1975
- - Firebase Authentication with social auth, phone auth, anonymous login
1976
- - Google ecosystem and mobile-first authentication patterns
1977
-
1978
- - **moai-platform-firestore**
1979
- - NoSQL data modeling, real-time sync, offline support
1980
- - Mobile-first apps and Security Rules configuration
1981
-
1982
- - **moai-platform-vercel**
1983
- - Vercel for Edge Functions, Next.js optimization, ISR
1984
- - Edge-first deployment and preview deployment strategies
1985
-
1986
- - **moai-platform-railway**
1987
- - Railway for Docker, multi-service architectures, persistent volumes
1988
- - Containerized full-stack applications and auto-scaling
1989
-
1990
- - **moai-platform-convex**
1991
- - Convex for TypeScript-first reactive patterns, optimistic updates
1992
- - Real-time collaborative apps and server functions
1993
-
1994
- ### 📋 Workflow (7 Skills)
1995
-
1996
- Workflow skills for automating and optimizing development processes.
1997
-
1998
- - **moai-workflow-spec**
1999
- - EARS format, requirements clarification, Plan-Run-Sync integration
2000
- - SPEC workflow orchestration and acceptance criteria definition
2001
-
2002
- - **moai-workflow-testing**
2003
- - TDD, debugging, performance optimization, code review integration
2004
- - Comprehensive development workflows and quality assurance
2005
-
2006
- - **moai-workflow-project**
2007
- - Project management, documentation, language initialization modules
2008
- - Integrated project system and template optimization
2009
-
2010
- - **moai-workflow-templates**
2011
- - Code boilerplates, feedback templates, project optimization
2012
- - Enterprise template management and asset reuse maximization
2013
-
2014
- - **moai-workflow-jit-docs**
2015
- - Intent-based intelligent document search and caching
2016
- - Real-time API documentation access and version compatibility checks
2017
-
2018
- - **moai-workflow-docs**
2019
- - Nextra documentation system, technical writing, API documentation
2020
- - Automated documentation generation and knowledge base management
2021
-
2022
- - **moai-worktree**
2023
- - Git worktree management for parallel SPEC development
2024
- - Isolated workspaces, automatic registration, MoAI-ADK integration
2025
-
2026
- ### 📚 Library (4 Skills)
2027
-
2028
- Skills specialized for specific libraries and frameworks.
2029
-
2030
- - **moai-library-shadcn**
2031
- - Professional implementation guide for shadcn/ui, Radix, Tailwind CSS
2032
- - React components and modern UI design systems
2033
-
2034
- - **moai-library-mermaid**
2035
- - Enterprise Mermaid diagramming with MCP Playwright
2036
- - 21 diagram types and visual workflow documentation
2037
-
2038
- - **moai-library-nextra**
2039
- - Next.js-based enterprise documentation framework
2040
- - Markdown optimization and dynamic documentation generation
2041
-
2042
- - **moai-formats-data**
2043
- - TOON encoding, JSON/YAML optimization, data serialization
2044
- - Data validation and processing for modern applications
2045
-
2046
- ### 🔌 MCP (3 Skills)
2047
-
2048
- Specialized skills for MCP server integration.
2049
-
2050
- - **moai-mcp-notion**
2051
- - Notion MCP integration for workspace management and database operations
2052
- - Page creation, content automation, knowledge organization
2053
-
2054
- - **moai-mcp-figma**
2055
- - Figma MCP integration for design system extraction and component generation
2056
- - Design-to-code workflows and design token management
2057
-
2058
- - **moai-ai-nano-banana**
2059
- - Image generation with Gemini 3 Nano Banana Pro
2060
- - Professional visual content creation with natural language prompts
2061
-
2062
- ### 🎯 Skill Usage Guide
2063
-
2064
- #### How to Invoke Skills
2065
-
2066
- ```python
2067
- # Method 1: Direct invocation (developers)
2068
- Skill("moai-lang-python")
2069
-
2070
- # Method 2: Alfred auto-selection (general users)
2071
- "Create a FastAPI server in Python"
2072
- → Alfred automatically selects moai-lang-python + moai-platform-supabase
2073
- ```
2074
-
2075
- #### Skill Composition Patterns
2076
-
2077
- **Backend API**: `moai-foundation-core` + `moai-lang-python` + `moai-platform-supabase`
2078
-
2079
- **Frontend UI**: `moai-domain-uiux` + `moai-lang-typescript` + `moai-library-shadcn`
2080
-
2081
- **Documentation**: `moai-library-nextra` + `moai-workflow-docs` + `moai-library-mermaid`
2082
-
2083
- **Testing**: `moai-lang-python` + `moai-workflow-testing` + `moai-foundation-quality`
2084
-
2085
- **Data Analysis**: `moai-lang-r` + `moai-domain-database` + `moai-formats-data`
2086
-
2087
- ---
2088
-
2089
- ## 10. Composition Patterns and Examples
2090
-
2091
- ### 🎭 Agent Composition Patterns
2092
-
2093
- MoAI-ADK's 28 agents execute in optimal combinations based on task type.
2094
-
2095
- ### Pattern 1: New Feature Development
2096
-
2097
- ```text
2098
- manager-spec (Generate SPEC)
2099
-
2100
- manager-strategy (Execution plan)
2101
-
2102
- manager-tdd (TDD implementation)
2103
-
2104
- manager-docs (Documentation sync)
2105
- ```
2106
-
2107
- **Example**:
2108
-
2109
- ```bash
2110
- > /moai:1-plan "user login feature" # manager-spec
2111
- > /clear
2112
- > /moai:2-run SPEC-001 # manager-strategy → manager-tdd
2113
- > /clear
2114
- > /moai:3-sync SPEC-001 # manager-docs
2115
- ```
2116
-
2117
- ---
2118
-
2119
- ### Pattern 2: Performance Optimization
2120
-
2121
- ```text
2122
- expert-debug (Problem analysis)
2123
-
2124
- mcp-sequential-thinking (Complexity analysis)
2125
-
2126
- expert-backend (Optimization implementation)
2127
-
2128
- manager-quality (Verification)
2129
- ```
2130
-
2131
- **Example**:
2132
-
2133
- ```bash
2134
- > @agent-expert-debug "Analyze slow API response"
2135
- # → Finds bottleneck (DB query N+1 problem)
2136
-
2137
- > @agent-mcp-sequential-thinking "Plan N+1 problem optimization strategy"
2138
- # → Suggests ORM query optimization
2139
-
2140
- > @agent-expert-backend "Implement ORM query optimization"
2141
- # → Applies select_related(), prefetch_related()
2142
-
2143
- > @agent-manager-quality "Performance test and verification"
2144
- # → Response time 500ms → 50ms (90% improvement)
2145
- ```
2146
-
2147
- ---
2148
-
2149
- ### Pattern 3: UI/UX Development
2150
-
2151
- ```text
2152
- expert-uiux (Design system)
2153
-
2154
- expert-frontend (Component implementation)
2155
-
2156
- mcp-playwright (E2E testing)
2157
- ```
2158
-
2159
- **Example**:
2160
-
2161
- ```bash
2162
- > @agent-expert-uiux "Login page design based on shadcn/ui"
2163
- # → Combination of Button, Input, Card components
2164
-
2165
- > @agent-expert-frontend "Implement React login form"
2166
- # → Implementation using shadcn/ui components
2167
-
2168
- > @agent-mcp-playwright "E2E test for login scenario"
2169
- # → Auto-test success/failure cases
2170
- ```
2171
-
2172
- ---
2173
-
2174
- ### Pattern 4: Security Audit
2175
-
2176
- ```text
2177
- expert-security (Vulnerability scan)
2178
-
2179
- expert-backend (Security patch)
2180
-
2181
- manager-quality (Re-verification)
2182
- ```
2183
-
2184
- ---
2185
-
2186
- ### Pattern 5: Microservices Architecture Design
2187
-
2188
- ```bash
2189
- > @agent-mcp-sequential-thinking "Monolith to microservices migration strategy"
2190
- # → Service decomposition strategy, API gateway design
2191
-
2192
- > @agent-expert-backend "Develop user service & order service"
2193
- # → Service-specific API implementation
2194
-
2195
- > @agent-expert-devops "Kubernetes deployment configuration"
2196
- # → Auto-generate Docker, K8s manifests
2197
-
2198
- > @agent-manager-docs "Service example documentation"
2199
- # → Service map, API docs, deployment guide
2200
- ```
2201
-
2202
- ---
2203
-
2204
- ## 11. TRUST 5 Quality Assurance
2205
-
2206
- ![TRUST 5 Pentagon](./assets/images/readme/trust5-pentagon.png)
2207
-
2208
- All MoAI-ADK projects comply with the **TRUST 5** quality framework. TRUST 5 consists of 5 core principles: Test-First, Readable, Unified, Secured, Trackable, ensuring enterprise-grade software quality.
2209
-
2210
- ### T - Test-First
2211
-
2212
- **Principle**: All implementation starts with tests.
2213
-
2214
- **Verification**:
2215
-
2216
- - Test coverage >= 85%
2217
- - Write failing tests first (Red)
2218
- - Pass with code (Green)
2219
- - Refactor
2220
-
2221
- **Automation**: `manager-tdd` agent automatically executes TDD cycle
2222
-
2223
- ---
2224
-
2225
- ### R - Readable
2226
-
2227
- **Principle**: Code must be clear and easy to understand.
2228
-
2229
- **Verification**:
2230
-
2231
- - Clear variable names (minimize abbreviations)
2232
- - Code comments (complex logic)
2233
- - Pass code review
2234
- - Pass linter checks
2235
-
2236
- **Automation**: `quality-expert` agent applies style guides
2237
-
2238
- ---
2239
-
2240
- ### U - Unified
2241
-
2242
- **Principle**: Maintain consistent style across the project.
2243
-
2244
- **Verification**:
2245
-
2246
- - Follow project style guide
2247
- - Consistent naming conventions
2248
- - Unified error handling
2249
- - Standard document format
2250
-
2251
- **Automation**: `quality-expert` agent verifies consistency
2252
-
2253
- ---
2254
-
2255
- ### S - Secured
2256
-
2257
- **Principle**: All code must pass security verification.
2258
-
2259
- **Verification**:
2260
-
2261
- - OWASP Top 10 checks
2262
- - Dependency vulnerability scanning
2263
- - Encryption policy compliance
2264
- - Access control verification
2265
-
2266
- **Automation**: `expert-security` agent performs automatic security audits
2267
-
2268
- ---
2269
-
2270
- ### T - Trackable
2271
-
2272
- **Principle**: All changes must be clearly trackable.
2273
-
2274
- **Verification**:
2275
-
2276
- - Clear commit messages
2277
- - Issue tracking (GitHub Issues)
2278
- - Maintain CHANGELOG
2279
- - Code review records
2280
-
2281
- **Automation**: Git and GitHub Actions automation
2282
-
2283
- ---
2284
-
2285
- ### 🎯 TRUST 5 Verification Process
2286
-
2287
- ```mermaid
2288
- flowchart TD
2289
- Start([Write Code]) --> T[T: Testing<br/>Coverage >= 85%]
2290
- T --> R[R: Readable<br/>Pass Linter]
2291
- R --> U[U: Unified<br/>Style Check]
2292
- U --> S[S: Secured<br/>Vulnerability Scan]
2293
- S --> T2[T: Trackable<br/>Commit Message]
2294
- T2 --> Pass{All Pass?}
2295
- Pass -->|Yes| Success([Approve Deployment])
2296
- Pass -->|No| Fix[Need Fixes]
2297
- Fix --> Start
2298
- ```
2299
-
2300
- ---
2301
-
2302
- ## 12. Advanced Features
2303
-
2304
- ### 🌳 Git Worktree CLI (Parallel Development)
2305
-
2306
- **Overview**: Manage multiple Git worktrees for parallel SPEC development without context switching.
2307
-
2308
- #### Quick Start
2309
-
2310
- ```bash
2311
- # Create a new worktree for a SPEC
2312
- moai worktree create SPEC-001 feature/user-auth
2313
-
2314
- # List all worktrees
2315
- moai worktree list
2316
-
2317
- # Go to worktree
2318
- moai worktree go SPEC-001
2319
-
2320
- # Remove completed worktree
2321
- moai worktree remove SPEC-001
2322
- ```
2323
-
2324
- #### Key Benefits
2325
-
2326
- - **Parallel Development**: Work on multiple SPECs simultaneously
2327
- - **Context Isolation**: Each worktree has its own git state
2328
- - **Fast Switching**: Instant context change between features
2329
- - **Clean Main**: Keep main branch always stable
2330
-
2331
- #### Workflow Example
2332
-
2333
- ```bash
2334
- # Main development worktree (main branch)
2335
- cd ~/project-main
2336
- > /moai:1-plan "user authentication" # Creates SPEC-001
2337
-
2338
- # Create parallel worktree for SPEC-001
2339
- moai worktree create SPEC-001 feature/auth
2340
- cd ~/project-worktrees/SPEC-001
2341
-
2342
- # Work on authentication without affecting main
2343
- > /moai:2-run SPEC-001
2344
- # ... implement authentication ...
2345
-
2346
- # Go back to main for new feature
2347
- moai worktree go main
2348
- > /moai:1-plan "user dashboard" # Creates SPEC-002
2349
- ```
2350
-
2351
- ---
2352
-
2353
- ### 🔧 Enhanced Log Management
2354
-
2355
- **New unified log structure**:
2356
-
2357
- ```
2358
- .moai/
2359
- ├── logs/ # JSON logs only (runtime data)
2360
- │ ├── sessions/ # Session execution logs
2361
- │ ├── errors/ # Error logs
2362
- │ ├── execution/ # Command execution logs
2363
- │ └── archive/ # Historical logs
2364
- └── docs/ # Documentation only (user-facing)
2365
- ├── reports/ # Analysis reports
2366
- ├── analytics/ # Analytics results
2367
- └── sync/ # Synchronization records
2368
- ```
2369
-
2370
- **Automatic migration**: Existing logs automatically reorganized on `moai-adk update`.
2371
-
2372
- ---
2373
-
2374
- ## 13. Advanced Configuration
2375
-
2376
- ### 🔧 Configuration File Location
2377
-
2378
- MoAI-ADK uses `.claude/settings.json` file.
2379
-
2380
- ### 📋 Main Configuration Items
2381
-
2382
- ```json
2383
- {
2384
- "user": {
2385
- "name": "GOOS"
2386
- },
2387
- "language": {
2388
- "conversation_language": "en",
2389
- "agent_prompt_language": "en"
2390
- },
2391
- "constitution": {
2392
- "enforce_tdd": true,
2393
- "test_coverage_target": 85
2394
- },
2395
- "git_strategy": {
2396
- "mode": "personal",
2397
- "branch_creation": {
2398
- "prompt_always": true,
2399
- "auto_enabled": false
2400
- }
2401
- },
2402
- "github": {
2403
- "spec_git_workflow": "develop_direct"
2404
- },
2405
- "statusline": {
2406
- "enabled": true,
2407
- "format": "compact",
2408
- "style": "R2-D2"
2409
- }
2410
- }
2411
- ```
2412
-
2413
- ### 🌳 Git Strategy (3 Modes)
2414
-
2415
- MoAI-ADK provides 3 Git strategies suited to development environment and team composition.
2416
-
2417
- #### Mode Selection Decision Tree
2418
-
2419
- ```mermaid
2420
- flowchart TD
2421
- Q1{"Using<br/>GitHub?"}
2422
-
2423
- Q1 -->|No| Manual["<b>📦 Manual</b><br/>Local Git only<br/>━━━━━━━━<br/>Features:<br/>• Local commits only<br/>• Manual push<br/>• Optional branches<br/><br/>Target: Personal learning"]
2424
-
2425
- Q1 -->|Yes| Q2{"Team<br/>project?"}
2426
-
2427
- Q2 -->|No| Personal["<b>👤 Personal</b><br/>Personal GitHub<br/>━━━━━━━━<br/>Features:<br/>• Feature branches<br/>• Auto push<br/>• Optional PR<br/><br/>Target: Personal projects"]
2428
-
2429
- Q2 -->|Yes| Team["<b>👥 Team</b><br/>Team GitHub<br/>━━━━━━━━<br/>Features:<br/>• Auto draft PR<br/>• Required review<br/>• Auto deploy<br/><br/>Target: Team projects"]
2430
-
2431
- classDef manual fill:#fff3e0,stroke:#ff9800,stroke-width:2px
2432
- classDef personal fill:#e3f2fd,stroke:#2196f3,stroke-width:2px
2433
- classDef team fill:#f3e5f5,stroke:#9c27b0,stroke-width:2px
2434
- classDef question fill:#fafafa,stroke:#666,stroke-width:2px
2435
-
2436
- class Manual manual
2437
- class Personal personal
2438
- class Team team
2439
- class Q1,Q2 question
2440
- ```
2441
-
2442
- #### 3 Modes Comparison
2443
-
2444
- | Aspect | Manual | Personal | Team |
2445
- | --------------- | ----------------- | ------------------------------ | ------------ |
2446
- | **Use Case** | Personal learning | Personal GitHub | Team projects |
2447
- | **GitHub** | ❌ | ✅ | ✅ |
2448
- | **Branches** | Optional | Optional creation or<br>Feature auto | Feature auto |
2449
- | **Push** | Manual | Auto | Auto |
2450
- | **PR** | None | Suggested | Auto-created |
2451
- | **Code Review** | None | Optional | **Required** |
2452
- | **Deployment** | Manual | Manual | CI/CD auto |
2453
- | **Setup Time** | **5min** | 15min | 25min |
2454
-
2455
- #### Quick Setup (.moai/config/config.json)
2456
-
2457
- **Manual** (Local only):
2458
-
2459
- ```json
2460
- {
2461
- "git_strategy": {
2462
- "mode": "manual",
2463
- "branch_creation": {
2464
- "prompt_always": true,
2465
- "auto_enabled": false
2466
- }
2467
- }
2468
- }
2469
- ```
2470
-
2471
- **Personal** (Personal GitHub):
2472
-
2473
- ```json
2474
- {
2475
- "git_strategy": {
2476
- "mode": "personal",
2477
- "branch_creation": {
2478
- "prompt_always": false,
2479
- "auto_enabled": true
2480
- }
2481
- }
2482
- }
2483
- ```
2484
-
2485
- **Team** (Team projects):
2486
-
2487
- ```json
2488
- {
2489
- "git_strategy": {
2490
- "mode": "team",
2491
- "branch_creation": {
2492
- "prompt_always": false,
2493
- "auto_enabled": true
2494
- }
2495
- }
2496
- }
2497
- ```
2498
-
2499
- ---
2500
-
2501
- ## 14. FAQ & Quick Reference
2502
-
2503
- ### Q1: Is SPEC always required?
2504
-
2505
- **SPEC generation recommendation criteria:**
2506
-
2507
- | Condition | SPEC Requirement |
2508
- | -------------------- | ------------------------------------ |
2509
- | 1-2 files modified | Optional (can skip for simple cases) |
2510
- | 3-5 files modified | Recommended (clarify requirements) |
2511
- | 10+ files modified | Required (high complexity) |
2512
- | New feature addition | Recommended |
2513
- | Bug fix | Optional |
2514
-
2515
- **Proceed without SPEC:**
2516
-
2517
- ```bash
2518
- # Skip SPEC and implement directly
2519
- > @agent-expert-backend "simple bug fix"
2520
- ```
2521
-
2522
- **Proceed with SPEC:**
2523
-
2524
- ```bash
2525
- > /moai:1-plan "complex feature specification"
2526
- > /clear
2527
- > /moai:2-run SPEC-001
2528
- ```
2529
-
2530
- ---
2531
-
2532
- ### Q2: Is MCP server installation required?
2533
-
2534
- **Required MCP servers (2):**
2535
-
2536
- 1. **Context7** (Required)
2537
-
2538
- - Auto-reference latest library API documentation
2539
- - Prevent hallucination during code generation
2540
- - Installation: Automatic (included in `.mcp.json`)
2541
-
2542
- 2. **Sequential-Thinking** (Recommended)
2543
- - Complex problem analysis
2544
- - Architecture design, algorithm optimization
2545
- - Installation: Automatic (included in `.mcp.json`)
2546
-
2547
- **Optional MCP servers:**
2548
-
2549
- - Figma MCP: Design-to-code conversion
2550
- - Playwright MCP: Web automation testing
2551
- - Notion MCP: Documentation management integration
2552
-
2553
- **Verify installation:**
2554
-
2555
- ```bash
2556
- # Check MCP server list
2557
- cat .mcp.json
2558
-
2559
- # Enable/disable MCP servers (save tokens when disabled)
2560
- > @
2561
- ─────────────────────────────────────────────────────────
2562
- ✓ [mcp] context7 enabled (⏎ to toggle)
2563
- ○ [mcp] playwright disabled (⏎ to toggle)
2564
- ○ [mcp] notion disabled (⏎ to toggle)
2565
-
2566
- ```
2567
-
2568
- ---
2569
-
2570
- ## 15. 📸 ai-nano-banana Agent Usage Guide
2571
-
2572
- **Purpose**: Professional image generation using Google Gemini 3 Nano Banana Pro
2573
-
2574
- **Core Features**:
2575
-
2576
- - ✅ Generate high-quality images from natural language prompts
2577
- - ✅ Real-time AI image generation (token efficient)
2578
- - ✅ Generate directly in Claude Code
2579
- - ✅ Multiple style support (realistic, artistic, diagram, mockup, etc.)
2580
- - ✅ Batch image generation
2581
-
2582
- **Use Scenarios**:
2583
-
2584
- 1. **UI/UX Mockups**: Website, app screen designs
2585
- 2. **Technical Diagrams**: Architecture, flowcharts
2586
- 3. **Document Images**: README, presentations
2587
- 4. **Marketing Materials**: SNS content, banners
2588
- 5. **Logos/Icons**: Project branding
2589
-
2590
- #### Quick Start
2591
-
2592
- ```bash
2593
- # In Claude Code
2594
- > @agent-ai-nano-banana "Generate professional login page UI mockup"
2595
- ```
2596
-
2597
- #### Image Generation Prompts
2598
-
2599
- **Effective Prompt Patterns:**
2600
-
2601
- 1. **Specify Style**:
2602
-
2603
- ```
2604
- "Generate [realistic|artistic|minimalist|3D] style image..."
2605
- ```
2606
-
2607
- 2. **Set Quality**:
2608
-
2609
- ```
2610
- "Generate [1024x1024|1920x1080] high-resolution professional image..."
2611
- ```
2612
-
2613
- 3. **Specify Layout**:
2614
-
2615
- ```
2616
- "Generate [dark|light] theme dashboard mockup..."
2617
- ```
2618
-
2619
- 4. **Set Background**:
2620
-
2621
- ```
2622
- "Modern [white|gradient|black] background..."
2623
- ```
2624
-
2625
- 5. **Create Storyboard**:
2626
-
2627
- ```
2628
- "Generate 4-panel storyboard: step1, step2, step3, step4"
2629
- ```
2630
-
2631
- #### Practical Examples (5 types)
2632
-
2633
- **1. Web Login Page Mockup**:
2634
-
2635
- ```
2636
- Prompt: "Create a modern and clean login page UI mockup with email
2637
- and password input fields, login button. Minimalist design with blue
2638
- accent color. 1024x768 resolution, white background, professional
2639
- and modern feel"
2640
- ```
2641
-
2642
- **2. Microservices Architecture Diagram**:
2643
-
2644
- ```
2645
- Prompt: "Create a technical diagram showing 5 microservices:
2646
- API Gateway, User Service, Order Service, Payment Service,
2647
- Notification Service. Show connections with arrows.
2648
- Professional technical diagram style with white background"
2649
- ```
2650
-
2651
- **3. Mobile App Screen Series**:
2652
-
2653
- ```
2654
- Prompt: "Create 3-screen mobile app storyboard:
2655
- 1) Onboarding welcome screen, 2) User profile screen, 3) Settings screen.
2656
- iOS style, modern design, clean UI"
2657
- ```
2658
-
2659
- **4. SNS Banner (1200x630)**:
2660
-
2661
- ```
2662
- Prompt: "Create a professional LinkedIn banner for AI development company.
2663
- Include 'AI-Powered Development' text with modern tech elements.
2664
- Dark theme with blue and purple gradient"
2665
- ```
2666
-
2667
- **5. Icon Set for Documentation**:
2668
-
2669
- ```
2670
- Prompt: "Create 6 simple and professional flat design icons:
2671
- 1) Code icon, 2) Database icon, 3) Server icon,
2672
- 4) Security icon, 5) Testing icon, 6) Deployment icon.
2673
- White background, consistent style"
2674
- ```
2675
-
2676
- #### Advanced Features
2677
-
2678
- - **Batch Generation**: Generate multiple images simultaneously
2679
- - **Iterative Requests**: Generate multiple versions with fine-tuned prompts
2680
- - **Image Integration**: Auto-insert generated images in docs/presentations
2681
- - **Style Consistency**: Generate multiple images in same style
2682
-
2683
- #### Best Practices
2684
-
2685
- ✅ DO:
2686
-
2687
- - Specify concrete style (realistic, minimalist, 3d, etc.)
2688
- - Clear color descriptions (blue, gradient, dark theme, etc.)
2689
- - Specify resolution (1024x1024, 1920x1080, etc.)
2690
- - Provide context (professional, presentation, etc.)
2691
- - Generate versions with multiple prompts
2692
-
2693
- ❌ DON'T:
2694
-
2695
- - Too abstract descriptions
2696
- - Content with legal/rights issues
2697
- - Real person portraits (use synthetic faces)
2698
- - Copyrighted brand logos
2699
- - Negative content
2700
-
2701
- #### Gemini 3 Nano Banana Pro Specs
2702
-
2703
- - Model: Google Gemini 3
2704
- - Response time: 5-30 seconds
2705
- - Max resolution: 2048x2048
2706
- - Token efficiency: ~1,000-2,000 tokens per image
2707
-
2708
- #### Troubleshooting
2709
-
2710
- | Problem | Cause | Solution |
2711
- | ---------------- | ------------------- | --------------------------- |
2712
- | Generation fails | API error | Simplify prompt |
2713
- | Low quality | Unclear prompt | Add specific details |
2714
- | Style mismatch | Style not specified | Specify "realistic" etc. |
2715
- | Timeout | Complex request | Start with smaller requests |
2716
-
2717
- #### References
2718
-
2719
- - Skill: `moai-connector-nano-banana`
2720
- - Official usage: `/help` → "ai-nano-banana"
2721
- - Examples: 5 practical examples in this guide
2722
- - Gemini docs: <https://ai.google.dev/>
2723
-
2724
- ---
2725
-
2726
- ## 16. 🚀 GLM Integration with z.ai (Cost-Effective Alternative)
2727
-
2728
- ### Overview
2729
-
2730
- For developers concerned about Claude Code usage costs, MoAI-ADK supports **GLM 4.6** integration through **z.ai** at a fraction of the cost. This configuration provides full compatibility with Claude Code while offering significant cost savings.
2731
-
2732
- ### 💡 Why Choose GLM over Claude?
2733
-
2734
- | Feature | Claude Code | z.ai GLM 4.6 |
2735
- | --------------------- | ------------------------------- | ----------------------------- |
2736
- | **Cost** | $20/month (Pro plan) | **$6-$60/month (Flexible)** |
2737
- | **Models** | Claude 4.5 Sonnet, Opus, Haiku | GLM 4.6, GLM 4.5-air |
2738
- | **Compatibility** | Native | **100% Claude Compatible** |
2739
- | **Token Limits** | Limited | **Unlimited on paid plans** |
2740
- | **API Access** | Included | **Full API access** |
2741
- | **Speed** | Fast | **Comparable performance** |
2742
-
2743
- ### 🎯 GLM Coding Plan Subscription
2744
-
2745
- **Exclusive Invitation Link**:
2746
- 🚀 **You've been invited to join the GLM Coding Plan! Enjoy full support for Claude Code, Cline, and 10+ top coding tools. Starting from $3/month.**
2747
-
2748
- 👉 **Subscribe here**: https://z.ai/subscribe?ic=1NDV03BGWU
2749
- By subscribing through this link, you'll receive a 10% additional discount and dedicated credits from Z.AI to support MoAI-ADK open source development.
2750
-
2751
- #### Subscription Plans:
2752
-
2753
- | Plan | Price | Features | Best For |
2754
- | ------------- | ---------------------------------- | ----------------------------------------------------------------------- | --------------------------------- |
2755
- | **Lite** | First month $3<br/>From 2nd month $6/month | • 3x Claude Pro usage<br/>• GLM-4.6 powered<br/>• 10+ coding tools compatible | Lightweight workloads, getting started |
2756
- | **Pro** | First month $15<br/>From 2nd month $30/month | • All Lite benefits<br/>• 5× Lite plan usage<br/>• 40-60% faster<br/>• Vision, Web Search, Web Reader | Professional developers, teams |
2757
- | **Max** | First month $30<br/>From 2nd month $60/month | • All Pro benefits<br/>• 4× Pro plan usage<br/>• Guaranteed peak performance<br/>• Early feature access | High-volume workloads, power users |
2758
- | **Enterprise**| Custom | • Custom pricing<br/>• Dedicated support<br/>• SLA guarantees | Large organizations, custom needs |
2759
-
2760
- #### Benefits for GLM Coding Plan Subscribers:
2761
-
2762
- 1. **Massive Cost Savings**: Lite plan at $6/month (3x Claude Pro usage)
2763
- 2. **Full Tool Compatibility**: Supports Claude Code, Roo Code, Cline, Kilo Code, OpenCode, Crush, Goose, and more
2764
- 3. **High-Performance Models**: Powered by GLM-4.6 (comparable to Claude 4.5 Sonnet)
2765
- 4. **Flexible Pricing**: From $6 Lite to $60 Max (scales with your needs)
2766
- 5. **Performance Options**: Pro plan 40-60% faster, Max plan with guaranteed peak performance
2767
- 6. **Advanced Features**: Vision Understanding, Web Search, Web Reader MCP (Pro+)
2768
- 7. **Support MoAI-ADK**: A portion of your subscription supports continued MoAI-ADK development
2769
-
2770
- #### **🌟 Recommended Upgrade Path**
2771
-
2772
- **Step 1: Start with Lite Plan ($6/month)**
2773
- - Get 3x Claude Pro usage at just $6/month
2774
- - Try GLM-4.6 with your actual projects for 2-3 weeks
2775
- - Experience compatibility with 10+ coding tools
2776
-
2777
- **Step 2: Upgrade Based on Usage**
2778
- - **For regular development**: Upgrade to **Pro ($30/month)** for 40-60% faster performance
2779
- - **For heavy workloads**: Choose **Max ($60/month)** for guaranteed peak performance
2780
- - **Power users benefit**: Pro gives 5× Lite usage, Max gives 20× Lite usage
2781
-
2782
- **Why This Approach Works:**
2783
- - **Low barrier entry**: Only $6/month to start with professional AI coding
2784
- - **Scale as needed**: Upgrade only when your workload requires it
2785
- - **Performance gains**: Pro plan significantly faster for complex tasks
2786
- - **Advanced features**: Vision, Web Search, and Web Reader MCP available on Pro+
2787
-
2788
- #### Campaign Details (Credit Rules):
2789
-
2790
- - 📋 **Official Rules**: https://docs.z.ai/devpack/credit-campaign-rules
2791
- - 🎁 **Special Offer**: MoAI-ADK users receive additional credits
2792
- - 💝 **Community Support**: Your subscription helps fund MoAI-ADK development
2793
- - 🔄 **Flexible Usage**: Credits roll over monthly
2794
-
2795
- ### ⚙️ Quick Setup: GLM Configuration
2796
-
2797
- #### Step 1: Subscribe to GLM Coding Plan
2798
-
2799
- 1. Visit: https://z.ai/subscribe?ic=1NDV03BGWU
2800
- 2. Choose a plan:
2801
- - **Lite (First month $3, from 2nd month $6/month)**: Perfect for getting started, 3x Claude Pro usage
2802
- - **Pro (First month $15, from 2nd month $30/month)**: 40-60% faster, includes Vision and Web features
2803
- - **Max (First month $30, from 2nd month $60/month)**: Guaranteed performance, early feature access
2804
- - **Enterprise**: Custom pricing for large organizations
2805
- 3. Complete registration and payment
2806
- 4. Note your API token from the dashboard
2807
-
2808
- **💡 Pro Tip**: Start with the $6 Lite plan to test GLM-4.6, then upgrade to Pro for faster performance or Max for high-volume workloads!
2809
-
2810
- #### Step 2: Configure MoAI-ADK for GLM
2811
-
2812
- In Claude Code, run:
2813
-
2814
- ```bash
2815
- # Configure GLM with your API token
2816
- > /moai:0-project --glm-on YOUR_API_TOKEN
2817
-
2818
- # Or without token (will prompt for input)
2819
- > /moai:0-project --glm-on
2820
- ```
2821
-
2822
- **What happens during configuration:**
2823
-
2824
- ✅ **API Token Setup**: Securely stores your GLM API token
2825
- ✅ **Endpoint Configuration**: Sets up z.ai API endpoints
2826
- ✅ **Model Mapping**: Maps GLM 4.6 to Claude model tiers
2827
- ✅ **Verification**: Tests connection and model availability
2828
- ✅ **Fallback Ready**: Keeps Claude as backup option
2829
-
2830
- #### Step 3: Verify Configuration
2831
-
2832
- ```bash
2833
- # Check current configuration
2834
- > cat .claude/settings.local.json
2835
-
2836
- # Expected output:
2837
- {
2838
- "env": {
2839
- "ANTHROPIC_AUTH_TOKEN": "your_glm_token_here",
2840
- "ANTHROPIC_BASE_URL": "https://api.z.ai/api/anthropic",
2841
- "ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-4.5-air",
2842
- "ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-4.6",
2843
- "ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-4.6"
2844
- }
2845
- }
2846
- ```
2847
-
2848
- #### Step 4: Restart Claude Code
2849
-
2850
- ```bash
2851
- # Exit Claude Code and restart
2852
- > /exit
2853
- # Then
2854
- claude
2855
- ```
2856
-
2857
- GLM 4.6 is now active and ready to use!
2858
-
2859
- ### 🔄 Managing GLM Configuration
2860
-
2861
- #### Enable GLM Mode:
2862
-
2863
- ```bash
2864
- > /moai:0-project --glm-on [YOUR_TOKEN]
2865
- ```
2866
-
2867
- #### Disable GLM (Switch back to Claude):
2868
-
2869
- ```bash
2870
- > /moai:0-project --glm-off
2871
- ```
2872
-
2873
- #### Check Current Mode:
2874
-
2875
- GLM is active when:
2876
- - `.claude/settings.local.json` contains GLM configuration
2877
- - Base URL is set to `https://api.z.ai/api/anthropic`
2878
- - Models are mapped to GLM variants
2879
-
2880
- ### 📊 Performance Comparison
2881
-
2882
- Based on real-world testing with MoAI-ADK:
2883
-
2884
- | Task | Claude 4.5 Sonnet | GLM 4.6 | Performance Gap |
2885
- | ------------------------------ | ----------------- | ------------ | --------------- |
2886
- | **Code Generation** | Excellent | **Excellent** | < 5% difference |
2887
- | **TDD Implementation** | Excellent | **Very Good** | 10% faster |
2888
- | **Documentation Writing** | Very Good | **Good** | 15% faster |
2889
- | **Complex Problem Solving** | Excellent | **Very Good** | Comparable |
2890
- | **API Rate Limits** | Moderate | **Higher** | 3x-20x more usage |
2891
- | **Performance Speed** | Fast | **40-60% faster (Pro+)** | Significant improvement |
2892
- | **Advanced Features** | Basic | **Vision, Web Search, Web Reader (Pro+)** | Enhanced capabilities |
2893
- | **Cost Efficiency** | $20-$200/month | **$6-$60/month** | **Save up to 70%** |
2894
-
2895
- ### ✅ Recommended Usage Scenarios
2896
-
2897
- #### **GLM Lite ($6/month) Usage:**
2898
- - **Getting Started**: 3x Claude Pro usage at 70% less cost
2899
- - **Lightweight Workloads**: Small projects, occasional coding
2900
- - **Learning Projects**: Practice, tutorials, experiments
2901
- - **Budget-Conscious**: Professional AI coding at just $6/month
2902
-
2903
- #### **GLM Pro ($30/month) Usage:**
2904
- - **Professional Developers**: 40-60% faster performance for complex tasks
2905
- - **Daily Development**: 5× Lite usage limit with advanced features
2906
- - **Team Collaboration**: Vision understanding, web search capabilities
2907
- - **Power Users**: Faster responses for complex problem solving
2908
-
2909
- #### **GLM Max ($60/month) Usage:**
2910
- - **High-Volume Workloads**: 20× Lite usage for intensive development
2911
- - **Enterprise Teams**: Guaranteed peak-hour performance
2912
- - **Continuous Integration**: No rate limits for automated workflows
2913
- - **Early Adopters**: First access to new features and improvements
2914
-
2915
- #### **Consider Claude for:**
2916
- - **Enterprise Production**: Mission-critical deployments
2917
- - **Complex Research**: Advanced reasoning tasks
2918
- - **Large-Scale Migration**: Complex system transformations
2919
- - **Compliance Requirements**: Specific model certifications
2920
-
2921
- ### 🛠️ Troubleshooting
2922
-
2923
- | Issue | Solution |
2924
- | ------------------------ | ------------------------------------------------------------------------ |
2925
- | **Token not working** | Verify token from z.ai dashboard, ensure Coding Plan subscription |
2926
- | **Model errors** | Check endpoint URL: `https://api.z.ai/api/anthropic` |
2927
- | **Slow responses** | GLM may have higher latency during peak hours |
2928
- | **Connection refused** | Firewall may block z.ai domain, check network settings |
2929
- | **Fallback needed** | Use `--glm-off` to switch back to Claude temporarily |
2930
-
2931
- ### 🔗 Useful Links
2932
-
2933
- - **GLM Coding Plan**: https://z.ai/subscribe?ic=1NDV03BGWU
2934
- - **Credit Campaign Rules**: https://docs.z.ai/devpack/credit-campaign-rules
2935
- - **GLM Documentation**: https://docs.z.ai/
2936
- - **MoAI-ADK GLM Guide**: https://github.com/modu-ai/moai-adk/docs/glm-integration
2937
- - **Support**: support@z.ai
2938
-
2939
- ### 💬 Community & Support
2940
-
2941
- - **Discord**: Join the z.ai community for tips and updates
2942
- - **GitHub**: Report issues and request features
2943
- - **Email**: support@z.ai for technical assistance
2944
- - **MoAI-ADK**: github.com/modu-ai/moai-adk for framework-specific help
2945
-
2946
- ---
2947
-
2948
- **Start saving today while maintaining full development productivity!** 🚀
2949
-
2950
- ## 17. Additional Resources
2951
-
2952
- ### 🆘 Support (Support)
2953
-
2954
- **Email Support:**
2955
-
2956
- - Technical support: [support@mo.ai.kr](mailto:support@mo.ai.kr)
2957
-
2958
- ### 📊 Star History
2959
-
2960
- [![Star History Chart](https://api.star-history.com/svg?repos=modu-ai/moai-adk&type=Date)](https://star-history.com/#modu-ai/moai-adk&Date)
2961
-
2962
- ---
2963
-
2964
- ## 📝 License
2965
-
2966
- MoAI-ADK is licensed under the [MIT License](./LICENSE).
2967
-
2968
- ```text
2969
- MIT License
2970
-
2971
- Copyright (c) 2025 MoAI-ADK Team
2972
-
2973
- Permission is hereby granted, free of charge, to any person obtaining a copy
2974
- of this software and associated documentation files (the "Software"), to deal
2975
- in the Software without restriction, including without limitation the rights
2976
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2977
- copies of the Software, and to permit persons to whom the Software is
2978
- furnished to do so, subject to the following conditions:
2979
-
2980
- The above copyright notice and this permission notice shall be included in all
2981
- copies or substantial portions of the Software.
2982
-
2983
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2984
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2985
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2986
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2987
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2988
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2989
- SOFTWARE.
2990
- ```
2991
-
2992
- ---
2993
-
2994
- ### Made with ❤️ by MoAI-ADK Team
2995
-
2996
- **Version:** 0.33.1
2997
- **Last Updated:** 2025-12-22
2998
- **Philosophy**: SPEC-First TDD + Agent Orchestration + 85% Token Efficiency
2999
- **MoAI**: MoAI stands for "Modu-ui AI" (AI for Everyone). Our goal is to make AI accessible to everyone.