moai-adk 0.15.1__py3-none-any.whl → 0.32.8__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 (699) hide show
  1. moai_adk/__init__.py +2 -6
  2. moai_adk/__main__.py +136 -21
  3. moai_adk/cli/__init__.py +6 -2
  4. moai_adk/cli/commands/__init__.py +1 -4
  5. moai_adk/cli/commands/analyze.py +116 -0
  6. moai_adk/cli/commands/doctor.py +17 -5
  7. moai_adk/cli/commands/init.py +105 -47
  8. moai_adk/cli/commands/language.py +248 -0
  9. moai_adk/cli/commands/status.py +8 -13
  10. moai_adk/cli/commands/update.py +1734 -65
  11. moai_adk/cli/main.py +3 -2
  12. moai_adk/cli/prompts/init_prompts.py +144 -91
  13. moai_adk/cli/spec_status.py +263 -0
  14. moai_adk/cli/ui/__init__.py +44 -0
  15. moai_adk/cli/ui/progress.py +422 -0
  16. moai_adk/cli/ui/prompts.py +389 -0
  17. moai_adk/cli/ui/theme.py +129 -0
  18. moai_adk/cli/worktree/__init__.py +27 -0
  19. moai_adk/cli/worktree/__main__.py +31 -0
  20. moai_adk/cli/worktree/cli.py +672 -0
  21. moai_adk/cli/worktree/exceptions.py +89 -0
  22. moai_adk/cli/worktree/manager.py +490 -0
  23. moai_adk/cli/worktree/models.py +65 -0
  24. moai_adk/cli/worktree/registry.py +128 -0
  25. moai_adk/core/PHASE2_OPTIMIZATIONS.md +467 -0
  26. moai_adk/core/__init__.py +0 -1
  27. moai_adk/core/analysis/__init__.py +9 -0
  28. moai_adk/core/analysis/session_analyzer.py +400 -0
  29. moai_adk/core/claude_integration.py +393 -0
  30. moai_adk/core/command_helpers.py +270 -0
  31. moai_adk/core/comprehensive_monitoring_system.py +1183 -0
  32. moai_adk/core/config/__init__.py +6 -0
  33. moai_adk/core/config/auto_spec_config.py +340 -0
  34. moai_adk/core/config/migration.py +147 -16
  35. moai_adk/core/config/unified.py +436 -0
  36. moai_adk/core/context_manager.py +273 -0
  37. moai_adk/core/diagnostics/slash_commands.py +0 -1
  38. moai_adk/core/enterprise_features.py +1404 -0
  39. moai_adk/core/error_recovery_system.py +1902 -0
  40. moai_adk/core/event_driven_hook_system.py +1371 -0
  41. moai_adk/core/git/__init__.py +8 -1
  42. moai_adk/core/git/branch.py +0 -1
  43. moai_adk/core/git/branch_manager.py +2 -10
  44. moai_adk/core/git/checkpoint.py +1 -7
  45. moai_adk/core/git/commit.py +0 -1
  46. moai_adk/core/git/conflict_detector.py +413 -0
  47. moai_adk/core/git/event_detector.py +3 -5
  48. moai_adk/core/git/manager.py +91 -2
  49. moai_adk/core/hooks/post_tool_auto_spec_completion.py +901 -0
  50. moai_adk/core/input_validation_middleware.py +1006 -0
  51. moai_adk/core/integration/__init__.py +22 -0
  52. moai_adk/core/integration/engine.py +157 -0
  53. moai_adk/core/integration/integration_tester.py +226 -0
  54. moai_adk/core/integration/models.py +88 -0
  55. moai_adk/core/integration/utils.py +211 -0
  56. moai_adk/core/issue_creator.py +20 -28
  57. moai_adk/core/jit_context_loader.py +956 -0
  58. moai_adk/core/jit_enhanced_hook_manager.py +1987 -0
  59. moai_adk/core/language_config.py +202 -0
  60. moai_adk/core/language_config_resolver.py +485 -0
  61. moai_adk/core/language_validator.py +543 -0
  62. moai_adk/core/mcp/setup.py +116 -0
  63. moai_adk/core/merge/__init__.py +9 -0
  64. moai_adk/core/merge/analyzer.py +481 -0
  65. moai_adk/core/migration/__init__.py +18 -0
  66. moai_adk/core/migration/alfred_to_moai_migrator.py +383 -0
  67. moai_adk/core/migration/backup_manager.py +277 -0
  68. moai_adk/core/migration/custom_element_scanner.py +358 -0
  69. moai_adk/core/migration/file_migrator.py +209 -0
  70. moai_adk/core/migration/interactive_checkbox_ui.py +488 -0
  71. moai_adk/core/migration/selective_restorer.py +470 -0
  72. moai_adk/core/migration/template_utils.py +74 -0
  73. moai_adk/core/migration/user_selection_ui.py +338 -0
  74. moai_adk/core/migration/version_detector.py +139 -0
  75. moai_adk/core/migration/version_migrator.py +228 -0
  76. moai_adk/core/performance/__init__.py +6 -0
  77. moai_adk/core/performance/cache_system.py +316 -0
  78. moai_adk/core/performance/parallel_processor.py +116 -0
  79. moai_adk/core/phase_optimized_hook_scheduler.py +879 -0
  80. moai_adk/core/project/__init__.py +0 -1
  81. moai_adk/core/project/backup_utils.py +2 -7
  82. moai_adk/core/project/checker.py +2 -4
  83. moai_adk/core/project/detector.py +17 -39
  84. moai_adk/core/project/initializer.py +170 -33
  85. moai_adk/core/project/phase_executor.py +398 -68
  86. moai_adk/core/project/validator.py +7 -32
  87. moai_adk/core/quality/__init__.py +1 -1
  88. moai_adk/core/quality/trust_checker.py +37 -101
  89. moai_adk/core/quality/validators/__init__.py +1 -1
  90. moai_adk/core/quality/validators/base_validator.py +1 -1
  91. moai_adk/core/realtime_monitoring_dashboard.py +1724 -0
  92. moai_adk/core/robust_json_parser.py +611 -0
  93. moai_adk/core/rollback_manager.py +918 -0
  94. moai_adk/core/session_manager.py +651 -0
  95. moai_adk/core/skill_loading_system.py +579 -0
  96. moai_adk/core/spec/confidence_scoring.py +680 -0
  97. moai_adk/core/spec/ears_template_engine.py +1247 -0
  98. moai_adk/core/spec/quality_validator.py +687 -0
  99. moai_adk/core/spec_status_manager.py +478 -0
  100. moai_adk/core/template/__init__.py +0 -1
  101. moai_adk/core/template/backup.py +82 -17
  102. moai_adk/core/template/config.py +112 -40
  103. moai_adk/core/template/languages.py +0 -1
  104. moai_adk/core/template/merger.py +75 -26
  105. moai_adk/core/template/processor.py +750 -72
  106. moai_adk/core/template_engine.py +90 -48
  107. moai_adk/core/template_variable_synchronizer.py +417 -0
  108. moai_adk/core/unified_permission_manager.py +745 -0
  109. moai_adk/core/user_behavior_analytics.py +851 -0
  110. moai_adk/core/version_sync.py +429 -0
  111. moai_adk/foundation/__init__.py +56 -0
  112. moai_adk/foundation/backend.py +1027 -0
  113. moai_adk/foundation/database.py +1115 -0
  114. moai_adk/foundation/devops.py +1585 -0
  115. moai_adk/foundation/ears.py +431 -0
  116. moai_adk/foundation/frontend.py +870 -0
  117. moai_adk/foundation/git/commit_templates.py +557 -0
  118. moai_adk/foundation/git.py +376 -0
  119. moai_adk/foundation/langs.py +484 -0
  120. moai_adk/foundation/ml_ops.py +1162 -0
  121. moai_adk/foundation/testing.py +1524 -0
  122. moai_adk/foundation/trust/trust_principles.py +676 -0
  123. moai_adk/foundation/trust/validation_checklist.py +1573 -0
  124. moai_adk/project/__init__.py +0 -0
  125. moai_adk/project/configuration.py +1084 -0
  126. moai_adk/project/documentation.py +566 -0
  127. moai_adk/project/schema.py +447 -0
  128. moai_adk/statusline/__init__.py +38 -0
  129. moai_adk/statusline/alfred_detector.py +105 -0
  130. moai_adk/statusline/config.py +373 -0
  131. moai_adk/statusline/enhanced_output_style_detector.py +372 -0
  132. moai_adk/statusline/git_collector.py +190 -0
  133. moai_adk/statusline/main.py +264 -0
  134. moai_adk/statusline/metrics_tracker.py +78 -0
  135. moai_adk/statusline/renderer.py +383 -0
  136. moai_adk/statusline/update_checker.py +129 -0
  137. moai_adk/statusline/version_reader.py +741 -0
  138. moai_adk/templates/.claude/agents/moai/ai-nano-banana.md +549 -0
  139. moai_adk/templates/.claude/agents/moai/builder-agent.md +445 -0
  140. moai_adk/templates/.claude/agents/moai/builder-command.md +1132 -0
  141. moai_adk/templates/.claude/agents/moai/builder-skill.md +601 -0
  142. moai_adk/templates/.claude/agents/moai/expert-backend.md +831 -0
  143. moai_adk/templates/.claude/agents/moai/expert-database.md +774 -0
  144. moai_adk/templates/.claude/agents/moai/expert-debug.md +396 -0
  145. moai_adk/templates/.claude/agents/moai/expert-devops.md +711 -0
  146. moai_adk/templates/.claude/agents/moai/expert-frontend.md +666 -0
  147. moai_adk/templates/.claude/agents/moai/expert-security.md +474 -0
  148. moai_adk/templates/.claude/agents/moai/expert-uiux.md +1038 -0
  149. moai_adk/templates/.claude/agents/moai/manager-claude-code.md +429 -0
  150. moai_adk/templates/.claude/agents/moai/manager-docs.md +570 -0
  151. moai_adk/templates/.claude/agents/moai/manager-git.md +937 -0
  152. moai_adk/templates/.claude/agents/moai/manager-project.md +891 -0
  153. moai_adk/templates/.claude/agents/moai/manager-quality.md +598 -0
  154. moai_adk/templates/.claude/agents/moai/manager-spec.md +713 -0
  155. moai_adk/templates/.claude/agents/moai/manager-strategy.md +600 -0
  156. moai_adk/templates/.claude/agents/moai/manager-tdd.md +603 -0
  157. moai_adk/templates/.claude/agents/moai/mcp-context7.md +369 -0
  158. moai_adk/templates/.claude/agents/moai/mcp-figma.md +1567 -0
  159. moai_adk/templates/.claude/agents/moai/mcp-notion.md +749 -0
  160. moai_adk/templates/.claude/agents/moai/mcp-playwright.md +427 -0
  161. moai_adk/templates/.claude/agents/moai/mcp-sequential-thinking.md +994 -0
  162. moai_adk/templates/.claude/commands/moai/0-project.md +1143 -0
  163. moai_adk/templates/.claude/commands/moai/1-plan.md +1435 -0
  164. moai_adk/templates/.claude/commands/moai/2-run.md +883 -0
  165. moai_adk/templates/.claude/commands/moai/3-sync.md +993 -0
  166. moai_adk/templates/.claude/commands/moai/9-feedback.md +314 -0
  167. moai_adk/templates/.claude/hooks/__init__.py +8 -0
  168. moai_adk/templates/.claude/hooks/moai/__init__.py +8 -0
  169. moai_adk/templates/.claude/hooks/moai/lib/__init__.py +85 -0
  170. moai_adk/templates/.claude/hooks/{alfred/shared/core → moai/lib}/checkpoint.py +9 -36
  171. moai_adk/templates/.claude/hooks/moai/lib/common.py +131 -0
  172. moai_adk/templates/.claude/hooks/moai/lib/config_manager.py +446 -0
  173. moai_adk/templates/.claude/hooks/moai/lib/config_validator.py +639 -0
  174. moai_adk/templates/.claude/hooks/moai/lib/example_config.json +104 -0
  175. moai_adk/templates/.claude/hooks/moai/lib/git_operations_manager.py +590 -0
  176. moai_adk/templates/.claude/hooks/moai/lib/language_validator.py +317 -0
  177. moai_adk/templates/.claude/hooks/moai/lib/models.py +102 -0
  178. moai_adk/templates/.claude/hooks/moai/lib/path_utils.py +28 -0
  179. moai_adk/templates/.claude/hooks/{alfred/shared/core → moai/lib}/project.py +63 -44
  180. moai_adk/templates/.claude/hooks/moai/lib/test_hooks_improvements.py +443 -0
  181. moai_adk/templates/.claude/hooks/{alfred/core → moai/lib}/timeout.py +40 -16
  182. moai_adk/templates/.claude/hooks/moai/lib/unified_timeout_manager.py +530 -0
  183. moai_adk/templates/.claude/hooks/moai/session_end__auto_cleanup.py +862 -0
  184. moai_adk/templates/.claude/hooks/moai/session_start__show_project_info.py +921 -0
  185. moai_adk/templates/.claude/output-styles/moai/r2d2.md +380 -0
  186. moai_adk/templates/.claude/output-styles/moai/yoda.md +338 -0
  187. moai_adk/templates/.claude/settings.json +78 -50
  188. moai_adk/templates/.claude/skills/moai-docs-generation/SKILL.md +247 -0
  189. moai_adk/templates/.claude/skills/moai-docs-generation/modules/README.md +44 -0
  190. moai_adk/templates/.claude/skills/moai-docs-generation/modules/api-documentation.md +130 -0
  191. moai_adk/templates/.claude/skills/moai-docs-generation/modules/code-documentation.md +152 -0
  192. moai_adk/templates/.claude/skills/moai-docs-generation/modules/multi-format-output.md +178 -0
  193. moai_adk/templates/.claude/skills/moai-docs-generation/modules/user-guides.md +147 -0
  194. moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +312 -283
  195. moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +291 -94
  196. moai_adk/templates/.claude/skills/moai-domain-database/modules/README.md +53 -0
  197. moai_adk/templates/.claude/skills/moai-domain-database/modules/mongodb.md +231 -0
  198. moai_adk/templates/.claude/skills/moai-domain-database/modules/postgresql.md +169 -0
  199. moai_adk/templates/.claude/skills/moai-domain-database/modules/redis.md +262 -0
  200. moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +469 -101
  201. moai_adk/templates/.claude/skills/moai-domain-uiux/SKILL.md +453 -0
  202. moai_adk/templates/.claude/skills/moai-domain-uiux/examples.md +560 -0
  203. moai_adk/templates/.claude/skills/moai-domain-uiux/modules/accessibility-wcag.md +260 -0
  204. moai_adk/templates/.claude/skills/moai-domain-uiux/modules/component-architecture.md +228 -0
  205. moai_adk/templates/.claude/skills/moai-domain-uiux/modules/design-system-tokens.md +405 -0
  206. moai_adk/templates/.claude/skills/moai-domain-uiux/modules/icon-libraries.md +401 -0
  207. moai_adk/templates/.claude/skills/moai-domain-uiux/modules/theming-system.md +373 -0
  208. moai_adk/templates/.claude/skills/moai-domain-uiux/reference.md +243 -0
  209. moai_adk/templates/.claude/skills/moai-formats-data/SKILL.md +491 -0
  210. moai_adk/templates/.claude/skills/moai-formats-data/modules/README.md +98 -0
  211. moai_adk/templates/.claude/skills/moai-formats-data/modules/SKILL-MODULARIZATION-TEMPLATE.md +278 -0
  212. moai_adk/templates/.claude/skills/moai-formats-data/modules/caching-performance.md +459 -0
  213. moai_adk/templates/.claude/skills/moai-formats-data/modules/data-validation.md +485 -0
  214. moai_adk/templates/.claude/skills/moai-formats-data/modules/json-optimization.md +374 -0
  215. moai_adk/templates/.claude/skills/moai-formats-data/modules/toon-encoding.md +308 -0
  216. moai_adk/templates/.claude/skills/moai-foundation-claude/SKILL.md +201 -0
  217. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/best-practices-checklist.md +616 -0
  218. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-custom-slash-commands-official.md +729 -0
  219. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-hooks-official.md +560 -0
  220. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-iam-official.md +635 -0
  221. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-memory-official.md +543 -0
  222. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-settings-official.md +663 -0
  223. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-skills-official.md +113 -0
  224. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-sub-agents-official.md +238 -0
  225. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/complete-configuration-guide.md +175 -0
  226. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/skill-examples.md +1674 -0
  227. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/skill-formatting-guide.md +729 -0
  228. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/sub-agents/sub-agent-examples.md +1513 -0
  229. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/sub-agents/sub-agent-formatting-guide.md +1086 -0
  230. moai_adk/templates/.claude/skills/moai-foundation-claude/reference/sub-agents/sub-agent-integration-patterns.md +1100 -0
  231. moai_adk/templates/.claude/skills/moai-foundation-context/SKILL.md +438 -0
  232. moai_adk/templates/.claude/skills/moai-foundation-core/SKILL.md +515 -0
  233. moai_adk/templates/.claude/skills/moai-foundation-core/modules/README.md +296 -0
  234. moai_adk/templates/.claude/skills/moai-foundation-core/modules/agents-reference.md +346 -0
  235. moai_adk/templates/.claude/skills/moai-foundation-core/modules/commands-reference.md +432 -0
  236. moai_adk/templates/.claude/skills/moai-foundation-core/modules/delegation-patterns.md +757 -0
  237. moai_adk/templates/.claude/skills/moai-foundation-core/modules/execution-rules.md +687 -0
  238. moai_adk/templates/.claude/skills/moai-foundation-core/modules/modular-system.md +665 -0
  239. moai_adk/templates/.claude/skills/moai-foundation-core/modules/progressive-disclosure.md +649 -0
  240. moai_adk/templates/.claude/skills/moai-foundation-core/modules/spec-first-tdd.md +864 -0
  241. moai_adk/templates/.claude/skills/moai-foundation-core/modules/token-optimization.md +708 -0
  242. moai_adk/templates/.claude/skills/moai-foundation-core/modules/trust-5-framework.md +981 -0
  243. moai_adk/templates/.claude/skills/moai-foundation-quality/SKILL.md +362 -0
  244. moai_adk/templates/.claude/skills/moai-foundation-quality/examples.md +1232 -0
  245. moai_adk/templates/.claude/skills/moai-foundation-quality/modules/best-practices.md +261 -0
  246. moai_adk/templates/.claude/skills/moai-foundation-quality/modules/integration-patterns.md +194 -0
  247. moai_adk/templates/.claude/skills/moai-foundation-quality/modules/proactive-analysis.md +229 -0
  248. moai_adk/templates/.claude/skills/moai-foundation-quality/modules/trust5-validation.md +169 -0
  249. moai_adk/templates/.claude/skills/moai-foundation-quality/reference.md +1266 -0
  250. moai_adk/templates/.claude/skills/moai-foundation-quality/scripts/quality-gate.sh +668 -0
  251. moai_adk/templates/.claude/skills/moai-foundation-quality/templates/github-actions-quality.yml +481 -0
  252. moai_adk/templates/.claude/skills/moai-foundation-quality/templates/quality-config.yaml +519 -0
  253. moai_adk/templates/.claude/skills/moai-integration-mcp/SKILL.md +352 -0
  254. moai_adk/templates/.claude/skills/moai-integration-mcp/modules/README.md +52 -0
  255. moai_adk/templates/.claude/skills/moai-integration-mcp/modules/error-handling.md +334 -0
  256. moai_adk/templates/.claude/skills/moai-integration-mcp/modules/integration-patterns.md +310 -0
  257. moai_adk/templates/.claude/skills/moai-integration-mcp/modules/security-authentication.md +256 -0
  258. moai_adk/templates/.claude/skills/moai-integration-mcp/modules/server-architecture.md +253 -0
  259. moai_adk/templates/.claude/skills/moai-lang-unified/README.md +133 -0
  260. moai_adk/templates/.claude/skills/moai-lang-unified/SKILL.md +296 -0
  261. moai_adk/templates/.claude/skills/moai-lang-unified/examples.md +1269 -0
  262. moai_adk/templates/.claude/skills/moai-lang-unified/reference.md +331 -0
  263. moai_adk/templates/.claude/skills/moai-library-mermaid/SKILL.md +298 -0
  264. moai_adk/templates/.claude/skills/moai-library-mermaid/advanced-patterns.md +465 -0
  265. moai_adk/templates/.claude/skills/moai-library-mermaid/examples.md +270 -0
  266. moai_adk/templates/.claude/skills/moai-library-mermaid/optimization.md +440 -0
  267. moai_adk/templates/.claude/skills/moai-library-mermaid/reference.md +228 -0
  268. moai_adk/templates/.claude/skills/moai-library-nextra/SKILL.md +316 -0
  269. moai_adk/templates/.claude/skills/moai-library-nextra/advanced-patterns.md +336 -0
  270. moai_adk/templates/.claude/skills/moai-library-nextra/modules/advanced-deployment-patterns.md +182 -0
  271. moai_adk/templates/.claude/skills/moai-library-nextra/modules/advanced-patterns.md +17 -0
  272. moai_adk/templates/.claude/skills/moai-library-nextra/modules/configuration.md +57 -0
  273. moai_adk/templates/.claude/skills/moai-library-nextra/modules/content-architecture-optimization.md +162 -0
  274. moai_adk/templates/.claude/skills/moai-library-nextra/modules/deployment.md +52 -0
  275. moai_adk/templates/.claude/skills/moai-library-nextra/modules/framework-core-configuration.md +186 -0
  276. moai_adk/templates/.claude/skills/moai-library-nextra/modules/i18n-setup.md +55 -0
  277. moai_adk/templates/.claude/skills/moai-library-nextra/modules/mdx-components.md +52 -0
  278. moai_adk/templates/.claude/skills/moai-library-nextra/optimization.md +303 -0
  279. moai_adk/templates/.claude/skills/moai-library-shadcn/SKILL.md +370 -0
  280. moai_adk/templates/.claude/skills/moai-library-shadcn/examples.md +575 -0
  281. moai_adk/templates/.claude/skills/moai-library-shadcn/modules/advanced-patterns.md +394 -0
  282. moai_adk/templates/.claude/skills/moai-library-shadcn/modules/optimization.md +278 -0
  283. moai_adk/templates/.claude/skills/moai-library-shadcn/modules/shadcn-components.md +457 -0
  284. moai_adk/templates/.claude/skills/moai-library-shadcn/modules/shadcn-theming.md +373 -0
  285. moai_adk/templates/.claude/skills/moai-library-shadcn/reference.md +74 -0
  286. moai_adk/templates/.claude/skills/moai-platform-baas/README.md +186 -0
  287. moai_adk/templates/.claude/skills/moai-platform-baas/SKILL.md +290 -0
  288. moai_adk/templates/.claude/skills/moai-platform-baas/examples.md +1225 -0
  289. moai_adk/templates/.claude/skills/moai-platform-baas/reference.md +567 -0
  290. moai_adk/templates/.claude/skills/moai-platform-baas/scripts/provider-selector.py +323 -0
  291. moai_adk/templates/.claude/skills/moai-platform-baas/templates/stack-config.yaml +204 -0
  292. moai_adk/templates/.claude/skills/moai-workflow-jit-docs/SKILL.md +446 -0
  293. moai_adk/templates/.claude/skills/moai-workflow-jit-docs/advanced-patterns.md +379 -0
  294. moai_adk/templates/.claude/skills/moai-workflow-jit-docs/optimization.md +286 -0
  295. moai_adk/templates/.claude/skills/moai-workflow-project/README.md +190 -0
  296. moai_adk/templates/.claude/skills/moai-workflow-project/SKILL.md +387 -0
  297. moai_adk/templates/.claude/skills/moai-workflow-project/__init__.py +520 -0
  298. moai_adk/templates/.claude/skills/moai-workflow-project/complete_workflow_demo_fixed.py +574 -0
  299. moai_adk/templates/.claude/skills/moai-workflow-project/examples/complete_project_setup.py +317 -0
  300. moai_adk/templates/.claude/skills/moai-workflow-project/examples/complete_workflow_demo.py +663 -0
  301. moai_adk/templates/.claude/skills/moai-workflow-project/examples/config-migration-example.json +190 -0
  302. moai_adk/templates/.claude/skills/moai-workflow-project/examples/question-examples.json +135 -0
  303. moai_adk/templates/.claude/skills/moai-workflow-project/examples/quick_start.py +196 -0
  304. moai_adk/templates/.claude/skills/moai-workflow-project/modules/__init__.py +17 -0
  305. moai_adk/templates/.claude/skills/moai-workflow-project/modules/advanced-patterns.md +158 -0
  306. moai_adk/templates/.claude/skills/moai-workflow-project/modules/ask_user_integration.py +340 -0
  307. moai_adk/templates/.claude/skills/moai-workflow-project/modules/batch_questions.py +713 -0
  308. moai_adk/templates/.claude/skills/moai-workflow-project/modules/config_manager.py +538 -0
  309. moai_adk/templates/.claude/skills/moai-workflow-project/modules/documentation_manager.py +1336 -0
  310. moai_adk/templates/.claude/skills/moai-workflow-project/modules/language_initializer.py +730 -0
  311. moai_adk/templates/.claude/skills/moai-workflow-project/modules/migration_manager.py +608 -0
  312. moai_adk/templates/.claude/skills/moai-workflow-project/modules/template_optimizer.py +1005 -0
  313. moai_adk/templates/.claude/skills/moai-workflow-project/schemas/config-schema.json +316 -0
  314. moai_adk/templates/.claude/skills/moai-workflow-project/schemas/tab_schema.json +1362 -0
  315. moai_adk/templates/.claude/skills/moai-workflow-project/templates/config-template.json +71 -0
  316. moai_adk/templates/.claude/skills/moai-workflow-project/templates/doc-templates/product-template.md +44 -0
  317. moai_adk/templates/.claude/skills/moai-workflow-project/templates/doc-templates/structure-template.md +48 -0
  318. moai_adk/templates/.claude/skills/moai-workflow-project/templates/doc-templates/tech-template.md +71 -0
  319. moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/config-manager-setup.json +109 -0
  320. moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/language-initializer.json +228 -0
  321. moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/menu-project-config.json +130 -0
  322. moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/project-batch-questions.json +97 -0
  323. moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/spec-workflow-setup.json +150 -0
  324. moai_adk/templates/.claude/skills/moai-workflow-project/test_integration_simple.py +436 -0
  325. moai_adk/templates/.claude/skills/moai-workflow-templates/SKILL.md +374 -0
  326. moai_adk/templates/.claude/skills/moai-workflow-templates/modules/code-templates.md +124 -0
  327. moai_adk/templates/.claude/skills/moai-workflow-templates/modules/feedback-templates.md +100 -0
  328. moai_adk/templates/.claude/skills/moai-workflow-templates/modules/template-optimizer.md +138 -0
  329. moai_adk/templates/.claude/skills/moai-workflow-testing/LICENSE.txt +202 -0
  330. moai_adk/templates/.claude/skills/moai-workflow-testing/SKILL.md +453 -0
  331. moai_adk/templates/.claude/skills/moai-workflow-testing/advanced-patterns.md +576 -0
  332. moai_adk/templates/.claude/skills/moai-workflow-testing/examples/ai-powered-testing.py +294 -0
  333. moai_adk/templates/.claude/skills/moai-workflow-testing/examples/console_logging.py +35 -0
  334. moai_adk/templates/.claude/skills/moai-workflow-testing/examples/element_discovery.py +40 -0
  335. moai_adk/templates/.claude/skills/moai-workflow-testing/examples/static_html_automation.py +34 -0
  336. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/README.md +220 -0
  337. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/ai-debugging.md +845 -0
  338. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review.md +1416 -0
  339. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance-optimization.md +1234 -0
  340. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/smart-refactoring.md +1243 -0
  341. moai_adk/templates/.claude/skills/moai-workflow-testing/modules/tdd-context7.md +1260 -0
  342. moai_adk/templates/.claude/skills/moai-workflow-testing/optimization.md +505 -0
  343. moai_adk/templates/.claude/skills/moai-workflow-testing/reference/playwright-best-practices.md +57 -0
  344. moai_adk/templates/.claude/skills/moai-workflow-testing/scripts/with_server.py +218 -0
  345. moai_adk/templates/.claude/skills/moai-workflow-testing/templates/alfred-integration.md +376 -0
  346. moai_adk/templates/.claude/skills/moai-workflow-testing/workflows/enterprise-testing-workflow.py +571 -0
  347. moai_adk/templates/.claude/skills/moai-worktree/SKILL.md +410 -0
  348. moai_adk/templates/.claude/skills/moai-worktree/examples.md +606 -0
  349. moai_adk/templates/.claude/skills/moai-worktree/modules/integration-patterns.md +982 -0
  350. moai_adk/templates/.claude/skills/moai-worktree/modules/parallel-development.md +778 -0
  351. moai_adk/templates/.claude/skills/moai-worktree/modules/worktree-commands.md +646 -0
  352. moai_adk/templates/.claude/skills/moai-worktree/modules/worktree-management.md +782 -0
  353. moai_adk/templates/.claude/skills/moai-worktree/reference.md +357 -0
  354. moai_adk/templates/.git-hooks/pre-commit +128 -0
  355. moai_adk/templates/.git-hooks/pre-push +220 -13
  356. moai_adk/templates/.github/workflows/ci-universal.yml +513 -0
  357. moai_adk/templates/.github/workflows/security-secrets-check.yml +179 -0
  358. moai_adk/templates/.github/workflows/spec-issue-sync.yml +0 -1
  359. moai_adk/templates/.gitignore +197 -13
  360. moai_adk/templates/.mcp.json +20 -0
  361. moai_adk/templates/.moai/cache/personalization.json +10 -0
  362. moai_adk/templates/.moai/config/config.yaml +344 -0
  363. moai_adk/templates/.moai/config/presets/manual.yaml +28 -0
  364. moai_adk/templates/.moai/config/presets/personal.yaml +30 -0
  365. moai_adk/templates/.moai/config/presets/team.yaml +33 -0
  366. moai_adk/templates/.moai/config/questions/_schema.yaml +79 -0
  367. moai_adk/templates/.moai/config/questions/tab1-user.yaml +108 -0
  368. moai_adk/templates/.moai/config/questions/tab2-project.yaml +122 -0
  369. moai_adk/templates/.moai/config/questions/tab3-git.yaml +542 -0
  370. moai_adk/templates/.moai/config/questions/tab4-quality.yaml +167 -0
  371. moai_adk/templates/.moai/config/questions/tab5-system.yaml +152 -0
  372. moai_adk/templates/.moai/config/sections/git-strategy.yaml +40 -0
  373. moai_adk/templates/.moai/config/sections/language.yaml +11 -0
  374. moai_adk/templates/.moai/config/sections/project.yaml +13 -0
  375. moai_adk/templates/.moai/config/sections/quality.yaml +15 -0
  376. moai_adk/templates/.moai/config/sections/system.yaml +14 -0
  377. moai_adk/templates/.moai/config/sections/user.yaml +5 -0
  378. moai_adk/templates/.moai/config/statusline-config.yaml +86 -0
  379. moai_adk/templates/.moai/scripts/setup-glm.py +136 -0
  380. moai_adk/templates/CLAUDE.md +310 -1050
  381. moai_adk/utils/__init__.py +24 -2
  382. moai_adk/utils/banner.py +7 -11
  383. moai_adk/utils/common.py +294 -0
  384. moai_adk/utils/link_validator.py +241 -0
  385. moai_adk/utils/logger.py +4 -9
  386. moai_adk/utils/safe_file_reader.py +206 -0
  387. moai_adk/{templates/.claude/hooks/alfred/utils → utils}/timeout.py +8 -9
  388. moai_adk/utils/toon_utils.py +256 -0
  389. moai_adk/version.py +22 -0
  390. moai_adk-0.32.8.dist-info/METADATA +2478 -0
  391. moai_adk-0.32.8.dist-info/RECORD +396 -0
  392. {moai_adk-0.15.1.dist-info → moai_adk-0.32.8.dist-info}/WHEEL +1 -1
  393. {moai_adk-0.15.1.dist-info → moai_adk-0.32.8.dist-info}/entry_points.txt +1 -0
  394. moai_adk/cli/commands/backup.py +0 -80
  395. moai_adk/core/tags/__init__.py +0 -86
  396. moai_adk/core/tags/ci_validator.py +0 -463
  397. moai_adk/core/tags/cli.py +0 -283
  398. moai_adk/core/tags/generator.py +0 -109
  399. moai_adk/core/tags/inserter.py +0 -99
  400. moai_adk/core/tags/mapper.py +0 -126
  401. moai_adk/core/tags/parser.py +0 -76
  402. moai_adk/core/tags/pre_commit_validator.py +0 -393
  403. moai_adk/core/tags/reporter.py +0 -956
  404. moai_adk/core/tags/tags.py +0 -149
  405. moai_adk/core/tags/validator.py +0 -897
  406. moai_adk/templates/.claude/agents/alfred/backend-expert.md +0 -319
  407. moai_adk/templates/.claude/agents/alfred/cc-manager.md +0 -316
  408. moai_adk/templates/.claude/agents/alfred/debug-helper.md +0 -208
  409. moai_adk/templates/.claude/agents/alfred/devops-expert.md +0 -464
  410. moai_adk/templates/.claude/agents/alfred/doc-syncer.md +0 -214
  411. moai_adk/templates/.claude/agents/alfred/frontend-expert.md +0 -357
  412. moai_adk/templates/.claude/agents/alfred/git-manager.md +0 -406
  413. moai_adk/templates/.claude/agents/alfred/implementation-planner.md +0 -423
  414. moai_adk/templates/.claude/agents/alfred/project-manager.md +0 -312
  415. moai_adk/templates/.claude/agents/alfred/quality-gate.md +0 -343
  416. moai_adk/templates/.claude/agents/alfred/skill-factory.md +0 -865
  417. moai_adk/templates/.claude/agents/alfred/spec-builder.md +0 -426
  418. moai_adk/templates/.claude/agents/alfred/tag-agent.md +0 -361
  419. moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +0 -428
  420. moai_adk/templates/.claude/agents/alfred/trust-checker.md +0 -375
  421. moai_adk/templates/.claude/agents/alfred/ui-ux-expert.md +0 -571
  422. moai_adk/templates/.claude/commands/alfred/0-project.md +0 -1854
  423. moai_adk/templates/.claude/commands/alfred/1-plan.md +0 -880
  424. moai_adk/templates/.claude/commands/alfred/2-run.md +0 -793
  425. moai_adk/templates/.claude/commands/alfred/3-sync.md +0 -1084
  426. moai_adk/templates/.claude/commands/alfred/9-feedback.md +0 -149
  427. moai_adk/templates/.claude/hooks/alfred/core/project.py +0 -748
  428. moai_adk/templates/.claude/hooks/alfred/core/ttl_cache.py +0 -108
  429. moai_adk/templates/.claude/hooks/alfred/core/version_cache.py +0 -198
  430. moai_adk/templates/.claude/hooks/alfred/handlers/__init__.py +0 -29
  431. moai_adk/templates/.claude/hooks/alfred/post_tool__log_changes.py +0 -94
  432. moai_adk/templates/.claude/hooks/alfred/pre_tool__auto_checkpoint.py +0 -100
  433. moai_adk/templates/.claude/hooks/alfred/session_end__cleanup.py +0 -94
  434. moai_adk/templates/.claude/hooks/alfred/session_start__show_project_info.py +0 -94
  435. moai_adk/templates/.claude/hooks/alfred/shared/core/__init__.py +0 -170
  436. moai_adk/templates/.claude/hooks/alfred/shared/core/context.py +0 -67
  437. moai_adk/templates/.claude/hooks/alfred/shared/core/tags.py +0 -230
  438. moai_adk/templates/.claude/hooks/alfred/shared/core/version_cache.py +0 -198
  439. moai_adk/templates/.claude/hooks/alfred/shared/handlers/__init__.py +0 -21
  440. moai_adk/templates/.claude/hooks/alfred/shared/handlers/notification.py +0 -154
  441. moai_adk/templates/.claude/hooks/alfred/shared/handlers/session.py +0 -174
  442. moai_adk/templates/.claude/hooks/alfred/shared/handlers/tool.py +0 -87
  443. moai_adk/templates/.claude/hooks/alfred/shared/handlers/user.py +0 -61
  444. moai_adk/templates/.claude/hooks/alfred/user_prompt__jit_load_docs.py +0 -112
  445. moai_adk/templates/.claude/hooks/alfred/utils/__init__.py +0 -1
  446. moai_adk/templates/.claude/skills/moai-alfred-agent-guide/SKILL.md +0 -70
  447. moai_adk/templates/.claude/skills/moai-alfred-agent-guide/examples.md +0 -62
  448. moai_adk/templates/.claude/skills/moai-alfred-agent-guide/reference.md +0 -242
  449. moai_adk/templates/.claude/skills/moai-alfred-config-schema/SKILL.md +0 -56
  450. moai_adk/templates/.claude/skills/moai-alfred-config-schema/examples.md +0 -28
  451. moai_adk/templates/.claude/skills/moai-alfred-config-schema/reference.md +0 -444
  452. moai_adk/templates/.claude/skills/moai-alfred-context-budget/SKILL.md +0 -62
  453. moai_adk/templates/.claude/skills/moai-alfred-context-budget/examples.md +0 -28
  454. moai_adk/templates/.claude/skills/moai-alfred-context-budget/reference.md +0 -405
  455. moai_adk/templates/.claude/skills/moai-alfred-dev-guide/SKILL.md +0 -51
  456. moai_adk/templates/.claude/skills/moai-alfred-dev-guide/examples.md +0 -355
  457. moai_adk/templates/.claude/skills/moai-alfred-dev-guide/reference.md +0 -239
  458. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/SKILL.md +0 -113
  459. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/examples.md +0 -29
  460. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/reference.md +0 -28
  461. moai_adk/templates/.claude/skills/moai-alfred-expertise-detection/SKILL.md +0 -323
  462. moai_adk/templates/.claude/skills/moai-alfred-expertise-detection/examples.md +0 -286
  463. moai_adk/templates/.claude/skills/moai-alfred-expertise-detection/reference.md +0 -126
  464. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/SKILL.md +0 -122
  465. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/examples.md +0 -29
  466. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/reference.md +0 -29
  467. moai_adk/templates/.claude/skills/moai-alfred-gitflow-policy/SKILL.md +0 -74
  468. moai_adk/templates/.claude/skills/moai-alfred-gitflow-policy/examples.md +0 -4
  469. moai_adk/templates/.claude/skills/moai-alfred-gitflow-policy/reference.md +0 -269
  470. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/SKILL.md +0 -237
  471. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/examples.md +0 -615
  472. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/reference.md +0 -653
  473. moai_adk/templates/.claude/skills/moai-alfred-issue-labels/SKILL.md +0 -19
  474. moai_adk/templates/.claude/skills/moai-alfred-issue-labels/examples.md +0 -4
  475. moai_adk/templates/.claude/skills/moai-alfred-issue-labels/reference.md +0 -150
  476. moai_adk/templates/.claude/skills/moai-alfred-language-detection/SKILL.md +0 -113
  477. moai_adk/templates/.claude/skills/moai-alfred-language-detection/examples.md +0 -29
  478. moai_adk/templates/.claude/skills/moai-alfred-language-detection/reference.md +0 -28
  479. moai_adk/templates/.claude/skills/moai-alfred-persona-roles/SKILL.md +0 -198
  480. moai_adk/templates/.claude/skills/moai-alfred-persona-roles/examples.md +0 -431
  481. moai_adk/templates/.claude/skills/moai-alfred-persona-roles/reference.md +0 -141
  482. moai_adk/templates/.claude/skills/moai-alfred-practices/SKILL.md +0 -89
  483. moai_adk/templates/.claude/skills/moai-alfred-practices/examples.md +0 -122
  484. moai_adk/templates/.claude/skills/moai-alfred-practices/reference.md +0 -369
  485. moai_adk/templates/.claude/skills/moai-alfred-proactive-suggestions/SKILL.md +0 -508
  486. moai_adk/templates/.claude/skills/moai-alfred-proactive-suggestions/examples.md +0 -481
  487. moai_adk/templates/.claude/skills/moai-alfred-proactive-suggestions/reference.md +0 -100
  488. moai_adk/templates/.claude/skills/moai-alfred-reporting/SKILL.md +0 -273
  489. moai_adk/templates/.claude/skills/moai-alfred-rules/SKILL.md +0 -77
  490. moai_adk/templates/.claude/skills/moai-alfred-rules/examples.md +0 -265
  491. moai_adk/templates/.claude/skills/moai-alfred-rules/reference.md +0 -539
  492. moai_adk/templates/.claude/skills/moai-alfred-session-state/SKILL.md +0 -19
  493. moai_adk/templates/.claude/skills/moai-alfred-session-state/examples.md +0 -4
  494. moai_adk/templates/.claude/skills/moai-alfred-session-state/reference.md +0 -84
  495. moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/README.md +0 -137
  496. moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/SKILL.md +0 -219
  497. moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/examples/validate-spec.sh +0 -161
  498. moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/examples.md +0 -541
  499. moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/reference.md +0 -622
  500. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-extended/SKILL.md +0 -115
  501. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-extended/examples.md +0 -4
  502. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-extended/reference.md +0 -348
  503. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/SKILL.md +0 -113
  504. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/examples.md +0 -29
  505. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/reference.md +0 -28
  506. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/SKILL.md +0 -113
  507. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/examples.md +0 -29
  508. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/reference.md +0 -28
  509. moai_adk/templates/.claude/skills/moai-alfred-todowrite-pattern/SKILL.md +0 -19
  510. moai_adk/templates/.claude/skills/moai-alfred-todowrite-pattern/examples.md +0 -4
  511. moai_adk/templates/.claude/skills/moai-alfred-todowrite-pattern/reference.md +0 -211
  512. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/SKILL.md +0 -113
  513. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/examples.md +0 -29
  514. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/reference.md +0 -28
  515. moai_adk/templates/.claude/skills/moai-alfred-workflow/SKILL.md +0 -288
  516. moai_adk/templates/.claude/skills/moai-cc-agents/SKILL.md +0 -269
  517. moai_adk/templates/.claude/skills/moai-cc-agents/templates/agent-template.md +0 -32
  518. moai_adk/templates/.claude/skills/moai-cc-claude-md/SKILL.md +0 -298
  519. moai_adk/templates/.claude/skills/moai-cc-claude-md/templates/CLAUDE-template.md +0 -26
  520. moai_adk/templates/.claude/skills/moai-cc-commands/SKILL.md +0 -307
  521. moai_adk/templates/.claude/skills/moai-cc-commands/templates/command-template.md +0 -21
  522. moai_adk/templates/.claude/skills/moai-cc-hooks/SKILL.md +0 -252
  523. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/pre-bash-check.sh +0 -19
  524. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/preserve-permissions.sh +0 -19
  525. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/validate-bash-command.py +0 -24
  526. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/SKILL.md +0 -199
  527. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/templates/settings-mcp-template.json +0 -39
  528. moai_adk/templates/.claude/skills/moai-cc-memory/SKILL.md +0 -316
  529. moai_adk/templates/.claude/skills/moai-cc-memory/templates/session-summary-template.md +0 -18
  530. moai_adk/templates/.claude/skills/moai-cc-settings/SKILL.md +0 -263
  531. moai_adk/templates/.claude/skills/moai-cc-settings/templates/settings-complete-template.json +0 -30
  532. moai_adk/templates/.claude/skills/moai-cc-skill-descriptions/SKILL.md +0 -19
  533. moai_adk/templates/.claude/skills/moai-cc-skill-descriptions/examples.md +0 -4
  534. moai_adk/templates/.claude/skills/moai-cc-skill-descriptions/reference.md +0 -218
  535. moai_adk/templates/.claude/skills/moai-cc-skill-factory/CHECKLIST.md +0 -482
  536. moai_adk/templates/.claude/skills/moai-cc-skill-factory/EXAMPLES.md +0 -278
  537. moai_adk/templates/.claude/skills/moai-cc-skill-factory/INTERACTIVE-DISCOVERY.md +0 -524
  538. moai_adk/templates/.claude/skills/moai-cc-skill-factory/METADATA.md +0 -477
  539. moai_adk/templates/.claude/skills/moai-cc-skill-factory/PARALLEL-ANALYSIS-REPORT.md +0 -429
  540. moai_adk/templates/.claude/skills/moai-cc-skill-factory/PYTHON-VERSION-MATRIX.md +0 -391
  541. moai_adk/templates/.claude/skills/moai-cc-skill-factory/SKILL-FACTORY-WORKFLOW.md +0 -431
  542. moai_adk/templates/.claude/skills/moai-cc-skill-factory/SKILL-UPDATE-ADVISOR.md +0 -577
  543. moai_adk/templates/.claude/skills/moai-cc-skill-factory/SKILL.md +0 -271
  544. moai_adk/templates/.claude/skills/moai-cc-skill-factory/STEP-BY-STEP-GUIDE.md +0 -466
  545. moai_adk/templates/.claude/skills/moai-cc-skill-factory/STRUCTURE.md +0 -583
  546. moai_adk/templates/.claude/skills/moai-cc-skill-factory/WEB-RESEARCH.md +0 -526
  547. moai_adk/templates/.claude/skills/moai-cc-skill-factory/reference.md +0 -465
  548. moai_adk/templates/.claude/skills/moai-cc-skill-factory/scripts/generate-structure.sh +0 -328
  549. moai_adk/templates/.claude/skills/moai-cc-skill-factory/scripts/validate-skill.sh +0 -312
  550. moai_adk/templates/.claude/skills/moai-cc-skill-factory/templates/SKILL_TEMPLATE.md +0 -245
  551. moai_adk/templates/.claude/skills/moai-cc-skill-factory/templates/examples-template.md +0 -285
  552. moai_adk/templates/.claude/skills/moai-cc-skill-factory/templates/reference-template.md +0 -278
  553. moai_adk/templates/.claude/skills/moai-cc-skill-factory/templates/scripts-template.sh +0 -303
  554. moai_adk/templates/.claude/skills/moai-cc-skills/SKILL.md +0 -291
  555. moai_adk/templates/.claude/skills/moai-cc-skills/templates/SKILL-template.md +0 -15
  556. moai_adk/templates/.claude/skills/moai-design-systems/SKILL.md +0 -802
  557. moai_adk/templates/.claude/skills/moai-design-systems/examples.md +0 -1238
  558. moai_adk/templates/.claude/skills/moai-design-systems/reference.md +0 -673
  559. moai_adk/templates/.claude/skills/moai-domain-backend/examples.md +0 -1633
  560. moai_adk/templates/.claude/skills/moai-domain-backend/reference.md +0 -660
  561. moai_adk/templates/.claude/skills/moai-domain-cli-tool/SKILL.md +0 -123
  562. moai_adk/templates/.claude/skills/moai-domain-cli-tool/examples.md +0 -29
  563. moai_adk/templates/.claude/skills/moai-domain-cli-tool/reference.md +0 -30
  564. moai_adk/templates/.claude/skills/moai-domain-data-science/SKILL.md +0 -123
  565. moai_adk/templates/.claude/skills/moai-domain-data-science/examples.md +0 -29
  566. moai_adk/templates/.claude/skills/moai-domain-data-science/reference.md +0 -30
  567. moai_adk/templates/.claude/skills/moai-domain-database/examples.md +0 -29
  568. moai_adk/templates/.claude/skills/moai-domain-database/reference.md +0 -30
  569. moai_adk/templates/.claude/skills/moai-domain-devops/SKILL.md +0 -124
  570. moai_adk/templates/.claude/skills/moai-domain-devops/examples.md +0 -29
  571. moai_adk/templates/.claude/skills/moai-domain-devops/reference.md +0 -31
  572. moai_adk/templates/.claude/skills/moai-domain-frontend/examples.md +0 -29
  573. moai_adk/templates/.claude/skills/moai-domain-frontend/reference.md +0 -31
  574. moai_adk/templates/.claude/skills/moai-domain-ml/SKILL.md +0 -123
  575. moai_adk/templates/.claude/skills/moai-domain-ml/examples.md +0 -29
  576. moai_adk/templates/.claude/skills/moai-domain-ml/reference.md +0 -30
  577. moai_adk/templates/.claude/skills/moai-domain-mobile-app/SKILL.md +0 -123
  578. moai_adk/templates/.claude/skills/moai-domain-mobile-app/examples.md +0 -29
  579. moai_adk/templates/.claude/skills/moai-domain-mobile-app/reference.md +0 -30
  580. moai_adk/templates/.claude/skills/moai-domain-security/SKILL.md +0 -123
  581. moai_adk/templates/.claude/skills/moai-domain-security/examples.md +0 -29
  582. moai_adk/templates/.claude/skills/moai-domain-security/reference.md +0 -30
  583. moai_adk/templates/.claude/skills/moai-domain-web-api/SKILL.md +0 -123
  584. moai_adk/templates/.claude/skills/moai-domain-web-api/examples.md +0 -29
  585. moai_adk/templates/.claude/skills/moai-domain-web-api/reference.md +0 -30
  586. moai_adk/templates/.claude/skills/moai-essentials-debug/SKILL.md +0 -303
  587. moai_adk/templates/.claude/skills/moai-essentials-debug/examples.md +0 -1064
  588. moai_adk/templates/.claude/skills/moai-essentials-debug/reference.md +0 -1047
  589. moai_adk/templates/.claude/skills/moai-essentials-perf/SKILL.md +0 -113
  590. moai_adk/templates/.claude/skills/moai-essentials-perf/examples.md +0 -29
  591. moai_adk/templates/.claude/skills/moai-essentials-perf/reference.md +0 -28
  592. moai_adk/templates/.claude/skills/moai-essentials-refactor/SKILL.md +0 -113
  593. moai_adk/templates/.claude/skills/moai-essentials-refactor/examples.md +0 -29
  594. moai_adk/templates/.claude/skills/moai-essentials-refactor/reference.md +0 -28
  595. moai_adk/templates/.claude/skills/moai-essentials-review/SKILL.md +0 -113
  596. moai_adk/templates/.claude/skills/moai-essentials-review/examples.md +0 -29
  597. moai_adk/templates/.claude/skills/moai-essentials-review/reference.md +0 -28
  598. moai_adk/templates/.claude/skills/moai-foundation-ears/SKILL.md +0 -116
  599. moai_adk/templates/.claude/skills/moai-foundation-ears/examples.md +0 -29
  600. moai_adk/templates/.claude/skills/moai-foundation-ears/reference.md +0 -28
  601. moai_adk/templates/.claude/skills/moai-foundation-git/SKILL.md +0 -122
  602. moai_adk/templates/.claude/skills/moai-foundation-git/examples.md +0 -29
  603. moai_adk/templates/.claude/skills/moai-foundation-git/reference.md +0 -29
  604. moai_adk/templates/.claude/skills/moai-foundation-langs/SKILL.md +0 -113
  605. moai_adk/templates/.claude/skills/moai-foundation-langs/examples.md +0 -29
  606. moai_adk/templates/.claude/skills/moai-foundation-langs/reference.md +0 -28
  607. moai_adk/templates/.claude/skills/moai-foundation-specs/SKILL.md +0 -113
  608. moai_adk/templates/.claude/skills/moai-foundation-specs/examples.md +0 -29
  609. moai_adk/templates/.claude/skills/moai-foundation-specs/reference.md +0 -28
  610. moai_adk/templates/.claude/skills/moai-foundation-tags/SKILL.md +0 -113
  611. moai_adk/templates/.claude/skills/moai-foundation-tags/examples.md +0 -29
  612. moai_adk/templates/.claude/skills/moai-foundation-tags/reference.md +0 -28
  613. moai_adk/templates/.claude/skills/moai-foundation-trust/SKILL.md +0 -307
  614. moai_adk/templates/.claude/skills/moai-foundation-trust/examples.md +0 -0
  615. moai_adk/templates/.claude/skills/moai-foundation-trust/reference.md +0 -1099
  616. moai_adk/templates/.claude/skills/moai-lang-c/SKILL.md +0 -124
  617. moai_adk/templates/.claude/skills/moai-lang-c/examples.md +0 -29
  618. moai_adk/templates/.claude/skills/moai-lang-c/reference.md +0 -31
  619. moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +0 -124
  620. moai_adk/templates/.claude/skills/moai-lang-cpp/examples.md +0 -29
  621. moai_adk/templates/.claude/skills/moai-lang-cpp/reference.md +0 -31
  622. moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +0 -123
  623. moai_adk/templates/.claude/skills/moai-lang-csharp/examples.md +0 -29
  624. moai_adk/templates/.claude/skills/moai-lang-csharp/reference.md +0 -30
  625. moai_adk/templates/.claude/skills/moai-lang-dart/SKILL.md +0 -123
  626. moai_adk/templates/.claude/skills/moai-lang-dart/examples.md +0 -29
  627. moai_adk/templates/.claude/skills/moai-lang-dart/reference.md +0 -30
  628. moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +0 -127
  629. moai_adk/templates/.claude/skills/moai-lang-go/examples.md +0 -29
  630. moai_adk/templates/.claude/skills/moai-lang-go/reference.md +0 -31
  631. moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +0 -126
  632. moai_adk/templates/.claude/skills/moai-lang-java/examples.md +0 -29
  633. moai_adk/templates/.claude/skills/moai-lang-java/reference.md +0 -31
  634. moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +0 -125
  635. moai_adk/templates/.claude/skills/moai-lang-javascript/examples.md +0 -29
  636. moai_adk/templates/.claude/skills/moai-lang-javascript/reference.md +0 -32
  637. moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +0 -124
  638. moai_adk/templates/.claude/skills/moai-lang-kotlin/examples.md +0 -29
  639. moai_adk/templates/.claude/skills/moai-lang-kotlin/reference.md +0 -31
  640. moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +0 -126
  641. moai_adk/templates/.claude/skills/moai-lang-php/examples.md +0 -29
  642. moai_adk/templates/.claude/skills/moai-lang-php/reference.md +0 -30
  643. moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +0 -433
  644. moai_adk/templates/.claude/skills/moai-lang-python/examples.md +0 -624
  645. moai_adk/templates/.claude/skills/moai-lang-python/reference.md +0 -316
  646. moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +0 -123
  647. moai_adk/templates/.claude/skills/moai-lang-r/examples.md +0 -29
  648. moai_adk/templates/.claude/skills/moai-lang-r/reference.md +0 -30
  649. moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +0 -124
  650. moai_adk/templates/.claude/skills/moai-lang-ruby/examples.md +0 -29
  651. moai_adk/templates/.claude/skills/moai-lang-ruby/reference.md +0 -31
  652. moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +0 -127
  653. moai_adk/templates/.claude/skills/moai-lang-rust/examples.md +0 -29
  654. moai_adk/templates/.claude/skills/moai-lang-rust/reference.md +0 -31
  655. moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +0 -125
  656. moai_adk/templates/.claude/skills/moai-lang-scala/examples.md +0 -29
  657. moai_adk/templates/.claude/skills/moai-lang-scala/reference.md +0 -30
  658. moai_adk/templates/.claude/skills/moai-lang-shell/SKILL.md +0 -123
  659. moai_adk/templates/.claude/skills/moai-lang-shell/examples.md +0 -29
  660. moai_adk/templates/.claude/skills/moai-lang-shell/reference.md +0 -30
  661. moai_adk/templates/.claude/skills/moai-lang-sql/SKILL.md +0 -124
  662. moai_adk/templates/.claude/skills/moai-lang-sql/examples.md +0 -29
  663. moai_adk/templates/.claude/skills/moai-lang-sql/reference.md +0 -31
  664. moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +0 -123
  665. moai_adk/templates/.claude/skills/moai-lang-swift/examples.md +0 -29
  666. moai_adk/templates/.claude/skills/moai-lang-swift/reference.md +0 -30
  667. moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +0 -133
  668. moai_adk/templates/.claude/skills/moai-lang-typescript/examples.md +0 -29
  669. moai_adk/templates/.claude/skills/moai-lang-typescript/reference.md +0 -34
  670. moai_adk/templates/.claude/skills/moai-project-documentation.md +0 -622
  671. moai_adk/templates/.github/workflows/c-tag-validation.yml +0 -11
  672. moai_adk/templates/.github/workflows/cpp-tag-validation.yml +0 -11
  673. moai_adk/templates/.github/workflows/csharp-tag-validation.yml +0 -11
  674. moai_adk/templates/.github/workflows/dart-tag-validation.yml +0 -11
  675. moai_adk/templates/.github/workflows/go-tag-validation.yml +0 -130
  676. moai_adk/templates/.github/workflows/java-tag-validation.yml +0 -11
  677. moai_adk/templates/.github/workflows/javascript-tag-validation.yml +0 -135
  678. moai_adk/templates/.github/workflows/kotlin-tag-validation.yml +0 -11
  679. moai_adk/templates/.github/workflows/moai-gitflow.yml +0 -419
  680. moai_adk/templates/.github/workflows/moai-release-create.yml +0 -100
  681. moai_adk/templates/.github/workflows/moai-release-pipeline.yml +0 -188
  682. moai_adk/templates/.github/workflows/php-tag-validation.yml +0 -11
  683. moai_adk/templates/.github/workflows/python-tag-validation.yml +0 -118
  684. moai_adk/templates/.github/workflows/release.yml +0 -118
  685. moai_adk/templates/.github/workflows/ruby-tag-validation.yml +0 -11
  686. moai_adk/templates/.github/workflows/rust-tag-validation.yml +0 -11
  687. moai_adk/templates/.github/workflows/shell-tag-validation.yml +0 -11
  688. moai_adk/templates/.github/workflows/swift-tag-validation.yml +0 -11
  689. moai_adk/templates/.github/workflows/tag-report.yml +0 -269
  690. moai_adk/templates/.github/workflows/tag-validation.yml +0 -186
  691. moai_adk/templates/.github/workflows/typescript-tag-validation.yml +0 -154
  692. moai_adk/templates/.moai/config.json +0 -115
  693. moai_adk/templates/workflows/go-tag-validation.yml +0 -30
  694. moai_adk/templates/workflows/javascript-tag-validation.yml +0 -41
  695. moai_adk/templates/workflows/python-tag-validation.yml +0 -42
  696. moai_adk/templates/workflows/typescript-tag-validation.yml +0 -31
  697. moai_adk-0.15.1.dist-info/METADATA +0 -3094
  698. moai_adk-0.15.1.dist-info/RECORD +0 -365
  699. {moai_adk-0.15.1.dist-info → moai_adk-0.32.8.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,2478 @@
1
+ Metadata-Version: 2.4
2
+ Name: moai-adk
3
+ Version: 0.32.8
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-24-skills) | Explore 24 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
+ - 🔴 **Final test execution**: Auto-run all tests
596
+ - 📊 **Coverage verification**: Auto-guarantee 95%+ coverage
597
+ - 🔍 **Code quality check**: Auto-run ruff, mypy
598
+ - 📝 **Auto commit generation**: Auto-create "Ready for merge" commit
599
+ - 📚 **Documentation update**: Auto-update API docs, README
600
+ - 🚀 **Merge readiness**: Claude Code auto-completes merge preparation
601
+
602
+ **Output**: Tests pass + documentation complete + merge ready
603
+
604
+ ---
605
+
606
+ ### 💡 Visual Workflow: "Blog Comment Feature" Example
607
+
608
+ ```mermaid
609
+ flowchart LR
610
+ 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"]
611
+
612
+ Plan -->|"<br/>SPEC-001<br/>ready<br/>"| Run["<b>💻 RUN</b><br/>(Implementation)<br/>━━━━━━<br/>🔴 Write tests<br/>🟢 Implement code<br/>🔵 Refactor<br/>⏱️ 20min"]
613
+
614
+ 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"]
615
+
616
+ Sync -->|"<br/>Fully automated complete!<br/>🚀 Merge ready<br/>"| End([✅ Feature Deployed])
617
+
618
+ classDef planStyle fill:#e3f2fd,stroke:#1976d2,stroke-width:3px,color:#000
619
+ classDef runStyle fill:#f3e5f5,stroke:#7b1fa2,stroke-width:3px,color:#000
620
+ classDef syncStyle fill:#fff8e1,stroke:#ff9800,stroke-width:3px,color:#000
621
+ classDef normalStyle fill:#fafafa,stroke:#666,stroke-width:2px
622
+
623
+ class Plan planStyle
624
+ class Run runStyle
625
+ class Sync syncStyle
626
+ class Start,End normalStyle
627
+ ```
628
+
629
+ ---
630
+
631
+ ## 7. Core Commands
632
+
633
+ ### 🎯 `> /moai:0-project` - Project Initialization
634
+
635
+ **Purpose**: Generate project metadata
636
+
637
+ **When to use**: When starting a new project
638
+
639
+ ```bash
640
+ > /moai:0-project
641
+ ```
642
+
643
+ **Generated files**:
644
+
645
+ - `.moai/config/config.json`: Project configuration
646
+ - `.moai/memory/`: Project memory
647
+ - `.moai/docs/`: Auto-generated documentation
648
+
649
+ ---
650
+
651
+ ### 📋 `> /moai:1-plan` - SPEC Writing
652
+
653
+ **Purpose**: Generate SPEC document in EARS format
654
+
655
+ **When to use**: Before starting new feature development
656
+
657
+ ```bash
658
+ > /moai:1-plan "add login feature"
659
+ ```
660
+
661
+ **Example**:
662
+
663
+ ```bash
664
+ > /moai:1-plan "implement user profile page"
665
+ # → Creates SPEC-002 (.moai/specs/SPEC-002/spec.md)
666
+
667
+ > /moai:1-plan "develop payment API"
668
+ # → Creates SPEC-003
669
+ ```
670
+
671
+ **SPEC includes**:
672
+
673
+ - Requirements
674
+ - Constraints
675
+ - Success Criteria
676
+ - Test Scenarios
677
+
678
+ **Important**: Must execute `> /clear` next
679
+
680
+ ```bash
681
+ > /moai:1-plan "feature name"
682
+ # After completion
683
+ > /clear
684
+ ```
685
+
686
+ ---
687
+
688
+ ### 💻 `> /moai:2-run` - TDD Implementation
689
+
690
+ **Purpose**: Implement code with RED-GREEN-REFACTOR cycle
691
+
692
+ **When to use**: After SPEC writing for implementation
693
+
694
+ ```bash
695
+ > /moai:2-run SPEC-001
696
+ ```
697
+
698
+ **Example**:
699
+
700
+ ```bash
701
+ > /moai:2-run SPEC-001 # Basic implementation
702
+ ```
703
+
704
+ **Automatic execution**:
705
+
706
+ - 🔴 Write tests first
707
+ - 🟢 Pass tests with code
708
+ - 🔵 Refactor & optimize
709
+ - ✅ TRUST 5 validation (automatic)
710
+
711
+ **Verification items**:
712
+
713
+ - Test coverage >= 85%
714
+ - Pass linting checks
715
+ - Pass type checks
716
+ - Pass security checks
717
+
718
+ ---
719
+
720
+ ### 📚 `> /moai:3-sync` - Documentation Sync
721
+
722
+ **Purpose**: Reflect code changes in documentation
723
+
724
+ **When to use**: After implementation completion
725
+
726
+ ```bash
727
+ > /moai:3-sync SPEC-001
728
+ ```
729
+
730
+ **Example**:
731
+
732
+ ```bash
733
+ > /moai:3-sync SPEC-001 # All documentation
734
+ ```
735
+
736
+ **Auto-generated documentation**:
737
+
738
+ - API reference
739
+ - Architecture diagrams
740
+ - Deployment guide
741
+ - README updates
742
+ - CHANGELOG
743
+
744
+ ---
745
+
746
+ ### 🌳 **moai-worktree** - Git Worktree Management for Parallel SPEC Development
747
+
748
+ #### Why moai-worktree? The Problem It Solves
749
+
750
+ 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:
751
+
752
+ - **Context Switch Hell**: Constantly switch branches in the same workspace, losing context and risking incomplete work
753
+ - **Sequential Development**: Work on one SPEC at a time, reducing productivity
754
+ - **Environment Conflicts**: Different SPECs may require different dependencies, database states, or configurations
755
+
756
+ **moai-worktree solves these problems** by providing isolated workspaces for each SPEC, enabling true parallel development without context switching overhead.
757
+
758
+ #### Core Concept: SPEC-Based Parallel Development
759
+
760
+ **What is a Git Worktree?**
761
+
762
+ 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:
763
+
764
+ - Independent file system
765
+ - Separate working directory state
766
+ - Isolated build artifacts and dependencies
767
+ - Own staging area and unstaged changes
768
+
769
+ **moai-worktree Architecture:**
770
+
771
+ ```
772
+ Main Repository/
773
+ ├── .git/ # Shared Git repository
774
+ ├── src/ # Main branch files
775
+ └── worktrees/ # Auto-created worktrees
776
+ ├── SPEC-001/
777
+ │ ├── .git # Worktree-specific git file
778
+ │ ├── src/ # SPEC-001 implementation
779
+ │ └── tests/ # SPEC-001 tests
780
+ ├── SPEC-002/
781
+ │ ├── .git # Worktree-specific git file
782
+ │ ├── src/ # SPEC-002 implementation
783
+ │ └── tests/ # SPEC-002 tests
784
+ └── SPEC-003/
785
+ ├── .git # Worktree-specific git file
786
+ ├── src/ # SPEC-003 implementation
787
+ └── tests/ # SPEC-003 tests
788
+ ```
789
+
790
+ #### Key Benefits for SPEC-First Development
791
+
792
+ **1. Zero Context Switching**
793
+
794
+ - Each SPEC has its own dedicated workspace
795
+ - Never lose work context when switching between SPECs
796
+ - Maintain mental focus on specific requirements
797
+
798
+ **2. True Parallel Development**
799
+
800
+ - Work on SPEC-001 implementation while SPEC-002 tests run
801
+ - Debug SPEC-003 while SPEC-004 documentation syncs
802
+ - No waiting for other processes to complete
803
+
804
+ **3. Isolated Environments**
805
+
806
+ - Different SPECs can use different dependency versions
807
+ - Separate database states and configurations
808
+ - No cross-SPEC contamination
809
+
810
+ **4. SPEC Completion Tracking**
811
+
812
+ - Clear visual indication of which SPECs are active
813
+ - Easy to identify abandoned or incomplete SPECs
814
+ - Systematic cleanup of completed work
815
+
816
+ #### Advanced Features
817
+
818
+ **Smart Synchronization**
819
+
820
+ ```bash
821
+ # Sync all worktrees with latest main branch
822
+ moai-worktree sync --all
823
+
824
+ # Sync specific worktree with conflict resolution
825
+ moai-worktree sync SPEC-001 --auto-resolve
826
+ ```
827
+
828
+ **Intelligent Cleanup**
829
+
830
+ ```bash
831
+ # Auto-remove worktrees for merged branches
832
+ moai-worktree clean --merged-only
833
+
834
+ # Safe cleanup with confirmation prompts
835
+ moai-worktree clean --interactive
836
+ ```
837
+
838
+ **Performance Optimization**
839
+
840
+ - **Concurrent Operations**: Multiple worktrees can be modified simultaneously
841
+ - **Shared History**: All worktrees share the same Git object database
842
+ - **Selective Sync**: Only sync changes when needed, not entire repositories
843
+
844
+ #### When to Use moai-worktree
845
+
846
+ **Ideal Scenarios:**
847
+
848
+ - **Multiple Active SPECs**: Working on 3+ SPECs simultaneously
849
+ - **Long-running Tasks**: SPEC implementation takes days or weeks
850
+ - **Team Collaboration**: Multiple developers working on different SPECs
851
+ - **Feature Branching**: Each SPEC becomes its own feature branch
852
+ - **Environment Isolation**: Different SPECs require different configurations
853
+
854
+ #### Complete Development Workflow (Start to Merge)
855
+
856
+ **Step 1: SPEC Creation and Worktree Setup**
857
+
858
+ ```bash
859
+ # Method 1: Automatic worktree creation with SPEC creation
860
+ > /moai:1-plan 'Implement user authentication system' --worktree
861
+ # → Auto-create SPEC-AUTH-001 and setup worktree
862
+
863
+ # Method 2: Manual worktree creation
864
+ > /moai:1-plan 'Implement user authentication system'
865
+ # SPEC-AUTH-001 created
866
+ moai-worktree new SPEC-AUTH-001
867
+ # → Create isolated worktree environment
868
+ ```
869
+
870
+ **Step 2: Navigate to Worktree and Start Development**
871
+
872
+ ```bash
873
+ # Navigate to worktree (recommended method)
874
+ moai-worktree go SPEC-AUTH-001
875
+ # → cd ~/moai/worktrees/MoAI-ADK/SPEC-AUTH-001
876
+
877
+ # Or navigate directly in new shell
878
+ moai-worktree switch SPEC-AUTH-001
879
+ # → Navigate to worktree in new terminal
880
+ ```
881
+
882
+ **Step 3: Develop in Isolated Environment**
883
+
884
+ ```bash
885
+ # TDD development within worktree
886
+ > /moai:2-run SPEC-AUTH-001
887
+ # → Execute RED → GREEN → REFACTOR cycle
888
+
889
+ # Check status during development
890
+ moai-worktree status
891
+ git status
892
+ git log --oneline -5
893
+
894
+ # Intermediate save
895
+ git add .
896
+ git commit -m "Auth: Implement user login endpoint"
897
+ ```
898
+
899
+ **Step 4: Synchronization and Conflict Resolution**
900
+
901
+ ```bash
902
+ # Get main branch changes
903
+ moai-worktree sync SPEC-AUTH-001
904
+
905
+ # Sync with automatic conflict resolution
906
+ moai-worktree sync SPEC-AUTH-001 --auto-resolve
907
+
908
+ # Sync all worktrees
909
+ moai-worktree sync --all --auto-resolve
910
+ ```
911
+
912
+ **Step 5: Development Completion and Testing (Automation)**
913
+
914
+ ```bash
915
+ # MoAI workflow sync - automatically run tests, quality checks, commits
916
+ > /moai:3-sync SPEC-AUTH-001
917
+ # → Auto final testing, coverage verification, code quality checks, final commit complete
918
+ ```
919
+
920
+ **Step 6: Merge Preparation (Automation + Direct Commands)**
921
+
922
+ **Option A: Claude Code Automation (Beginner Friendly)**
923
+
924
+ ```bash
925
+ # Claude Code automatically handles merge preparation
926
+ # User just needs to request:
927
+ > Prepare SPEC-AUTH-001 for merge to main branch
928
+
929
+ # Claude Code automatically executes:
930
+ # - Fetch worktree branch
931
+ # - Local merge testing
932
+ # - Conflict check and resolution suggestions
933
+ # - Merge preparation complete report
934
+ ```
935
+
936
+ **Option B: Direct Git Commands (Advanced Users)**
937
+
938
+ ```bash
939
+ # 1. Navigate from worktree to main
940
+ moai-worktree go SPEC-AUTH-001 # or cd /path/to/main/repo
941
+
942
+ # 2. Fetch worktree branch
943
+ git fetch origin feature/SPEC-AUTH-001
944
+ git checkout -b merge/SPEC-AUTH-001 origin/feature/SPEC-AUTH-001
945
+
946
+ # 3. Local merge testing
947
+ git merge main --no-ff # Merge changes from main
948
+
949
+ # 4. Manual resolution if conflicts exist
950
+ git status # Check conflict files
951
+ # After editing conflict files:
952
+ git add .
953
+ git commit -m "Resolve: Merge conflicts in SPEC-AUTH-001"
954
+
955
+ # 5. Confirm merge preparation complete
956
+ git log --oneline -5
957
+ git status # Confirm clean working directory
958
+ ```
959
+
960
+ **Direct Command Collection for Conflict Resolution:**
961
+
962
+ ```bash
963
+ # Strategic approach when conflicts occur
964
+ git checkout --ours conflicted_file.py # Prioritize main branch
965
+ git checkout --theirs conflicted_file.py # Prioritize worktree changes
966
+
967
+ # Cancel merge and retry
968
+ git merge --abort
969
+ git merge main --no-ff
970
+
971
+ # Change overall merge strategy
972
+ git rebase main # Use rebase instead
973
+ ```
974
+
975
+ **Step 7: Completion and Cleanup (Automation + Direct Commands)**
976
+
977
+ **Option A: Claude Code Automation (Beginner Friendly)**
978
+
979
+ ```bash
980
+ # Worktree cleanup (request Claude Code auto-processing)
981
+ > Clean up SPEC-AUTH-001 worktree
982
+
983
+ # README.ko.md update (request Claude Code auto-processing)
984
+ > Add completed SPEC-AUTH-001 feature to README.ko.md
985
+
986
+ # Claude Code automatically executes:
987
+ # - Check worktree status
988
+ # - Document completed features
989
+ # - README update
990
+ # - Cleanup complete report
991
+ ```
992
+
993
+ **Option B: Direct moai-worktree Commands (Advanced Users)**
994
+
995
+ ```bash
996
+ # 1. Final worktree status check
997
+ moai-worktree status
998
+ # Output example:
999
+ # SPEC-AUTH-001
1000
+ # Branch: feature/SPEC-AUTH-001
1001
+ # Status: completed
1002
+ # Path: ~/moai/worktrees/MoAI-ADK/SPEC-AUTH-001
1003
+
1004
+ # 2. Worktree cleanup (safe method)
1005
+ moai-worktree clean --merged-only
1006
+ # → Auto-remove worktrees for merged branches only
1007
+
1008
+ # 3. Or interactive cleanup (optional removal)
1009
+ moai-worktree clean --interactive
1010
+ # → Select worktrees to remove
1011
+
1012
+ # 4. Direct removal of specific worktree (force)
1013
+ moai-worktree remove SPEC-AUTH-001 --force
1014
+
1015
+ # 5. Overall worktree status check
1016
+ moai-worktree list
1017
+ # or
1018
+ moai-worktree status
1019
+ ```
1020
+
1021
+ **Practical Worktree Management Command Collection:**
1022
+
1023
+ ```bash
1024
+ # Daily worktree management
1025
+ moai-worktree list # List all worktrees
1026
+ moai-worktree status # Detailed status check
1027
+ moai-worktree sync SPEC-AUTH-001 # Sync specific worktree
1028
+ moai-worktree sync --all # Sync all worktrees
1029
+
1030
+ # Worktree navigation and work
1031
+ moai-worktree go SPEC-001 # Navigate in current shell
1032
+ moai-worktree switch SPEC-001 # Open worktree in new shell
1033
+
1034
+ # Automatic conflict resolution
1035
+ moai-worktree sync SPEC-AUTH-001 --auto-resolve
1036
+
1037
+ # Settings check
1038
+ moai-worktree config get # View current settings
1039
+ moai-worktree config root # Check worktree root path
1040
+ ```
1041
+
1042
+ **Mixed Workflow Recommended Pattern:**
1043
+
1044
+ ```bash
1045
+ # Steps 1-5: Claude Code automation (fast development)
1046
+ > /moai:1-plan "feature name"
1047
+ > /moai:2-run SPEC-XXX
1048
+ > /moai:3-sync SPEC-XXX
1049
+
1050
+ # Steps 6-7: Direct commands (precise control)
1051
+ moai-worktree sync SPEC-XXX --auto-resolve # Auto conflict resolution
1052
+ moai-worktree clean --merged-only # Cleanup completed worktrees
1053
+ ```
1054
+
1055
+ ---
1056
+
1057
+ ### 🔧 Manual Command Reference (Manual Command Reference)
1058
+
1059
+ This section details direct commands that can be used alongside Claude Code automation.
1060
+
1061
+ #### **Basic moai-worktree Commands**
1062
+
1063
+ | Command | Purpose | Usage Example | Description |
1064
+ | ---------------------- | --------------------------- | ----------------------------------- | -------------------------------------------- |
1065
+ | `moai-worktree new` | Create new worktree | `moai-worktree new SPEC-001` | Create isolated workspace for SPEC-001 |
1066
+ | `moai-worktree list` | List worktrees | `moai-worktree list` | Display all active worktrees |
1067
+ | `moai-worktree go` | Navigate to worktree | `moai-worktree go SPEC-001` | Navigate to worktree in current shell |
1068
+ | `moai-worktree switch` | Open worktree in new shell | `moai-worktree switch SPEC-001` | Navigate to worktree in new terminal |
1069
+ | `moai-worktree remove` | Remove worktree | `moai-worktree remove SPEC-001` | Delete specific worktree |
1070
+ | `moai-worktree status` | Check status | `moai-worktree status` | Display all worktree statuses |
1071
+
1072
+ #### **Synchronization Commands**
1073
+
1074
+ | Command | Purpose | Usage Example | Description |
1075
+ | ----------------------------------- | ----------------------- | ----------------------------------------------- | ------------------------------------- |
1076
+ | `moai-worktree sync` | Sync specific worktree | `moai-worktree sync SPEC-001` | Sync changes with main branch |
1077
+ | `moai-worktree sync --all` | Sync all worktrees | `moai-worktree sync --all` | Sync all worktrees at once |
1078
+ | `moai-worktree sync --auto-resolve` | Auto conflict resolution| `moai-worktree sync SPEC-001 --auto-resolve` | Auto-attempt conflict resolution |
1079
+ | `moai-worktree sync --rebase` | Rebase-based sync | `moai-worktree sync SPEC-001 --rebase` | Use rebase instead of merge |
1080
+
1081
+ #### **Cleanup Commands**
1082
+
1083
+ | Command | Purpose | Usage Example | Description |
1084
+ | ----------------------------------- | ------------------------- | ------------------------------------- | ---------------------------------- |
1085
+ | `moai-worktree clean` | Clean worktrees | `moai-worktree clean` | Clean all worktrees |
1086
+ | `moai-worktree clean --merged-only` | Clean merged worktrees | `moai-worktree clean --merged-only` | Remove worktrees for merged branches |
1087
+ | `moai-worktree clean --interactive` | Interactive cleanup | `moai-worktree clean --interactive` | Select worktrees to remove |
1088
+
1089
+ #### **Settings Commands**
1090
+
1091
+ | Command | Purpose | Usage Example | Description |
1092
+ | --------------------------- | ----------------- | --------------------------- | -------------------------------------- |
1093
+ | `moai-worktree config` | View settings | `moai-worktree config` | Display current worktree settings |
1094
+ | `moai-worktree config root` | Check root path | `moai-worktree config root` | Check worktree root directory path |
1095
+
1096
+ #### **Advanced Usage Patterns**
1097
+
1098
+ **1. Multi-SPEC Parallel Development**
1099
+
1100
+ ```bash
1101
+ # Create multiple SPECs simultaneously
1102
+ moai-worktree new SPEC-AUTH-001 # User authentication
1103
+ moai-worktree new SPEC-PAY-002 # Payment system
1104
+ moai-worktree new SPEC-UI-003 # UI improvement
1105
+
1106
+ # Check each worktree status
1107
+ moai-worktree status
1108
+
1109
+ # Sync all worktrees
1110
+ moai-worktree sync --all --auto-resolve
1111
+ ```
1112
+
1113
+ **2. Auto Conflict Resolution Workflow**
1114
+
1115
+ ```bash
1116
+ # Step 1: Attempt auto sync
1117
+ moai-worktree sync SPEC-001 --auto-resolve
1118
+
1119
+ # Step 2: Manual intervention if auto resolution fails
1120
+ moai-worktree go SPEC-001
1121
+ git status # Check conflict files
1122
+
1123
+ # Step 3: Select conflict resolution strategy
1124
+ git checkout --ours conflicted_file.py # Prioritize main branch
1125
+ # or
1126
+ git checkout --theirs conflicted_file.py # Prioritize worktree changes
1127
+
1128
+ # Step 4: Complete resolution and commit
1129
+ git add conflicted_file.py
1130
+ git commit -m "Resolve: Auto-resolved conflicts in SPEC-001"
1131
+ ```
1132
+
1133
+ **3. Regular Worktree Maintenance**
1134
+
1135
+ ```bash
1136
+ # Recommended to run daily
1137
+ moai-worktree status # Check current status
1138
+ moai-worktree sync --all # Sync all worktrees
1139
+
1140
+ # Recommended to run weekly
1141
+ moai-worktree clean --merged-only # Clean completed worktrees
1142
+
1143
+ # Recommended to run monthly
1144
+ moai-worktree clean --interactive # Interactive cleanup of unnecessary worktrees
1145
+ ```
1146
+
1147
+ #### **Claude Code and Command Combination Guide**
1148
+
1149
+ **Beginner Users:**
1150
+
1151
+ ```bash
1152
+ # Steps 1-3: Claude Code automation for quick start
1153
+ /moai:1-plan "user login feature"
1154
+ /moai:2-run SPEC-001
1155
+ /moai:3-sync SPEC-001
1156
+
1157
+ # Steps 4-5: Direct commands for basic management
1158
+ moai-worktree status # Check status
1159
+ moai-worktree sync SPEC-001 # Sync
1160
+ moai-worktree clean --merged-only # Cleanup
1161
+ ```
1162
+
1163
+ **Intermediate Users:**
1164
+
1165
+ ```bash
1166
+ # Steps 1-2: Claude Code automation
1167
+ > /moai:1-plan "payment system development"
1168
+ > /moai:2-run SPEC-PAY-001
1169
+
1170
+ # Step 3: Direct commands for precise control
1171
+ moai-worktree go SPEC-PAY-001
1172
+ # Direct development and testing
1173
+ git add .
1174
+ git commit -m "Pay: Implement core payment processing"
1175
+
1176
+ # Steps 4-5: Mixed approach
1177
+ > /moai:3-sync SPEC-PAY-001 # Automation for quality verification
1178
+ moai-worktree sync SPEC-PAY-001 --auto-resolve # Direct sync
1179
+ ```
1180
+
1181
+ **Advanced Users:**
1182
+
1183
+ ```bash
1184
+ # Control entire process with direct commands
1185
+ moai-worktree new SPEC-ADV-001
1186
+ moai-worktree go SPEC-ADV-001
1187
+ # Complete manual development process
1188
+ git add .
1189
+ git commit -m "Adv: Complex feature implementation"
1190
+ moai-worktree sync SPEC-ADV-001 --rebase
1191
+ moai-worktree clean --interactive
1192
+ ```
1193
+
1194
+ **Productivity Tips:**
1195
+
1196
+ 1. **Alias Setup** (add to ~/.zshrc or ~/.bashrc):
1197
+
1198
+ ```bash
1199
+ alias wt-new='moai-worktree new'
1200
+ alias wt-go='moai-worktree go'
1201
+ alias wt-list='moai-worktree list'
1202
+ alias wt-status='moai-worktree status'
1203
+ alias wt-sync='moai-worktree sync'
1204
+ alias wt-clean='moai-worktree clean'
1205
+ ```
1206
+
1207
+ 2. **Quick Workflow Functions**:
1208
+
1209
+ ```bash
1210
+ # Quick worktree creation and navigation
1211
+ wt-dev() {
1212
+ moai-worktree new "SPEC-$1"
1213
+ moai-worktree go "SPEC-$1"
1214
+ }
1215
+
1216
+ # Usage: wt-dev AUTH-001
1217
+ ```
1218
+
1219
+ ---
1220
+
1221
+ ### 🎯 **Perfect Combination of Automation and Direct Control**
1222
+
1223
+ MoAI-ADK is designed to leverage the benefits of both **Claude Code automation** and **direct command control**.
1224
+
1225
+ #### **When to Use What**
1226
+
1227
+ | Situation | Recommended Approach | Reason |
1228
+ | ------------------------- | ------------------------ | ------------------------------ |
1229
+ | **Start new feature** | Claude Code automation | Fast SPEC creation and initial setup |
1230
+ | **Complex algorithms** | Direct control | Step-by-step debugging and optimization needed |
1231
+ | **Daily synchronization** | Direct commands | Fast execution and precise control |
1232
+ | **Quality verification** | Claude Code automation | Automated testing and verification |
1233
+ | **Conflict resolution** | Mixed approach | Auto detection + manual resolution |
1234
+ | **Cleanup & maintenance** | Direct commands | Optional control and safe cleanup |
1235
+
1236
+ #### **Recommended Combination Workflows**
1237
+
1238
+ ##### Beginners: Automation-focused (70% automation + 30% direct control)
1239
+
1240
+ ```bash
1241
+ # Step 1: Quick start with automation
1242
+ > /moai:1-plan "feature development"
1243
+ > /moai:2-run SPEC-001
1244
+
1245
+ # Step 2: Basic management with direct commands
1246
+ moai-worktree status
1247
+ moai-worktree sync SPEC-001
1248
+ moai-worktree clean --merged-only
1249
+
1250
+ # Step 3: Complete with automation
1251
+ > /moai:3-sync SPEC-001
1252
+ ```
1253
+
1254
+ ##### Intermediate: Balanced approach (50% automation + 50% direct control)
1255
+
1256
+ ```bash
1257
+ # Step 1: Plan with automation
1258
+ > /moai:1-plan "complex feature"
1259
+
1260
+ # Step 2: Detailed implementation with direct control
1261
+ moai-worktree new SPEC-001
1262
+ moai-worktree go SPEC-001
1263
+ # Detailed development work
1264
+
1265
+ # Step 3: Quality assurance with automation
1266
+ > /moai:3-sync SPEC-001
1267
+ ```
1268
+
1269
+ ##### Advanced: Direct control-focused (30% automation + 70% direct control)
1270
+
1271
+ ```bash
1272
+ # Control entire process with direct commands but use automation when needed
1273
+ moai-worktree new SPEC-001
1274
+ moai-worktree go SPEC-001
1275
+ # Complete manual development
1276
+ # Use > /moai:3-sync for quality verification when needed
1277
+ ```
1278
+
1279
+ #### Merge Conflict Resolution Strategies
1280
+
1281
+ ##### 1. Auto Resolution (Recommended)
1282
+
1283
+ ```bash
1284
+ # Auto resolution trying all strategies
1285
+ moai-worktree sync SPEC-AUTH-001 --auto-resolve
1286
+ ```
1287
+
1288
+ ##### 2. Manual Resolution
1289
+
1290
+ ```bash
1291
+ # Navigate to worktree
1292
+ moai-worktree go SPEC-AUTH-001
1293
+
1294
+ # Check conflict status
1295
+ git status
1296
+
1297
+ # Edit conflict files
1298
+ # <<<<<<< HEAD
1299
+ # Main branch content
1300
+ # =======
1301
+ # Worktree branch content
1302
+ # >>>>>>> feature/SPEC-AUTH-001
1303
+
1304
+ # Mark as resolved after editing
1305
+ git add conflict_file.py
1306
+ git commit -m "Resolve: Merge conflicts in auth system"
1307
+ ```
1308
+
1309
+ ##### 3. Strategic Approach
1310
+
1311
+ ```bash
1312
+ # Prioritize main branch when conflicts occur
1313
+ git checkout --ours conflict_file.py
1314
+ git add conflict_file.py
1315
+ git commit
1316
+
1317
+ # Or prioritize worktree changes
1318
+ git checkout --theirs conflict_file.py
1319
+ git add conflict_file.py
1320
+ git commit
1321
+ ```
1322
+
1323
+ #### Completion Checklist
1324
+
1325
+ ##### Before Development Completion
1326
+
1327
+ - [ ] All tests pass (>= 95% coverage)
1328
+ - [ ] Pass code quality checks (ruff, mypy)
1329
+ - [ ] Security review complete
1330
+ - [ ] Documentation updated
1331
+ - [ ] Local merge testing
1332
+
1333
+ ##### After Merge Completion
1334
+
1335
+ - [ ] Push to remote repository
1336
+ - [ ] Create and approve Pull Request
1337
+ - [ ] Merge to main branch
1338
+ - [ ] Worktree cleanup complete
1339
+ - [ ] Run > /moai:3-sync
1340
+ - [ ] Deployment testing
1341
+
1342
+ #### Parallel Development Tips
1343
+
1344
+ ##### Multiple SPECs Simultaneous Work
1345
+
1346
+ ```bash
1347
+ # Work on first SPEC
1348
+ moai-worktree go SPEC-AUTH-001
1349
+ > /moai:2-run SPEC-AUTH-001
1350
+
1351
+ # Work on second SPEC in different terminal
1352
+ moai-worktree go SPEC-PAY-002
1353
+ > /moai:2-run SPEC-PAY-002
1354
+
1355
+ # Work on third SPEC
1356
+ moai-worktree go SPEC-UI-003
1357
+ > /moai:2-run SPEC-UI-003
1358
+
1359
+ # Regularly sync all worktrees
1360
+ moai-worktree sync --all --auto-resolve
1361
+ ```
1362
+
1363
+ ##### Work Without Context Switching
1364
+
1365
+ - Each worktree is completely isolated environment
1366
+ - Independent Git state
1367
+ - Allow different dependency versions
1368
+ - Enable simultaneous development of multiple features
1369
+
1370
+ ##### Real Example Workflow
1371
+
1372
+ ```bash
1373
+ # Morning: Start new SPEC
1374
+ moai-worktree new SPEC-005 "User Profile Enhancement"
1375
+ moai-worktree go SPEC-005
1376
+
1377
+ # Implement SPEC-005 while other SPECs complete
1378
+ > /moai:2-run SPEC-005
1379
+
1380
+ # Afternoon: Check all SPEC statuses
1381
+ moai-worktree status
1382
+ # Output:
1383
+ # ✓ SPEC-001: Complete (ready for merge)
1384
+ # ✓ SPEC-002: Testing in progress
1385
+ # ⏳ SPEC-003: Implementation phase
1386
+ # 🔄 SPEC-005: Active development
1387
+
1388
+ # Evening: Clean completed SPECs
1389
+ moai-worktree clean --merged-only
1390
+ ```
1391
+
1392
+ #### Technical Benefits
1393
+
1394
+ ##### Memory Efficiency: Shared Git object database means minimal memory overhead compared to multiple full repositories
1395
+
1396
+ ##### Disk Space Optimization: Worktrees share repository history, using only additional space for working files
1397
+
1398
+ ##### Atomic Operations: Each worktree operation is atomic, preventing repository corruption
1399
+
1400
+ ##### Git Native: Uses standard Git worktree functionality, ensuring compatibility with all Git tools
1401
+
1402
+ #### Integration with MoAI-ADK Workflow
1403
+
1404
+ moai-worktree seamlessly integrates with the MoAI-ADK Plan-Run-Sync cycle:
1405
+
1406
+ 1. **Plan Phase**: `moai-worktree new SPEC-XXX` creates dedicated workspace
1407
+ 2. **Run Phase**: Work in isolation without affecting other SPECs
1408
+ 3. **Sync Phase**: `moai-worktree sync SPEC-XXX` ensures clean integration
1409
+ 4. **Cleanup Phase**: `moai-worktree clean` removes completed worktrees
1410
+
1411
+ This integration provides a complete, systematic approach to managing multiple SPECs simultaneously while maintaining the SPEC-First TDD methodology principles.
1412
+
1413
+ ##### 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
1414
+
1415
+ ##### Command Overview
1416
+
1417
+ ```bash
1418
+ # List available commands
1419
+ moai-worktree --help
1420
+
1421
+ # Create new worktree for SPEC development
1422
+ moai-worktree new SPEC-001
1423
+
1424
+ # List all active worktrees
1425
+ moai-worktree list
1426
+
1427
+ # Navigate to specific worktree
1428
+ moai-worktree go SPEC-001
1429
+
1430
+ # Switch to worktree (open new shell)
1431
+ moai-worktree switch SPEC-001
1432
+
1433
+ # Sync worktree with base branch
1434
+ moai-worktree sync SPEC-001
1435
+
1436
+ # Remove specific worktree
1437
+ moai-worktree remove SPEC-001
1438
+
1439
+ # Clean merged branch worktrees
1440
+ moai-worktree clean
1441
+
1442
+ # Show worktree status and configuration
1443
+ moai-worktree status
1444
+
1445
+ # Configure worktree settings
1446
+ moai-worktree config get
1447
+ moai-worktree config set <key> <value>
1448
+ ```
1449
+
1450
+ ---
1451
+
1452
+ ## 8. Agent Guide (24 Agents)
1453
+
1454
+ ### 🎯 Agent Selection Guide
1455
+
1456
+ Each agent has specific domain expertise. Select the right agent for your task.
1457
+
1458
+ ### Tier 1: Domain Experts (Domain Experts)
1459
+
1460
+ #### expert-backend (Backend Development)
1461
+
1462
+ **Expertise**: FastAPI, Django, Node.js backend development
1463
+ **Use cases**:
1464
+
1465
+ - RESTful API design and implementation
1466
+ - Database query optimization
1467
+ - Authentication and authorization
1468
+ - Server performance optimization
1469
+
1470
+ ```bash
1471
+ > @agent-expert-backend "Develop user authentication API with FastAPI"
1472
+ ```
1473
+
1474
+ ---
1475
+
1476
+ #### expert-frontend (Frontend Development)
1477
+
1478
+ **Expertise**: React, Vue, Next.js frontend
1479
+ **Use cases**:
1480
+
1481
+ - UI component implementation
1482
+ - State management (Redux, Zustand)
1483
+ - API integration
1484
+ - Responsive design
1485
+
1486
+ ```bash
1487
+ > @agent-expert-frontend "Implement dashboard UI with React"
1488
+ ```
1489
+
1490
+ ---
1491
+
1492
+ #### expert-database (Database)
1493
+
1494
+ **Expertise**: SQL, NoSQL, ORM, optimization
1495
+ **Use cases**:
1496
+
1497
+ - Database schema design
1498
+ - Query optimization
1499
+ - Migration
1500
+ - Performance tuning
1501
+
1502
+ ```bash
1503
+ > @agent-expert-database "Optimize large PostgreSQL tables"
1504
+ ```
1505
+
1506
+ ---
1507
+
1508
+ #### expert-security (Security)
1509
+
1510
+ **Expertise**: Security analysis, vulnerability scanning, OWASP
1511
+ **Use cases**:
1512
+
1513
+ - Security code review
1514
+ - Vulnerability analysis
1515
+ - OWASP Top 10 verification
1516
+ - Data encryption
1517
+
1518
+ ```bash
1519
+ > @agent-expert-security "Security audit for login feature"
1520
+ ```
1521
+
1522
+ ---
1523
+
1524
+ #### expert-devops (DevOps)
1525
+
1526
+ **Expertise**: Docker, Kubernetes, CI/CD, deployment
1527
+ **Use cases**:
1528
+
1529
+ - Docker image optimization
1530
+ - Kubernetes configuration
1531
+ - GitHub Actions CI/CD
1532
+ - Infrastructure automation
1533
+
1534
+ ```bash
1535
+ > @agent-expert-devops "Setup Docker deployment for Next.js app"
1536
+ ```
1537
+
1538
+ ---
1539
+
1540
+ #### expert-uiux (UI/UX Design)
1541
+
1542
+ **Expertise**: Design systems, components, accessibility
1543
+ **Use cases**:
1544
+
1545
+ - UI component library design
1546
+ - Design system development
1547
+ - Accessibility (A11y) verification
1548
+ - User experience optimization
1549
+
1550
+ ```bash
1551
+ > @agent-expert-uiux "Build design system based on shadcn/ui"
1552
+ ```
1553
+
1554
+ ---
1555
+
1556
+ #### expert-debug (Debugging)
1557
+
1558
+ **Expertise**: Problem analysis, error tracking, performance profiling
1559
+ **Use cases**:
1560
+
1561
+ - Bug analysis
1562
+ - Performance bottleneck analysis
1563
+ - Log analysis
1564
+ - Memory leak detection
1565
+
1566
+ ```bash
1567
+ > @agent-expert-debug "Analyze slow API response time"
1568
+ ```
1569
+
1570
+ ---
1571
+
1572
+ ### Tier 2: Workflow Managers (Workflow Managers)
1573
+
1574
+ #### manager-spec (SPEC Writing)
1575
+
1576
+ **Purpose**: Generate SPEC documents in EARS format
1577
+ **Auto-invoked**: When executing `> /moai:1-plan`
1578
+
1579
+ ```bash
1580
+ > @agent-manager-spec "Write SPEC for user profile API"
1581
+ ```
1582
+
1583
+ ---
1584
+
1585
+ #### manager-tdd (TDD Implementation)
1586
+
1587
+ **Purpose**: Auto-execute RED-GREEN-REFACTOR
1588
+ **Auto-invoked**: When executing `> /moai:2-run`
1589
+
1590
+ ```bash
1591
+ > @agent-manager-tdd "Implement SPEC-001"
1592
+ ```
1593
+
1594
+ ---
1595
+
1596
+ #### manager-docs (Documentation Automation)
1597
+
1598
+ **Purpose**: Auto-generate API docs, diagrams, guides
1599
+ **Auto-invoked**: When executing `> /moai:3-sync`
1600
+
1601
+ ```bash
1602
+ > @agent-manager-docs "Generate documentation for login feature"
1603
+ ```
1604
+
1605
+ ---
1606
+
1607
+ #### manager-quality (Quality Verification)
1608
+
1609
+ **Purpose**: TRUST 5 verification (Test, Readable, Unified, Secured, Trackable)
1610
+ **Auto-invoked**: After `> /moai:2-run` completion
1611
+
1612
+ ```bash
1613
+ > @agent-manager-quality "Verify code quality"
1614
+ ```
1615
+
1616
+ ---
1617
+
1618
+ #### manager-strategy (Strategy Planning)
1619
+
1620
+ **Purpose**: Establish complex implementation strategies
1621
+ **Use cases**:
1622
+
1623
+ - Microservice architecture design
1624
+ - Migration planning
1625
+ - Performance optimization strategy
1626
+
1627
+ ```bash
1628
+ > @agent-manager-strategy "Plan monolith to microservices migration"
1629
+ # Or use Built-in agent
1630
+ > @agent-Plan "Plan monolith to microservices migration"
1631
+ ```
1632
+
1633
+ ---
1634
+
1635
+ ### Tier 3: Meta-generators (Meta-generators)
1636
+
1637
+ #### builder-agent
1638
+
1639
+ **Purpose**: Create new agents
1640
+ **Use case**: Create organization-specific agents
1641
+
1642
+ ```bash
1643
+ > @agent-builder-agent "Create data analysis specialist agent"
1644
+ ```
1645
+
1646
+ ---
1647
+
1648
+ #### builder-skill
1649
+
1650
+ **Purpose**: Create new skills
1651
+ **Use case**: Develop team-specific skills
1652
+
1653
+ ```bash
1654
+ > @agent-builder-skill "Create GraphQL API development skill module"
1655
+ ```
1656
+
1657
+ ---
1658
+
1659
+ #### builder-command
1660
+
1661
+ **Purpose**: Create new commands
1662
+ **Use case**: Custom workflow automation
1663
+
1664
+ ```bash
1665
+ > @agent-builder-command "Create > /moai:deploy command (auto-deployment workflow)"
1666
+ ```
1667
+
1668
+ ---
1669
+
1670
+ ### Tier 4: MCP Integrators (MCP Integrators)
1671
+
1672
+ #### mcp-context7 (Documentation Lookup)
1673
+
1674
+ **Purpose**: Real-time lookup of latest library documentation
1675
+ **Use cases**:
1676
+
1677
+ - Check React latest APIs
1678
+ - Reference FastAPI documentation
1679
+ - Verify library compatibility
1680
+
1681
+ ```bash
1682
+ > @agent-mcp-context7 "Lookup React 19 latest Hooks API"
1683
+ ```
1684
+
1685
+ ---
1686
+
1687
+ #### mcp-sequential-thinking (Advanced Reasoning)
1688
+
1689
+ **Purpose**: Multi-step analysis of complex problems
1690
+ **Auto-activated**: When complexity > medium
1691
+ **Use cases**:
1692
+
1693
+ - Architecture design
1694
+ - Algorithm optimization
1695
+ - SPEC analysis
1696
+
1697
+ ```bash
1698
+ > @agent-mcp-sequential-thinking "Analyze microservices architecture design"
1699
+ ```
1700
+
1701
+ ---
1702
+
1703
+ #### mcp-playwright (Web Automation)
1704
+
1705
+ **Purpose**: E2E testing, web automation
1706
+ **Use cases**:
1707
+
1708
+ - E2E test writing
1709
+ - Visual regression testing
1710
+ - Cross-browser verification
1711
+
1712
+ ```bash
1713
+ > @agent-mcp-playwright "Create E2E tests for login feature"
1714
+ ```
1715
+
1716
+ ---
1717
+
1718
+ ### Tier 5: AI Services (AI Services)
1719
+
1720
+ #### ai-nano-banana (Image Generation)
1721
+
1722
+ **Purpose**: Generate high-quality images with Gemini 3
1723
+ **Use cases**:
1724
+
1725
+ - UI/UX mockup generation
1726
+ - Technical diagram creation
1727
+ - Marketing materials
1728
+ - Logo/icon generation
1729
+
1730
+ For more details, see [15. 📸 ai-nano-banana Agent Usage Guide](#15---ai-nano-banana-agent-usage-guide)
1731
+
1732
+ ---
1733
+
1734
+ ## 9. Skill Library (24 Skills)
1735
+
1736
+ ![Skill Usage Statistics](./assets/images/readme/skill-usage-stats.png)
1737
+
1738
+ MoAI-ADK provides **24 specialized skills** in 6 categories. Each skill can be used independently or in combination.
1739
+
1740
+ ### 📊 Complete Skill List
1741
+
1742
+ | Category | Skill Name | Description | Version |
1743
+ | -------------- | -------------------------- | ------------------------------------------------------ | ------- |
1744
+ | **Foundation** | moai-foundation-core | TRUST 5, SPEC-First TDD, agent delegation, token opt | 2.2.0 |
1745
+ | | moai-foundation-uiux | Design systems, components, accessibility, icons | 2.0.0 |
1746
+ | | moai-foundation-quality | Proactive quality verification, auto-testing | 2.0.0 |
1747
+ | | moai-foundation-claude | Agents, slash commands, MCP, hooks, memory, IAM | 2.0.0 |
1748
+ | **Platform** | moai-lang-unified | 25+ languages (Python, TS, Go, Rust, Java, C++, etc) | 2.0.0 |
1749
+ | | moai-platform-baas | 9+ BaaS (Auth0, Clerk, Firebase, Supabase, etc) | 2.0.0 |
1750
+ | **Library** | moai-library-shadcn | shadcn/ui, Radix, Tailwind, React components | 2.0.0 |
1751
+ | | moai-library-toon | TOON format, token-efficient encoding (40-60% savings) | 3.0.0 |
1752
+ | | moai-library-mermaid | 21 diagram types, Playwright MCP rendering | 7.0.0 |
1753
+ | **Connector** | moai-connector-mcp | 10+ MCP server integration guide | 2.0.0 |
1754
+ | | moai-connector-figma | Design systems, UI kits, design tokens | 1.0.0 |
1755
+ | | moai-connector-notion | Workspace, databases, content management | 1.0.0 |
1756
+ | | moai-connector-nano-banana | Gemini 3 Pro image generation (Text/Image-to-Image) | 1.0.1 |
1757
+ | **Workflow** | moai-workflow-project | Project management, language init, template opt | 2.0.0 |
1758
+ | | moai-workflow-docs | Markdown/Mermaid/Korean validation, reporting | 2.0.0 |
1759
+ | | moai-workflow-templates | Code boilerplates, feedback templates | 3.0.0 |
1760
+ | | moai-workflow-testing | Playwright E2E, visual regression, cross-browser | 2.0.0 |
1761
+ | | moai-workflow-jit-docs | Intent-based doc auto-search & caching | 2.0.0 |
1762
+ | | moai-toolkit-essentials | Debugging, refactoring, optimization, review | 2.0.0 |
1763
+ | **System** | moai-system-universal | 25+ languages + 9+ BaaS + security + compliance | 2.0.0 |
1764
+
1765
+ **Usage frequency**: Foundation (90%+), Platform (80%+), Workflow (85%), Connector (70%), Library (60%), System (40%)
1766
+
1767
+ ### 🎯 Skill Usage Guide
1768
+
1769
+ #### How to Invoke Skills
1770
+
1771
+ ```python
1772
+ # Method 1: Direct invocation (developers)
1773
+ Skill("moai-lang-unified")
1774
+
1775
+ # Method 2: Alfred auto-selection (general users)
1776
+ "Create a FastAPI server in Python"
1777
+ → Alfred automatically selects moai-lang-unified + moai-platform-baas
1778
+ ```
1779
+
1780
+ #### Skill Composition Patterns
1781
+
1782
+ **Backend API**: `moai-foundation-core` + `moai-lang-unified` + `moai-platform-baas`
1783
+
1784
+ **Frontend UI**: `moai-foundation-uiux` + `moai-lang-unified` + `moai-library-shadcn`
1785
+
1786
+ **Documentation**: `moai-library-nextra` + `moai-workflow-docs` + `moai-library-mermaid`
1787
+
1788
+ **Testing**: `moai-lang-unified` + `moai-workflow-testing` + `moai-foundation-quality`
1789
+
1790
+ ---
1791
+
1792
+ ## 10. Composition Patterns and Examples
1793
+
1794
+ ### 🎭 Agent Composition Patterns
1795
+
1796
+ MoAI-ADK's 24 agents execute in optimal combinations based on task type.
1797
+
1798
+ ### Pattern 1: New Feature Development
1799
+
1800
+ ```text
1801
+ manager-spec (Generate SPEC)
1802
+
1803
+ manager-strategy (Execution plan)
1804
+
1805
+ manager-tdd (TDD implementation)
1806
+
1807
+ manager-docs (Documentation sync)
1808
+ ```
1809
+
1810
+ **Example**:
1811
+
1812
+ ```bash
1813
+ > /moai:1-plan "user login feature" # manager-spec
1814
+ > /clear
1815
+ > /moai:2-run SPEC-001 # manager-strategy → manager-tdd
1816
+ > /clear
1817
+ > /moai:3-sync SPEC-001 # manager-docs
1818
+ ```
1819
+
1820
+ ---
1821
+
1822
+ ### Pattern 2: Performance Optimization
1823
+
1824
+ ```text
1825
+ expert-debug (Problem analysis)
1826
+
1827
+ mcp-sequential-thinking (Complexity analysis)
1828
+
1829
+ expert-backend (Optimization implementation)
1830
+
1831
+ manager-quality (Verification)
1832
+ ```
1833
+
1834
+ **Example**:
1835
+
1836
+ ```bash
1837
+ > @agent-expert-debug "Analyze slow API response"
1838
+ # → Finds bottleneck (DB query N+1 problem)
1839
+
1840
+ > @agent-mcp-sequential-thinking "Plan N+1 problem optimization strategy"
1841
+ # → Suggests ORM query optimization
1842
+
1843
+ > @agent-expert-backend "Implement ORM query optimization"
1844
+ # → Applies select_related(), prefetch_related()
1845
+
1846
+ > @agent-manager-quality "Performance test and verification"
1847
+ # → Response time 500ms → 50ms (90% improvement)
1848
+ ```
1849
+
1850
+ ---
1851
+
1852
+ ### Pattern 3: UI/UX Development
1853
+
1854
+ ```text
1855
+ expert-uiux (Design system)
1856
+
1857
+ expert-frontend (Component implementation)
1858
+
1859
+ mcp-playwright (E2E testing)
1860
+ ```
1861
+
1862
+ **Example**:
1863
+
1864
+ ```bash
1865
+ > @agent-expert-uiux "Login page design based on shadcn/ui"
1866
+ # → Combination of Button, Input, Card components
1867
+
1868
+ > @agent-expert-frontend "Implement React login form"
1869
+ # → Implementation using shadcn/ui components
1870
+
1871
+ > @agent-mcp-playwright "E2E test for login scenario"
1872
+ # → Auto-test success/failure cases
1873
+ ```
1874
+
1875
+ ---
1876
+
1877
+ ### Pattern 4: Security Audit
1878
+
1879
+ ```text
1880
+ expert-security (Vulnerability scan)
1881
+
1882
+ expert-backend (Security patch)
1883
+
1884
+ manager-quality (Re-verification)
1885
+ ```
1886
+
1887
+ ---
1888
+
1889
+ ### Pattern 5: Microservices Architecture Design
1890
+
1891
+ ```bash
1892
+ > @agent-mcp-sequential-thinking "Monolith to microservices migration strategy"
1893
+ # → Service decomposition strategy, API gateway design
1894
+
1895
+ > @agent-expert-backend "Develop user service & order service"
1896
+ # → Service-specific API implementation
1897
+
1898
+ > @agent-expert-devops "Kubernetes deployment configuration"
1899
+ # → Auto-generate Docker, K8s manifests
1900
+
1901
+ > @agent-manager-docs "Service example documentation"
1902
+ # → Service map, API docs, deployment guide
1903
+ ```
1904
+
1905
+ ---
1906
+
1907
+ ## 11. TRUST 5 Quality Assurance
1908
+
1909
+ ![TRUST 5 Pentagon](./assets/images/readme/trust5-pentagon.png)
1910
+
1911
+ 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.
1912
+
1913
+ ### T - Test-First
1914
+
1915
+ **Principle**: All implementation starts with tests.
1916
+
1917
+ **Verification**:
1918
+
1919
+ - Test coverage >= 85%
1920
+ - Write failing tests first (Red)
1921
+ - Pass with code (Green)
1922
+ - Refactor
1923
+
1924
+ **Automation**: `manager-tdd` agent automatically executes TDD cycle
1925
+
1926
+ ---
1927
+
1928
+ ### R - Readable
1929
+
1930
+ **Principle**: Code must be clear and easy to understand.
1931
+
1932
+ **Verification**:
1933
+
1934
+ - Clear variable names (minimize abbreviations)
1935
+ - Code comments (complex logic)
1936
+ - Pass code review
1937
+ - Pass linter checks
1938
+
1939
+ **Automation**: `quality-expert` agent applies style guides
1940
+
1941
+ ---
1942
+
1943
+ ### U - Unified
1944
+
1945
+ **Principle**: Maintain consistent style across the project.
1946
+
1947
+ **Verification**:
1948
+
1949
+ - Follow project style guide
1950
+ - Consistent naming conventions
1951
+ - Unified error handling
1952
+ - Standard document format
1953
+
1954
+ **Automation**: `quality-expert` agent verifies consistency
1955
+
1956
+ ---
1957
+
1958
+ ### S - Secured
1959
+
1960
+ **Principle**: All code must pass security verification.
1961
+
1962
+ **Verification**:
1963
+
1964
+ - OWASP Top 10 checks
1965
+ - Dependency vulnerability scanning
1966
+ - Encryption policy compliance
1967
+ - Access control verification
1968
+
1969
+ **Automation**: `expert-security` agent performs automatic security audits
1970
+
1971
+ ---
1972
+
1973
+ ### T - Trackable
1974
+
1975
+ **Principle**: All changes must be clearly trackable.
1976
+
1977
+ **Verification**:
1978
+
1979
+ - Clear commit messages
1980
+ - Issue tracking (GitHub Issues)
1981
+ - Maintain CHANGELOG
1982
+ - Code review records
1983
+
1984
+ **Automation**: Git and GitHub Actions automation
1985
+
1986
+ ---
1987
+
1988
+ ### 🎯 TRUST 5 Verification Process
1989
+
1990
+ ```mermaid
1991
+ flowchart TD
1992
+ Start([Write Code]) --> T[T: Testing<br/>Coverage >= 85%]
1993
+ T --> R[R: Readable<br/>Pass Linter]
1994
+ R --> U[U: Unified<br/>Style Check]
1995
+ U --> S[S: Secured<br/>Vulnerability Scan]
1996
+ S --> T2[T: Trackable<br/>Commit Message]
1997
+ T2 --> Pass{All Pass?}
1998
+ Pass -->|Yes| Success([Approve Deployment])
1999
+ Pass -->|No| Fix[Need Fixes]
2000
+ Fix --> Start
2001
+ ```
2002
+
2003
+ ---
2004
+
2005
+ ## 12. Advanced Features
2006
+
2007
+ ### 🌳 Git Worktree CLI (Parallel Development)
2008
+
2009
+ **Overview**: Manage multiple Git worktrees for parallel SPEC development without context switching.
2010
+
2011
+ #### Quick Start
2012
+
2013
+ ```bash
2014
+ # Create a new worktree for a SPEC
2015
+ moai worktree create SPEC-001 feature/user-auth
2016
+
2017
+ # List all worktrees
2018
+ moai worktree list
2019
+
2020
+ # Switch between worktrees
2021
+ moai worktree switch SPEC-001
2022
+
2023
+ # Remove completed worktree
2024
+ moai worktree remove SPEC-001
2025
+ ```
2026
+
2027
+ #### Key Benefits
2028
+
2029
+ - **Parallel Development**: Work on multiple SPECs simultaneously
2030
+ - **Context Isolation**: Each worktree has its own git state
2031
+ - **Fast Switching**: Instant context change between features
2032
+ - **Clean Main**: Keep main branch always stable
2033
+
2034
+ #### Workflow Example
2035
+
2036
+ ```bash
2037
+ # Main development worktree (main branch)
2038
+ cd ~/project-main
2039
+ > /moai:1-plan "user authentication" # Creates SPEC-001
2040
+
2041
+ # Create parallel worktree for SPEC-001
2042
+ moai worktree create SPEC-001 feature/auth
2043
+ cd ~/project-worktrees/SPEC-001
2044
+
2045
+ # Work on authentication without affecting main
2046
+ > /moai:2-run SPEC-001
2047
+ # ... implement authentication ...
2048
+
2049
+ # Switch back to main for new feature
2050
+ moai worktree switch main
2051
+ > /moai:1-plan "user dashboard" # Creates SPEC-002
2052
+ ```
2053
+
2054
+ ---
2055
+
2056
+ ### 🔧 Enhanced Log Management
2057
+
2058
+ **New unified log structure**:
2059
+
2060
+ ```
2061
+ .moai/
2062
+ ├── logs/ # JSON logs only (runtime data)
2063
+ │ ├── sessions/ # Session execution logs
2064
+ │ ├── errors/ # Error logs
2065
+ │ ├── execution/ # Command execution logs
2066
+ │ └── archive/ # Historical logs
2067
+ └── docs/ # Documentation only (user-facing)
2068
+ ├── reports/ # Analysis reports
2069
+ ├── analytics/ # Analytics results
2070
+ └── sync/ # Synchronization records
2071
+ ```
2072
+
2073
+ **Automatic migration**: Existing logs automatically reorganized on `moai-adk update`.
2074
+
2075
+ ---
2076
+
2077
+ ## 13. Advanced Configuration
2078
+
2079
+ ### 🔧 Configuration File Location
2080
+
2081
+ MoAI-ADK uses `.claude/settings.json` file.
2082
+
2083
+ ### 📋 Main Configuration Items
2084
+
2085
+ ```json
2086
+ {
2087
+ "user": {
2088
+ "name": "GOOS"
2089
+ },
2090
+ "language": {
2091
+ "conversation_language": "en",
2092
+ "agent_prompt_language": "en"
2093
+ },
2094
+ "constitution": {
2095
+ "enforce_tdd": true,
2096
+ "test_coverage_target": 85
2097
+ },
2098
+ "git_strategy": {
2099
+ "mode": "personal",
2100
+ "branch_creation": {
2101
+ "prompt_always": true,
2102
+ "auto_enabled": false
2103
+ }
2104
+ },
2105
+ "github": {
2106
+ "spec_git_workflow": "develop_direct"
2107
+ },
2108
+ "statusline": {
2109
+ "enabled": true,
2110
+ "format": "compact",
2111
+ "style": "R2-D2"
2112
+ }
2113
+ }
2114
+ ```
2115
+
2116
+ ### 🌳 Git Strategy (3 Modes)
2117
+
2118
+ MoAI-ADK provides 3 Git strategies suited to development environment and team composition.
2119
+
2120
+ #### Mode Selection Decision Tree
2121
+
2122
+ ```mermaid
2123
+ flowchart TD
2124
+ Q1{"Using<br/>GitHub?"}
2125
+
2126
+ 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"]
2127
+
2128
+ Q1 -->|Yes| Q2{"Team<br/>project?"}
2129
+
2130
+ 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"]
2131
+
2132
+ 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"]
2133
+
2134
+ classDef manual fill:#fff3e0,stroke:#ff9800,stroke-width:2px
2135
+ classDef personal fill:#e3f2fd,stroke:#2196f3,stroke-width:2px
2136
+ classDef team fill:#f3e5f5,stroke:#9c27b0,stroke-width:2px
2137
+ classDef question fill:#fafafa,stroke:#666,stroke-width:2px
2138
+
2139
+ class Manual manual
2140
+ class Personal personal
2141
+ class Team team
2142
+ class Q1,Q2 question
2143
+ ```
2144
+
2145
+ #### 3 Modes Comparison
2146
+
2147
+ | Aspect | Manual | Personal | Team |
2148
+ | --------------- | ----------------- | ------------------------------ | ------------ |
2149
+ | **Use Case** | Personal learning | Personal GitHub | Team projects |
2150
+ | **GitHub** | ❌ | ✅ | ✅ |
2151
+ | **Branches** | Optional | Optional creation or<br>Feature auto | Feature auto |
2152
+ | **Push** | Manual | Auto | Auto |
2153
+ | **PR** | None | Suggested | Auto-created |
2154
+ | **Code Review** | None | Optional | **Required** |
2155
+ | **Deployment** | Manual | Manual | CI/CD auto |
2156
+ | **Setup Time** | **5min** | 15min | 25min |
2157
+
2158
+ #### Quick Setup (.moai/config/config.json)
2159
+
2160
+ **Manual** (Local only):
2161
+
2162
+ ```json
2163
+ {
2164
+ "git_strategy": {
2165
+ "mode": "manual",
2166
+ "branch_creation": {
2167
+ "prompt_always": true,
2168
+ "auto_enabled": false
2169
+ }
2170
+ }
2171
+ }
2172
+ ```
2173
+
2174
+ **Personal** (Personal GitHub):
2175
+
2176
+ ```json
2177
+ {
2178
+ "git_strategy": {
2179
+ "mode": "personal",
2180
+ "branch_creation": {
2181
+ "prompt_always": false,
2182
+ "auto_enabled": true
2183
+ }
2184
+ }
2185
+ }
2186
+ ```
2187
+
2188
+ **Team** (Team projects):
2189
+
2190
+ ```json
2191
+ {
2192
+ "git_strategy": {
2193
+ "mode": "team",
2194
+ "branch_creation": {
2195
+ "prompt_always": false,
2196
+ "auto_enabled": true
2197
+ }
2198
+ }
2199
+ }
2200
+ ```
2201
+
2202
+ ---
2203
+
2204
+ ## 14. FAQ & Quick Reference
2205
+
2206
+ ### Q1: Is SPEC always required?
2207
+
2208
+ **SPEC generation recommendation criteria:**
2209
+
2210
+ | Condition | SPEC Requirement |
2211
+ | -------------------- | ------------------------------------ |
2212
+ | 1-2 files modified | Optional (can skip for simple cases) |
2213
+ | 3-5 files modified | Recommended (clarify requirements) |
2214
+ | 10+ files modified | Required (high complexity) |
2215
+ | New feature addition | Recommended |
2216
+ | Bug fix | Optional |
2217
+
2218
+ **Proceed without SPEC:**
2219
+
2220
+ ```bash
2221
+ # Skip SPEC and implement directly
2222
+ > @agent-expert-backend "simple bug fix"
2223
+ ```
2224
+
2225
+ **Proceed with SPEC:**
2226
+
2227
+ ```bash
2228
+ > /moai:1-plan "complex feature specification"
2229
+ > /clear
2230
+ > /moai:2-run SPEC-001
2231
+ ```
2232
+
2233
+ ---
2234
+
2235
+ ### Q2: Is MCP server installation required?
2236
+
2237
+ **Required MCP servers (2):**
2238
+
2239
+ 1. **Context7** (Required)
2240
+
2241
+ - Auto-reference latest library API documentation
2242
+ - Prevent hallucination during code generation
2243
+ - Installation: Automatic (included in `.mcp.json`)
2244
+
2245
+ 2. **Sequential-Thinking** (Recommended)
2246
+ - Complex problem analysis
2247
+ - Architecture design, algorithm optimization
2248
+ - Installation: Automatic (included in `.mcp.json`)
2249
+
2250
+ **Optional MCP servers:**
2251
+
2252
+ - Figma MCP: Design-to-code conversion
2253
+ - Playwright MCP: Web automation testing
2254
+ - Notion MCP: Documentation management integration
2255
+
2256
+ **Verify installation:**
2257
+
2258
+ ```bash
2259
+ # Check MCP server list
2260
+ cat .mcp.json
2261
+
2262
+ # Enable/disable MCP servers (save tokens when disabled)
2263
+ > @
2264
+ ─────────────────────────────────────────────────────────
2265
+ ✓ [mcp] context7 enabled (⏎ to toggle)
2266
+ ○ [mcp] playwright disabled (⏎ to toggle)
2267
+ ○ [mcp] notion disabled (⏎ to toggle)
2268
+
2269
+ ```
2270
+
2271
+ ---
2272
+
2273
+ ## 15. 📸 ai-nano-banana Agent Usage Guide
2274
+
2275
+ **Purpose**: Professional image generation using Google Gemini 3 Nano Banana Pro
2276
+
2277
+ **Core Features**:
2278
+
2279
+ - ✅ Generate high-quality images from natural language prompts
2280
+ - ✅ Real-time AI image generation (token efficient)
2281
+ - ✅ Generate directly in Claude Code
2282
+ - ✅ Multiple style support (realistic, artistic, diagram, mockup, etc.)
2283
+ - ✅ Batch image generation
2284
+
2285
+ **Use Scenarios**:
2286
+
2287
+ 1. **UI/UX Mockups**: Website, app screen designs
2288
+ 2. **Technical Diagrams**: Architecture, flowcharts
2289
+ 3. **Document Images**: README, presentations
2290
+ 4. **Marketing Materials**: SNS content, banners
2291
+ 5. **Logos/Icons**: Project branding
2292
+
2293
+ #### Quick Start
2294
+
2295
+ ```bash
2296
+ # In Claude Code
2297
+ > @agent-ai-nano-banana "Generate professional login page UI mockup"
2298
+ ```
2299
+
2300
+ #### Image Generation Prompts
2301
+
2302
+ **Effective Prompt Patterns:**
2303
+
2304
+ 1. **Specify Style**:
2305
+
2306
+ ```
2307
+ "Generate [realistic|artistic|minimalist|3D] style image..."
2308
+ ```
2309
+
2310
+ 2. **Set Quality**:
2311
+
2312
+ ```
2313
+ "Generate [1024x1024|1920x1080] high-resolution professional image..."
2314
+ ```
2315
+
2316
+ 3. **Specify Layout**:
2317
+
2318
+ ```
2319
+ "Generate [dark|light] theme dashboard mockup..."
2320
+ ```
2321
+
2322
+ 4. **Set Background**:
2323
+
2324
+ ```
2325
+ "Modern [white|gradient|black] background..."
2326
+ ```
2327
+
2328
+ 5. **Create Storyboard**:
2329
+
2330
+ ```
2331
+ "Generate 4-panel storyboard: step1, step2, step3, step4"
2332
+ ```
2333
+
2334
+ #### Practical Examples (5 types)
2335
+
2336
+ **1. Web Login Page Mockup**:
2337
+
2338
+ ```
2339
+ Prompt: "Create a modern and clean login page UI mockup with email
2340
+ and password input fields, login button. Minimalist design with blue
2341
+ accent color. 1024x768 resolution, white background, professional
2342
+ and modern feel"
2343
+ ```
2344
+
2345
+ **2. Microservices Architecture Diagram**:
2346
+
2347
+ ```
2348
+ Prompt: "Create a technical diagram showing 5 microservices:
2349
+ API Gateway, User Service, Order Service, Payment Service,
2350
+ Notification Service. Show connections with arrows.
2351
+ Professional technical diagram style with white background"
2352
+ ```
2353
+
2354
+ **3. Mobile App Screen Series**:
2355
+
2356
+ ```
2357
+ Prompt: "Create 3-screen mobile app storyboard:
2358
+ 1) Onboarding welcome screen, 2) User profile screen, 3) Settings screen.
2359
+ iOS style, modern design, clean UI"
2360
+ ```
2361
+
2362
+ **4. SNS Banner (1200x630)**:
2363
+
2364
+ ```
2365
+ Prompt: "Create a professional LinkedIn banner for AI development company.
2366
+ Include 'AI-Powered Development' text with modern tech elements.
2367
+ Dark theme with blue and purple gradient"
2368
+ ```
2369
+
2370
+ **5. Icon Set for Documentation**:
2371
+
2372
+ ```
2373
+ Prompt: "Create 6 simple and professional flat design icons:
2374
+ 1) Code icon, 2) Database icon, 3) Server icon,
2375
+ 4) Security icon, 5) Testing icon, 6) Deployment icon.
2376
+ White background, consistent style"
2377
+ ```
2378
+
2379
+ #### Advanced Features
2380
+
2381
+ - **Batch Generation**: Generate multiple images simultaneously
2382
+ - **Iterative Requests**: Generate multiple versions with fine-tuned prompts
2383
+ - **Image Integration**: Auto-insert generated images in docs/presentations
2384
+ - **Style Consistency**: Generate multiple images in same style
2385
+
2386
+ #### Best Practices
2387
+
2388
+ ✅ DO:
2389
+
2390
+ - Specify concrete style (realistic, minimalist, 3d, etc.)
2391
+ - Clear color descriptions (blue, gradient, dark theme, etc.)
2392
+ - Specify resolution (1024x1024, 1920x1080, etc.)
2393
+ - Provide context (professional, presentation, etc.)
2394
+ - Generate versions with multiple prompts
2395
+
2396
+ ❌ DON'T:
2397
+
2398
+ - Too abstract descriptions
2399
+ - Content with legal/rights issues
2400
+ - Real person portraits (use synthetic faces)
2401
+ - Copyrighted brand logos
2402
+ - Negative content
2403
+
2404
+ #### Gemini 3 Nano Banana Pro Specs
2405
+
2406
+ - Model: Google Gemini 3
2407
+ - Response time: 5-30 seconds
2408
+ - Max resolution: 2048x2048
2409
+ - Token efficiency: ~1,000-2,000 tokens per image
2410
+
2411
+ #### Troubleshooting
2412
+
2413
+ | Problem | Cause | Solution |
2414
+ | ---------------- | ------------------- | --------------------------- |
2415
+ | Generation fails | API error | Simplify prompt |
2416
+ | Low quality | Unclear prompt | Add specific details |
2417
+ | Style mismatch | Style not specified | Specify "realistic" etc. |
2418
+ | Timeout | Complex request | Start with smaller requests |
2419
+
2420
+ #### References
2421
+
2422
+ - Skill: `moai-connector-nano-banana`
2423
+ - Official usage: `/help` → "ai-nano-banana"
2424
+ - Examples: 5 practical examples in this guide
2425
+ - Gemini docs: <https://ai.google.dev/>
2426
+
2427
+ ---
2428
+
2429
+ ## 16. Additional Resources
2430
+
2431
+ ### 🆘 Support (Support)
2432
+
2433
+ **Email Support:**
2434
+
2435
+ - Technical support: [support@mo.ai.kr](mailto:support@mo.ai.kr)
2436
+
2437
+ ### 📊 Star History
2438
+
2439
+ [![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)
2440
+
2441
+ ---
2442
+
2443
+ ## 📝 License
2444
+
2445
+ MoAI-ADK is licensed under the [MIT License](./LICENSE).
2446
+
2447
+ ```text
2448
+ MIT License
2449
+
2450
+ Copyright (c) 2025 MoAI-ADK Team
2451
+
2452
+ Permission is hereby granted, free of charge, to any person obtaining a copy
2453
+ of this software and associated documentation files (the "Software"), to deal
2454
+ in the Software without restriction, including without limitation the rights
2455
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2456
+ copies of the Software, and to permit persons to whom the Software is
2457
+ furnished to do so, subject to the following conditions:
2458
+
2459
+ The above copyright notice and this permission notice shall be included in all
2460
+ copies or substantial portions of the Software.
2461
+
2462
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2463
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2464
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2465
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2466
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2467
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2468
+ SOFTWARE.
2469
+ ```
2470
+
2471
+ ---
2472
+
2473
+ ### Made with ❤️ by MoAI-ADK Team
2474
+
2475
+ **Version:** 0.31.0
2476
+ **Last Updated:** 2025-12-01
2477
+ **Philosophy**: SPEC-First TDD + Agent Orchestration + 85% Token Efficiency
2478
+ **MoAI**: MoAI stands for "Modu-ui AI" (AI for Everyone). Our goal is to make AI accessible to everyone.