moai-adk 0.35.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

Files changed (502) hide show
  1. moai_adk/__init__.py +10 -0
  2. moai_adk/__main__.py +199 -0
  3. moai_adk/cli/__init__.py +6 -0
  4. moai_adk/cli/commands/__init__.py +17 -0
  5. moai_adk/cli/commands/analyze.py +116 -0
  6. moai_adk/cli/commands/doctor.py +272 -0
  7. moai_adk/cli/commands/init.py +372 -0
  8. moai_adk/cli/commands/language.py +248 -0
  9. moai_adk/cli/commands/status.py +104 -0
  10. moai_adk/cli/commands/update.py +2686 -0
  11. moai_adk/cli/main.py +13 -0
  12. moai_adk/cli/prompts/__init__.py +5 -0
  13. moai_adk/cli/prompts/init_prompts.py +219 -0
  14. moai_adk/cli/spec_status.py +263 -0
  15. moai_adk/cli/ui/__init__.py +44 -0
  16. moai_adk/cli/ui/progress.py +422 -0
  17. moai_adk/cli/ui/prompts.py +389 -0
  18. moai_adk/cli/ui/theme.py +129 -0
  19. moai_adk/cli/worktree/__init__.py +27 -0
  20. moai_adk/cli/worktree/__main__.py +31 -0
  21. moai_adk/cli/worktree/cli.py +683 -0
  22. moai_adk/cli/worktree/exceptions.py +89 -0
  23. moai_adk/cli/worktree/manager.py +493 -0
  24. moai_adk/cli/worktree/models.py +65 -0
  25. moai_adk/cli/worktree/registry.py +422 -0
  26. moai_adk/core/PHASE2_OPTIMIZATIONS.md +467 -0
  27. moai_adk/core/__init__.py +1 -0
  28. moai_adk/core/analysis/__init__.py +9 -0
  29. moai_adk/core/analysis/session_analyzer.py +400 -0
  30. moai_adk/core/claude_integration.py +393 -0
  31. moai_adk/core/command_helpers.py +270 -0
  32. moai_adk/core/comprehensive_monitoring_system.py +1183 -0
  33. moai_adk/core/config/__init__.py +19 -0
  34. moai_adk/core/config/auto_spec_config.py +340 -0
  35. moai_adk/core/config/migration.py +244 -0
  36. moai_adk/core/config/unified.py +436 -0
  37. moai_adk/core/context_manager.py +273 -0
  38. moai_adk/core/diagnostics/__init__.py +19 -0
  39. moai_adk/core/diagnostics/slash_commands.py +159 -0
  40. moai_adk/core/enterprise_features.py +1404 -0
  41. moai_adk/core/error_recovery_system.py +1902 -0
  42. moai_adk/core/event_driven_hook_system.py +1371 -0
  43. moai_adk/core/git/__init__.py +31 -0
  44. moai_adk/core/git/branch.py +25 -0
  45. moai_adk/core/git/branch_manager.py +129 -0
  46. moai_adk/core/git/checkpoint.py +134 -0
  47. moai_adk/core/git/commit.py +67 -0
  48. moai_adk/core/git/conflict_detector.py +413 -0
  49. moai_adk/core/git/event_detector.py +79 -0
  50. moai_adk/core/git/manager.py +216 -0
  51. moai_adk/core/hooks/post_tool_auto_spec_completion.py +901 -0
  52. moai_adk/core/input_validation_middleware.py +1006 -0
  53. moai_adk/core/integration/__init__.py +22 -0
  54. moai_adk/core/integration/engine.py +157 -0
  55. moai_adk/core/integration/integration_tester.py +226 -0
  56. moai_adk/core/integration/models.py +88 -0
  57. moai_adk/core/integration/utils.py +211 -0
  58. moai_adk/core/issue_creator.py +305 -0
  59. moai_adk/core/jit_context_loader.py +956 -0
  60. moai_adk/core/jit_enhanced_hook_manager.py +1987 -0
  61. moai_adk/core/language_config.py +202 -0
  62. moai_adk/core/language_config_resolver.py +572 -0
  63. moai_adk/core/language_validator.py +543 -0
  64. moai_adk/core/mcp/setup.py +116 -0
  65. moai_adk/core/merge/__init__.py +9 -0
  66. moai_adk/core/merge/analyzer.py +605 -0
  67. moai_adk/core/migration/__init__.py +18 -0
  68. moai_adk/core/migration/alfred_to_moai_migrator.py +383 -0
  69. moai_adk/core/migration/backup_manager.py +277 -0
  70. moai_adk/core/migration/custom_element_scanner.py +358 -0
  71. moai_adk/core/migration/file_migrator.py +209 -0
  72. moai_adk/core/migration/interactive_checkbox_ui.py +488 -0
  73. moai_adk/core/migration/selective_restorer.py +470 -0
  74. moai_adk/core/migration/template_utils.py +74 -0
  75. moai_adk/core/migration/user_selection_ui.py +338 -0
  76. moai_adk/core/migration/version_detector.py +139 -0
  77. moai_adk/core/migration/version_migrator.py +228 -0
  78. moai_adk/core/performance/__init__.py +6 -0
  79. moai_adk/core/performance/cache_system.py +316 -0
  80. moai_adk/core/performance/parallel_processor.py +116 -0
  81. moai_adk/core/phase_optimized_hook_scheduler.py +879 -0
  82. moai_adk/core/project/__init__.py +1 -0
  83. moai_adk/core/project/backup_utils.py +70 -0
  84. moai_adk/core/project/checker.py +300 -0
  85. moai_adk/core/project/detector.py +293 -0
  86. moai_adk/core/project/initializer.py +387 -0
  87. moai_adk/core/project/phase_executor.py +716 -0
  88. moai_adk/core/project/validator.py +139 -0
  89. moai_adk/core/quality/__init__.py +6 -0
  90. moai_adk/core/quality/trust_checker.py +377 -0
  91. moai_adk/core/quality/validators/__init__.py +6 -0
  92. moai_adk/core/quality/validators/base_validator.py +19 -0
  93. moai_adk/core/realtime_monitoring_dashboard.py +1724 -0
  94. moai_adk/core/robust_json_parser.py +611 -0
  95. moai_adk/core/rollback_manager.py +918 -0
  96. moai_adk/core/session_manager.py +651 -0
  97. moai_adk/core/skill_loading_system.py +579 -0
  98. moai_adk/core/spec/confidence_scoring.py +680 -0
  99. moai_adk/core/spec/ears_template_engine.py +1247 -0
  100. moai_adk/core/spec/quality_validator.py +687 -0
  101. moai_adk/core/spec_status_manager.py +478 -0
  102. moai_adk/core/template/__init__.py +7 -0
  103. moai_adk/core/template/backup.py +174 -0
  104. moai_adk/core/template/config.py +191 -0
  105. moai_adk/core/template/languages.py +43 -0
  106. moai_adk/core/template/merger.py +233 -0
  107. moai_adk/core/template/processor.py +1200 -0
  108. moai_adk/core/template_engine.py +310 -0
  109. moai_adk/core/template_variable_synchronizer.py +417 -0
  110. moai_adk/core/unified_permission_manager.py +745 -0
  111. moai_adk/core/user_behavior_analytics.py +851 -0
  112. moai_adk/core/version_sync.py +429 -0
  113. moai_adk/foundation/__init__.py +56 -0
  114. moai_adk/foundation/backend.py +1027 -0
  115. moai_adk/foundation/database.py +1115 -0
  116. moai_adk/foundation/devops.py +1585 -0
  117. moai_adk/foundation/ears.py +431 -0
  118. moai_adk/foundation/frontend.py +870 -0
  119. moai_adk/foundation/git/commit_templates.py +557 -0
  120. moai_adk/foundation/git.py +376 -0
  121. moai_adk/foundation/langs.py +484 -0
  122. moai_adk/foundation/ml_ops.py +1162 -0
  123. moai_adk/foundation/testing.py +1524 -0
  124. moai_adk/foundation/trust/trust_principles.py +676 -0
  125. moai_adk/foundation/trust/validation_checklist.py +1573 -0
  126. moai_adk/project/__init__.py +0 -0
  127. moai_adk/project/configuration.py +1084 -0
  128. moai_adk/project/documentation.py +566 -0
  129. moai_adk/project/schema.py +447 -0
  130. moai_adk/statusline/__init__.py +38 -0
  131. moai_adk/statusline/alfred_detector.py +105 -0
  132. moai_adk/statusline/config.py +376 -0
  133. moai_adk/statusline/enhanced_output_style_detector.py +372 -0
  134. moai_adk/statusline/git_collector.py +190 -0
  135. moai_adk/statusline/main.py +322 -0
  136. moai_adk/statusline/metrics_tracker.py +78 -0
  137. moai_adk/statusline/renderer.py +343 -0
  138. moai_adk/statusline/update_checker.py +129 -0
  139. moai_adk/statusline/version_reader.py +741 -0
  140. moai_adk/templates/.claude/agents/moai/ai-nano-banana.md +714 -0
  141. moai_adk/templates/.claude/agents/moai/builder-agent.md +474 -0
  142. moai_adk/templates/.claude/agents/moai/builder-command.md +1172 -0
  143. moai_adk/templates/.claude/agents/moai/builder-plugin.md +637 -0
  144. moai_adk/templates/.claude/agents/moai/builder-skill.md +666 -0
  145. moai_adk/templates/.claude/agents/moai/expert-backend.md +899 -0
  146. moai_adk/templates/.claude/agents/moai/expert-database.md +777 -0
  147. moai_adk/templates/.claude/agents/moai/expert-debug.md +401 -0
  148. moai_adk/templates/.claude/agents/moai/expert-devops.md +720 -0
  149. moai_adk/templates/.claude/agents/moai/expert-frontend.md +734 -0
  150. moai_adk/templates/.claude/agents/moai/expert-performance.md +657 -0
  151. moai_adk/templates/.claude/agents/moai/expert-security.md +513 -0
  152. moai_adk/templates/.claude/agents/moai/expert-testing.md +733 -0
  153. moai_adk/templates/.claude/agents/moai/expert-uiux.md +1041 -0
  154. moai_adk/templates/.claude/agents/moai/manager-claude-code.md +432 -0
  155. moai_adk/templates/.claude/agents/moai/manager-docs.md +573 -0
  156. moai_adk/templates/.claude/agents/moai/manager-git.md +1060 -0
  157. moai_adk/templates/.claude/agents/moai/manager-project.md +891 -0
  158. moai_adk/templates/.claude/agents/moai/manager-quality.md +624 -0
  159. moai_adk/templates/.claude/agents/moai/manager-spec.md +809 -0
  160. moai_adk/templates/.claude/agents/moai/manager-strategy.md +780 -0
  161. moai_adk/templates/.claude/agents/moai/manager-tdd.md +784 -0
  162. moai_adk/templates/.claude/agents/moai/mcp-context7.md +458 -0
  163. moai_adk/templates/.claude/agents/moai/mcp-figma.md +1607 -0
  164. moai_adk/templates/.claude/agents/moai/mcp-notion.md +789 -0
  165. moai_adk/templates/.claude/agents/moai/mcp-playwright.md +469 -0
  166. moai_adk/templates/.claude/agents/moai/mcp-sequential-thinking.md +1032 -0
  167. moai_adk/templates/.claude/commands/moai/0-project.md +1386 -0
  168. moai_adk/templates/.claude/commands/moai/1-plan.md +1427 -0
  169. moai_adk/templates/.claude/commands/moai/2-run.md +943 -0
  170. moai_adk/templates/.claude/commands/moai/3-sync.md +1324 -0
  171. moai_adk/templates/.claude/commands/moai/9-feedback.md +314 -0
  172. moai_adk/templates/.claude/hooks/__init__.py +8 -0
  173. moai_adk/templates/.claude/hooks/moai/__init__.py +8 -0
  174. moai_adk/templates/.claude/hooks/moai/lib/__init__.py +85 -0
  175. moai_adk/templates/.claude/hooks/moai/lib/checkpoint.py +244 -0
  176. moai_adk/templates/.claude/hooks/moai/lib/common.py +131 -0
  177. moai_adk/templates/.claude/hooks/moai/lib/config_manager.py +446 -0
  178. moai_adk/templates/.claude/hooks/moai/lib/config_validator.py +639 -0
  179. moai_adk/templates/.claude/hooks/moai/lib/example_config.json +104 -0
  180. moai_adk/templates/.claude/hooks/moai/lib/git_operations_manager.py +590 -0
  181. moai_adk/templates/.claude/hooks/moai/lib/language_validator.py +317 -0
  182. moai_adk/templates/.claude/hooks/moai/lib/models.py +102 -0
  183. moai_adk/templates/.claude/hooks/moai/lib/path_utils.py +28 -0
  184. moai_adk/templates/.claude/hooks/moai/lib/project.py +768 -0
  185. moai_adk/templates/.claude/hooks/moai/lib/test_hooks_improvements.py +443 -0
  186. moai_adk/templates/.claude/hooks/moai/lib/timeout.py +160 -0
  187. moai_adk/templates/.claude/hooks/moai/lib/unified_timeout_manager.py +530 -0
  188. moai_adk/templates/.claude/hooks/moai/session_end__auto_cleanup.py +862 -0
  189. moai_adk/templates/.claude/hooks/moai/session_start__show_project_info.py +1083 -0
  190. moai_adk/templates/.claude/output-styles/moai/r2d2.md +560 -0
  191. moai_adk/templates/.claude/output-styles/moai/yoda.md +359 -0
  192. moai_adk/templates/.claude/settings.json +172 -0
  193. moai_adk/templates/.claude/skills/moai-ai-nano-banana/SKILL.md +307 -0
  194. moai_adk/templates/.claude/skills/moai-ai-nano-banana/examples.md +431 -0
  195. moai_adk/templates/.claude/skills/moai-ai-nano-banana/scripts/batch_generate.py +560 -0
  196. moai_adk/templates/.claude/skills/moai-ai-nano-banana/scripts/generate_image.py +362 -0
  197. moai_adk/templates/.claude/skills/moai-docs-generation/SKILL.md +249 -0
  198. moai_adk/templates/.claude/skills/moai-docs-generation/examples.md +406 -0
  199. moai_adk/templates/.claude/skills/moai-docs-generation/modules/README.md +44 -0
  200. moai_adk/templates/.claude/skills/moai-docs-generation/modules/api-documentation.md +130 -0
  201. moai_adk/templates/.claude/skills/moai-docs-generation/modules/code-documentation.md +152 -0
  202. moai_adk/templates/.claude/skills/moai-docs-generation/modules/multi-format-output.md +178 -0
  203. moai_adk/templates/.claude/skills/moai-docs-generation/modules/user-guides.md +147 -0
  204. moai_adk/templates/.claude/skills/moai-docs-generation/reference.md +328 -0
  205. moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +320 -0
  206. moai_adk/templates/.claude/skills/moai-domain-backend/examples.md +718 -0
  207. moai_adk/templates/.claude/skills/moai-domain-backend/reference.md +464 -0
  208. moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +323 -0
  209. moai_adk/templates/.claude/skills/moai-domain-database/examples.md +830 -0
  210. moai_adk/templates/.claude/skills/moai-domain-database/modules/README.md +53 -0
  211. moai_adk/templates/.claude/skills/moai-domain-database/modules/mongodb.md +231 -0
  212. moai_adk/templates/.claude/skills/moai-domain-database/modules/postgresql.md +169 -0
  213. moai_adk/templates/.claude/skills/moai-domain-database/modules/redis.md +262 -0
  214. moai_adk/templates/.claude/skills/moai-domain-database/reference.md +545 -0
  215. moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +497 -0
  216. moai_adk/templates/.claude/skills/moai-domain-frontend/examples.md +968 -0
  217. moai_adk/templates/.claude/skills/moai-domain-frontend/reference.md +664 -0
  218. moai_adk/templates/.claude/skills/moai-domain-uiux/SKILL.md +455 -0
  219. moai_adk/templates/.claude/skills/moai-domain-uiux/examples.md +560 -0
  220. moai_adk/templates/.claude/skills/moai-domain-uiux/modules/accessibility-wcag.md +260 -0
  221. moai_adk/templates/.claude/skills/moai-domain-uiux/modules/component-architecture.md +228 -0
  222. moai_adk/templates/.claude/skills/moai-domain-uiux/modules/icon-libraries.md +401 -0
  223. moai_adk/templates/.claude/skills/moai-domain-uiux/modules/theming-system.md +373 -0
  224. moai_adk/templates/.claude/skills/moai-domain-uiux/reference.md +243 -0
  225. moai_adk/templates/.claude/skills/moai-formats-data/SKILL.md +492 -0
  226. moai_adk/templates/.claude/skills/moai-formats-data/examples.md +804 -0
  227. moai_adk/templates/.claude/skills/moai-formats-data/modules/README.md +98 -0
  228. moai_adk/templates/.claude/skills/moai-formats-data/modules/SKILL-MODULARIZATION-TEMPLATE.md +278 -0
  229. moai_adk/templates/.claude/skills/moai-formats-data/modules/caching-performance.md +459 -0
  230. moai_adk/templates/.claude/skills/moai-formats-data/modules/data-validation.md +485 -0
  231. moai_adk/templates/.claude/skills/moai-formats-data/modules/json-optimization.md +374 -0
  232. moai_adk/templates/.claude/skills/moai-formats-data/modules/toon-encoding.md +308 -0
  233. moai_adk/templates/.claude/skills/moai-formats-data/reference.md +585 -0
  234. moai_adk/templates/.claude/skills/moai-foundation-claude/SKILL.md +202 -0
  235. moai_adk/templates/.claude/skills/moai-foundation-claude/examples.md +732 -0
  236. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/best-practices-checklist.md +616 -0
  237. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-custom-slash-commands-official.md +729 -0
  238. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-hooks-official.md +560 -0
  239. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-iam-official.md +635 -0
  240. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-memory-official.md +543 -0
  241. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-settings-official.md +663 -0
  242. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-skills-official.md +113 -0
  243. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-sub-agents-official.md +238 -0
  244. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/complete-configuration-guide.md +175 -0
  245. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/skill-examples.md +1674 -0
  246. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/skill-formatting-guide.md +729 -0
  247. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/sub-agents/sub-agent-examples.md +1513 -0
  248. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/sub-agents/sub-agent-formatting-guide.md +1086 -0
  249. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/sub-agents/sub-agent-integration-patterns.md +1100 -0
  250. moai_adk/templates/.claude/skills/moai-foundation-claude/reference.md +209 -0
  251. moai_adk/templates/.claude/skills/moai-foundation-context/SKILL.md +441 -0
  252. moai_adk/templates/.claude/skills/moai-foundation-context/examples.md +1048 -0
  253. moai_adk/templates/.claude/skills/moai-foundation-context/reference.md +246 -0
  254. moai_adk/templates/.claude/skills/moai-foundation-core/SKILL.md +420 -0
  255. moai_adk/templates/.claude/skills/moai-foundation-core/examples.md +358 -0
  256. moai_adk/templates/.claude/skills/moai-foundation-core/modules/README.md +296 -0
  257. moai_adk/templates/.claude/skills/moai-foundation-core/modules/agents-reference.md +359 -0
  258. moai_adk/templates/.claude/skills/moai-foundation-core/modules/commands-reference.md +432 -0
  259. moai_adk/templates/.claude/skills/moai-foundation-core/modules/delegation-patterns.md +757 -0
  260. moai_adk/templates/.claude/skills/moai-foundation-core/modules/execution-rules.md +687 -0
  261. moai_adk/templates/.claude/skills/moai-foundation-core/modules/modular-system.md +665 -0
  262. moai_adk/templates/.claude/skills/moai-foundation-core/modules/progressive-disclosure.md +649 -0
  263. moai_adk/templates/.claude/skills/moai-foundation-core/modules/spec-first-tdd.md +864 -0
  264. moai_adk/templates/.claude/skills/moai-foundation-core/modules/token-optimization.md +708 -0
  265. moai_adk/templates/.claude/skills/moai-foundation-core/modules/trust-5-framework.md +981 -0
  266. moai_adk/templates/.claude/skills/moai-foundation-core/reference.md +478 -0
  267. moai_adk/templates/.claude/skills/moai-foundation-philosopher/SKILL.md +315 -0
  268. moai_adk/templates/.claude/skills/moai-foundation-philosopher/examples.md +228 -0
  269. moai_adk/templates/.claude/skills/moai-foundation-philosopher/modules/assumption-matrix.md +80 -0
  270. moai_adk/templates/.claude/skills/moai-foundation-philosopher/modules/cognitive-bias.md +199 -0
  271. moai_adk/templates/.claude/skills/moai-foundation-philosopher/modules/first-principles.md +140 -0
  272. moai_adk/templates/.claude/skills/moai-foundation-philosopher/modules/trade-off-analysis.md +154 -0
  273. moai_adk/templates/.claude/skills/moai-foundation-philosopher/reference.md +157 -0
  274. moai_adk/templates/.claude/skills/moai-foundation-quality/SKILL.md +364 -0
  275. moai_adk/templates/.claude/skills/moai-foundation-quality/examples.md +1232 -0
  276. moai_adk/templates/.claude/skills/moai-foundation-quality/modules/best-practices.md +261 -0
  277. moai_adk/templates/.claude/skills/moai-foundation-quality/modules/integration-patterns.md +194 -0
  278. moai_adk/templates/.claude/skills/moai-foundation-quality/modules/proactive-analysis.md +229 -0
  279. moai_adk/templates/.claude/skills/moai-foundation-quality/modules/trust5-validation.md +169 -0
  280. moai_adk/templates/.claude/skills/moai-foundation-quality/reference.md +1266 -0
  281. moai_adk/templates/.claude/skills/moai-foundation-quality/scripts/quality-gate.sh +668 -0
  282. moai_adk/templates/.claude/skills/moai-foundation-quality/templates/github-actions-quality.yml +481 -0
  283. moai_adk/templates/.claude/skills/moai-foundation-quality/templates/quality-config.yaml +519 -0
  284. moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +649 -0
  285. moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +478 -0
  286. moai_adk/templates/.claude/skills/moai-lang-elixir/SKILL.md +612 -0
  287. moai_adk/templates/.claude/skills/moai-lang-flutter/SKILL.md +477 -0
  288. moai_adk/templates/.claude/skills/moai-lang-flutter/examples.md +1090 -0
  289. moai_adk/templates/.claude/skills/moai-lang-flutter/reference.md +686 -0
  290. moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +376 -0
  291. moai_adk/templates/.claude/skills/moai-lang-go/examples.md +919 -0
  292. moai_adk/templates/.claude/skills/moai-lang-go/reference.md +737 -0
  293. moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +385 -0
  294. moai_adk/templates/.claude/skills/moai-lang-java/examples.md +864 -0
  295. moai_adk/templates/.claude/skills/moai-lang-java/reference.md +291 -0
  296. moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +382 -0
  297. moai_adk/templates/.claude/skills/moai-lang-kotlin/examples.md +1006 -0
  298. moai_adk/templates/.claude/skills/moai-lang-kotlin/reference.md +562 -0
  299. moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +644 -0
  300. moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +481 -0
  301. moai_adk/templates/.claude/skills/moai-lang-python/examples.md +977 -0
  302. moai_adk/templates/.claude/skills/moai-lang-python/reference.md +804 -0
  303. moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +579 -0
  304. moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +687 -0
  305. moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +372 -0
  306. moai_adk/templates/.claude/skills/moai-lang-rust/examples.md +659 -0
  307. moai_adk/templates/.claude/skills/moai-lang-rust/reference.md +504 -0
  308. moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +497 -0
  309. moai_adk/templates/.claude/skills/moai-lang-scala/examples.md +633 -0
  310. moai_adk/templates/.claude/skills/moai-lang-scala/reference.md +423 -0
  311. moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +497 -0
  312. moai_adk/templates/.claude/skills/moai-lang-swift/examples.md +918 -0
  313. moai_adk/templates/.claude/skills/moai-lang-swift/reference.md +672 -0
  314. moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +368 -0
  315. moai_adk/templates/.claude/skills/moai-lang-typescript/examples.md +1089 -0
  316. moai_adk/templates/.claude/skills/moai-lang-typescript/reference.md +731 -0
  317. moai_adk/templates/.claude/skills/moai-library-mermaid/SKILL.md +300 -0
  318. moai_adk/templates/.claude/skills/moai-library-mermaid/advanced-patterns.md +465 -0
  319. moai_adk/templates/.claude/skills/moai-library-mermaid/examples.md +270 -0
  320. moai_adk/templates/.claude/skills/moai-library-mermaid/optimization.md +440 -0
  321. moai_adk/templates/.claude/skills/moai-library-mermaid/reference.md +228 -0
  322. moai_adk/templates/.claude/skills/moai-library-nextra/SKILL.md +319 -0
  323. moai_adk/templates/.claude/skills/moai-library-nextra/advanced-patterns.md +336 -0
  324. moai_adk/templates/.claude/skills/moai-library-nextra/examples.md +592 -0
  325. moai_adk/templates/.claude/skills/moai-library-nextra/modules/advanced-deployment-patterns.md +182 -0
  326. moai_adk/templates/.claude/skills/moai-library-nextra/modules/advanced-patterns.md +17 -0
  327. moai_adk/templates/.claude/skills/moai-library-nextra/modules/configuration.md +57 -0
  328. moai_adk/templates/.claude/skills/moai-library-nextra/modules/content-architecture-optimization.md +162 -0
  329. moai_adk/templates/.claude/skills/moai-library-nextra/modules/deployment.md +52 -0
  330. moai_adk/templates/.claude/skills/moai-library-nextra/modules/framework-core-configuration.md +186 -0
  331. moai_adk/templates/.claude/skills/moai-library-nextra/modules/i18n-setup.md +55 -0
  332. moai_adk/templates/.claude/skills/moai-library-nextra/modules/mdx-components.md +52 -0
  333. moai_adk/templates/.claude/skills/moai-library-nextra/optimization.md +303 -0
  334. moai_adk/templates/.claude/skills/moai-library-nextra/reference.md +379 -0
  335. moai_adk/templates/.claude/skills/moai-library-shadcn/SKILL.md +372 -0
  336. moai_adk/templates/.claude/skills/moai-library-shadcn/examples.md +575 -0
  337. moai_adk/templates/.claude/skills/moai-library-shadcn/modules/advanced-patterns.md +394 -0
  338. moai_adk/templates/.claude/skills/moai-library-shadcn/modules/optimization.md +278 -0
  339. moai_adk/templates/.claude/skills/moai-library-shadcn/modules/shadcn-components.md +457 -0
  340. moai_adk/templates/.claude/skills/moai-library-shadcn/modules/shadcn-theming.md +373 -0
  341. moai_adk/templates/.claude/skills/moai-library-shadcn/reference.md +74 -0
  342. moai_adk/templates/.claude/skills/moai-mcp-figma/SKILL.md +402 -0
  343. moai_adk/templates/.claude/skills/moai-mcp-figma/advanced-patterns.md +607 -0
  344. moai_adk/templates/.claude/skills/moai-mcp-notion/SKILL.md +300 -0
  345. moai_adk/templates/.claude/skills/moai-mcp-notion/advanced-patterns.md +537 -0
  346. moai_adk/templates/.claude/skills/moai-platform-auth0/SKILL.md +291 -0
  347. moai_adk/templates/.claude/skills/moai-platform-clerk/SKILL.md +390 -0
  348. moai_adk/templates/.claude/skills/moai-platform-convex/SKILL.md +398 -0
  349. moai_adk/templates/.claude/skills/moai-platform-firebase-auth/SKILL.md +379 -0
  350. moai_adk/templates/.claude/skills/moai-platform-firestore/SKILL.md +358 -0
  351. moai_adk/templates/.claude/skills/moai-platform-neon/SKILL.md +467 -0
  352. moai_adk/templates/.claude/skills/moai-platform-railway/SKILL.md +377 -0
  353. moai_adk/templates/.claude/skills/moai-platform-supabase/SKILL.md +466 -0
  354. moai_adk/templates/.claude/skills/moai-platform-vercel/SKILL.md +482 -0
  355. moai_adk/templates/.claude/skills/moai-plugin-builder/SKILL.md +474 -0
  356. moai_adk/templates/.claude/skills/moai-plugin-builder/examples.md +621 -0
  357. moai_adk/templates/.claude/skills/moai-plugin-builder/migration.md +341 -0
  358. moai_adk/templates/.claude/skills/moai-plugin-builder/reference.md +463 -0
  359. moai_adk/templates/.claude/skills/moai-plugin-builder/validation.md +373 -0
  360. moai_adk/templates/.claude/skills/moai-security-auth0/SKILL.md +275 -0
  361. moai_adk/templates/.claude/skills/moai-security-auth0/modules/adaptive-mfa.md +233 -0
  362. moai_adk/templates/.claude/skills/moai-security-auth0/modules/akamai-integration.md +215 -0
  363. moai_adk/templates/.claude/skills/moai-security-auth0/modules/application-credentials.md +280 -0
  364. moai_adk/templates/.claude/skills/moai-security-auth0/modules/attack-protection-log-events.md +225 -0
  365. moai_adk/templates/.claude/skills/moai-security-auth0/modules/attack-protection-overview.md +140 -0
  366. moai_adk/templates/.claude/skills/moai-security-auth0/modules/bot-detection.md +144 -0
  367. moai_adk/templates/.claude/skills/moai-security-auth0/modules/breached-password-detection.md +187 -0
  368. moai_adk/templates/.claude/skills/moai-security-auth0/modules/brute-force-protection.md +189 -0
  369. moai_adk/templates/.claude/skills/moai-security-auth0/modules/certifications.md +282 -0
  370. moai_adk/templates/.claude/skills/moai-security-auth0/modules/compliance-overview.md +263 -0
  371. moai_adk/templates/.claude/skills/moai-security-auth0/modules/continuous-session-protection.md +307 -0
  372. moai_adk/templates/.claude/skills/moai-security-auth0/modules/customize-mfa.md +178 -0
  373. moai_adk/templates/.claude/skills/moai-security-auth0/modules/dpop-implementation.md +283 -0
  374. moai_adk/templates/.claude/skills/moai-security-auth0/modules/fapi-implementation.md +259 -0
  375. moai_adk/templates/.claude/skills/moai-security-auth0/modules/gdpr-compliance.md +313 -0
  376. moai_adk/templates/.claude/skills/moai-security-auth0/modules/guardian-configuration.md +269 -0
  377. moai_adk/templates/.claude/skills/moai-security-auth0/modules/highly-regulated-identity.md +272 -0
  378. moai_adk/templates/.claude/skills/moai-security-auth0/modules/jwt-fundamentals.md +248 -0
  379. moai_adk/templates/.claude/skills/moai-security-auth0/modules/mdl-verification.md +211 -0
  380. moai_adk/templates/.claude/skills/moai-security-auth0/modules/mfa-api-management.md +278 -0
  381. moai_adk/templates/.claude/skills/moai-security-auth0/modules/mfa-factors.md +226 -0
  382. moai_adk/templates/.claude/skills/moai-security-auth0/modules/mfa-overview.md +174 -0
  383. moai_adk/templates/.claude/skills/moai-security-auth0/modules/mtls-sender-constraining.md +316 -0
  384. moai_adk/templates/.claude/skills/moai-security-auth0/modules/ropg-flow-mfa.md +217 -0
  385. moai_adk/templates/.claude/skills/moai-security-auth0/modules/security-center.md +325 -0
  386. moai_adk/templates/.claude/skills/moai-security-auth0/modules/security-guidance.md +277 -0
  387. moai_adk/templates/.claude/skills/moai-security-auth0/modules/state-parameters.md +178 -0
  388. moai_adk/templates/.claude/skills/moai-security-auth0/modules/step-up-authentication.md +251 -0
  389. moai_adk/templates/.claude/skills/moai-security-auth0/modules/suspicious-ip-throttling.md +240 -0
  390. moai_adk/templates/.claude/skills/moai-security-auth0/modules/tenant-access-control.md +180 -0
  391. moai_adk/templates/.claude/skills/moai-security-auth0/modules/webauthn-fido.md +235 -0
  392. moai_adk/templates/.claude/skills/moai-workflow-jit-docs/SKILL.md +449 -0
  393. moai_adk/templates/.claude/skills/moai-workflow-jit-docs/advanced-patterns.md +379 -0
  394. moai_adk/templates/.claude/skills/moai-workflow-jit-docs/examples.md +544 -0
  395. moai_adk/templates/.claude/skills/moai-workflow-jit-docs/optimization.md +286 -0
  396. moai_adk/templates/.claude/skills/moai-workflow-jit-docs/reference.md +307 -0
  397. moai_adk/templates/.claude/skills/moai-workflow-project/README.md +190 -0
  398. moai_adk/templates/.claude/skills/moai-workflow-project/SKILL.md +390 -0
  399. moai_adk/templates/.claude/skills/moai-workflow-project/__init__.py +520 -0
  400. moai_adk/templates/.claude/skills/moai-workflow-project/complete_workflow_demo_fixed.py +574 -0
  401. moai_adk/templates/.claude/skills/moai-workflow-project/examples/complete_project_setup.py +317 -0
  402. moai_adk/templates/.claude/skills/moai-workflow-project/examples/complete_workflow_demo.py +663 -0
  403. moai_adk/templates/.claude/skills/moai-workflow-project/examples/config-migration-example.json +190 -0
  404. moai_adk/templates/.claude/skills/moai-workflow-project/examples/question-examples.json +175 -0
  405. moai_adk/templates/.claude/skills/moai-workflow-project/examples/quick_start.py +196 -0
  406. moai_adk/templates/.claude/skills/moai-workflow-project/examples.md +547 -0
  407. moai_adk/templates/.claude/skills/moai-workflow-project/modules/__init__.py +17 -0
  408. moai_adk/templates/.claude/skills/moai-workflow-project/modules/advanced-patterns.md +158 -0
  409. moai_adk/templates/.claude/skills/moai-workflow-project/modules/ask_user_integration.py +340 -0
  410. moai_adk/templates/.claude/skills/moai-workflow-project/modules/batch_questions.py +713 -0
  411. moai_adk/templates/.claude/skills/moai-workflow-project/modules/config_manager.py +538 -0
  412. moai_adk/templates/.claude/skills/moai-workflow-project/modules/documentation_manager.py +1336 -0
  413. moai_adk/templates/.claude/skills/moai-workflow-project/modules/language_initializer.py +730 -0
  414. moai_adk/templates/.claude/skills/moai-workflow-project/modules/migration_manager.py +608 -0
  415. moai_adk/templates/.claude/skills/moai-workflow-project/modules/template_optimizer.py +1005 -0
  416. moai_adk/templates/.claude/skills/moai-workflow-project/reference.md +275 -0
  417. moai_adk/templates/.claude/skills/moai-workflow-project/schemas/config-schema.json +316 -0
  418. moai_adk/templates/.claude/skills/moai-workflow-project/schemas/tab_schema.json +1434 -0
  419. moai_adk/templates/.claude/skills/moai-workflow-project/templates/config-template.json +71 -0
  420. moai_adk/templates/.claude/skills/moai-workflow-project/templates/doc-templates/product-template.md +44 -0
  421. moai_adk/templates/.claude/skills/moai-workflow-project/templates/doc-templates/structure-template.md +48 -0
  422. moai_adk/templates/.claude/skills/moai-workflow-project/templates/doc-templates/tech-template.md +92 -0
  423. moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/config-manager-setup.json +109 -0
  424. moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/language-initializer.json +228 -0
  425. moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/menu-project-config.json +130 -0
  426. moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/project-batch-questions.json +97 -0
  427. moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/spec-workflow-setup.json +150 -0
  428. moai_adk/templates/.claude/skills/moai-workflow-project/test_integration_simple.py +436 -0
  429. moai_adk/templates/.claude/skills/moai-workflow-spec/SKILL.md +534 -0
  430. moai_adk/templates/.claude/skills/moai-workflow-spec/examples.md +900 -0
  431. moai_adk/templates/.claude/skills/moai-workflow-spec/reference.md +704 -0
  432. moai_adk/templates/.claude/skills/moai-workflow-templates/SKILL.md +377 -0
  433. moai_adk/templates/.claude/skills/moai-workflow-templates/examples.md +552 -0
  434. moai_adk/templates/.claude/skills/moai-workflow-templates/modules/code-templates.md +124 -0
  435. moai_adk/templates/.claude/skills/moai-workflow-templates/modules/feedback-templates.md +100 -0
  436. moai_adk/templates/.claude/skills/moai-workflow-templates/modules/template-optimizer.md +138 -0
  437. moai_adk/templates/.claude/skills/moai-workflow-templates/reference.md +346 -0
  438. moai_adk/templates/.claude/skills/moai-workflow-testing/LICENSE.txt +202 -0
  439. moai_adk/templates/.claude/skills/moai-workflow-testing/SKILL.md +456 -0
  440. moai_adk/templates/.claude/skills/moai-workflow-testing/advanced-patterns.md +576 -0
  441. moai_adk/templates/.claude/skills/moai-workflow-testing/examples/ai-powered-testing.py +294 -0
  442. moai_adk/templates/.claude/skills/moai-workflow-testing/examples/console_logging.py +35 -0
  443. moai_adk/templates/.claude/skills/moai-workflow-testing/examples/element_discovery.py +40 -0
  444. moai_adk/templates/.claude/skills/moai-workflow-testing/examples/static_html_automation.py +34 -0
  445. moai_adk/templates/.claude/skills/moai-workflow-testing/examples.md +672 -0
  446. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/README.md +220 -0
  447. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/ai-debugging.md +845 -0
  448. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review.md +1416 -0
  449. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance-optimization.md +1234 -0
  450. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/smart-refactoring.md +1243 -0
  451. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/tdd-context7.md +1260 -0
  452. moai_adk/templates/.claude/skills/moai-workflow-testing/optimization.md +505 -0
  453. moai_adk/templates/.claude/skills/moai-workflow-testing/reference/playwright-best-practices.md +57 -0
  454. moai_adk/templates/.claude/skills/moai-workflow-testing/reference.md +440 -0
  455. moai_adk/templates/.claude/skills/moai-workflow-testing/scripts/with_server.py +218 -0
  456. moai_adk/templates/.claude/skills/moai-workflow-testing/templates/alfred-integration.md +376 -0
  457. moai_adk/templates/.claude/skills/moai-workflow-testing/workflows/enterprise-testing-workflow.py +571 -0
  458. moai_adk/templates/.claude/skills/moai-worktree/SKILL.md +411 -0
  459. moai_adk/templates/.claude/skills/moai-worktree/examples.md +606 -0
  460. moai_adk/templates/.claude/skills/moai-worktree/modules/integration-patterns.md +982 -0
  461. moai_adk/templates/.claude/skills/moai-worktree/modules/parallel-development.md +778 -0
  462. moai_adk/templates/.claude/skills/moai-worktree/modules/worktree-commands.md +646 -0
  463. moai_adk/templates/.claude/skills/moai-worktree/modules/worktree-management.md +782 -0
  464. moai_adk/templates/.claude/skills/moai-worktree/reference.md +357 -0
  465. moai_adk/templates/.git-hooks/pre-commit +128 -0
  466. moai_adk/templates/.git-hooks/pre-push +365 -0
  467. moai_adk/templates/.github/workflows/ci-universal.yml +513 -0
  468. moai_adk/templates/.github/workflows/security-secrets-check.yml +179 -0
  469. moai_adk/templates/.github/workflows/spec-issue-sync.yml +337 -0
  470. moai_adk/templates/.gitignore +222 -0
  471. moai_adk/templates/.mcp.json +13 -0
  472. moai_adk/templates/.moai/config/config.yaml +58 -0
  473. moai_adk/templates/.moai/config/questions/_schema.yaml +174 -0
  474. moai_adk/templates/.moai/config/questions/tab0-init.yaml +251 -0
  475. moai_adk/templates/.moai/config/questions/tab1-user.yaml +107 -0
  476. moai_adk/templates/.moai/config/questions/tab2-project.yaml +79 -0
  477. moai_adk/templates/.moai/config/questions/tab3-git.yaml +632 -0
  478. moai_adk/templates/.moai/config/questions/tab4-quality.yaml +182 -0
  479. moai_adk/templates/.moai/config/questions/tab5-system.yaml +96 -0
  480. moai_adk/templates/.moai/config/sections/git-strategy.yaml +116 -0
  481. moai_adk/templates/.moai/config/sections/language.yaml +11 -0
  482. moai_adk/templates/.moai/config/sections/project.yaml +13 -0
  483. moai_adk/templates/.moai/config/sections/quality.yaml +17 -0
  484. moai_adk/templates/.moai/config/sections/system.yaml +24 -0
  485. moai_adk/templates/.moai/config/sections/user.yaml +5 -0
  486. moai_adk/templates/.moai/config/statusline-config.yaml +92 -0
  487. moai_adk/templates/.moai/scripts/setup-glm.py +136 -0
  488. moai_adk/templates/CLAUDE.md +642 -0
  489. moai_adk/utils/__init__.py +30 -0
  490. moai_adk/utils/banner.py +38 -0
  491. moai_adk/utils/common.py +294 -0
  492. moai_adk/utils/link_validator.py +241 -0
  493. moai_adk/utils/logger.py +147 -0
  494. moai_adk/utils/safe_file_reader.py +206 -0
  495. moai_adk/utils/timeout.py +160 -0
  496. moai_adk/utils/toon_utils.py +256 -0
  497. moai_adk/version.py +22 -0
  498. moai_adk-0.35.1.dist-info/METADATA +3018 -0
  499. moai_adk-0.35.1.dist-info/RECORD +502 -0
  500. moai_adk-0.35.1.dist-info/WHEEL +4 -0
  501. moai_adk-0.35.1.dist-info/entry_points.txt +3 -0
  502. moai_adk-0.35.1.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,3018 @@
1
+ Metadata-Version: 2.4
2
+ Name: moai-adk
3
+ Version: 0.35.1
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-48-skills) | Explore 48 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 (29 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 (4 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
+ #### builder-plugin
1745
+
1746
+ **Purpose**: Create and manage Claude Code plugins
1747
+ **Use case**: Plugin creation, validation, and migration
1748
+
1749
+ ```bash
1750
+ > @agent-builder-plugin "Create security-tools plugin with commands, agents, and hooks"
1751
+ ```
1752
+
1753
+ ---
1754
+
1755
+ ### Tier 4: MCP Integrators (6 Integrators)
1756
+
1757
+ #### mcp-context7 (Documentation Lookup)
1758
+
1759
+ **Purpose**: Real-time lookup of latest library documentation
1760
+ **Use cases**:
1761
+
1762
+ - Check React latest APIs
1763
+ - Reference FastAPI documentation
1764
+ - Verify library compatibility
1765
+
1766
+ ```bash
1767
+ > @agent-mcp-context7 "Lookup React 19 latest Hooks API"
1768
+ ```
1769
+
1770
+ ---
1771
+
1772
+ #### mcp-sequential-thinking (Advanced Reasoning)
1773
+
1774
+ **Purpose**: Multi-step analysis of complex problems
1775
+ **Auto-activated**: When complexity > medium
1776
+ **Use cases**:
1777
+
1778
+ - Architecture design
1779
+ - Algorithm optimization
1780
+ - SPEC analysis
1781
+
1782
+ ```bash
1783
+ > @agent-mcp-sequential-thinking "Analyze microservices architecture design"
1784
+ ```
1785
+
1786
+ ---
1787
+
1788
+ #### mcp-playwright (Web Automation)
1789
+
1790
+ **Purpose**: E2E testing, web automation
1791
+ **Use cases**:
1792
+
1793
+ - E2E test writing
1794
+ - Visual regression testing
1795
+ - Cross-browser verification
1796
+
1797
+ ```bash
1798
+ > @agent-mcp-playwright "Create E2E tests for login feature"
1799
+ ```
1800
+
1801
+ ---
1802
+
1803
+ #### mcp-figma (Design Integration)
1804
+
1805
+ **Purpose**: Figma design system integration, UI components extraction
1806
+ **Use cases**:
1807
+
1808
+ - Design system analysis
1809
+ - UI component extraction
1810
+ - Design token management
1811
+ - Design-to-code workflow
1812
+
1813
+ ```bash
1814
+ > @agent-mcp-figma "Extract design system from Figma file"
1815
+ ```
1816
+
1817
+ ---
1818
+
1819
+ #### mcp-notion (Workspace Management)
1820
+
1821
+ **Purpose**: Notion workspace management, database operations, content management
1822
+ **Use cases**:
1823
+
1824
+ - Documentation management
1825
+ - Database operations
1826
+ - Content synchronization
1827
+ - Knowledge base organization
1828
+
1829
+ ```bash
1830
+ > @agent-mcp-notion "Sync project documentation with Notion"
1831
+ ```
1832
+
1833
+ ---
1834
+
1835
+ ### Tier 5: AI Services (1 Service)
1836
+
1837
+ #### ai-nano-banana (Image Generation)
1838
+
1839
+ **Purpose**: Generate high-quality images with Gemini 3
1840
+ **Use cases**:
1841
+
1842
+ - UI/UX mockup generation
1843
+ - Technical diagram creation
1844
+ - Marketing materials
1845
+ - Logo/icon generation
1846
+
1847
+ For more details, see [15. 📸 ai-nano-banana Agent Usage Guide](#15---ai-nano-banana-agent-usage-guide)
1848
+
1849
+ ---
1850
+
1851
+ ## 9. Skill Library (48 Skills)
1852
+
1853
+ ![Skill Usage Statistics](./assets/images/readme/skill-usage-stats.png)
1854
+
1855
+ MoAI-ADK provides **48 specialized skills** in 7 categories. Each skill can be used independently or in combination.
1856
+
1857
+ ### 🏗️ Foundation
1858
+
1859
+ Core philosophy and execution rules foundation skills.
1860
+
1861
+ - **moai-foundation-core**
1862
+ - TRUST 5, SPEC-First TDD, agent delegation patterns, token optimization
1863
+ - Execution rules for building all AI-powered development workflows
1864
+
1865
+ - **moai-foundation-context**
1866
+ - Enterprise context management with token budget optimization and state persistence
1867
+ - Session memory system and efficient token utilization strategies
1868
+
1869
+ - **moai-foundation-claude**
1870
+ - Skill authoring kit aligned with Claude Code official documentation
1871
+ - Agents, sub-agent templates, slash commands, hooks, memory, IAM rules
1872
+
1873
+ - **moai-foundation-quality**
1874
+ - TRUST 5 validation, proactive analysis, automated best practices enforcement
1875
+ - Enterprise-grade code quality assurance system
1876
+
1877
+ - **moai-plugin-builder**
1878
+ - Claude Code plugin development patterns, templates, and best practices
1879
+ - Plugin structure, component generation, validation, and migration guides
1880
+
1881
+ ### 🎯 Domain
1882
+
1883
+ Deep expertise for specific technology domains.
1884
+
1885
+ - **moai-domain-backend**
1886
+ - Framework-agnostic backend design, 13+ framework expertise
1887
+ - API design, database integration, microservices architecture
1888
+
1889
+ - **moai-domain-frontend**
1890
+ - Modern UI/UX patterns including React 19, Next.js 16, Vue 3.5
1891
+ - Component architecture, state management, responsive design
1892
+
1893
+ - **moai-domain-database**
1894
+ - Database expertise including PostgreSQL, MongoDB, Redis
1895
+ - Query performance optimization, data modeling, database strategies
1896
+
1897
+ - **moai-domain-uiux**
1898
+ - Enterprise design systems, component architecture, accessibility
1899
+ - WCAG compliance, design tokens, icons, theming system
1900
+
1901
+ ### 💻 Language (16 Skills)
1902
+
1903
+ Support for various programming languages and frameworks.
1904
+
1905
+ - **moai-lang-python**
1906
+ - Python 3.13+ for FastAPI, Django, async patterns, data science
1907
+ - Testing with pytest, modern Python features and async programming
1908
+
1909
+ - **moai-lang-javascript** *(NEW)*
1910
+ - ES2024+, Node.js 22 LTS, Deno, Bun runtimes
1911
+ - Express, Fastify, Hono frameworks; Vitest/Jest testing; ESLint 9 flat config
1912
+
1913
+ - **moai-lang-typescript**
1914
+ - React 19, Next.js 16 App Router, type-safe APIs with tRPC
1915
+ - Zod validation, modern TypeScript 5.9+ patterns and frontend
1916
+
1917
+ - **moai-lang-go**
1918
+ - High-performance microservices with Fiber, Gin, GORM
1919
+ - Go 1.23+ concurrency patterns and cloud-native applications
1920
+
1921
+ - **moai-lang-rust**
1922
+ - Memory-safe systems programming with Axum, Tokio, SQLx
1923
+ - Rust 1.91+ for WebAssembly and high-performance applications
1924
+
1925
+ - **moai-lang-java**
1926
+ - Spring Boot 3.3, virtual threads, Java 21 LTS enterprise patterns
1927
+ - Microservices, Android apps, Akka actor systems
1928
+
1929
+ - **moai-lang-csharp**
1930
+ - C# 12/.NET 8 for ASP.NET Core, Entity Framework, Blazor
1931
+ - Enterprise applications and MAUI cross-platform development
1932
+
1933
+ - **moai-lang-swift**
1934
+ - iOS/macOS development with SwiftUI, Combine, Swift 6 concurrency
1935
+ - Apple ecosystem and modern Swift language features
1936
+
1937
+ - **moai-lang-kotlin**
1938
+ - Kotlin 2.0 for Ktor, coroutines, Compose Multiplatform
1939
+ - Android 15, KMP cross-platform and Kotlin-idiomatic patterns
1940
+
1941
+ - **moai-lang-ruby**
1942
+ - Ruby 3.3+ for Ruby on Rails 8, ActiveRecord, Hotwire/Turbo
1943
+ - Modern Ruby patterns and web development automation
1944
+
1945
+ - **moai-lang-php**
1946
+ - PHP 8.3+ for Laravel 11, Symfony 7, Eloquent ORM
1947
+ - Modern PHP architecture and web application development
1948
+
1949
+ - **moai-lang-elixir**
1950
+ - Elixir 1.17+ development with Phoenix 1.7, LiveView, Ecto
1951
+ - Real-time applications, distributed systems, OTP patterns
1952
+
1953
+ - **moai-lang-scala**
1954
+ - Scala 3.4+ for Akka, Cats Effect, ZIO, Spark
1955
+ - Distributed systems and big data applications
1956
+
1957
+ - **moai-lang-cpp**
1958
+ - C++23/20 with RAII, smart pointers, concepts, modules
1959
+ - High-performance systems, game engines, embedded systems
1960
+
1961
+ - **moai-lang-flutter**
1962
+ - Flutter 3.24+/Dart 3.5+ development with Riverpod, go_router
1963
+ - Cross-platform mobile apps and desktop applications
1964
+
1965
+ - **moai-lang-r**
1966
+ - R 4.4+ data analysis with tidyverse, ggplot2, Shiny
1967
+ - Statistical modeling, data visualization, interactive web apps
1968
+
1969
+ ### 🚀 Platform (10 Skills)
1970
+
1971
+ Integration with major cloud platforms and BaaS services.
1972
+
1973
+ - **moai-platform-supabase**
1974
+ - Supabase with PostgreSQL 16, pgvector, RLS, real-time subscriptions
1975
+ - Serverless functions, auto-sync, Edge Functions deployment
1976
+
1977
+ - **moai-platform-auth0**
1978
+ - Auth0 for SSO, SAML, OIDC, organizations, B2B multi-tenancy
1979
+ - Enterprise identity federation and complex auth workflows
1980
+
1981
+ - **moai-security-auth0** *(NEW)*
1982
+ - Auth0 security specialist: Attack Protection, MFA, Token Security
1983
+ - DPoP/mTLS sender constraining, FAPI/GDPR/HIPAA compliance
1984
+
1985
+ - **moai-platform-clerk**
1986
+ - Clerk for WebAuthn, passkeys, passwordless authentication
1987
+ - Modern user management and beautiful UI components
1988
+
1989
+ - **moai-platform-neon**
1990
+ - Neon with auto-scaling, database branching, PITR
1991
+ - Serverless PostgreSQL and connection pooling optimization
1992
+
1993
+ - **moai-platform-firebase-auth**
1994
+ - Firebase Authentication with social auth, phone auth, anonymous login
1995
+ - Google ecosystem and mobile-first authentication patterns
1996
+
1997
+ - **moai-platform-firestore**
1998
+ - NoSQL data modeling, real-time sync, offline support
1999
+ - Mobile-first apps and Security Rules configuration
2000
+
2001
+ - **moai-platform-vercel**
2002
+ - Vercel for Edge Functions, Next.js optimization, ISR
2003
+ - Edge-first deployment and preview deployment strategies
2004
+
2005
+ - **moai-platform-railway**
2006
+ - Railway for Docker, multi-service architectures, persistent volumes
2007
+ - Containerized full-stack applications and auto-scaling
2008
+
2009
+ - **moai-platform-convex**
2010
+ - Convex for TypeScript-first reactive patterns, optimistic updates
2011
+ - Real-time collaborative apps and server functions
2012
+
2013
+ ### 📋 Workflow (7 Skills)
2014
+
2015
+ Workflow skills for automating and optimizing development processes.
2016
+
2017
+ - **moai-workflow-spec**
2018
+ - EARS format, requirements clarification, Plan-Run-Sync integration
2019
+ - SPEC workflow orchestration and acceptance criteria definition
2020
+
2021
+ - **moai-workflow-testing**
2022
+ - TDD, debugging, performance optimization, code review integration
2023
+ - Comprehensive development workflows and quality assurance
2024
+
2025
+ - **moai-workflow-project**
2026
+ - Project management, documentation, language initialization modules
2027
+ - Integrated project system and template optimization
2028
+
2029
+ - **moai-workflow-templates**
2030
+ - Code boilerplates, feedback templates, project optimization
2031
+ - Enterprise template management and asset reuse maximization
2032
+
2033
+ - **moai-workflow-jit-docs**
2034
+ - Intent-based intelligent document search and caching
2035
+ - Real-time API documentation access and version compatibility checks
2036
+
2037
+ - **moai-workflow-docs**
2038
+ - Nextra documentation system, technical writing, API documentation
2039
+ - Automated documentation generation and knowledge base management
2040
+
2041
+ - **moai-worktree**
2042
+ - Git worktree management for parallel SPEC development
2043
+ - Isolated workspaces, automatic registration, MoAI-ADK integration
2044
+
2045
+ ### 📚 Library (4 Skills)
2046
+
2047
+ Skills specialized for specific libraries and frameworks.
2048
+
2049
+ - **moai-library-shadcn**
2050
+ - Professional implementation guide for shadcn/ui, Radix, Tailwind CSS
2051
+ - React components and modern UI design systems
2052
+
2053
+ - **moai-library-mermaid**
2054
+ - Enterprise Mermaid diagramming with MCP Playwright
2055
+ - 21 diagram types and visual workflow documentation
2056
+
2057
+ - **moai-library-nextra**
2058
+ - Next.js-based enterprise documentation framework
2059
+ - Markdown optimization and dynamic documentation generation
2060
+
2061
+ - **moai-formats-data**
2062
+ - TOON encoding, JSON/YAML optimization, data serialization
2063
+ - Data validation and processing for modern applications
2064
+
2065
+ ### 🔌 MCP (3 Skills)
2066
+
2067
+ Specialized skills for MCP server integration.
2068
+
2069
+ - **moai-mcp-notion**
2070
+ - Notion MCP integration for workspace management and database operations
2071
+ - Page creation, content automation, knowledge organization
2072
+
2073
+ - **moai-mcp-figma**
2074
+ - Figma MCP integration for design system extraction and component generation
2075
+ - Design-to-code workflows and design token management
2076
+
2077
+ - **moai-ai-nano-banana**
2078
+ - Image generation with Gemini 3 Nano Banana Pro
2079
+ - Professional visual content creation with natural language prompts
2080
+
2081
+ ### 🎯 Skill Usage Guide
2082
+
2083
+ #### How to Invoke Skills
2084
+
2085
+ ```python
2086
+ # Method 1: Direct invocation (developers)
2087
+ Skill("moai-lang-python")
2088
+
2089
+ # Method 2: Alfred auto-selection (general users)
2090
+ "Create a FastAPI server in Python"
2091
+ → Alfred automatically selects moai-lang-python + moai-platform-supabase
2092
+ ```
2093
+
2094
+ #### Skill Composition Patterns
2095
+
2096
+ **Backend API**: `moai-foundation-core` + `moai-lang-python` + `moai-platform-supabase`
2097
+
2098
+ **Frontend UI**: `moai-domain-uiux` + `moai-lang-typescript` + `moai-library-shadcn`
2099
+
2100
+ **Documentation**: `moai-library-nextra` + `moai-workflow-docs` + `moai-library-mermaid`
2101
+
2102
+ **Testing**: `moai-lang-python` + `moai-workflow-testing` + `moai-foundation-quality`
2103
+
2104
+ **Data Analysis**: `moai-lang-r` + `moai-domain-database` + `moai-formats-data`
2105
+
2106
+ ---
2107
+
2108
+ ## 10. Composition Patterns and Examples
2109
+
2110
+ ### 🎭 Agent Composition Patterns
2111
+
2112
+ MoAI-ADK's 28 agents execute in optimal combinations based on task type.
2113
+
2114
+ ### Pattern 1: New Feature Development
2115
+
2116
+ ```text
2117
+ manager-spec (Generate SPEC)
2118
+
2119
+ manager-strategy (Execution plan)
2120
+
2121
+ manager-tdd (TDD implementation)
2122
+
2123
+ manager-docs (Documentation sync)
2124
+ ```
2125
+
2126
+ **Example**:
2127
+
2128
+ ```bash
2129
+ > /moai:1-plan "user login feature" # manager-spec
2130
+ > /clear
2131
+ > /moai:2-run SPEC-001 # manager-strategy → manager-tdd
2132
+ > /clear
2133
+ > /moai:3-sync SPEC-001 # manager-docs
2134
+ ```
2135
+
2136
+ ---
2137
+
2138
+ ### Pattern 2: Performance Optimization
2139
+
2140
+ ```text
2141
+ expert-debug (Problem analysis)
2142
+
2143
+ mcp-sequential-thinking (Complexity analysis)
2144
+
2145
+ expert-backend (Optimization implementation)
2146
+
2147
+ manager-quality (Verification)
2148
+ ```
2149
+
2150
+ **Example**:
2151
+
2152
+ ```bash
2153
+ > @agent-expert-debug "Analyze slow API response"
2154
+ # → Finds bottleneck (DB query N+1 problem)
2155
+
2156
+ > @agent-mcp-sequential-thinking "Plan N+1 problem optimization strategy"
2157
+ # → Suggests ORM query optimization
2158
+
2159
+ > @agent-expert-backend "Implement ORM query optimization"
2160
+ # → Applies select_related(), prefetch_related()
2161
+
2162
+ > @agent-manager-quality "Performance test and verification"
2163
+ # → Response time 500ms → 50ms (90% improvement)
2164
+ ```
2165
+
2166
+ ---
2167
+
2168
+ ### Pattern 3: UI/UX Development
2169
+
2170
+ ```text
2171
+ expert-uiux (Design system)
2172
+
2173
+ expert-frontend (Component implementation)
2174
+
2175
+ mcp-playwright (E2E testing)
2176
+ ```
2177
+
2178
+ **Example**:
2179
+
2180
+ ```bash
2181
+ > @agent-expert-uiux "Login page design based on shadcn/ui"
2182
+ # → Combination of Button, Input, Card components
2183
+
2184
+ > @agent-expert-frontend "Implement React login form"
2185
+ # → Implementation using shadcn/ui components
2186
+
2187
+ > @agent-mcp-playwright "E2E test for login scenario"
2188
+ # → Auto-test success/failure cases
2189
+ ```
2190
+
2191
+ ---
2192
+
2193
+ ### Pattern 4: Security Audit
2194
+
2195
+ ```text
2196
+ expert-security (Vulnerability scan)
2197
+
2198
+ expert-backend (Security patch)
2199
+
2200
+ manager-quality (Re-verification)
2201
+ ```
2202
+
2203
+ ---
2204
+
2205
+ ### Pattern 5: Microservices Architecture Design
2206
+
2207
+ ```bash
2208
+ > @agent-mcp-sequential-thinking "Monolith to microservices migration strategy"
2209
+ # → Service decomposition strategy, API gateway design
2210
+
2211
+ > @agent-expert-backend "Develop user service & order service"
2212
+ # → Service-specific API implementation
2213
+
2214
+ > @agent-expert-devops "Kubernetes deployment configuration"
2215
+ # → Auto-generate Docker, K8s manifests
2216
+
2217
+ > @agent-manager-docs "Service example documentation"
2218
+ # → Service map, API docs, deployment guide
2219
+ ```
2220
+
2221
+ ---
2222
+
2223
+ ## 11. TRUST 5 Quality Assurance
2224
+
2225
+ ![TRUST 5 Pentagon](./assets/images/readme/trust5-pentagon.png)
2226
+
2227
+ 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.
2228
+
2229
+ ### T - Test-First
2230
+
2231
+ **Principle**: All implementation starts with tests.
2232
+
2233
+ **Verification**:
2234
+
2235
+ - Test coverage >= 85%
2236
+ - Write failing tests first (Red)
2237
+ - Pass with code (Green)
2238
+ - Refactor
2239
+
2240
+ **Automation**: `manager-tdd` agent automatically executes TDD cycle
2241
+
2242
+ ---
2243
+
2244
+ ### R - Readable
2245
+
2246
+ **Principle**: Code must be clear and easy to understand.
2247
+
2248
+ **Verification**:
2249
+
2250
+ - Clear variable names (minimize abbreviations)
2251
+ - Code comments (complex logic)
2252
+ - Pass code review
2253
+ - Pass linter checks
2254
+
2255
+ **Automation**: `quality-expert` agent applies style guides
2256
+
2257
+ ---
2258
+
2259
+ ### U - Unified
2260
+
2261
+ **Principle**: Maintain consistent style across the project.
2262
+
2263
+ **Verification**:
2264
+
2265
+ - Follow project style guide
2266
+ - Consistent naming conventions
2267
+ - Unified error handling
2268
+ - Standard document format
2269
+
2270
+ **Automation**: `quality-expert` agent verifies consistency
2271
+
2272
+ ---
2273
+
2274
+ ### S - Secured
2275
+
2276
+ **Principle**: All code must pass security verification.
2277
+
2278
+ **Verification**:
2279
+
2280
+ - OWASP Top 10 checks
2281
+ - Dependency vulnerability scanning
2282
+ - Encryption policy compliance
2283
+ - Access control verification
2284
+
2285
+ **Automation**: `expert-security` agent performs automatic security audits
2286
+
2287
+ ---
2288
+
2289
+ ### T - Trackable
2290
+
2291
+ **Principle**: All changes must be clearly trackable.
2292
+
2293
+ **Verification**:
2294
+
2295
+ - Clear commit messages
2296
+ - Issue tracking (GitHub Issues)
2297
+ - Maintain CHANGELOG
2298
+ - Code review records
2299
+
2300
+ **Automation**: Git and GitHub Actions automation
2301
+
2302
+ ---
2303
+
2304
+ ### 🎯 TRUST 5 Verification Process
2305
+
2306
+ ```mermaid
2307
+ flowchart TD
2308
+ Start([Write Code]) --> T[T: Testing<br/>Coverage >= 85%]
2309
+ T --> R[R: Readable<br/>Pass Linter]
2310
+ R --> U[U: Unified<br/>Style Check]
2311
+ U --> S[S: Secured<br/>Vulnerability Scan]
2312
+ S --> T2[T: Trackable<br/>Commit Message]
2313
+ T2 --> Pass{All Pass?}
2314
+ Pass -->|Yes| Success([Approve Deployment])
2315
+ Pass -->|No| Fix[Need Fixes]
2316
+ Fix --> Start
2317
+ ```
2318
+
2319
+ ---
2320
+
2321
+ ## 12. Advanced Features
2322
+
2323
+ ### 🌳 Git Worktree CLI (Parallel Development)
2324
+
2325
+ **Overview**: Manage multiple Git worktrees for parallel SPEC development without context switching.
2326
+
2327
+ #### Quick Start
2328
+
2329
+ ```bash
2330
+ # Create a new worktree for a SPEC
2331
+ moai worktree create SPEC-001 feature/user-auth
2332
+
2333
+ # List all worktrees
2334
+ moai worktree list
2335
+
2336
+ # Go to worktree
2337
+ moai worktree go SPEC-001
2338
+
2339
+ # Remove completed worktree
2340
+ moai worktree remove SPEC-001
2341
+ ```
2342
+
2343
+ #### Key Benefits
2344
+
2345
+ - **Parallel Development**: Work on multiple SPECs simultaneously
2346
+ - **Context Isolation**: Each worktree has its own git state
2347
+ - **Fast Switching**: Instant context change between features
2348
+ - **Clean Main**: Keep main branch always stable
2349
+
2350
+ #### Workflow Example
2351
+
2352
+ ```bash
2353
+ # Main development worktree (main branch)
2354
+ cd ~/project-main
2355
+ > /moai:1-plan "user authentication" # Creates SPEC-001
2356
+
2357
+ # Create parallel worktree for SPEC-001
2358
+ moai worktree create SPEC-001 feature/auth
2359
+ cd ~/project-worktrees/SPEC-001
2360
+
2361
+ # Work on authentication without affecting main
2362
+ > /moai:2-run SPEC-001
2363
+ # ... implement authentication ...
2364
+
2365
+ # Go back to main for new feature
2366
+ moai worktree go main
2367
+ > /moai:1-plan "user dashboard" # Creates SPEC-002
2368
+ ```
2369
+
2370
+ ---
2371
+
2372
+ ### 🔧 Enhanced Log Management
2373
+
2374
+ **New unified log structure**:
2375
+
2376
+ ```
2377
+ .moai/
2378
+ ├── logs/ # JSON logs only (runtime data)
2379
+ │ ├── sessions/ # Session execution logs
2380
+ │ ├── errors/ # Error logs
2381
+ │ ├── execution/ # Command execution logs
2382
+ │ └── archive/ # Historical logs
2383
+ └── docs/ # Documentation only (user-facing)
2384
+ ├── reports/ # Analysis reports
2385
+ ├── analytics/ # Analytics results
2386
+ └── sync/ # Synchronization records
2387
+ ```
2388
+
2389
+ **Automatic migration**: Existing logs automatically reorganized on `moai-adk update`.
2390
+
2391
+ ---
2392
+
2393
+ ## 13. Advanced Configuration
2394
+
2395
+ ### 🔧 Configuration File Location
2396
+
2397
+ MoAI-ADK uses `.claude/settings.json` file.
2398
+
2399
+ ### 📋 Main Configuration Items
2400
+
2401
+ ```json
2402
+ {
2403
+ "user": {
2404
+ "name": "GOOS"
2405
+ },
2406
+ "language": {
2407
+ "conversation_language": "en",
2408
+ "agent_prompt_language": "en"
2409
+ },
2410
+ "constitution": {
2411
+ "enforce_tdd": true,
2412
+ "test_coverage_target": 85
2413
+ },
2414
+ "git_strategy": {
2415
+ "mode": "personal",
2416
+ "branch_creation": {
2417
+ "prompt_always": true,
2418
+ "auto_enabled": false
2419
+ }
2420
+ },
2421
+ "github": {
2422
+ "spec_git_workflow": "develop_direct"
2423
+ },
2424
+ "statusline": {
2425
+ "enabled": true,
2426
+ "format": "compact",
2427
+ "style": "R2-D2"
2428
+ }
2429
+ }
2430
+ ```
2431
+
2432
+ ### 🌳 Git Strategy (3 Modes)
2433
+
2434
+ MoAI-ADK provides 3 Git strategies suited to development environment and team composition.
2435
+
2436
+ #### Mode Selection Decision Tree
2437
+
2438
+ ```mermaid
2439
+ flowchart TD
2440
+ Q1{"Using<br/>GitHub?"}
2441
+
2442
+ 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"]
2443
+
2444
+ Q1 -->|Yes| Q2{"Team<br/>project?"}
2445
+
2446
+ 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"]
2447
+
2448
+ 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"]
2449
+
2450
+ classDef manual fill:#fff3e0,stroke:#ff9800,stroke-width:2px
2451
+ classDef personal fill:#e3f2fd,stroke:#2196f3,stroke-width:2px
2452
+ classDef team fill:#f3e5f5,stroke:#9c27b0,stroke-width:2px
2453
+ classDef question fill:#fafafa,stroke:#666,stroke-width:2px
2454
+
2455
+ class Manual manual
2456
+ class Personal personal
2457
+ class Team team
2458
+ class Q1,Q2 question
2459
+ ```
2460
+
2461
+ #### 3 Modes Comparison
2462
+
2463
+ | Aspect | Manual | Personal | Team |
2464
+ | --------------- | ----------------- | ------------------------------ | ------------ |
2465
+ | **Use Case** | Personal learning | Personal GitHub | Team projects |
2466
+ | **GitHub** | ❌ | ✅ | ✅ |
2467
+ | **Branches** | Optional | Optional creation or<br>Feature auto | Feature auto |
2468
+ | **Push** | Manual | Auto | Auto |
2469
+ | **PR** | None | Suggested | Auto-created |
2470
+ | **Code Review** | None | Optional | **Required** |
2471
+ | **Deployment** | Manual | Manual | CI/CD auto |
2472
+ | **Setup Time** | **5min** | 15min | 25min |
2473
+
2474
+ #### Quick Setup (.moai/config/config.json)
2475
+
2476
+ **Manual** (Local only):
2477
+
2478
+ ```json
2479
+ {
2480
+ "git_strategy": {
2481
+ "mode": "manual",
2482
+ "branch_creation": {
2483
+ "prompt_always": true,
2484
+ "auto_enabled": false
2485
+ }
2486
+ }
2487
+ }
2488
+ ```
2489
+
2490
+ **Personal** (Personal GitHub):
2491
+
2492
+ ```json
2493
+ {
2494
+ "git_strategy": {
2495
+ "mode": "personal",
2496
+ "branch_creation": {
2497
+ "prompt_always": false,
2498
+ "auto_enabled": true
2499
+ }
2500
+ }
2501
+ }
2502
+ ```
2503
+
2504
+ **Team** (Team projects):
2505
+
2506
+ ```json
2507
+ {
2508
+ "git_strategy": {
2509
+ "mode": "team",
2510
+ "branch_creation": {
2511
+ "prompt_always": false,
2512
+ "auto_enabled": true
2513
+ }
2514
+ }
2515
+ }
2516
+ ```
2517
+
2518
+ ---
2519
+
2520
+ ## 14. FAQ & Quick Reference
2521
+
2522
+ ### Q1: Is SPEC always required?
2523
+
2524
+ **SPEC generation recommendation criteria:**
2525
+
2526
+ | Condition | SPEC Requirement |
2527
+ | -------------------- | ------------------------------------ |
2528
+ | 1-2 files modified | Optional (can skip for simple cases) |
2529
+ | 3-5 files modified | Recommended (clarify requirements) |
2530
+ | 10+ files modified | Required (high complexity) |
2531
+ | New feature addition | Recommended |
2532
+ | Bug fix | Optional |
2533
+
2534
+ **Proceed without SPEC:**
2535
+
2536
+ ```bash
2537
+ # Skip SPEC and implement directly
2538
+ > @agent-expert-backend "simple bug fix"
2539
+ ```
2540
+
2541
+ **Proceed with SPEC:**
2542
+
2543
+ ```bash
2544
+ > /moai:1-plan "complex feature specification"
2545
+ > /clear
2546
+ > /moai:2-run SPEC-001
2547
+ ```
2548
+
2549
+ ---
2550
+
2551
+ ### Q2: Is MCP server installation required?
2552
+
2553
+ **Required MCP servers (2):**
2554
+
2555
+ 1. **Context7** (Required)
2556
+
2557
+ - Auto-reference latest library API documentation
2558
+ - Prevent hallucination during code generation
2559
+ - Installation: Automatic (included in `.mcp.json`)
2560
+
2561
+ 2. **Sequential-Thinking** (Recommended)
2562
+ - Complex problem analysis
2563
+ - Architecture design, algorithm optimization
2564
+ - Installation: Automatic (included in `.mcp.json`)
2565
+
2566
+ **Optional MCP servers:**
2567
+
2568
+ - Figma MCP: Design-to-code conversion
2569
+ - Playwright MCP: Web automation testing
2570
+ - Notion MCP: Documentation management integration
2571
+
2572
+ **Verify installation:**
2573
+
2574
+ ```bash
2575
+ # Check MCP server list
2576
+ cat .mcp.json
2577
+
2578
+ # Enable/disable MCP servers (save tokens when disabled)
2579
+ > @
2580
+ ─────────────────────────────────────────────────────────
2581
+ ✓ [mcp] context7 enabled (⏎ to toggle)
2582
+ ○ [mcp] playwright disabled (⏎ to toggle)
2583
+ ○ [mcp] notion disabled (⏎ to toggle)
2584
+
2585
+ ```
2586
+
2587
+ ---
2588
+
2589
+ ## 15. 📸 ai-nano-banana Agent Usage Guide
2590
+
2591
+ **Purpose**: Professional image generation using Google Gemini 3 Nano Banana Pro
2592
+
2593
+ **Core Features**:
2594
+
2595
+ - ✅ Generate high-quality images from natural language prompts
2596
+ - ✅ Real-time AI image generation (token efficient)
2597
+ - ✅ Generate directly in Claude Code
2598
+ - ✅ Multiple style support (realistic, artistic, diagram, mockup, etc.)
2599
+ - ✅ Batch image generation
2600
+
2601
+ **Use Scenarios**:
2602
+
2603
+ 1. **UI/UX Mockups**: Website, app screen designs
2604
+ 2. **Technical Diagrams**: Architecture, flowcharts
2605
+ 3. **Document Images**: README, presentations
2606
+ 4. **Marketing Materials**: SNS content, banners
2607
+ 5. **Logos/Icons**: Project branding
2608
+
2609
+ #### Quick Start
2610
+
2611
+ ```bash
2612
+ # In Claude Code
2613
+ > @agent-ai-nano-banana "Generate professional login page UI mockup"
2614
+ ```
2615
+
2616
+ #### Image Generation Prompts
2617
+
2618
+ **Effective Prompt Patterns:**
2619
+
2620
+ 1. **Specify Style**:
2621
+
2622
+ ```
2623
+ "Generate [realistic|artistic|minimalist|3D] style image..."
2624
+ ```
2625
+
2626
+ 2. **Set Quality**:
2627
+
2628
+ ```
2629
+ "Generate [1024x1024|1920x1080] high-resolution professional image..."
2630
+ ```
2631
+
2632
+ 3. **Specify Layout**:
2633
+
2634
+ ```
2635
+ "Generate [dark|light] theme dashboard mockup..."
2636
+ ```
2637
+
2638
+ 4. **Set Background**:
2639
+
2640
+ ```
2641
+ "Modern [white|gradient|black] background..."
2642
+ ```
2643
+
2644
+ 5. **Create Storyboard**:
2645
+
2646
+ ```
2647
+ "Generate 4-panel storyboard: step1, step2, step3, step4"
2648
+ ```
2649
+
2650
+ #### Practical Examples (5 types)
2651
+
2652
+ **1. Web Login Page Mockup**:
2653
+
2654
+ ```
2655
+ Prompt: "Create a modern and clean login page UI mockup with email
2656
+ and password input fields, login button. Minimalist design with blue
2657
+ accent color. 1024x768 resolution, white background, professional
2658
+ and modern feel"
2659
+ ```
2660
+
2661
+ **2. Microservices Architecture Diagram**:
2662
+
2663
+ ```
2664
+ Prompt: "Create a technical diagram showing 5 microservices:
2665
+ API Gateway, User Service, Order Service, Payment Service,
2666
+ Notification Service. Show connections with arrows.
2667
+ Professional technical diagram style with white background"
2668
+ ```
2669
+
2670
+ **3. Mobile App Screen Series**:
2671
+
2672
+ ```
2673
+ Prompt: "Create 3-screen mobile app storyboard:
2674
+ 1) Onboarding welcome screen, 2) User profile screen, 3) Settings screen.
2675
+ iOS style, modern design, clean UI"
2676
+ ```
2677
+
2678
+ **4. SNS Banner (1200x630)**:
2679
+
2680
+ ```
2681
+ Prompt: "Create a professional LinkedIn banner for AI development company.
2682
+ Include 'AI-Powered Development' text with modern tech elements.
2683
+ Dark theme with blue and purple gradient"
2684
+ ```
2685
+
2686
+ **5. Icon Set for Documentation**:
2687
+
2688
+ ```
2689
+ Prompt: "Create 6 simple and professional flat design icons:
2690
+ 1) Code icon, 2) Database icon, 3) Server icon,
2691
+ 4) Security icon, 5) Testing icon, 6) Deployment icon.
2692
+ White background, consistent style"
2693
+ ```
2694
+
2695
+ #### Advanced Features
2696
+
2697
+ - **Batch Generation**: Generate multiple images simultaneously
2698
+ - **Iterative Requests**: Generate multiple versions with fine-tuned prompts
2699
+ - **Image Integration**: Auto-insert generated images in docs/presentations
2700
+ - **Style Consistency**: Generate multiple images in same style
2701
+
2702
+ #### Best Practices
2703
+
2704
+ ✅ DO:
2705
+
2706
+ - Specify concrete style (realistic, minimalist, 3d, etc.)
2707
+ - Clear color descriptions (blue, gradient, dark theme, etc.)
2708
+ - Specify resolution (1024x1024, 1920x1080, etc.)
2709
+ - Provide context (professional, presentation, etc.)
2710
+ - Generate versions with multiple prompts
2711
+
2712
+ ❌ DON'T:
2713
+
2714
+ - Too abstract descriptions
2715
+ - Content with legal/rights issues
2716
+ - Real person portraits (use synthetic faces)
2717
+ - Copyrighted brand logos
2718
+ - Negative content
2719
+
2720
+ #### Gemini 3 Nano Banana Pro Specs
2721
+
2722
+ - Model: Google Gemini 3
2723
+ - Response time: 5-30 seconds
2724
+ - Max resolution: 2048x2048
2725
+ - Token efficiency: ~1,000-2,000 tokens per image
2726
+
2727
+ #### Troubleshooting
2728
+
2729
+ | Problem | Cause | Solution |
2730
+ | ---------------- | ------------------- | --------------------------- |
2731
+ | Generation fails | API error | Simplify prompt |
2732
+ | Low quality | Unclear prompt | Add specific details |
2733
+ | Style mismatch | Style not specified | Specify "realistic" etc. |
2734
+ | Timeout | Complex request | Start with smaller requests |
2735
+
2736
+ #### References
2737
+
2738
+ - Skill: `moai-connector-nano-banana`
2739
+ - Official usage: `/help` → "ai-nano-banana"
2740
+ - Examples: 5 practical examples in this guide
2741
+ - Gemini docs: <https://ai.google.dev/>
2742
+
2743
+ ---
2744
+
2745
+ ## 16. 🚀 GLM Integration with z.ai (Cost-Effective Alternative)
2746
+
2747
+ ### Overview
2748
+
2749
+ 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.
2750
+
2751
+ ### 💡 Why Choose GLM over Claude?
2752
+
2753
+ | Feature | Claude Code | z.ai GLM 4.6 |
2754
+ | --------------------- | ------------------------------- | ----------------------------- |
2755
+ | **Cost** | $20/month (Pro plan) | **$6-$60/month (Flexible)** |
2756
+ | **Models** | Claude 4.5 Sonnet, Opus, Haiku | GLM 4.6, GLM 4.5-air |
2757
+ | **Compatibility** | Native | **100% Claude Compatible** |
2758
+ | **Token Limits** | Limited | **Unlimited on paid plans** |
2759
+ | **API Access** | Included | **Full API access** |
2760
+ | **Speed** | Fast | **Comparable performance** |
2761
+
2762
+ ### 🎯 GLM Coding Plan Subscription
2763
+
2764
+ **Exclusive Invitation Link**:
2765
+ 🚀 **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.**
2766
+
2767
+ 👉 **Subscribe here**: https://z.ai/subscribe?ic=1NDV03BGWU
2768
+ 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.
2769
+
2770
+ #### Subscription Plans:
2771
+
2772
+ | Plan | Price | Features | Best For |
2773
+ | ------------- | ---------------------------------- | ----------------------------------------------------------------------- | --------------------------------- |
2774
+ | **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 |
2775
+ | **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 |
2776
+ | **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 |
2777
+ | **Enterprise**| Custom | • Custom pricing<br/>• Dedicated support<br/>• SLA guarantees | Large organizations, custom needs |
2778
+
2779
+ #### Benefits for GLM Coding Plan Subscribers:
2780
+
2781
+ 1. **Massive Cost Savings**: Lite plan at $6/month (3x Claude Pro usage)
2782
+ 2. **Full Tool Compatibility**: Supports Claude Code, Roo Code, Cline, Kilo Code, OpenCode, Crush, Goose, and more
2783
+ 3. **High-Performance Models**: Powered by GLM-4.6 (comparable to Claude 4.5 Sonnet)
2784
+ 4. **Flexible Pricing**: From $6 Lite to $60 Max (scales with your needs)
2785
+ 5. **Performance Options**: Pro plan 40-60% faster, Max plan with guaranteed peak performance
2786
+ 6. **Advanced Features**: Vision Understanding, Web Search, Web Reader MCP (Pro+)
2787
+ 7. **Support MoAI-ADK**: A portion of your subscription supports continued MoAI-ADK development
2788
+
2789
+ #### **🌟 Recommended Upgrade Path**
2790
+
2791
+ **Step 1: Start with Lite Plan ($6/month)**
2792
+ - Get 3x Claude Pro usage at just $6/month
2793
+ - Try GLM-4.6 with your actual projects for 2-3 weeks
2794
+ - Experience compatibility with 10+ coding tools
2795
+
2796
+ **Step 2: Upgrade Based on Usage**
2797
+ - **For regular development**: Upgrade to **Pro ($30/month)** for 40-60% faster performance
2798
+ - **For heavy workloads**: Choose **Max ($60/month)** for guaranteed peak performance
2799
+ - **Power users benefit**: Pro gives 5× Lite usage, Max gives 20× Lite usage
2800
+
2801
+ **Why This Approach Works:**
2802
+ - **Low barrier entry**: Only $6/month to start with professional AI coding
2803
+ - **Scale as needed**: Upgrade only when your workload requires it
2804
+ - **Performance gains**: Pro plan significantly faster for complex tasks
2805
+ - **Advanced features**: Vision, Web Search, and Web Reader MCP available on Pro+
2806
+
2807
+ #### Campaign Details (Credit Rules):
2808
+
2809
+ - 📋 **Official Rules**: https://docs.z.ai/devpack/credit-campaign-rules
2810
+ - 🎁 **Special Offer**: MoAI-ADK users receive additional credits
2811
+ - 💝 **Community Support**: Your subscription helps fund MoAI-ADK development
2812
+ - 🔄 **Flexible Usage**: Credits roll over monthly
2813
+
2814
+ ### ⚙️ Quick Setup: GLM Configuration
2815
+
2816
+ #### Step 1: Subscribe to GLM Coding Plan
2817
+
2818
+ 1. Visit: https://z.ai/subscribe?ic=1NDV03BGWU
2819
+ 2. Choose a plan:
2820
+ - **Lite (First month $3, from 2nd month $6/month)**: Perfect for getting started, 3x Claude Pro usage
2821
+ - **Pro (First month $15, from 2nd month $30/month)**: 40-60% faster, includes Vision and Web features
2822
+ - **Max (First month $30, from 2nd month $60/month)**: Guaranteed performance, early feature access
2823
+ - **Enterprise**: Custom pricing for large organizations
2824
+ 3. Complete registration and payment
2825
+ 4. Note your API token from the dashboard
2826
+
2827
+ **💡 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!
2828
+
2829
+ #### Step 2: Configure MoAI-ADK for GLM
2830
+
2831
+ In Claude Code, run:
2832
+
2833
+ ```bash
2834
+ # Configure GLM with your API token
2835
+ > /moai:0-project --glm-on YOUR_API_TOKEN
2836
+
2837
+ # Or without token (will prompt for input)
2838
+ > /moai:0-project --glm-on
2839
+ ```
2840
+
2841
+ **What happens during configuration:**
2842
+
2843
+ ✅ **API Token Setup**: Securely stores your GLM API token
2844
+ ✅ **Endpoint Configuration**: Sets up z.ai API endpoints
2845
+ ✅ **Model Mapping**: Maps GLM 4.6 to Claude model tiers
2846
+ ✅ **Verification**: Tests connection and model availability
2847
+ ✅ **Fallback Ready**: Keeps Claude as backup option
2848
+
2849
+ #### Step 3: Verify Configuration
2850
+
2851
+ ```bash
2852
+ # Check current configuration
2853
+ > cat .claude/settings.local.json
2854
+
2855
+ # Expected output:
2856
+ {
2857
+ "env": {
2858
+ "ANTHROPIC_AUTH_TOKEN": "your_glm_token_here",
2859
+ "ANTHROPIC_BASE_URL": "https://api.z.ai/api/anthropic",
2860
+ "ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-4.5-air",
2861
+ "ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-4.6",
2862
+ "ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-4.6"
2863
+ }
2864
+ }
2865
+ ```
2866
+
2867
+ #### Step 4: Restart Claude Code
2868
+
2869
+ ```bash
2870
+ # Exit Claude Code and restart
2871
+ > /exit
2872
+ # Then
2873
+ claude
2874
+ ```
2875
+
2876
+ GLM 4.6 is now active and ready to use!
2877
+
2878
+ ### 🔄 Managing GLM Configuration
2879
+
2880
+ #### Enable GLM Mode:
2881
+
2882
+ ```bash
2883
+ > /moai:0-project --glm-on [YOUR_TOKEN]
2884
+ ```
2885
+
2886
+ #### Disable GLM (Switch back to Claude):
2887
+
2888
+ ```bash
2889
+ > /moai:0-project --glm-off
2890
+ ```
2891
+
2892
+ #### Check Current Mode:
2893
+
2894
+ GLM is active when:
2895
+ - `.claude/settings.local.json` contains GLM configuration
2896
+ - Base URL is set to `https://api.z.ai/api/anthropic`
2897
+ - Models are mapped to GLM variants
2898
+
2899
+ ### 📊 Performance Comparison
2900
+
2901
+ Based on real-world testing with MoAI-ADK:
2902
+
2903
+ | Task | Claude 4.5 Sonnet | GLM 4.6 | Performance Gap |
2904
+ | ------------------------------ | ----------------- | ------------ | --------------- |
2905
+ | **Code Generation** | Excellent | **Excellent** | < 5% difference |
2906
+ | **TDD Implementation** | Excellent | **Very Good** | 10% faster |
2907
+ | **Documentation Writing** | Very Good | **Good** | 15% faster |
2908
+ | **Complex Problem Solving** | Excellent | **Very Good** | Comparable |
2909
+ | **API Rate Limits** | Moderate | **Higher** | 3x-20x more usage |
2910
+ | **Performance Speed** | Fast | **40-60% faster (Pro+)** | Significant improvement |
2911
+ | **Advanced Features** | Basic | **Vision, Web Search, Web Reader (Pro+)** | Enhanced capabilities |
2912
+ | **Cost Efficiency** | $20-$200/month | **$6-$60/month** | **Save up to 70%** |
2913
+
2914
+ ### ✅ Recommended Usage Scenarios
2915
+
2916
+ #### **GLM Lite ($6/month) Usage:**
2917
+ - **Getting Started**: 3x Claude Pro usage at 70% less cost
2918
+ - **Lightweight Workloads**: Small projects, occasional coding
2919
+ - **Learning Projects**: Practice, tutorials, experiments
2920
+ - **Budget-Conscious**: Professional AI coding at just $6/month
2921
+
2922
+ #### **GLM Pro ($30/month) Usage:**
2923
+ - **Professional Developers**: 40-60% faster performance for complex tasks
2924
+ - **Daily Development**: 5× Lite usage limit with advanced features
2925
+ - **Team Collaboration**: Vision understanding, web search capabilities
2926
+ - **Power Users**: Faster responses for complex problem solving
2927
+
2928
+ #### **GLM Max ($60/month) Usage:**
2929
+ - **High-Volume Workloads**: 20× Lite usage for intensive development
2930
+ - **Enterprise Teams**: Guaranteed peak-hour performance
2931
+ - **Continuous Integration**: No rate limits for automated workflows
2932
+ - **Early Adopters**: First access to new features and improvements
2933
+
2934
+ #### **Consider Claude for:**
2935
+ - **Enterprise Production**: Mission-critical deployments
2936
+ - **Complex Research**: Advanced reasoning tasks
2937
+ - **Large-Scale Migration**: Complex system transformations
2938
+ - **Compliance Requirements**: Specific model certifications
2939
+
2940
+ ### 🛠️ Troubleshooting
2941
+
2942
+ | Issue | Solution |
2943
+ | ------------------------ | ------------------------------------------------------------------------ |
2944
+ | **Token not working** | Verify token from z.ai dashboard, ensure Coding Plan subscription |
2945
+ | **Model errors** | Check endpoint URL: `https://api.z.ai/api/anthropic` |
2946
+ | **Slow responses** | GLM may have higher latency during peak hours |
2947
+ | **Connection refused** | Firewall may block z.ai domain, check network settings |
2948
+ | **Fallback needed** | Use `--glm-off` to switch back to Claude temporarily |
2949
+
2950
+ ### 🔗 Useful Links
2951
+
2952
+ - **GLM Coding Plan**: https://z.ai/subscribe?ic=1NDV03BGWU
2953
+ - **Credit Campaign Rules**: https://docs.z.ai/devpack/credit-campaign-rules
2954
+ - **GLM Documentation**: https://docs.z.ai/
2955
+ - **MoAI-ADK GLM Guide**: https://github.com/modu-ai/moai-adk/docs/glm-integration
2956
+ - **Support**: support@z.ai
2957
+
2958
+ ### 💬 Community & Support
2959
+
2960
+ - **Discord**: Join the z.ai community for tips and updates
2961
+ - **GitHub**: Report issues and request features
2962
+ - **Email**: support@z.ai for technical assistance
2963
+ - **MoAI-ADK**: github.com/modu-ai/moai-adk for framework-specific help
2964
+
2965
+ ---
2966
+
2967
+ **Start saving today while maintaining full development productivity!** 🚀
2968
+
2969
+ ## 17. Additional Resources
2970
+
2971
+ ### 🆘 Support (Support)
2972
+
2973
+ **Email Support:**
2974
+
2975
+ - Technical support: [support@mo.ai.kr](mailto:support@mo.ai.kr)
2976
+
2977
+ ### 📊 Star History
2978
+
2979
+ [![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)
2980
+
2981
+ ---
2982
+
2983
+ ## 📝 License
2984
+
2985
+ MoAI-ADK is licensed under the [MIT License](./LICENSE).
2986
+
2987
+ ```text
2988
+ MIT License
2989
+
2990
+ Copyright (c) 2025 MoAI-ADK Team
2991
+
2992
+ Permission is hereby granted, free of charge, to any person obtaining a copy
2993
+ of this software and associated documentation files (the "Software"), to deal
2994
+ in the Software without restriction, including without limitation the rights
2995
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2996
+ copies of the Software, and to permit persons to whom the Software is
2997
+ furnished to do so, subject to the following conditions:
2998
+
2999
+ The above copyright notice and this permission notice shall be included in all
3000
+ copies or substantial portions of the Software.
3001
+
3002
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3003
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3004
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3005
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3006
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3007
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3008
+ SOFTWARE.
3009
+ ```
3010
+
3011
+ ---
3012
+
3013
+ ### Made with ❤️ by MoAI-ADK Team
3014
+
3015
+ **Version:** 0.33.1
3016
+ **Last Updated:** 2025-12-22
3017
+ **Philosophy**: SPEC-First TDD + Agent Orchestration + 85% Token Efficiency
3018
+ **MoAI**: MoAI stands for "Modu-ui AI" (AI for Everyone). Our goal is to make AI accessible to everyone.