moai-adk 0.25.4__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.
- moai_adk/__init__.py +2 -5
- moai_adk/__main__.py +114 -82
- moai_adk/cli/__init__.py +6 -1
- moai_adk/cli/commands/__init__.py +1 -3
- moai_adk/cli/commands/analyze.py +5 -16
- moai_adk/cli/commands/doctor.py +6 -18
- moai_adk/cli/commands/init.py +56 -125
- moai_adk/cli/commands/language.py +14 -35
- moai_adk/cli/commands/status.py +9 -15
- moai_adk/cli/commands/update.py +1555 -190
- moai_adk/cli/prompts/init_prompts.py +112 -56
- moai_adk/cli/spec_status.py +263 -0
- moai_adk/cli/ui/__init__.py +44 -0
- moai_adk/cli/ui/progress.py +422 -0
- moai_adk/cli/ui/prompts.py +389 -0
- moai_adk/cli/ui/theme.py +129 -0
- moai_adk/cli/worktree/__init__.py +27 -0
- moai_adk/cli/worktree/__main__.py +31 -0
- moai_adk/cli/worktree/cli.py +672 -0
- moai_adk/cli/worktree/exceptions.py +89 -0
- moai_adk/cli/worktree/manager.py +490 -0
- moai_adk/cli/worktree/models.py +65 -0
- moai_adk/cli/worktree/registry.py +128 -0
- moai_adk/core/PHASE2_OPTIMIZATIONS.md +467 -0
- moai_adk/core/analysis/session_analyzer.py +17 -56
- moai_adk/core/claude_integration.py +26 -54
- moai_adk/core/command_helpers.py +10 -10
- moai_adk/core/comprehensive_monitoring_system.py +1183 -0
- moai_adk/core/config/auto_spec_config.py +5 -11
- moai_adk/core/config/migration.py +19 -9
- moai_adk/core/config/unified.py +436 -0
- moai_adk/core/context_manager.py +6 -12
- moai_adk/core/enterprise_features.py +1404 -0
- moai_adk/core/error_recovery_system.py +725 -112
- moai_adk/core/event_driven_hook_system.py +1371 -0
- moai_adk/core/git/__init__.py +8 -0
- moai_adk/core/git/branch_manager.py +3 -11
- moai_adk/core/git/checkpoint.py +1 -3
- moai_adk/core/git/conflict_detector.py +413 -0
- moai_adk/core/git/manager.py +91 -1
- moai_adk/core/hooks/post_tool_auto_spec_completion.py +56 -80
- moai_adk/core/input_validation_middleware.py +1006 -0
- moai_adk/core/integration/engine.py +6 -18
- moai_adk/core/integration/integration_tester.py +10 -9
- moai_adk/core/integration/utils.py +1 -1
- moai_adk/core/issue_creator.py +10 -28
- moai_adk/core/jit_context_loader.py +956 -0
- moai_adk/core/jit_enhanced_hook_manager.py +1987 -0
- moai_adk/core/language_config_resolver.py +485 -0
- moai_adk/core/language_validator.py +28 -41
- moai_adk/core/mcp/setup.py +15 -12
- moai_adk/core/merge/__init__.py +9 -0
- moai_adk/core/merge/analyzer.py +481 -0
- moai_adk/core/migration/alfred_to_moai_migrator.py +383 -0
- moai_adk/core/migration/backup_manager.py +78 -9
- moai_adk/core/migration/custom_element_scanner.py +358 -0
- moai_adk/core/migration/file_migrator.py +8 -17
- moai_adk/core/migration/interactive_checkbox_ui.py +488 -0
- moai_adk/core/migration/selective_restorer.py +470 -0
- moai_adk/core/migration/template_utils.py +74 -0
- moai_adk/core/migration/user_selection_ui.py +338 -0
- moai_adk/core/migration/version_detector.py +6 -10
- moai_adk/core/migration/version_migrator.py +3 -3
- moai_adk/core/performance/cache_system.py +8 -10
- moai_adk/core/phase_optimized_hook_scheduler.py +879 -0
- moai_adk/core/project/checker.py +2 -4
- moai_adk/core/project/detector.py +1 -3
- moai_adk/core/project/initializer.py +135 -23
- moai_adk/core/project/phase_executor.py +54 -81
- moai_adk/core/project/validator.py +6 -12
- moai_adk/core/quality/trust_checker.py +9 -27
- moai_adk/core/realtime_monitoring_dashboard.py +1724 -0
- moai_adk/core/robust_json_parser.py +611 -0
- moai_adk/core/rollback_manager.py +73 -148
- moai_adk/core/session_manager.py +10 -26
- moai_adk/core/skill_loading_system.py +579 -0
- moai_adk/core/spec/confidence_scoring.py +31 -100
- moai_adk/core/spec/ears_template_engine.py +351 -286
- moai_adk/core/spec/quality_validator.py +35 -69
- moai_adk/core/spec_status_manager.py +64 -74
- moai_adk/core/template/backup.py +45 -20
- moai_adk/core/template/config.py +112 -39
- moai_adk/core/template/merger.py +11 -19
- moai_adk/core/template/processor.py +253 -149
- moai_adk/core/template_engine.py +73 -40
- moai_adk/core/template_variable_synchronizer.py +417 -0
- moai_adk/core/unified_permission_manager.py +745 -0
- moai_adk/core/user_behavior_analytics.py +851 -0
- moai_adk/core/version_sync.py +429 -0
- moai_adk/foundation/__init__.py +56 -0
- moai_adk/foundation/backend.py +1027 -0
- moai_adk/foundation/database.py +1115 -0
- moai_adk/foundation/devops.py +1585 -0
- moai_adk/foundation/ears.py +431 -0
- moai_adk/foundation/frontend.py +870 -0
- moai_adk/foundation/git/commit_templates.py +4 -12
- moai_adk/foundation/git.py +376 -0
- moai_adk/foundation/langs.py +484 -0
- moai_adk/foundation/ml_ops.py +1162 -0
- moai_adk/foundation/testing.py +1524 -0
- moai_adk/foundation/trust/trust_principles.py +23 -72
- moai_adk/foundation/trust/validation_checklist.py +57 -162
- moai_adk/project/__init__.py +0 -0
- moai_adk/project/configuration.py +1084 -0
- moai_adk/project/documentation.py +566 -0
- moai_adk/project/schema.py +447 -0
- moai_adk/statusline/alfred_detector.py +1 -3
- moai_adk/statusline/config.py +13 -4
- moai_adk/statusline/enhanced_output_style_detector.py +23 -15
- moai_adk/statusline/main.py +51 -15
- moai_adk/statusline/renderer.py +104 -48
- moai_adk/statusline/update_checker.py +3 -9
- moai_adk/statusline/version_reader.py +140 -46
- moai_adk/templates/.claude/agents/moai/ai-nano-banana.md +549 -0
- moai_adk/templates/.claude/agents/moai/builder-agent.md +445 -0
- moai_adk/templates/.claude/agents/moai/builder-command.md +1132 -0
- moai_adk/templates/.claude/agents/moai/builder-skill.md +601 -0
- moai_adk/templates/.claude/agents/moai/expert-backend.md +831 -0
- moai_adk/templates/.claude/agents/moai/expert-database.md +774 -0
- moai_adk/templates/.claude/agents/moai/expert-debug.md +396 -0
- moai_adk/templates/.claude/agents/moai/expert-devops.md +711 -0
- moai_adk/templates/.claude/agents/moai/expert-frontend.md +666 -0
- moai_adk/templates/.claude/agents/moai/expert-security.md +474 -0
- moai_adk/templates/.claude/agents/moai/expert-uiux.md +1038 -0
- moai_adk/templates/.claude/agents/moai/manager-claude-code.md +429 -0
- moai_adk/templates/.claude/agents/moai/manager-docs.md +570 -0
- moai_adk/templates/.claude/agents/moai/manager-git.md +937 -0
- moai_adk/templates/.claude/agents/moai/manager-project.md +891 -0
- moai_adk/templates/.claude/agents/moai/manager-quality.md +598 -0
- moai_adk/templates/.claude/agents/moai/manager-spec.md +713 -0
- moai_adk/templates/.claude/agents/moai/manager-strategy.md +600 -0
- moai_adk/templates/.claude/agents/moai/manager-tdd.md +603 -0
- moai_adk/templates/.claude/agents/moai/mcp-context7.md +369 -0
- moai_adk/templates/.claude/agents/moai/mcp-figma.md +1567 -0
- moai_adk/templates/.claude/agents/moai/mcp-notion.md +749 -0
- moai_adk/templates/.claude/agents/moai/mcp-playwright.md +427 -0
- moai_adk/templates/.claude/agents/moai/mcp-sequential-thinking.md +994 -0
- moai_adk/templates/.claude/commands/moai/0-project.md +1143 -0
- moai_adk/templates/.claude/commands/moai/1-plan.md +1435 -0
- moai_adk/templates/.claude/commands/moai/2-run.md +883 -0
- moai_adk/templates/.claude/commands/moai/3-sync.md +993 -0
- moai_adk/templates/.claude/commands/moai/9-feedback.md +314 -0
- moai_adk/templates/.claude/hooks/__init__.py +8 -0
- moai_adk/templates/.claude/hooks/moai/__init__.py +8 -0
- moai_adk/templates/.claude/hooks/moai/lib/__init__.py +85 -0
- moai_adk/templates/.claude/hooks/moai/lib/checkpoint.py +244 -0
- moai_adk/templates/.claude/hooks/moai/lib/common.py +131 -0
- moai_adk/templates/.claude/hooks/moai/lib/config_manager.py +446 -0
- moai_adk/templates/.claude/hooks/moai/lib/config_validator.py +639 -0
- moai_adk/templates/.claude/hooks/moai/lib/example_config.json +104 -0
- moai_adk/templates/.claude/hooks/moai/lib/git_operations_manager.py +590 -0
- moai_adk/templates/.claude/hooks/moai/lib/language_validator.py +317 -0
- moai_adk/templates/.claude/hooks/moai/lib/models.py +102 -0
- moai_adk/templates/.claude/hooks/moai/lib/path_utils.py +28 -0
- moai_adk/templates/.claude/hooks/moai/lib/project.py +768 -0
- moai_adk/templates/.claude/hooks/moai/lib/test_hooks_improvements.py +443 -0
- moai_adk/templates/.claude/hooks/moai/lib/timeout.py +160 -0
- moai_adk/templates/.claude/hooks/moai/lib/unified_timeout_manager.py +530 -0
- moai_adk/templates/.claude/hooks/moai/session_end__auto_cleanup.py +862 -0
- moai_adk/templates/.claude/hooks/moai/session_start__show_project_info.py +921 -0
- moai_adk/templates/.claude/output-styles/moai/r2d2.md +380 -0
- moai_adk/templates/.claude/output-styles/moai/yoda.md +338 -0
- moai_adk/templates/.claude/settings.json +172 -0
- moai_adk/templates/.claude/skills/moai-docs-generation/SKILL.md +247 -0
- moai_adk/templates/.claude/skills/moai-docs-generation/modules/README.md +44 -0
- moai_adk/templates/.claude/skills/moai-docs-generation/modules/api-documentation.md +130 -0
- moai_adk/templates/.claude/skills/moai-docs-generation/modules/code-documentation.md +152 -0
- moai_adk/templates/.claude/skills/moai-docs-generation/modules/multi-format-output.md +178 -0
- moai_adk/templates/.claude/skills/moai-docs-generation/modules/user-guides.md +147 -0
- moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +319 -0
- moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +320 -0
- moai_adk/templates/.claude/skills/moai-domain-database/modules/README.md +53 -0
- moai_adk/templates/.claude/skills/moai-domain-database/modules/mongodb.md +231 -0
- moai_adk/templates/.claude/skills/moai-domain-database/modules/postgresql.md +169 -0
- moai_adk/templates/.claude/skills/moai-domain-database/modules/redis.md +262 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +496 -0
- moai_adk/templates/.claude/skills/moai-domain-uiux/SKILL.md +453 -0
- moai_adk/templates/.claude/skills/moai-domain-uiux/examples.md +560 -0
- moai_adk/templates/.claude/skills/moai-domain-uiux/modules/accessibility-wcag.md +260 -0
- moai_adk/templates/.claude/skills/moai-domain-uiux/modules/component-architecture.md +228 -0
- moai_adk/templates/.claude/skills/moai-domain-uiux/modules/design-system-tokens.md +405 -0
- moai_adk/templates/.claude/skills/moai-domain-uiux/modules/icon-libraries.md +401 -0
- moai_adk/templates/.claude/skills/moai-domain-uiux/modules/theming-system.md +373 -0
- moai_adk/templates/.claude/skills/moai-domain-uiux/reference.md +243 -0
- moai_adk/templates/.claude/skills/moai-formats-data/SKILL.md +491 -0
- moai_adk/templates/.claude/skills/moai-formats-data/modules/README.md +98 -0
- moai_adk/templates/.claude/skills/moai-formats-data/modules/SKILL-MODULARIZATION-TEMPLATE.md +278 -0
- moai_adk/templates/.claude/skills/moai-formats-data/modules/caching-performance.md +459 -0
- moai_adk/templates/.claude/skills/moai-formats-data/modules/data-validation.md +485 -0
- moai_adk/templates/.claude/skills/moai-formats-data/modules/json-optimization.md +374 -0
- moai_adk/templates/.claude/skills/moai-formats-data/modules/toon-encoding.md +308 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/SKILL.md +201 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/best-practices-checklist.md +616 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-custom-slash-commands-official.md +729 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-hooks-official.md +560 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-iam-official.md +635 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-memory-official.md +543 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-settings-official.md +663 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-skills-official.md +113 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-sub-agents-official.md +238 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/complete-configuration-guide.md +175 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/skill-examples.md +1674 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/skill-formatting-guide.md +729 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/sub-agents/sub-agent-examples.md +1513 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/sub-agents/sub-agent-formatting-guide.md +1086 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/sub-agents/sub-agent-integration-patterns.md +1100 -0
- moai_adk/templates/.claude/skills/moai-foundation-context/SKILL.md +438 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/SKILL.md +515 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/README.md +296 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/agents-reference.md +346 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/commands-reference.md +432 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/delegation-patterns.md +757 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/execution-rules.md +687 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/modular-system.md +665 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/progressive-disclosure.md +649 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/spec-first-tdd.md +864 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/token-optimization.md +708 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/trust-5-framework.md +981 -0
- moai_adk/templates/.claude/skills/moai-foundation-quality/SKILL.md +362 -0
- moai_adk/templates/.claude/skills/moai-foundation-quality/examples.md +1232 -0
- moai_adk/templates/.claude/skills/moai-foundation-quality/modules/best-practices.md +261 -0
- moai_adk/templates/.claude/skills/moai-foundation-quality/modules/integration-patterns.md +194 -0
- moai_adk/templates/.claude/skills/moai-foundation-quality/modules/proactive-analysis.md +229 -0
- moai_adk/templates/.claude/skills/moai-foundation-quality/modules/trust5-validation.md +169 -0
- moai_adk/templates/.claude/skills/moai-foundation-quality/reference.md +1266 -0
- moai_adk/templates/.claude/skills/moai-foundation-quality/scripts/quality-gate.sh +668 -0
- moai_adk/templates/.claude/skills/moai-foundation-quality/templates/github-actions-quality.yml +481 -0
- moai_adk/templates/.claude/skills/moai-foundation-quality/templates/quality-config.yaml +519 -0
- moai_adk/templates/.claude/skills/moai-integration-mcp/SKILL.md +352 -0
- moai_adk/templates/.claude/skills/moai-integration-mcp/modules/README.md +52 -0
- moai_adk/templates/.claude/skills/moai-integration-mcp/modules/error-handling.md +334 -0
- moai_adk/templates/.claude/skills/moai-integration-mcp/modules/integration-patterns.md +310 -0
- moai_adk/templates/.claude/skills/moai-integration-mcp/modules/security-authentication.md +256 -0
- moai_adk/templates/.claude/skills/moai-integration-mcp/modules/server-architecture.md +253 -0
- moai_adk/templates/.claude/skills/moai-lang-unified/README.md +133 -0
- moai_adk/templates/.claude/skills/moai-lang-unified/SKILL.md +296 -0
- moai_adk/templates/.claude/skills/moai-lang-unified/examples.md +1269 -0
- moai_adk/templates/.claude/skills/moai-lang-unified/reference.md +331 -0
- moai_adk/templates/.claude/skills/moai-library-mermaid/SKILL.md +298 -0
- moai_adk/templates/.claude/skills/moai-library-mermaid/advanced-patterns.md +465 -0
- moai_adk/templates/.claude/skills/moai-library-mermaid/examples.md +270 -0
- moai_adk/templates/.claude/skills/moai-library-mermaid/optimization.md +440 -0
- moai_adk/templates/.claude/skills/moai-library-mermaid/reference.md +228 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/SKILL.md +316 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/advanced-patterns.md +336 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/modules/advanced-deployment-patterns.md +182 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/modules/advanced-patterns.md +17 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/modules/configuration.md +57 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/modules/content-architecture-optimization.md +162 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/modules/deployment.md +52 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/modules/framework-core-configuration.md +186 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/modules/i18n-setup.md +55 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/modules/mdx-components.md +52 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/optimization.md +303 -0
- moai_adk/templates/.claude/skills/moai-library-shadcn/SKILL.md +370 -0
- moai_adk/templates/.claude/skills/moai-library-shadcn/examples.md +575 -0
- moai_adk/templates/.claude/skills/moai-library-shadcn/modules/advanced-patterns.md +394 -0
- moai_adk/templates/.claude/skills/moai-library-shadcn/modules/optimization.md +278 -0
- moai_adk/templates/.claude/skills/moai-library-shadcn/modules/shadcn-components.md +457 -0
- moai_adk/templates/.claude/skills/moai-library-shadcn/modules/shadcn-theming.md +373 -0
- moai_adk/templates/.claude/skills/moai-library-shadcn/reference.md +74 -0
- moai_adk/templates/.claude/skills/moai-platform-baas/README.md +186 -0
- moai_adk/templates/.claude/skills/moai-platform-baas/SKILL.md +290 -0
- moai_adk/templates/.claude/skills/moai-platform-baas/examples.md +1225 -0
- moai_adk/templates/.claude/skills/moai-platform-baas/reference.md +567 -0
- moai_adk/templates/.claude/skills/moai-platform-baas/scripts/provider-selector.py +323 -0
- moai_adk/templates/.claude/skills/moai-platform-baas/templates/stack-config.yaml +204 -0
- moai_adk/templates/.claude/skills/moai-workflow-jit-docs/SKILL.md +446 -0
- moai_adk/templates/.claude/skills/moai-workflow-jit-docs/advanced-patterns.md +379 -0
- moai_adk/templates/.claude/skills/moai-workflow-jit-docs/optimization.md +286 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/README.md +190 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/SKILL.md +387 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/__init__.py +520 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/complete_workflow_demo_fixed.py +574 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/examples/complete_project_setup.py +317 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/examples/complete_workflow_demo.py +663 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/examples/config-migration-example.json +190 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/examples/question-examples.json +135 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/examples/quick_start.py +196 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/__init__.py +17 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/advanced-patterns.md +158 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/ask_user_integration.py +340 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/batch_questions.py +713 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/config_manager.py +538 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/documentation_manager.py +1336 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/language_initializer.py +730 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/migration_manager.py +608 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/template_optimizer.py +1005 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/schemas/config-schema.json +316 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/schemas/tab_schema.json +1362 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/templates/config-template.json +71 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/templates/doc-templates/product-template.md +44 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/templates/doc-templates/structure-template.md +48 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/templates/doc-templates/tech-template.md +71 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/config-manager-setup.json +109 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/language-initializer.json +228 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/menu-project-config.json +130 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/project-batch-questions.json +97 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/spec-workflow-setup.json +150 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/test_integration_simple.py +436 -0
- moai_adk/templates/.claude/skills/moai-workflow-templates/SKILL.md +374 -0
- moai_adk/templates/.claude/skills/moai-workflow-templates/modules/code-templates.md +124 -0
- moai_adk/templates/.claude/skills/moai-workflow-templates/modules/feedback-templates.md +100 -0
- moai_adk/templates/.claude/skills/moai-workflow-templates/modules/template-optimizer.md +138 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/LICENSE.txt +202 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/SKILL.md +453 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/advanced-patterns.md +576 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/examples/ai-powered-testing.py +294 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/examples/console_logging.py +35 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/examples/element_discovery.py +40 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/examples/static_html_automation.py +34 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/README.md +220 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/ai-debugging.md +845 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review.md +1416 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance-optimization.md +1234 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/smart-refactoring.md +1243 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/tdd-context7.md +1260 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/optimization.md +505 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/reference/playwright-best-practices.md +57 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/scripts/with_server.py +218 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/templates/alfred-integration.md +376 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/workflows/enterprise-testing-workflow.py +571 -0
- moai_adk/templates/.claude/skills/moai-worktree/SKILL.md +410 -0
- moai_adk/templates/.claude/skills/moai-worktree/examples.md +606 -0
- moai_adk/templates/.claude/skills/moai-worktree/modules/integration-patterns.md +982 -0
- moai_adk/templates/.claude/skills/moai-worktree/modules/parallel-development.md +778 -0
- moai_adk/templates/.claude/skills/moai-worktree/modules/worktree-commands.md +646 -0
- moai_adk/templates/.claude/skills/moai-worktree/modules/worktree-management.md +782 -0
- moai_adk/templates/.claude/skills/moai-worktree/reference.md +357 -0
- moai_adk/templates/.git-hooks/pre-commit +103 -41
- moai_adk/templates/.git-hooks/pre-push +116 -21
- moai_adk/templates/.github/workflows/ci-universal.yml +513 -0
- moai_adk/templates/.github/workflows/security-secrets-check.yml +179 -0
- moai_adk/templates/.gitignore +184 -44
- moai_adk/templates/.mcp.json +7 -9
- moai_adk/templates/.moai/cache/personalization.json +10 -0
- moai_adk/templates/.moai/config/config.yaml +344 -0
- moai_adk/templates/.moai/config/presets/manual.yaml +28 -0
- moai_adk/templates/.moai/config/presets/personal.yaml +30 -0
- moai_adk/templates/.moai/config/presets/team.yaml +33 -0
- moai_adk/templates/.moai/config/questions/_schema.yaml +79 -0
- moai_adk/templates/.moai/config/questions/tab1-user.yaml +108 -0
- moai_adk/templates/.moai/config/questions/tab2-project.yaml +122 -0
- moai_adk/templates/.moai/config/questions/tab3-git.yaml +542 -0
- moai_adk/templates/.moai/config/questions/tab4-quality.yaml +167 -0
- moai_adk/templates/.moai/config/questions/tab5-system.yaml +152 -0
- moai_adk/templates/.moai/config/sections/git-strategy.yaml +40 -0
- moai_adk/templates/.moai/config/sections/language.yaml +11 -0
- moai_adk/templates/.moai/config/sections/project.yaml +13 -0
- moai_adk/templates/.moai/config/sections/quality.yaml +15 -0
- moai_adk/templates/.moai/config/sections/system.yaml +14 -0
- moai_adk/templates/.moai/config/sections/user.yaml +5 -0
- moai_adk/templates/.moai/config/statusline-config.yaml +86 -0
- moai_adk/templates/.moai/scripts/setup-glm.py +136 -0
- moai_adk/templates/CLAUDE.md +382 -501
- moai_adk/utils/__init__.py +24 -1
- moai_adk/utils/banner.py +7 -10
- moai_adk/utils/common.py +16 -30
- moai_adk/utils/link_validator.py +4 -12
- moai_adk/utils/safe_file_reader.py +2 -6
- moai_adk/utils/timeout.py +160 -0
- moai_adk/utils/toon_utils.py +256 -0
- moai_adk/version.py +22 -0
- moai_adk-0.32.8.dist-info/METADATA +2478 -0
- moai_adk-0.32.8.dist-info/RECORD +396 -0
- {moai_adk-0.25.4.dist-info → moai_adk-0.32.8.dist-info}/WHEEL +1 -1
- {moai_adk-0.25.4.dist-info → moai_adk-0.32.8.dist-info}/entry_points.txt +1 -0
- moai_adk/cli/commands/backup.py +0 -82
- moai_adk/cli/commands/improve_user_experience.py +0 -348
- moai_adk/cli/commands/migrate.py +0 -158
- moai_adk/cli/commands/validate_links.py +0 -118
- moai_adk/templates/.github/workflows/moai-gitflow.yml +0 -413
- moai_adk/templates/.github/workflows/moai-release-create.yml +0 -100
- moai_adk/templates/.github/workflows/moai-release-pipeline.yml +0 -188
- moai_adk/utils/user_experience.py +0 -531
- moai_adk-0.25.4.dist-info/METADATA +0 -2279
- moai_adk-0.25.4.dist-info/RECORD +0 -112
- {moai_adk-0.25.4.dist-info → moai_adk-0.32.8.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,2279 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: moai-adk
|
|
3
|
-
Version: 0.25.4
|
|
4
|
-
Summary: MoAI Agentic Development Kit - SPEC-First TDD with Alfred SuperAgent & Complete Skills v2.0
|
|
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: jinja2>=3.0.0
|
|
29
|
-
Requires-Dist: packaging>=21.0
|
|
30
|
-
Requires-Dist: psutil>=7.1.3
|
|
31
|
-
Requires-Dist: pyfiglet>=1.0.2
|
|
32
|
-
Requires-Dist: pytest-asyncio>=1.2.0
|
|
33
|
-
Requires-Dist: pyyaml>=6.0
|
|
34
|
-
Requires-Dist: questionary>=2.0.0
|
|
35
|
-
Requires-Dist: requests>=2.28.0
|
|
36
|
-
Requires-Dist: rich>=13.0.0
|
|
37
|
-
Provides-Extra: dev
|
|
38
|
-
Requires-Dist: mypy>=1.7.0; extra == 'dev'
|
|
39
|
-
Requires-Dist: pytest-cov>=7.0.0; extra == 'dev'
|
|
40
|
-
Requires-Dist: pytest-xdist>=3.8.0; extra == 'dev'
|
|
41
|
-
Requires-Dist: pytest>=8.4.2; extra == 'dev'
|
|
42
|
-
Requires-Dist: ruff>=0.1.0; extra == 'dev'
|
|
43
|
-
Requires-Dist: types-pyyaml>=6.0.0; extra == 'dev'
|
|
44
|
-
Provides-Extra: security
|
|
45
|
-
Requires-Dist: bandit>=1.8.0; extra == 'security'
|
|
46
|
-
Requires-Dist: pip-audit>=2.7.0; extra == 'security'
|
|
47
|
-
Description-Content-Type: text/markdown
|
|
48
|
-
|
|
49
|
-
# 🗿 MoAI-ADK: AI-Powered SPEC-First TDD Development Framework
|
|
50
|
-
|
|
51
|
-
**Available Languages:** [English](./README.md) | [한국어](./README.ko.md)
|
|
52
|
-
|
|
53
|
-
[](https://pypi.org/project/moai-adk/)
|
|
54
|
-
[](https://opensource.org/licenses/MIT)
|
|
55
|
-
[](https://www.python.org/)
|
|
56
|
-
[](https://github.com/modu-ai/moai-adk/actions/workflows/moai-gitflow.yml)
|
|
57
|
-
[](https://codecov.io/gh/modu-ai/moai-adk)
|
|
58
|
-
[](https://github.com/modu-ai/moai-adk)
|
|
59
|
-
[](https://github.com/modu-ai/moai-adk/actions/workflows/docs-link-validation.yml)
|
|
60
|
-
[](https://coderabbit.ai/)
|
|
61
|
-
|
|
62
|
-
> **Build trustworthy, maintainable software with AI assistance. Complete automation from requirements to documentation in perfect sync.**
|
|
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 create a complete, transparent development lifecycle. Every artifact—from requirements to code to documentation—is automatically traceable, tested, and synchronized.
|
|
65
|
-
|
|
66
|
-
---
|
|
67
|
-
|
|
68
|
-
## 🎯 The Problem We Solve
|
|
69
|
-
|
|
70
|
-
### Traditional AI-Powered Development Challenges
|
|
71
|
-
|
|
72
|
-
| Problem | Impact |
|
|
73
|
-
| ------------------------------ | ------------------------------------------------------------- |
|
|
74
|
-
| **Unclear requirements** | Developers spend 40% of time re-clarifying vague requirements |
|
|
75
|
-
| **Missing tests** | Production bugs from untested code paths |
|
|
76
|
-
| **Drifting documentation** | Docs fall out of sync with implementation |
|
|
77
|
-
| **Lost context** | Repeated explanations across team members |
|
|
78
|
-
| **Impossible impact analysis** | Can't determine what code is affected by requirement changes |
|
|
79
|
-
| **Quality inconsistency** | Manual QA gates miss edge cases |
|
|
80
|
-
|
|
81
|
-
### How MoAI-ADK Solves It
|
|
82
|
-
|
|
83
|
-
- ✅ **SPEC-First**: Clear, structured requirements BEFORE any code
|
|
84
|
-
- ✅ **Guaranteed Testing**: 85%+ test coverage through automated TDD
|
|
85
|
-
- ✅ **Living Documentation**: Auto-synced docs that never drift
|
|
86
|
-
- ✅ **Persistent Context**: Alfred remembers project history and patterns
|
|
87
|
-
- ✅ **Quality Automation**: TRUST 5 principles enforced throughout
|
|
88
|
-
|
|
89
|
-
---
|
|
90
|
-
|
|
91
|
-
## ⚡ Key Features
|
|
92
|
-
|
|
93
|
-
### Core Infrastructure
|
|
94
|
-
|
|
95
|
-
- Phase result storage and retrieval
|
|
96
|
-
- Project metadata extraction
|
|
97
|
-
- Tech stack auto-detection
|
|
98
|
-
- Explicit context passing between command phases
|
|
99
|
-
|
|
100
|
-
### 1. SPEC-First Development
|
|
101
|
-
|
|
102
|
-
- **EARS-format specifications** for structured, unambiguous requirements
|
|
103
|
-
- **Pre-implementation clarity** preventing costly rework
|
|
104
|
-
- **Automatic traceability** from requirements to code to tests
|
|
105
|
-
|
|
106
|
-
### 2. Automated TDD Workflow
|
|
107
|
-
|
|
108
|
-
- **RED → GREEN → REFACTOR** cycle fully orchestrated
|
|
109
|
-
- **Test-first guarantee**: No code without tests
|
|
110
|
-
- **85%+ coverage** achieved through systematic testing
|
|
111
|
-
|
|
112
|
-
### 3. Alfred SuperAgent
|
|
113
|
-
|
|
114
|
-
- **19 specialized AI agents** (spec-builder, code-builder, doc-syncer, etc.)
|
|
115
|
-
- **125+ production-ready enterprise skills** covering all development domains
|
|
116
|
-
- **12 BaaS skills**: Cloud platforms (Supabase, Firebase, Vercel, Cloudflare, Auth0, Convex, Railway, Neon, Clerk)
|
|
117
|
-
- **10 Security & Compliance skills**: Advanced authentication, OWASP, encryption, compliance patterns
|
|
118
|
-
- **15 Enterprise Integration skills**: Microservices, event-driven architecture, DDD, messaging
|
|
119
|
-
- **12 Advanced DevOps skills**: Kubernetes, container orchestration, GitOps, IaC, monitoring
|
|
120
|
-
- **18 Data & Analytics skills**: Data pipelines, streaming, data warehouse, MLOps, analytics
|
|
121
|
-
- **Complete frontend coverage**: HTML/CSS, Tailwind CSS, shadcn/ui, React, Vue, Angular (10+ icon libraries)
|
|
122
|
-
- **Full backend support**: Database design, API architecture, DevOps, serverless patterns
|
|
123
|
-
- **Advanced MCP Integration**: Context7, Playwright, Sequential-thinking servers
|
|
124
|
-
- **Document Processing**: AI-powered document handling (docx, pdf, pptx, xlsx)
|
|
125
|
-
- **Artifact Builder**: Modern React/Tailwind/shadcn/ui component creation
|
|
126
|
-
- **Internal Communications**: Enterprise communication templates and automation
|
|
127
|
-
- **MCP Builder**: Advanced Model Context Protocol server development
|
|
128
|
-
- **70+ additional enterprise-grade skills** across all development domains
|
|
129
|
-
- **Adaptive learning** based on your project patterns
|
|
130
|
-
- **Smart context management** understanding project structure and dependencies
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
Complete traceability system linking all artifacts:
|
|
134
|
-
|
|
135
|
-
```
|
|
136
|
-
↓
|
|
137
|
-
↓
|
|
138
|
-
↓
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
### 5. Living Documentation
|
|
142
|
-
|
|
143
|
-
- **Real-time synchronization** between code and docs
|
|
144
|
-
- **Zero manual updates** required
|
|
145
|
-
- **Multi-language support** (Python, TypeScript, Go, Rust, etc.)
|
|
146
|
-
- **Automatic diagram generation** from code structure
|
|
147
|
-
|
|
148
|
-
### 6. Quality Assurance
|
|
149
|
-
|
|
150
|
-
- **TRUST 5 principles**: Test-first, Readable, Unified, Secured, Trackable
|
|
151
|
-
- **Automated code quality gates** (linting, type checking, security)
|
|
152
|
-
- **Pre-commit validation** preventing violations
|
|
153
|
-
- **Comprehensive reporting** with actionable metrics
|
|
154
|
-
|
|
155
|
-
### 7. BaaS Platform Ecosystem
|
|
156
|
-
|
|
157
|
-
- **10 Production-Ready Skills**: Foundation + 7 Platform Extensions (Firebase, Supabase, Vercel, Cloudflare, Auth0, Convex, Railway)
|
|
158
|
-
- **8 Architecture Patterns**: Pattern A-H covering all deployment scenarios
|
|
159
|
-
- **9 Cloud Platforms**: 100% coverage (Edge computing to database management)
|
|
160
|
-
- **Pattern-Based Selection**: Intelligent recommendation engine for optimal platform choice
|
|
161
|
-
- **Zero-Config Deployments**: Pre-configured best practices with one-click setup
|
|
162
|
-
- **Advanced Features**: Blue-green deployments, Canary releases, Custom domains, SSL automation, Monitoring & Alerting
|
|
163
|
-
|
|
164
|
-
---
|
|
165
|
-
|
|
166
|
-
## 📍 Claude Code Statusline Integration (v0.20.1+)
|
|
167
|
-
|
|
168
|
-
MoAI-ADK statusline displays **real-time development status** in Claude Code's terminal status bar. See your model, version, Git branch, and file changes at a glance.
|
|
169
|
-
|
|
170
|
-
### 📊 Statusline Format
|
|
171
|
-
|
|
172
|
-
**Compact Mode** (default, ≤80 chars):
|
|
173
|
-
|
|
174
|
-
```
|
|
175
|
-
🤖 Haiku 4.5 | 🗿 Ver 0.20.1 | 📊 +0 M0 ?0 | 🔀 develop
|
|
176
|
-
```
|
|
177
|
-
|
|
178
|
-
| Item | Icon | Meaning | Example |
|
|
179
|
-
| -------------- | ---- | ---------------------- | ------------------------- |
|
|
180
|
-
| **Model** | 🤖 | Active Claude model | Haiku 4.5, Sonnet 4.5 |
|
|
181
|
-
| **Version** | 🗿 | MoAI-ADK version | 0.20.1 |
|
|
182
|
-
| **Changes** | 📊 | Git file status | +0 M0 ?0 |
|
|
183
|
-
| **Git Branch** | 🔀 | Current working branch | develop, feature/SPEC-001 |
|
|
184
|
-
|
|
185
|
-
### 📝 Changes Notation Explained
|
|
186
|
-
|
|
187
|
-
```
|
|
188
|
-
Changes: +staged Mmodified ?untracked
|
|
189
|
-
|
|
190
|
-
📊 +0 = Number of staged files (git add'ed files)
|
|
191
|
-
📊 M0 = Number of modified files (not yet git add'ed)
|
|
192
|
-
📊 ?0 = Number of untracked new files
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
### 💡 Examples
|
|
196
|
-
|
|
197
|
-
| Situation | Display | Meaning |
|
|
198
|
-
| ---------------- | ------------------- | ------------------------------------------------ |
|
|
199
|
-
| Clean state | `📊 +0 M0 ?0` | All changes committed |
|
|
200
|
-
| Files modified | `📊 +0 M2 ?0` | 2 files modified (need git add) |
|
|
201
|
-
| New file created | `📊 +0 M0 ?1` | 1 new file (need git add) |
|
|
202
|
-
| Ready to commit | `📊 +3 M0 ?0` | 3 files staged (ready to commit) |
|
|
203
|
-
| Work in progress | `📊 +2 M1 ?1` | Mixed state: 2 staged + 1 modified + 1 untracked |
|
|
204
|
-
|
|
205
|
-
### ⚙️ Configuration
|
|
206
|
-
|
|
207
|
-
Statusline automatically displays Compact Mode (default, ≤80 chars). To customize:
|
|
208
|
-
|
|
209
|
-
```json
|
|
210
|
-
{
|
|
211
|
-
"statusLine": {
|
|
212
|
-
"type": "command",
|
|
213
|
-
"command": "uv run --no-project -m moai_adk.statusline.main",
|
|
214
|
-
"padding": 1
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
```
|
|
218
|
-
|
|
219
|
-
---
|
|
220
|
-
|
|
221
|
-
## 🆕 Latest Features: Phase 1 Batch 2 Complete (v0.23.0)
|
|
222
|
-
|
|
223
|
-
## 🆕 Recent Improvements (v0.23.0)
|
|
224
|
-
|
|
225
|
-
### Tag System Removal & Architecture Optimization
|
|
226
|
-
|
|
227
|
-
**Complete TAG System Cleanup**:
|
|
228
|
-
- ✅ **Removed legacy TAG system** dependency from core architecture
|
|
229
|
-
- ✅ **Simplified configuration** with modern Alfred workflow
|
|
230
|
-
- ✅ **Enhanced performance** through streamlined codebase
|
|
231
|
-
- ✅ **Package template synchronization** for consistent deployment
|
|
232
|
-
- ✅ **Improved MCP server optimization** with better timeout and retry settings
|
|
233
|
-
|
|
234
|
-
### Enhanced Statusline System
|
|
235
|
-
|
|
236
|
-
**Advanced Output Style Detection**:
|
|
237
|
-
- ✅ **Enhanced style detection** for better development experience
|
|
238
|
-
- ✅ **Multi-language support** with improved localization
|
|
239
|
-
- ✅ **Real-time Git status** tracking with comprehensive file change detection
|
|
240
|
-
- ✅ **Optimized performance** with reduced system overhead
|
|
241
|
-
|
|
242
|
-
### Alfred Feedback Templates Enhancement
|
|
243
|
-
|
|
244
|
-
**Streamlined Issue Creation**:
|
|
245
|
-
- ✅ **67% faster issue creation** (90s → 30s)
|
|
246
|
-
- ✅ **Auto-collected environment information** for better bug reports
|
|
247
|
-
- ✅ **Structured templates** for consistent issue quality
|
|
248
|
-
- ✅ **Multi-select questions** to reduce user interaction steps
|
|
249
|
-
|
|
250
|
-
### Enterprise v4.0 Optimization
|
|
251
|
-
|
|
252
|
-
**Complete Skills Ecosystem Upgrade**:
|
|
253
|
-
|
|
254
|
-
**Historic Achievement - November 2025:**
|
|
255
|
-
|
|
256
|
-
MoAI-ADK has completed a comprehensive **Phase 1 Batch 2** upgrade achieving:
|
|
257
|
-
|
|
258
|
-
- **125+ Enterprise Skills** upgraded to v4.0.0 (681% growth from v0.22.5's 16 skills)
|
|
259
|
-
- **Security Skills**: 10 new advanced security and compliance skills
|
|
260
|
-
- **Documentation**: 85,280+ lines of comprehensive documentation
|
|
261
|
-
- **Quality**: All skills meet TRUST 5 standards
|
|
262
|
-
- **Coverage**: 80+ frameworks and technologies fully covered
|
|
263
|
-
|
|
264
|
-
**Phase 1 Batch 2 Skills Added**:
|
|
265
|
-
|
|
266
|
-
**Security & Compliance Group (10 new skills)**:
|
|
267
|
-
- Advanced authentication patterns (OAuth2, SAML, WebAuthn)
|
|
268
|
-
- Security vulnerability assessment and remediation
|
|
269
|
-
- OWASP compliance and security standards
|
|
270
|
-
- Encryption and data protection strategies
|
|
271
|
-
- Security testing and penetration testing patterns
|
|
272
|
-
|
|
273
|
-
**Enterprise Integration Group (15 skills)**:
|
|
274
|
-
- Enterprise architecture patterns and best practices
|
|
275
|
-
- Microservices design and orchestration
|
|
276
|
-
- Event-driven architecture patterns
|
|
277
|
-
- Domain-driven design implementation
|
|
278
|
-
- Enterprise messaging and integration
|
|
279
|
-
|
|
280
|
-
**Advanced DevOps Group (12 skills)**:
|
|
281
|
-
- Kubernetes advanced patterns and operations
|
|
282
|
-
- Container orchestration and management
|
|
283
|
-
- GitOps and continuous deployment strategies
|
|
284
|
-
- Infrastructure as Code (Terraform, Ansible, CloudFormation)
|
|
285
|
-
- Advanced monitoring and observability
|
|
286
|
-
|
|
287
|
-
**Data & Analytics Group (18 skills)**:
|
|
288
|
-
- Data pipeline architecture and implementation
|
|
289
|
-
- Real-time streaming and event processing
|
|
290
|
-
- Data warehouse design and optimization
|
|
291
|
-
- Machine learning operations (MLOps)
|
|
292
|
-
- Advanced analytics and visualization patterns
|
|
293
|
-
|
|
294
|
-
**And 70+ more Enterprise Skills** across:
|
|
295
|
-
- Advanced Cloud Platform Integration
|
|
296
|
-
- Modern Frontend Frameworks & Tools
|
|
297
|
-
- Backend Architecture Patterns
|
|
298
|
-
- Database Optimization Strategies
|
|
299
|
-
- DevOps & Infrastructure Excellence
|
|
300
|
-
|
|
301
|
-
---
|
|
302
|
-
|
|
303
|
-
### Previous Phases Overview
|
|
304
|
-
|
|
305
|
-
#### Phase 1: Multi-Language Code Directory Detection + Auto-Correction
|
|
306
|
-
|
|
307
|
-
**Automatic Detection**:
|
|
308
|
-
|
|
309
|
-
- ✅ **18 Language Support**: Python, TypeScript, JavaScript, Go, Rust, Java, Kotlin, Swift, Dart, PHP, Ruby, C, C++, C#, Scala, R, SQL, Shell
|
|
310
|
-
- ✅ **Standard Directory Patterns**: Automatically detect conventional directories per language (Python: src/, Go: cmd/pkg/, JavaScript: src/app/pages/, etc.)
|
|
311
|
-
- ✅ **Customization Modes**: Three detection modes - auto/manual/hybrid
|
|
312
|
-
- ✅ **Exclude Patterns**: Automatically exclude tests/, docs/, node_modules/, etc. from detection
|
|
313
|
-
|
|
314
|
-
**Safe Auto-Correction**:
|
|
315
|
-
|
|
316
|
-
- ✅ **3-Level Risk Tiers**: SAFE (auto-fix) / MEDIUM (approval needed) / HIGH (blocked)
|
|
317
|
-
- ✅ **Whitespace Normalization**: Consistent code formatting
|
|
318
|
-
- ✅ **Backup & Rollback**: Auto-backup before fixes, rollback on errors
|
|
319
|
-
|
|
320
|
-
**Implementation Statistics**:
|
|
321
|
-
|
|
322
|
-
- 📦 language_dirs.py: 329 LOC (10-language mapping)
|
|
323
|
-
- 🔧 policy_validator.py extension: 153 LOC (auto-correction methods)
|
|
324
|
-
- 🧪 Tests: 729 LOC (directory detection + auto-correction)
|
|
325
|
-
|
|
326
|
-
### Phase 3: /alfred:9-feedback Enhancement - Auto-Collection & Semantic Labeling
|
|
327
|
-
|
|
328
|
-
**Intelligent Issue Creation with Automatic Context Collection**:
|
|
329
|
-
|
|
330
|
-
The improved `/alfred:9-feedback` command streamlines GitHub issue creation with three major enhancements:
|
|
331
|
-
|
|
332
|
-
**1. Template-Based Issue Structure (moai-alfred-feedback-templates Skill)**:
|
|
333
|
-
- 6 specialized issue templates (Bug Report, Feature Request, Improvement, Refactor, Documentation, Question)
|
|
334
|
-
- Each template provides structured guidance with DO/DON'T best practices
|
|
335
|
-
- Language support: Korean (localized per user configuration)
|
|
336
|
-
- Auto-generated example templates showing placeholder sections
|
|
337
|
-
|
|
338
|
-
**2. Automatic Environment Information Collection (feedback-collect-info.py)**:
|
|
339
|
-
- **Auto-collects**: MoAI-ADK version, Python version, OS information, project mode
|
|
340
|
-
- **Git Status**: Current branch, uncommitted changes count, recent commit history
|
|
341
|
-
- **Context Detection**: Automatic SPEC detection from branch name pattern
|
|
342
|
-
- **Error Logs**: Recent error log extraction for bug diagnosis
|
|
343
|
-
- **Output Formats**: JSON (machine-readable) or Korean-formatted text (human-readable)
|
|
344
|
-
|
|
345
|
-
**3. Optimized User Interaction (Reduced Steps via multiSelect AskUserQuestion)**:
|
|
346
|
-
- **Single compound question** collecting issue type + priority + template preference
|
|
347
|
-
- **Issue Types**: 6 options (bug, feature, improvement, refactor, documentation, question)
|
|
348
|
-
- **Priority Levels**: 4 options with intelligent default (medium priority)
|
|
349
|
-
- **Template Choice**: Auto-generate structured template or manual creation
|
|
350
|
-
- **Reduced time**: 90 seconds → 30 seconds (67% improvement)
|
|
351
|
-
|
|
352
|
-
**Integration with Existing Infrastructure**:
|
|
353
|
-
- **Skill Reuse**: Integrates `moai-alfred-issue-labels` skill for semantic label taxonomy
|
|
354
|
-
- **Consistent Labeling**: Type + Priority automatically mapped to GitHub labels
|
|
355
|
-
- **No Wheel Reinvention**: Leverages existing label infrastructure from `/alfred:1-plan` and `/alfred:3-sync`
|
|
356
|
-
|
|
357
|
-
**Usage Example**:
|
|
358
|
-
|
|
359
|
-
```bash
|
|
360
|
-
/alfred:9-feedback
|
|
361
|
-
```
|
|
362
|
-
|
|
363
|
-
User selects: Bug Report | High Priority | Auto-generate template
|
|
364
|
-
|
|
365
|
-
System generates:
|
|
366
|
-
```markdown
|
|
367
|
-
## Bug Description
|
|
368
|
-
[Placeholder for user input]
|
|
369
|
-
|
|
370
|
-
## Reproduction Steps
|
|
371
|
-
1. [Placeholder for user input]
|
|
372
|
-
2. [Placeholder for user input]
|
|
373
|
-
3. [Placeholder for user input]
|
|
374
|
-
|
|
375
|
-
## Expected Behavior
|
|
376
|
-
[Placeholder for user input]
|
|
377
|
-
|
|
378
|
-
## Actual Behavior
|
|
379
|
-
[Placeholder for user input]
|
|
380
|
-
|
|
381
|
-
## Environment Information
|
|
382
|
-
🔍 Auto-collected information:
|
|
383
|
-
- MoAI-ADK Version: 0.22.5
|
|
384
|
-
- Python Version: 3.14.0
|
|
385
|
-
- OS: Darwin 25.0.0
|
|
386
|
-
- Current Branch: feature/SPEC-001
|
|
387
|
-
- Uncommitted Changes: 3 files
|
|
388
|
-
```
|
|
389
|
-
|
|
390
|
-
**Implementation Statistics**:
|
|
391
|
-
|
|
392
|
-
- 📋 moai-alfred-feedback-templates: 469 LOC (6 Korean templates with 500+ lines of guidance)
|
|
393
|
-
- 🔄 feedback-collect-info.py: 194 LOC (8 auto-collection functions with JSON/text output)
|
|
394
|
-
- 🎯 /alfred:9-feedback improvement: 257 lines enhanced (multiSelect question optimization)
|
|
395
|
-
- ⏱️ Time Reduction: 90 seconds → 30 seconds (67% improvement)
|
|
396
|
-
- 🎯 Issue Quality: 100% environment context (auto-collected, no manual entry)
|
|
397
|
-
|
|
398
|
-
**Quality Metrics**:
|
|
399
|
-
|
|
400
|
-
| Metric | Before | After | Improvement |
|
|
401
|
-
|--------|--------|-------|-------------|
|
|
402
|
-
| Issue Creation Time | 90 seconds | 30 seconds | 67% faster |
|
|
403
|
-
| User Steps | 4 questions | 1 multiSelect | 75% fewer steps |
|
|
404
|
-
| Environment Context | Manual (partial) | Auto-collected | 100% coverage |
|
|
405
|
-
| Template Consistency | Variable | Structured | Guaranteed |
|
|
406
|
-
| Label Accuracy | Manual selection | Automated | 100% correct |
|
|
407
|
-
|
|
408
|
-
**Key Benefits**:
|
|
409
|
-
|
|
410
|
-
✅ **Faster**: From 4 steps to 1-2 steps with auto-template generation
|
|
411
|
-
✅ **More Complete**: Auto-collected environment info prevents context loss
|
|
412
|
-
✅ **Consistent**: Structured templates ensure quality across all issue types
|
|
413
|
-
✅ **User-Friendly**: Entirely in Korean (localized per user language setting)
|
|
414
|
-
✅ **Scalable**: Skill-based architecture allows easy template extension
|
|
415
|
-
✅ **Zero Maintenance**: Label mappings reuse existing infrastructure
|
|
416
|
-
|
|
417
|
-
### Phase 2: Automatic SPEC Template Generation
|
|
418
|
-
|
|
419
|
-
**Code Analysis & SPEC Generation**:
|
|
420
|
-
|
|
421
|
-
- ✅ **Multi-Language Analysis**: Python (AST), JavaScript/Go (regex-based)
|
|
422
|
-
- ✅ **Automatic Domain Inference**: File path → Class names → Function names → Docstrings (priority order)
|
|
423
|
-
- ✅ **EARS Format Template**: Auto-generate standard SPEC structure
|
|
424
|
-
- Overview, Requirements (Ubiquitous/State-driven/Event-driven/Optional/Unwanted)
|
|
425
|
-
- Environment, Assumptions, Test Cases
|
|
426
|
-
- Implementation Notes, Related Specifications
|
|
427
|
-
- ✅ **Confidence Scoring**: 0-1 score for generation quality (structure 30%, domain 40%, documentation 30%)
|
|
428
|
-
- ✅ **Editing Guide**: Auto-generate TODO checklist based on confidence level
|
|
429
|
-
|
|
430
|
-
**User Experience**:
|
|
431
|
-
|
|
432
|
-
- ✅ **Auto-Suggestion**: Attempt code without SPEC → Hook detection → Auto-generation offer
|
|
433
|
-
- ✅ **Template Generation**: One-click automatic SPEC template creation
|
|
434
|
-
- ✅ **User Editing**: Edit template in editor then resume development
|
|
435
|
-
- ✅ **Full Automation**: Maintain SPEC-first principle while minimizing user burden
|
|
436
|
-
|
|
437
|
-
**Implementation Statistics**:
|
|
438
|
-
|
|
439
|
-
- 📝 spec_generator.py: 570 LOC (7 methods)
|
|
440
|
-
- 🧪 Tests: 835 LOC (generator + workflow)
|
|
441
|
-
|
|
442
|
-
### Configuration Extensions
|
|
443
|
-
|
|
444
|
-
**config.json New Sections**:
|
|
445
|
-
|
|
446
|
-
- `policy.code_directories`: Language-based directory detection settings
|
|
447
|
-
- `policy.auto_correction`: 3-tier risk-level auto-correction policies
|
|
448
|
-
- `policy.auto_spec_generation`: Enable/disable automatic SPEC generation
|
|
449
|
-
|
|
450
|
-
### Complete Implementation Statistics
|
|
451
|
-
|
|
452
|
-
| Metric | Value |
|
|
453
|
-
| ------------------- | ------------------- |
|
|
454
|
-
| New Code | 1,052 LOC |
|
|
455
|
-
| New Tests | 1,564 LOC |
|
|
456
|
-
| Total Added Lines | 2,695 LOC |
|
|
457
|
-
| Supported Languages | 10 (expanded) |
|
|
458
|
-
| Git Commits | 2 (Phase 1 + 2) |
|
|
459
|
-
| Test Coverage | 100% (new features) |
|
|
460
|
-
|
|
461
|
-
### Phase 3: BaaS Ecosystem Integration (v0.21.0+)
|
|
462
|
-
|
|
463
|
-
**Production-Ready BaaS Platform Integration**:
|
|
464
|
-
|
|
465
|
-
MoAI-ADK now includes **10 production-ready BaaS skills** providing complete coverage of the modern cloud ecosystem:
|
|
466
|
-
|
|
467
|
-
#### Included Platforms
|
|
468
|
-
|
|
469
|
-
**Foundation Layer** (Patterns A-H):
|
|
470
|
-
- Core BaaS architecture patterns
|
|
471
|
-
- Decision framework for platform selection
|
|
472
|
-
- 1,500+ words, 20+ code examples
|
|
473
|
-
- 8 architectural patterns for all deployment scenarios
|
|
474
|
-
|
|
475
|
-
**Extended Platforms** (7 Skills):
|
|
476
|
-
1. **Supabase** (Pattern A, D) - PostgreSQL + Realtime + Auth
|
|
477
|
-
2. **Firebase** (Pattern E) - NoSQL + Functions + Storage
|
|
478
|
-
3. **Vercel** (Pattern A, B) - Edge computing + Serverless
|
|
479
|
-
4. **Cloudflare** (Pattern G) - Workers + D1 + Analytics
|
|
480
|
-
5. **Auth0** (Pattern H) - Enterprise authentication
|
|
481
|
-
6. **Convex** (Pattern F) - Real-time backend
|
|
482
|
-
7. **Railway** (All patterns) - All-in-one platform
|
|
483
|
-
|
|
484
|
-
**New Platforms** (Phase 5):
|
|
485
|
-
- Neon PostgreSQL (Advanced database management)
|
|
486
|
-
- Clerk Authentication (Modern user management)
|
|
487
|
-
- Railway Extensions (Advanced deployment patterns)
|
|
488
|
-
|
|
489
|
-
#### Key Statistics
|
|
490
|
-
|
|
491
|
-
| Metric | Value |
|
|
492
|
-
|--------|-------|
|
|
493
|
-
| **Total BaaS Skills** | 10 (Foundation + 7 Extensions + 2 Planned) |
|
|
494
|
-
| **Platform Coverage** | 9 platforms (100% modern stack) |
|
|
495
|
-
| **Architecture Patterns** | 8 patterns (A-H) supporting all scenarios |
|
|
496
|
-
| **Code Examples** | 60+ production-ready examples |
|
|
497
|
-
| **Documentation** | 11,500+ words |
|
|
498
|
-
| **Production Readiness** | 8/9 fully implemented, Railway 95% |
|
|
499
|
-
|
|
500
|
-
#### Railway: Advanced Deployment Features
|
|
501
|
-
|
|
502
|
-
Railway skill v1.0.0 includes advanced production features:
|
|
503
|
-
|
|
504
|
-
**Deployment Strategies**:
|
|
505
|
-
- ✅ Blue-Green deployments (zero-downtime updates)
|
|
506
|
-
- ✅ Canary releases (gradual rollout)
|
|
507
|
-
- ✅ Automatic rollback on failure
|
|
508
|
-
- ✅ Custom domain management
|
|
509
|
-
- ✅ SSL/TLS automation
|
|
510
|
-
|
|
511
|
-
**Monitoring & Observability**:
|
|
512
|
-
- ✅ Real-time logs and metrics
|
|
513
|
-
- ✅ Deployment history and status
|
|
514
|
-
- ✅ Performance monitoring
|
|
515
|
-
- ✅ Alert configuration
|
|
516
|
-
- ✅ Error tracking
|
|
517
|
-
|
|
518
|
-
**Cost Optimization**:
|
|
519
|
-
- ✅ Automatic scaling (pay only for usage)
|
|
520
|
-
- ✅ PostgreSQL optimization
|
|
521
|
-
- ✅ Resource allocation strategies
|
|
522
|
-
- ✅ Cost estimation tools
|
|
523
|
-
|
|
524
|
-
#### Pattern Decision Framework
|
|
525
|
-
|
|
526
|
-
Select optimal platform using MoAI's intelligent pattern system:
|
|
527
|
-
|
|
528
|
-
```
|
|
529
|
-
├─ Pattern A: Multi-tenant SaaS
|
|
530
|
-
│ ├─ Primary: Supabase
|
|
531
|
-
│ ├─ Secondary: Vercel
|
|
532
|
-
│ └─ Features: RLS, Edge, Caching
|
|
533
|
-
│
|
|
534
|
-
├─ Pattern B: Serverless API
|
|
535
|
-
│ ├─ Primary: Vercel
|
|
536
|
-
│ ├─ Secondary: Cloudflare
|
|
537
|
-
│ └─ Features: Functions, Auto-scaling
|
|
538
|
-
│
|
|
539
|
-
├─ Pattern C: Monolithic Backend
|
|
540
|
-
│ ├─ Primary: Railway
|
|
541
|
-
│ ├─ Secondary: Heroku
|
|
542
|
-
│ └─ Features: Full stack, Database
|
|
543
|
-
│
|
|
544
|
-
├─ Pattern D: Real-time Collaboration
|
|
545
|
-
│ ├─ Primary: Supabase
|
|
546
|
-
│ ├─ Secondary: Firebase
|
|
547
|
-
│ └─ Features: Realtime, Broadcast
|
|
548
|
-
│
|
|
549
|
-
├─ Pattern E: Mobile Backend
|
|
550
|
-
│ ├─ Primary: Firebase
|
|
551
|
-
│ ├─ Secondary: Convex
|
|
552
|
-
│ └─ Features: Auth, Functions, Storage
|
|
553
|
-
│
|
|
554
|
-
├─ Pattern F: Real-time Backend
|
|
555
|
-
│ ├─ Primary: Convex
|
|
556
|
-
│ ├─ Secondary: Firebase
|
|
557
|
-
│ └─ Features: Real-time sync, Functions
|
|
558
|
-
│
|
|
559
|
-
├─ Pattern G: Edge Computing
|
|
560
|
-
│ ├─ Primary: Cloudflare
|
|
561
|
-
│ ├─ Secondary: Vercel
|
|
562
|
-
│ └─ Features: Workers, D1, Analytics
|
|
563
|
-
│
|
|
564
|
-
└─ Pattern H: Enterprise Security
|
|
565
|
-
├─ Primary: Auth0
|
|
566
|
-
├─ Secondary: Supabase
|
|
567
|
-
└─ Features: SAML, OIDC, Compliance
|
|
568
|
-
```
|
|
569
|
-
|
|
570
|
-
#### Integration with Development Workflow
|
|
571
|
-
|
|
572
|
-
BaaS skills integrate seamlessly with MoAI-ADK's development cycle:
|
|
573
|
-
|
|
574
|
-
1. **Planning Phase** (`/alfred:1-plan`):
|
|
575
|
-
- Pattern-based platform selection
|
|
576
|
-
- Architecture recommendation
|
|
577
|
-
- Cost estimation
|
|
578
|
-
|
|
579
|
-
2. **Implementation Phase** (`/alfred:2-run`):
|
|
580
|
-
- Auto-configured SDK setup
|
|
581
|
-
- Best practices enforcement
|
|
582
|
-
- Troubleshooting automation
|
|
583
|
-
|
|
584
|
-
3. **Deployment Phase** (`/alfred:3-sync`):
|
|
585
|
-
- Infrastructure as Code generation
|
|
586
|
-
- CI/CD pipeline configuration
|
|
587
|
-
- Monitoring setup
|
|
588
|
-
|
|
589
|
-
#### Implementation Statistics
|
|
590
|
-
|
|
591
|
-
| Metric | Value |
|
|
592
|
-
|--------|-------|
|
|
593
|
-
| **New Code** | 3,200 LOC (Foundation + Extensions) |
|
|
594
|
-
| **New Tests** | 2,100 LOC (100% coverage) |
|
|
595
|
-
| **Documentation** | 11,500+ words |
|
|
596
|
-
| **Code Examples** | 60+ (all runnable) |
|
|
597
|
-
| **Git Commits** | 10+ (one per skill/feature) |
|
|
598
|
-
|
|
599
|
-
---
|
|
600
|
-
|
|
601
|
-
## 🚀 Getting Started
|
|
602
|
-
|
|
603
|
-
### Prerequisites
|
|
604
|
-
|
|
605
|
-
Before installing MoAI-ADK, ensure you have the following tools installed:
|
|
606
|
-
|
|
607
|
-
#### Git Installation
|
|
608
|
-
|
|
609
|
-
**Windows:**
|
|
610
|
-
1. Download Git from the official website: [https://git-scm.com/download/win](https://git-scm.com/download/win)
|
|
611
|
-
2. Run the installer and follow the installation wizard
|
|
612
|
-
3. Verify installation:
|
|
613
|
-
```bash
|
|
614
|
-
git --version
|
|
615
|
-
```
|
|
616
|
-
|
|
617
|
-
**macOS:**
|
|
618
|
-
|
|
619
|
-
Option 1 - Homebrew (Recommended):
|
|
620
|
-
```bash
|
|
621
|
-
# Install Homebrew if not already installed
|
|
622
|
-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
623
|
-
|
|
624
|
-
# Install Git
|
|
625
|
-
brew install git
|
|
626
|
-
|
|
627
|
-
# Verify installation
|
|
628
|
-
git --version
|
|
629
|
-
```
|
|
630
|
-
|
|
631
|
-
Option 2 - Official Installer:
|
|
632
|
-
1. Download from: [https://git-scm.com/download/mac](https://git-scm.com/download/mac)
|
|
633
|
-
2. Open the .dmg file and follow installation instructions
|
|
634
|
-
|
|
635
|
-
#### GitHub CLI (gh) Installation
|
|
636
|
-
|
|
637
|
-
GitHub CLI is required for creating pull requests and managing GitHub repositories from the command line.
|
|
638
|
-
|
|
639
|
-
**Windows:**
|
|
640
|
-
|
|
641
|
-
Option 1 - WinGet (Recommended):
|
|
642
|
-
```bash
|
|
643
|
-
winget install --id GitHub.cli
|
|
644
|
-
```
|
|
645
|
-
|
|
646
|
-
Option 2 - Chocolatey:
|
|
647
|
-
```bash
|
|
648
|
-
choco install gh
|
|
649
|
-
```
|
|
650
|
-
|
|
651
|
-
Option 3 - Scoop:
|
|
652
|
-
```bash
|
|
653
|
-
scoop install gh
|
|
654
|
-
```
|
|
655
|
-
|
|
656
|
-
**macOS:**
|
|
657
|
-
|
|
658
|
-
```bash
|
|
659
|
-
brew install gh
|
|
660
|
-
```
|
|
661
|
-
|
|
662
|
-
**Verify Installation:**
|
|
663
|
-
```bash
|
|
664
|
-
gh --version
|
|
665
|
-
```
|
|
666
|
-
|
|
667
|
-
**Authenticate with GitHub:**
|
|
668
|
-
```bash
|
|
669
|
-
gh auth login
|
|
670
|
-
```
|
|
671
|
-
|
|
672
|
-
For more information, visit:
|
|
673
|
-
- Git: [https://git-scm.com/](https://git-scm.com/)
|
|
674
|
-
- GitHub CLI: [https://cli.github.com/](https://cli.github.com/)
|
|
675
|
-
|
|
676
|
-
---
|
|
677
|
-
|
|
678
|
-
### Installation
|
|
679
|
-
|
|
680
|
-
#### Using uv tool (CLI - Global Access)
|
|
681
|
-
|
|
682
|
-
```bash
|
|
683
|
-
# Install moai-adk as a globally available command using uv tool
|
|
684
|
-
uv tool install moai-adk
|
|
685
|
-
|
|
686
|
-
# Verify installation
|
|
687
|
-
moai-adk --version
|
|
688
|
-
|
|
689
|
-
# Initialize a new project (available everywhere)
|
|
690
|
-
moai-adk init my-awesome-project
|
|
691
|
-
cd my-awesome-project
|
|
692
|
-
```
|
|
693
|
-
|
|
694
|
-
#### Upgrade to Latest Version
|
|
695
|
-
|
|
696
|
-
```bash
|
|
697
|
-
# Update using uv tool
|
|
698
|
-
uv tool upgrade moai-adk
|
|
699
|
-
|
|
700
|
-
# Or reinstall with force
|
|
701
|
-
uv tool install --force moai-adk
|
|
702
|
-
```
|
|
703
|
-
|
|
704
|
-
#### ⚠️ Important: Project Configuration and Setup
|
|
705
|
-
|
|
706
|
-
After installation or upgrade, you **MUST** run `/alfred:0-project` to initialize and configure your project.
|
|
707
|
-
|
|
708
|
-
##### 1️⃣ Project Initialization Command
|
|
709
|
-
|
|
710
|
-
```bash
|
|
711
|
-
# Configure project settings and optimize for your environment
|
|
712
|
-
/alfred:0-project
|
|
713
|
-
```
|
|
714
|
-
|
|
715
|
-
##### 2️⃣ What Project Configuration Performs
|
|
716
|
-
|
|
717
|
-
The `/alfred:0-project` command automatically performs the following tasks:
|
|
718
|
-
|
|
719
|
-
**Project Metadata Setup**
|
|
720
|
-
|
|
721
|
-
- Input project name, description, and owner information
|
|
722
|
-
- Select development mode (personal or team)
|
|
723
|
-
- Set project locale and language preferences
|
|
724
|
-
|
|
725
|
-
**Development Configuration**
|
|
726
|
-
|
|
727
|
-
- Detect and configure programming language (Python, TypeScript, Go, etc.)
|
|
728
|
-
- Auto-detect development framework and tools
|
|
729
|
-
- Configure Git strategy (GitFlow, feature branch naming)
|
|
730
|
-
- Set branch naming conventions (e.g., `feature/SPEC-001`)
|
|
731
|
-
|
|
732
|
-
**Language and Internationalization**
|
|
733
|
-
|
|
734
|
-
- Configure Alfred response language (25+ languages supported: Korean, English, Japanese, Spanish, etc.)
|
|
735
|
-
- Set code comments and commit message language
|
|
736
|
-
- Configure generated documentation language
|
|
737
|
-
|
|
738
|
-
**MoAI-ADK Framework Setup**
|
|
739
|
-
|
|
740
|
-
- Create and initialize `.moai/` directory with configuration files
|
|
741
|
-
- Configure `.claude/` directory (agents, commands, skills, hooks)
|
|
742
|
-
- Create SPEC repository (`.moai/specs/`)
|
|
743
|
-
- Set up test directory structure
|
|
744
|
-
|
|
745
|
-
**Pipeline State Initialization**
|
|
746
|
-
|
|
747
|
-
- Set project pipeline state to "initialized"
|
|
748
|
-
- Activate Alfred task tracking system
|
|
749
|
-
- Prepare Git history and version tracking
|
|
750
|
-
|
|
751
|
-
##### 3️⃣ Project Configuration File Structure
|
|
752
|
-
|
|
753
|
-
Primary configuration file created after initialization:
|
|
754
|
-
|
|
755
|
-
**`.moai/config.json`** - Central project configuration file
|
|
756
|
-
|
|
757
|
-
```json
|
|
758
|
-
{
|
|
759
|
-
"project": {
|
|
760
|
-
"name": "my-awesome-project",
|
|
761
|
-
"description": "Project description",
|
|
762
|
-
"mode": "personal", // personal | team
|
|
763
|
-
"language": "python", // Detected programming language
|
|
764
|
-
"locale": "en", // Project default locale
|
|
765
|
-
"created_at": "2025-11-10 05:15:50",
|
|
766
|
-
"initialized": true,
|
|
767
|
-
"optimized": false,
|
|
768
|
-
"template_version": "0.23.0"
|
|
769
|
-
},
|
|
770
|
-
"language": {
|
|
771
|
-
"conversation_language": "en", // Alfred response language
|
|
772
|
-
"conversation_language_name": "English", // Multi-language dynamic system
|
|
773
|
-
"agent_prompt_language": "english", // Sub-agent internal language (fixed)
|
|
774
|
-
"agent_prompt_language_description": "Sub-agent internal prompt language (english=global standard, en=user language)"
|
|
775
|
-
},
|
|
776
|
-
"git_strategy": {
|
|
777
|
-
"personal": {
|
|
778
|
-
"auto_checkpoint": "event-driven",
|
|
779
|
-
"checkpoint_events": ["delete", "refactor", "merge", "script", "critical-file"],
|
|
780
|
-
"checkpoint_type": "local-branch",
|
|
781
|
-
"max_checkpoints": 10,
|
|
782
|
-
"cleanup_days": 7,
|
|
783
|
-
"push_to_remote": false,
|
|
784
|
-
"auto_commit": true,
|
|
785
|
-
"branch_prefix": "feature/SPEC-",
|
|
786
|
-
"develop_branch": "develop",
|
|
787
|
-
"main_branch": "main",
|
|
788
|
-
"prevent_branch_creation": false,
|
|
789
|
-
"work_on_main": false
|
|
790
|
-
},
|
|
791
|
-
"team": {
|
|
792
|
-
"auto_pr": true,
|
|
793
|
-
"develop_branch": "develop",
|
|
794
|
-
"draft_pr": true,
|
|
795
|
-
"feature_prefix": "feature/SPEC-",
|
|
796
|
-
"main_branch": "main",
|
|
797
|
-
"use_gitflow": true,
|
|
798
|
-
"default_pr_base": "develop",
|
|
799
|
-
"prevent_main_direct_merge": true
|
|
800
|
-
}
|
|
801
|
-
},
|
|
802
|
-
"constitution": {
|
|
803
|
-
"enforce_tdd": true, // TDD enforcement
|
|
804
|
-
"principles": {
|
|
805
|
-
"simplicity": {
|
|
806
|
-
"max_projects": 5,
|
|
807
|
-
"notes": "Default recommendation. Adjust in .moai/config.json or via SPEC/ADR with documented rationale based on project size."
|
|
808
|
-
}
|
|
809
|
-
},
|
|
810
|
-
"simplicity_threshold": 5,
|
|
811
|
-
"test_coverage_target": 85
|
|
812
|
-
},
|
|
813
|
-
"pipeline": {
|
|
814
|
-
"available_commands": ["/alfred:0-project", "/alfred:1-plan", "/alfred:2-run", "/alfred:3-sync"],
|
|
815
|
-
"current_stage": "initialized"
|
|
816
|
-
},
|
|
817
|
-
"hooks": {
|
|
818
|
-
"timeout_ms": 2000,
|
|
819
|
-
"graceful_degradation": true,
|
|
820
|
-
"notes": "Hook execution timeout (milliseconds). Set graceful_degradation to true to continue even if a hook fails. Optimized to 2 seconds for faster performance."
|
|
821
|
-
},
|
|
822
|
-
"session_end": {
|
|
823
|
-
"enabled": true,
|
|
824
|
-
"metrics": {"enabled": true, "save_location": ".moai/logs/sessions/"},
|
|
825
|
-
"work_state": {"enabled": true, "save_location": ".moai/memory/last-session-state.json"},
|
|
826
|
-
"cleanup": {"enabled": true, "temp_files": true, "cache_files": true, "patterns": [".moai/temp/*", ".moai/cache/*.tmp"]},
|
|
827
|
-
"warnings": {"uncommitted_changes": true},
|
|
828
|
-
"summary": {"enabled": true, "max_lines": 5},
|
|
829
|
-
"notes": "SessionEnd hook configuration. Executed when Claude Code session ends. Controls metrics saving, work state preservation, cleanup, warnings, and summary generation."
|
|
830
|
-
},
|
|
831
|
-
"auto_cleanup": {
|
|
832
|
-
"enabled": true,
|
|
833
|
-
"cleanup_days": 7,
|
|
834
|
-
"max_reports": 10,
|
|
835
|
-
"cleanup_targets": [".moai/reports/*.json", ".moai/reports/*.md", ".moai/cache/*", ".moai/temp/*"]
|
|
836
|
-
},
|
|
837
|
-
"daily_analysis": {
|
|
838
|
-
"enabled": true,
|
|
839
|
-
"analysis_time": "00:00",
|
|
840
|
-
"analyze_sessions": true,
|
|
841
|
-
"analyze_tools": true,
|
|
842
|
-
"analyze_errors": true,
|
|
843
|
-
"analyze_permissions": true,
|
|
844
|
-
"auto_optimize": false,
|
|
845
|
-
"report_location": ".moai/reports/daily-"
|
|
846
|
-
},
|
|
847
|
-
"report_generation": {
|
|
848
|
-
"enabled": true,
|
|
849
|
-
"auto_create": false,
|
|
850
|
-
"warn_user": true,
|
|
851
|
-
"user_choice": "Minimal",
|
|
852
|
-
"configured_at": "2025-11-10 05:15:50",
|
|
853
|
-
"allowed_locations": [".moai/docs/", ".moai/reports/", ".moai/analysis/", ".moai/specs/SPEC-*/"],
|
|
854
|
-
"notes": "Control automatic report generation. 'enabled': turn on/off, 'auto_create': full (true) vs minimal (false) reports. Helps reduce token usage."
|
|
855
|
-
},
|
|
856
|
-
"github": {
|
|
857
|
-
"templates": {
|
|
858
|
-
"enable_trust_5": true,
|
|
859
|
-
"enable_alfred_commands": true,
|
|
860
|
-
"spec_directory": ".moai/specs",
|
|
861
|
-
"docs_directory": ".moai/docs",
|
|
862
|
-
"test_directory": "tests",
|
|
863
|
-
"notes": "Configure GitHub templates for project customization. When enable_* flags are false, corresponding MoAI-specific sections are omitted from templates."
|
|
864
|
-
},
|
|
865
|
-
"auto_delete_branches": null,
|
|
866
|
-
"auto_delete_branches_checked": false,
|
|
867
|
-
"auto_delete_branches_rationale": "Not configured",
|
|
868
|
-
"spec_git_workflow": "per_spec",
|
|
869
|
-
"spec_git_workflow_configured": false,
|
|
870
|
-
"spec_git_workflow_rationale": "Ask per SPEC (flexible, user controls each workflow)",
|
|
871
|
-
"notes_new_fields": "auto_delete_branches: whether to auto-delete feature branches after merge. spec_git_workflow: 'feature_branch' (auto), 'develop_direct' (direct), 'per_spec' (ask per SPEC)"
|
|
872
|
-
}
|
|
873
|
-
}
|
|
874
|
-
```
|
|
875
|
-
|
|
876
|
-
### 🤖 /alfred:0-project Expert Delegation System (v0.23.0)
|
|
877
|
-
|
|
878
|
-
The `/alfred:0-project` command implements a **4-stage expert delegation system** that automatically assigns specialized expert agents for each execution mode.
|
|
879
|
-
|
|
880
|
-
#### Expert Assignment by Execution Mode
|
|
881
|
-
|
|
882
|
-
| Execution Mode | Expert Agent | Responsibility Area | Performance Improvement |
|
|
883
|
-
|----------------|--------------|---------------------|-------------------------|
|
|
884
|
-
| **INITIALIZATION** | project-manager | New project initialization | 60% reduction in user interactions |
|
|
885
|
-
| **AUTO-DETECT** | project-manager | Existing project optimization | 95%+ accuracy |
|
|
886
|
-
| **SETTINGS** | moai-project-config-manager | Settings management & validation | Real-time settings sync |
|
|
887
|
-
| **UPDATE** | moai-project-template-optimizer | Template updates | Automated migration |
|
|
888
|
-
|
|
889
|
-
#### How the Expert Delegation System Works
|
|
890
|
-
|
|
891
|
-
**1. Automatic Mode Detection**
|
|
892
|
-
|
|
893
|
-
```
|
|
894
|
-
User execution → Context analysis → Mode determination → Expert assignment → Execution
|
|
895
|
-
```
|
|
896
|
-
|
|
897
|
-
- **Context Analysis**: `.moai/` directory existence, configuration file completeness
|
|
898
|
-
- **Mode Determination**: Automatically selects from INITIALIZATION, AUTO-DETECT, SETTINGS, UPDATE
|
|
899
|
-
- **Expert Assignment**: Activates the agent optimized for that mode
|
|
900
|
-
- **Execution**: Assigned expert performs detailed tasks
|
|
901
|
-
|
|
902
|
-
**2. Detailed Expert Roles**
|
|
903
|
-
|
|
904
|
-
**project-manager (Initialization/Detection Expert)**
|
|
905
|
-
- New project metadata setup
|
|
906
|
-
- Existing project state analysis and optimization
|
|
907
|
-
- Multi-language system construction and language settings
|
|
908
|
-
- Git strategy configuration (personal/team modes)
|
|
909
|
-
|
|
910
|
-
**moai-project-config-manager (Settings Management Expert)**
|
|
911
|
-
- `.moai/config.json` validation and modification
|
|
912
|
-
- Configuration file structure management
|
|
913
|
-
- Real-time settings synchronization
|
|
914
|
-
- Settings version management and migration
|
|
915
|
-
|
|
916
|
-
**moai-project-template-optimizer (Template Optimization Expert)**
|
|
917
|
-
- Package template updates
|
|
918
|
-
- Synchronization between local project and templates
|
|
919
|
-
- Compatibility issue resolution
|
|
920
|
-
- Performance optimization
|
|
921
|
-
|
|
922
|
-
**3. Performance Metrics**
|
|
923
|
-
|
|
924
|
-
| Metric | Before | After | Improvement |
|
|
925
|
-
|--------|--------|-------|-------------|
|
|
926
|
-
| **User Interactions** | 15 | 6 | 60% reduction |
|
|
927
|
-
| **Accuracy** | 80% | 95%+ | 15%+ improvement |
|
|
928
|
-
| **Execution Time** | 120s | 45s | 62.5% reduction |
|
|
929
|
-
| **User Satisfaction** | 75% | 92% | 17% improvement |
|
|
930
|
-
|
|
931
|
-
#### Multi-Language Dynamic System Support
|
|
932
|
-
|
|
933
|
-
`/alfred:0-project` provides **perfect support for 25+ languages**:
|
|
934
|
-
|
|
935
|
-
```json
|
|
936
|
-
"language": {
|
|
937
|
-
"conversation_language": "en", // Alfred response language
|
|
938
|
-
"conversation_language_name": "English", // Multi-language dynamic system
|
|
939
|
-
"agent_prompt_language": "english", // Internal system language (fixed)
|
|
940
|
-
"agent_prompt_language_description": "Sub-agent internal prompt language (english=global standard, en=user language)"
|
|
941
|
-
}
|
|
942
|
-
```
|
|
943
|
-
|
|
944
|
-
**Multi-Language Dynamic System Features:**
|
|
945
|
-
- **Layer 1 (User-facing)**: Uses `conversation_language` (en, ko, ja, es, etc.)
|
|
946
|
-
- **Layer 2 (Internal system)**: English fixed (maintains global standard)
|
|
947
|
-
- **Auto-conversion**: User input → internal processing → user language response
|
|
948
|
-
- **Consistency**: All output materials unified in user language
|
|
949
|
-
|
|
950
|
-
#### Automated Settings Validation System
|
|
951
|
-
|
|
952
|
-
**SessionStart Hook Automatic Validation**
|
|
953
|
-
|
|
954
|
-
```bash
|
|
955
|
-
📋 Configuration Health Check:
|
|
956
|
-
✅ Configuration complete
|
|
957
|
-
✅ Recent setup: 2 days ago
|
|
958
|
-
✅ Version match: 0.23.0
|
|
959
|
-
✅ Multi-language system: Active
|
|
960
|
-
✅ Expert delegation: Ready
|
|
961
|
-
|
|
962
|
-
All systems are healthy!
|
|
963
|
-
```
|
|
964
|
-
|
|
965
|
-
**Validation Items:**
|
|
966
|
-
- Configuration file existence
|
|
967
|
-
- Required section completeness (project, language, git_strategy, etc.)
|
|
968
|
-
- Configuration file update time (if 30+ days old)
|
|
969
|
-
- Version consistency check (installed moai-adk vs config version)
|
|
970
|
-
- Multi-language system activation status
|
|
971
|
-
- Expert delegation system readiness status
|
|
972
|
-
|
|
973
|
-
#### Real-World Application Examples
|
|
974
|
-
|
|
975
|
-
**New Project Initialization**
|
|
976
|
-
```
|
|
977
|
-
User: moai-adk init my-project
|
|
978
|
-
↓
|
|
979
|
-
/alfred:0-project execution
|
|
980
|
-
↓
|
|
981
|
-
INITIALIZATION mode detected → project-manager assigned
|
|
982
|
-
↓
|
|
983
|
-
Multi-language settings, Git strategy, TDD policy auto-built
|
|
984
|
-
↓
|
|
985
|
-
Complete: Project fully initialized
|
|
986
|
-
```
|
|
987
|
-
|
|
988
|
-
**Existing Project Upgrade**
|
|
989
|
-
```
|
|
990
|
-
User: /alfred:0-project
|
|
991
|
-
↓
|
|
992
|
-
AUTO-DETECT mode detected → project-manager assigned
|
|
993
|
-
↓
|
|
994
|
-
Existing settings analysis → optimization suggestions → applied
|
|
995
|
-
↓
|
|
996
|
-
Complete: Performance improved by 62.5%
|
|
997
|
-
```
|
|
998
|
-
|
|
999
|
-
**`.claude/statusline-config.yaml`** - Claude Code status bar configuration
|
|
1000
|
-
|
|
1001
|
-
- Real-time project status display
|
|
1002
|
-
- Model, branch, and Git changes display
|
|
1003
|
-
- New version notifications
|
|
1004
|
-
|
|
1005
|
-
##### 4️⃣ Configuration Customization
|
|
1006
|
-
|
|
1007
|
-
After project initialization, you can customize settings:
|
|
1008
|
-
|
|
1009
|
-
**Change Language**
|
|
1010
|
-
|
|
1011
|
-
```bash
|
|
1012
|
-
# Edit .moai/config.json
|
|
1013
|
-
# Change language.conversation_language to desired language
|
|
1014
|
-
# Example: "en" → "ko" (English → Korean)
|
|
1015
|
-
```
|
|
1016
|
-
|
|
1017
|
-
**Change Git Strategy**
|
|
1018
|
-
|
|
1019
|
-
```bash
|
|
1020
|
-
# Edit .moai/config.json
|
|
1021
|
-
# Modify git_strategy section
|
|
1022
|
-
# - personal: Individual project (local branches, auto-commit)
|
|
1023
|
-
# - team: Team project (GitFlow, auto-PR)
|
|
1024
|
-
```
|
|
1025
|
-
|
|
1026
|
-
**Set Test Coverage Goal**
|
|
1027
|
-
|
|
1028
|
-
```bash
|
|
1029
|
-
# Edit .moai/config.json
|
|
1030
|
-
# constitution.test_coverage_target: 85 (default)
|
|
1031
|
-
# Adjust based on your project requirements
|
|
1032
|
-
```
|
|
1033
|
-
|
|
1034
|
-
##### 5️⃣ Update and Reconfiguration
|
|
1035
|
-
|
|
1036
|
-
**After Minor Upgrade - Verify Settings**
|
|
1037
|
-
|
|
1038
|
-
```bash
|
|
1039
|
-
# Check new version features
|
|
1040
|
-
moai-adk --version
|
|
1041
|
-
|
|
1042
|
-
# Optionally re-optimize settings (maintains existing config)
|
|
1043
|
-
/alfred:0-project
|
|
1044
|
-
```
|
|
1045
|
-
|
|
1046
|
-
**After Major Version Upgrade - Configuration Migration**
|
|
1047
|
-
|
|
1048
|
-
```bash
|
|
1049
|
-
# 1. Install new version
|
|
1050
|
-
uv tool upgrade moai-adk
|
|
1051
|
-
|
|
1052
|
-
# 2. Migrate project configuration
|
|
1053
|
-
/alfred:0-project
|
|
1054
|
-
|
|
1055
|
-
# 3. Review changes
|
|
1056
|
-
git diff .moai/config.json
|
|
1057
|
-
|
|
1058
|
-
# 4. Commit and proceed
|
|
1059
|
-
git add .moai/config.json
|
|
1060
|
-
git commit -m "Upgrade MoAI-ADK configuration"
|
|
1061
|
-
```
|
|
1062
|
-
|
|
1063
|
-
**Reset Configuration (Reconfigure from Scratch)**
|
|
1064
|
-
|
|
1065
|
-
```bash
|
|
1066
|
-
# Warning: Backup existing config before running
|
|
1067
|
-
cp .moai/config.json .moai/config.json.backup
|
|
1068
|
-
|
|
1069
|
-
# Reset configuration
|
|
1070
|
-
/alfred:0-project --reset
|
|
1071
|
-
```
|
|
1072
|
-
|
|
1073
|
-
##### 6️⃣ Automatic Configuration Health Check (SessionStart Hook)
|
|
1074
|
-
|
|
1075
|
-
Every time a Claude Code session starts, MoAI-ADK **automatically** verifies project configuration status and offers interactive configuration options if needed:
|
|
1076
|
-
|
|
1077
|
-
**Auto Health Check Items**
|
|
1078
|
-
|
|
1079
|
-
| Item | What It Checks | When Issues Detected |
|
|
1080
|
-
| ---------------------- | --------------------------------------------------------------- | ---------------------------------------------- |
|
|
1081
|
-
| Configuration Exists | Verify `.moai/config.json` file exists | If missing: must run `/alfred:0-project` |
|
|
1082
|
-
| Configuration Complete | Check required sections (project, language, git_strategy, etc.) | If incomplete: must re-run `/alfred:0-project` |
|
|
1083
|
-
| Configuration Age | Check file modification time (30+ days detected) | If outdated: update recommended |
|
|
1084
|
-
| Version Match | Compare installed moai-adk version with config version | If mismatch: must re-run `/alfred:0-project` |
|
|
1085
|
-
|
|
1086
|
-
**SessionStart Hook User Interaction**
|
|
1087
|
-
|
|
1088
|
-
When configuration issues are detected, you're prompted with interactive choices:
|
|
1089
|
-
|
|
1090
|
-
```
|
|
1091
|
-
📋 Configuration Health Check:
|
|
1092
|
-
❌ Project configuration missing
|
|
1093
|
-
⚠️ Required configuration sections incomplete
|
|
1094
|
-
|
|
1095
|
-
Configuration issues detected. Select an action to proceed:
|
|
1096
|
-
|
|
1097
|
-
1️⃣ Initialize Project
|
|
1098
|
-
→ Run /alfred:0-project to initialize new project configuration
|
|
1099
|
-
|
|
1100
|
-
2️⃣ Update Settings
|
|
1101
|
-
→ Run /alfred:0-project to update/verify existing configuration
|
|
1102
|
-
|
|
1103
|
-
3️⃣ Skip for Now
|
|
1104
|
-
→ Continue without configuration update (not recommended)
|
|
1105
|
-
```
|
|
1106
|
-
|
|
1107
|
-
Or when configuration is healthy:
|
|
1108
|
-
|
|
1109
|
-
```
|
|
1110
|
-
📋 Configuration Health Check:
|
|
1111
|
-
✅ Configuration complete
|
|
1112
|
-
✅ Recent setup: 2 days ago
|
|
1113
|
-
✅ Version match: 0.21.1
|
|
1114
|
-
|
|
1115
|
-
All settings are healthy!
|
|
1116
|
-
```
|
|
1117
|
-
|
|
1118
|
-
**Action Choices Explained**
|
|
1119
|
-
|
|
1120
|
-
| Choice | Purpose | When to Use |
|
|
1121
|
-
| ---------------------- | ------------------------------------ | -------------------------------------------------------------------------- |
|
|
1122
|
-
| **Initialize Project** | Create new project configuration | When starting a new project |
|
|
1123
|
-
| **Update Settings** | Update/verify existing configuration | After version upgrade, configuration changes, 30+ days since setup |
|
|
1124
|
-
| **Skip for Now** | Proceed without configuration update | When making configuration changes, need to continue work (not recommended) |
|
|
1125
|
-
|
|
1126
|
-
**Benefits of Automatic Configuration Management**
|
|
1127
|
-
|
|
1128
|
-
- ✅ **Interactive Choices**: Intuitive selection through AskUserQuestion
|
|
1129
|
-
- ✅ **No Manual Verification**: Automatically checked every session
|
|
1130
|
-
- ✅ **Always Synchronized**: Configuration stays up-to-date
|
|
1131
|
-
- ✅ **Version Compatibility**: Automatic version mismatch detection
|
|
1132
|
-
- ✅ **Reliability**: Prevents Alfred command failures from missing configuration
|
|
1133
|
-
|
|
1134
|
-
**⚠️ Important Notes**
|
|
1135
|
-
|
|
1136
|
-
Before starting development, you **MUST** run `/alfred:0-project`. This command:
|
|
1137
|
-
|
|
1138
|
-
- ✅ Creates project metadata and structure
|
|
1139
|
-
- ✅ Sets language, Git, and TDD policies
|
|
1140
|
-
- ✅ Initializes Alfred task tracking system
|
|
1141
|
-
- ✅ Configures pipeline state (updated by `/alfred:1-plan`, `/alfred:2-run`, etc.)
|
|
1142
|
-
- ✅ Sets up status bar and monitoring systems
|
|
1143
|
-
|
|
1144
|
-
If you skip configuration:
|
|
1145
|
-
|
|
1146
|
-
- ❌ Alfred commands (`/alfred:1-plan`, `/alfred:2-run`, etc.) won't work
|
|
1147
|
-
- ❌ Pipeline state tracking unavailable
|
|
1148
|
-
- ❌ Automated TDD workflow unavailable
|
|
1149
|
-
|
|
1150
|
-
### 5-Minute Quick Start
|
|
1151
|
-
|
|
1152
|
-
```bash
|
|
1153
|
-
# 0. Create and initialize a new project
|
|
1154
|
-
moai-adk init my-awesome-project
|
|
1155
|
-
cd my-awesome-project
|
|
1156
|
-
|
|
1157
|
-
# 1. Optimize project configuration
|
|
1158
|
-
/alfred:0-project
|
|
1159
|
-
|
|
1160
|
-
# 2. Create a SPEC for a feature
|
|
1161
|
-
/alfred:1-plan "User authentication with JWT"
|
|
1162
|
-
|
|
1163
|
-
# 3. Implement with automated TDD
|
|
1164
|
-
/alfred:2-run AUTH-001
|
|
1165
|
-
|
|
1166
|
-
# 4. Sync documentation automatically
|
|
1167
|
-
/alfred:3-sync
|
|
1168
|
-
```
|
|
1169
|
-
|
|
1170
|
-
That's it! You now have:
|
|
1171
|
-
|
|
1172
|
-
- ✅ Clear SPEC document
|
|
1173
|
-
- ✅ Comprehensive tests
|
|
1174
|
-
- ✅ Implementation code
|
|
1175
|
-
- ✅ Updated documentation
|
|
1176
|
-
|
|
1177
|
-
### Next Steps
|
|
1178
|
-
|
|
1179
|
-
- 📖 **Learn the workflow**: [4-Step Development Process](#how-alfred-processes-your-instructions)
|
|
1180
|
-
- 🏗️ **Understand architecture**: [Core Architecture](#-core-architecture)
|
|
1181
|
-
- 💡 **See examples**: [Example Projects](https://adk.mo.ai.kr/examples)
|
|
1182
|
-
|
|
1183
|
-
---
|
|
1184
|
-
|
|
1185
|
-
## 🧠 How Alfred Processes Your Instructions - Detailed Workflow Analysis
|
|
1186
|
-
|
|
1187
|
-
Alfred orchestrates the complete development lifecycle through a systematic 4-step workflow. Here's how Alfred understands, plans, executes, and validates your requests:
|
|
1188
|
-
|
|
1189
|
-
### Step 1: Intent Understanding
|
|
1190
|
-
|
|
1191
|
-
**Goal**: Clarify user intent before any action
|
|
1192
|
-
|
|
1193
|
-
**How it works:**
|
|
1194
|
-
|
|
1195
|
-
- Alfred evaluates request clarity:
|
|
1196
|
-
- **HIGH clarity**: Technical stack, requirements, scope all specified → Skip to Step 2
|
|
1197
|
-
- **MEDIUM/LOW clarity**: Multiple interpretations possible → Alfred uses `AskUserQuestion` to clarify
|
|
1198
|
-
|
|
1199
|
-
**When Alfred asks clarifying questions:**
|
|
1200
|
-
|
|
1201
|
-
- Ambiguous requests (multiple interpretations)
|
|
1202
|
-
- Architecture decisions needed
|
|
1203
|
-
- Technology stack selections required
|
|
1204
|
-
- Business/UX decisions involved
|
|
1205
|
-
|
|
1206
|
-
**Example:**
|
|
1207
|
-
|
|
1208
|
-
```
|
|
1209
|
-
User: "Add authentication to the system"
|
|
1210
|
-
|
|
1211
|
-
Alfred's Analysis:
|
|
1212
|
-
- Is it JWT, OAuth, or session-based? (UNCLEAR)
|
|
1213
|
-
- Which authentication flow? (UNCLEAR)
|
|
1214
|
-
- Multi-factor authentication needed? (UNCLEAR)
|
|
1215
|
-
|
|
1216
|
-
Action: Ask clarifying questions via AskUserQuestion
|
|
1217
|
-
```
|
|
1218
|
-
|
|
1219
|
-
### Step 2: Plan Creation
|
|
1220
|
-
|
|
1221
|
-
**Goal**: Create a pre-approved execution strategy
|
|
1222
|
-
|
|
1223
|
-
**Process:**
|
|
1224
|
-
|
|
1225
|
-
1. **Mandatory Plan Agent Invocation**: Alfred calls the Plan agent to:
|
|
1226
|
-
|
|
1227
|
-
- Decompose tasks into structured steps
|
|
1228
|
-
- Identify dependencies between tasks
|
|
1229
|
-
- Determine single vs parallel execution opportunities
|
|
1230
|
-
- Specify exactly which files will be created/modified/deleted
|
|
1231
|
-
- Estimate work scope and expected time
|
|
1232
|
-
|
|
1233
|
-
2. **User Plan Approval**: Alfred presents the plan via AskUserQuestion:
|
|
1234
|
-
|
|
1235
|
-
- Share the complete file change list in advance
|
|
1236
|
-
- Explain implementation approach clearly
|
|
1237
|
-
- Disclose risk factors in advance
|
|
1238
|
-
|
|
1239
|
-
3. **TodoWrite Initialization**: Create task list based on approved plan:
|
|
1240
|
-
- List all task items explicitly
|
|
1241
|
-
- Define clear completion criteria for each task
|
|
1242
|
-
|
|
1243
|
-
**Example Plan for Authentication SPEC:**
|
|
1244
|
-
|
|
1245
|
-
```markdown
|
|
1246
|
-
## Plan for SPEC-AUTH-001
|
|
1247
|
-
|
|
1248
|
-
### Files to be Created
|
|
1249
|
-
|
|
1250
|
-
- .moai/specs/SPEC-AUTH-001/spec.md
|
|
1251
|
-
- .moai/specs/SPEC-AUTH-001/plan.md
|
|
1252
|
-
- .moai/specs/SPEC-AUTH-001/acceptance.md
|
|
1253
|
-
|
|
1254
|
-
### Implementation Phases
|
|
1255
|
-
|
|
1256
|
-
1. RED: Write failing authentication tests
|
|
1257
|
-
2. GREEN: Implement JWT token service
|
|
1258
|
-
3. REFACTOR: Improve error handling and security
|
|
1259
|
-
4. SYNC: Update documentation
|
|
1260
|
-
|
|
1261
|
-
### Risks
|
|
1262
|
-
|
|
1263
|
-
- Third-party service integration latency
|
|
1264
|
-
- Token storage security considerations
|
|
1265
|
-
```
|
|
1266
|
-
|
|
1267
|
-
### Step 3: Task Execution (Strict TDD Compliance)
|
|
1268
|
-
|
|
1269
|
-
**Goal**: Execute tasks following TDD principles with transparent progress tracking
|
|
1270
|
-
|
|
1271
|
-
**TDD Execution Cycle:**
|
|
1272
|
-
|
|
1273
|
-
**1. RED Phase** - Write failing tests first
|
|
1274
|
-
|
|
1275
|
-
- Write test code ONLY
|
|
1276
|
-
- Tests should fail (intentionally)
|
|
1277
|
-
- No implementation code changes
|
|
1278
|
-
- Track progress: `TodoWrite: "RED: Write failing tests" → in_progress`
|
|
1279
|
-
|
|
1280
|
-
**2. GREEN Phase** - Minimal code to make tests pass
|
|
1281
|
-
|
|
1282
|
-
- Add ONLY minimal code necessary for test passing
|
|
1283
|
-
- No over-engineering
|
|
1284
|
-
- Focus on making tests pass
|
|
1285
|
-
- Track progress: `TodoWrite: "GREEN: Minimal implementation" → in_progress`
|
|
1286
|
-
|
|
1287
|
-
**3. REFACTOR Phase** - Improve code quality
|
|
1288
|
-
|
|
1289
|
-
- Improve design while maintaining test passing
|
|
1290
|
-
- Remove code duplication
|
|
1291
|
-
- Enhance readability and maintainability
|
|
1292
|
-
- Track progress: `TodoWrite: "REFACTOR: Improve code quality" → in_progress`
|
|
1293
|
-
|
|
1294
|
-
**TodoWrite Rules:**
|
|
1295
|
-
|
|
1296
|
-
- Each task: `content` (imperative), `activeForm` (present continuous), `status` (pending/in_progress/completed)
|
|
1297
|
-
- **Exactly ONE task in_progress** at any time
|
|
1298
|
-
- **Real-time Update Obligation**: Immediate status change on task start/completion
|
|
1299
|
-
- **Strict Completion Criteria**: Mark completed only when tests pass, implementation complete, and error-free
|
|
1300
|
-
|
|
1301
|
-
**Forbidden during execution:**
|
|
1302
|
-
|
|
1303
|
-
- ❌ Implementation code changes during RED phase
|
|
1304
|
-
- ❌ Over-engineering during GREEN phase
|
|
1305
|
-
- ❌ Task execution without TodoWrite tracking
|
|
1306
|
-
- ❌ Code generation without tests
|
|
1307
|
-
|
|
1308
|
-
**Real-World Example - Agent Model Directive Change:**
|
|
1309
|
-
|
|
1310
|
-
_Context:_ User requested changing all agent model directives from `sonnet` to `inherit` to enable dynamic model selection
|
|
1311
|
-
|
|
1312
|
-
**Plan Approval:**
|
|
1313
|
-
|
|
1314
|
-
- 26 files to change (13 local + 13 template files)
|
|
1315
|
-
- Files clearly identified: `implementation-planner.md`, `spec-builder.md`, etc.
|
|
1316
|
-
- Risk: Merge conflicts on develop branch → Mitigated with `-X theirs` strategy
|
|
1317
|
-
|
|
1318
|
-
**RED Phase:**
|
|
1319
|
-
|
|
1320
|
-
- Write tests validating all agent files have `model: inherit`
|
|
1321
|
-
- Verify template files match local files
|
|
1322
|
-
|
|
1323
|
-
**GREEN Phase:**
|
|
1324
|
-
|
|
1325
|
-
- Update 13 local agent files: `model: sonnet` → `model: inherit`
|
|
1326
|
-
- Update 13 template agent files using Python script for portability
|
|
1327
|
-
- Verify no other model directives changed
|
|
1328
|
-
|
|
1329
|
-
**REFACTOR Phase:**
|
|
1330
|
-
|
|
1331
|
-
- Review agent file consistency
|
|
1332
|
-
- Ensure no orphaned changes
|
|
1333
|
-
- Validate pre-commit hook passes
|
|
1334
|
-
|
|
1335
|
-
**Result:**
|
|
1336
|
-
|
|
1337
|
-
- All 26 files successfully updated
|
|
1338
|
-
- Feature branch merged to develop with clean history
|
|
1339
|
-
|
|
1340
|
-
### Step 4: Report & Commit
|
|
1341
|
-
|
|
1342
|
-
**Goal**: Document work and create git history on demand
|
|
1343
|
-
|
|
1344
|
-
**Configuration Compliance First:**
|
|
1345
|
-
|
|
1346
|
-
- Check `.moai/config.json` `report_generation` settings
|
|
1347
|
-
- If `enabled: false` → Provide status reports only, NO file generation
|
|
1348
|
-
- If `enabled: true` AND user explicitly requests → Generate documentation files
|
|
1349
|
-
|
|
1350
|
-
**Git Commit:**
|
|
1351
|
-
|
|
1352
|
-
- Call git-manager for all Git operations
|
|
1353
|
-
- Follow TDD commit cycle: RED → GREEN → REFACTOR
|
|
1354
|
-
- Each commit message captures the workflow phase and purpose
|
|
1355
|
-
|
|
1356
|
-
**Example Commit Sequence:**
|
|
1357
|
-
|
|
1358
|
-
```bash
|
|
1359
|
-
# RED: Write failing tests
|
|
1360
|
-
commit 1: "test: Add authentication integration tests"
|
|
1361
|
-
|
|
1362
|
-
# GREEN: Minimal implementation
|
|
1363
|
-
commit 2: "feat: Implement JWT token service (minimal)"
|
|
1364
|
-
|
|
1365
|
-
# REFACTOR: Improve quality
|
|
1366
|
-
commit 3: "refactor: Enhance JWT error handling and security"
|
|
1367
|
-
|
|
1368
|
-
# Merge to develop
|
|
1369
|
-
commit 4: "merge: Merge SPEC-AUTH-001 to develop"
|
|
1370
|
-
```
|
|
1371
|
-
|
|
1372
|
-
**Project Cleanup:**
|
|
1373
|
-
|
|
1374
|
-
- Delete unnecessary temporary files
|
|
1375
|
-
- Remove excessive backups
|
|
1376
|
-
- Keep workspace organized and clean
|
|
1377
|
-
|
|
1378
|
-
---
|
|
1379
|
-
|
|
1380
|
-
### Visual Workflow Overview
|
|
1381
|
-
|
|
1382
|
-
```mermaid
|
|
1383
|
-
flowchart TD
|
|
1384
|
-
Start["👤 USER REQUEST<br/>Add JWT authentication<br/>to the system"]
|
|
1385
|
-
|
|
1386
|
-
Step1["🧠 STEP 1: UNDERSTAND<br/>Intent Clarity?"]
|
|
1387
|
-
|
|
1388
|
-
HighClarity{"Request<br/>Clarity?"}
|
|
1389
|
-
|
|
1390
|
-
LowClarity["❓ Ask Clarifying Qs<br/>AskUserQuestion"]
|
|
1391
|
-
UserRespond["💬 User Responds"]
|
|
1392
|
-
|
|
1393
|
-
Step2["📋 STEP 2: PLAN<br/>• Call Plan Agent<br/>• Get User Approval<br/>• Init TodoWrite"]
|
|
1394
|
-
|
|
1395
|
-
UserApprove["✅ User Approves Plan"]
|
|
1396
|
-
|
|
1397
|
-
Step3["⚙️ STEP 3: EXECUTE<br/>RED → GREEN → REFACTOR<br/>Real-time TodoWrite<br/>Complete Tests"]
|
|
1398
|
-
|
|
1399
|
-
TasksComplete["✓ All Tasks Done"]
|
|
1400
|
-
|
|
1401
|
-
Step4["📝 STEP 4: REPORT<br/>• Check Config<br/>• Git Commit<br/>• Cleanup Files"]
|
|
1402
|
-
|
|
1403
|
-
Done["✨ COMPLETE"]
|
|
1404
|
-
|
|
1405
|
-
Start --> Step1
|
|
1406
|
-
Step1 --> HighClarity
|
|
1407
|
-
|
|
1408
|
-
HighClarity -->|HIGH| Step2
|
|
1409
|
-
HighClarity -->|MEDIUM/LOW| LowClarity
|
|
1410
|
-
|
|
1411
|
-
LowClarity --> UserRespond
|
|
1412
|
-
UserRespond --> Step2
|
|
1413
|
-
|
|
1414
|
-
Step2 --> UserApprove
|
|
1415
|
-
UserApprove --> Step3
|
|
1416
|
-
|
|
1417
|
-
Step3 --> TasksComplete
|
|
1418
|
-
TasksComplete --> Step4
|
|
1419
|
-
|
|
1420
|
-
Step4 --> Done
|
|
1421
|
-
|
|
1422
|
-
classDef nodeStyle stroke:#333,stroke-width:2px,color:#000
|
|
1423
|
-
|
|
1424
|
-
class Start,Step1,Step2,Step3,Step4,HighClarity,LowClarity,UserRespond,UserApprove,TasksComplete,Done nodeStyle
|
|
1425
|
-
```
|
|
1426
|
-
|
|
1427
|
-
---
|
|
1428
|
-
|
|
1429
|
-
### Key Decision Points
|
|
1430
|
-
|
|
1431
|
-
| Scenario | Alfred's Action | Outcome |
|
|
1432
|
-
| -------------------------- | ------------------------------- | --------------------- |
|
|
1433
|
-
| Clear, specific request | Skip to Step 2 (Plan) | Fast execution |
|
|
1434
|
-
| Ambiguous request | AskUserQuestion in Step 1 | Correct understanding |
|
|
1435
|
-
| Large multi-file changes | Plan Agent identifies all files | Complete visibility |
|
|
1436
|
-
| Test failures during GREEN | Continue REFACTOR → Investigate | Quality maintained |
|
|
1437
|
-
| Configuration conflicts | Check `.moai/config.json` first | Respect user settings |
|
|
1438
|
-
|
|
1439
|
-
---
|
|
1440
|
-
|
|
1441
|
-
### Quality Validation
|
|
1442
|
-
|
|
1443
|
-
After all 4 steps complete, Alfred validates:
|
|
1444
|
-
|
|
1445
|
-
- ✅ **Intent Understanding**: User intent clearly defined and approved?
|
|
1446
|
-
- ✅ **Plan Creation**: Plan Agent plan created and user approved?
|
|
1447
|
-
- ✅ **TDD Compliance**: RED-GREEN-REFACTOR cycle strictly followed?
|
|
1448
|
-
- ✅ **Real-time Tracking**: All tasks transparently tracked with TodoWrite?
|
|
1449
|
-
- ✅ **Configuration Compliance**: `.moai/config.json` settings strictly followed?
|
|
1450
|
-
- ✅ **Quality Assurance**: All tests pass and code quality guaranteed?
|
|
1451
|
-
- ✅ **Cleanup Complete**: Unnecessary files cleaned and project in clean state?
|
|
1452
|
-
|
|
1453
|
-
---
|
|
1454
|
-
|
|
1455
|
-
## 🎭 Alfred's Expert Delegation System Analysis (v0.23.0)
|
|
1456
|
-
|
|
1457
|
-
### Current Delegation Capabilities
|
|
1458
|
-
|
|
1459
|
-
Alfred implements a **sophisticated multi-layer delegation system** that automatically assigns tasks to specialized expert agents based on user input content and execution context.
|
|
1460
|
-
|
|
1461
|
-
#### ✅ What Currently Works (Fully Implemented)
|
|
1462
|
-
|
|
1463
|
-
**1. Command-Based Delegation (Explicit)**
|
|
1464
|
-
```bash
|
|
1465
|
-
/alfred:1-plan → spec-builder agent activated
|
|
1466
|
-
/alfred:2-run → tdd-implementer + domain experts activated
|
|
1467
|
-
/alfred:3-sync → doc-syncer + validation agents activated
|
|
1468
|
-
/alfred:0-project → 4 expert agents based on mode
|
|
1469
|
-
```
|
|
1470
|
-
|
|
1471
|
-
**2. Skill-Based Delegation (Context-Aware)**
|
|
1472
|
-
```javascript
|
|
1473
|
-
// Alfred analyzes user input and automatically loads relevant Skills
|
|
1474
|
-
User: "Database performance optimization"
|
|
1475
|
-
→ Alfred loads: moai-domain-database + moai-essentials-perf + moai-essentials-debug
|
|
1476
|
-
|
|
1477
|
-
User: "React component architecture"
|
|
1478
|
-
→ Alfred loads: moai-domain-frontend + moai-component-designer + moai-lang-typescript
|
|
1479
|
-
```
|
|
1480
|
-
|
|
1481
|
-
**3. Agent Selection Intelligence (Built-in)**
|
|
1482
|
-
Alfred uses **19 specialized agents** with automatic selection logic:
|
|
1483
|
-
- **Task type analysis** → Domain expert assignment
|
|
1484
|
-
- **Complexity assessment** → Senior vs junior agent delegation
|
|
1485
|
-
- **Parallel execution** → Multiple agents for concurrent tasks
|
|
1486
|
-
- **Research integration** → Research-capable agents for complex problems
|
|
1487
|
-
|
|
1488
|
-
**4. Multi-Language System Support**
|
|
1489
|
-
```json
|
|
1490
|
-
{
|
|
1491
|
-
"conversation_language": "ko", // User-facing content
|
|
1492
|
-
"agent_prompt_language": "english" // Internal processing
|
|
1493
|
-
}
|
|
1494
|
-
```
|
|
1495
|
-
Alfred automatically:
|
|
1496
|
-
- Detects user intent in Korean/English/25+ languages
|
|
1497
|
-
- Processes internally using standardized English
|
|
1498
|
-
- Responds in user's preferred language
|
|
1499
|
-
- Delegates to agents with proper language context
|
|
1500
|
-
|
|
1501
|
-
#### 🔄 General Content Delegation (How It Works)
|
|
1502
|
-
|
|
1503
|
-
**Current Implementation:**
|
|
1504
|
-
```javascript
|
|
1505
|
-
// User inputs general request (no explicit command)
|
|
1506
|
-
User: "사용자 인증 시스템을 개선하고 싶어"
|
|
1507
|
-
|
|
1508
|
-
Alfred's Analysis Pipeline:
|
|
1509
|
-
1. Intent Classification → "Authentication improvement"
|
|
1510
|
-
2. Domain Detection → "Security + Backend + Database"
|
|
1511
|
-
3. Complexity Analysis → "Multi-expert coordination needed"
|
|
1512
|
-
4. Agent Selection → [security-expert, backend-expert, database-expert]
|
|
1513
|
-
5. Delegation → Parallel task distribution
|
|
1514
|
-
```
|
|
1515
|
-
|
|
1516
|
-
**Automatic Expert Assignment Logic:**
|
|
1517
|
-
```python
|
|
1518
|
-
def delegate_to_experts(user_input):
|
|
1519
|
-
# Step 1: Analyze content domain
|
|
1520
|
-
domains = analyze_domains(user_input)
|
|
1521
|
-
# ["security", "backend", "database"]
|
|
1522
|
-
|
|
1523
|
-
# Step 2: Select appropriate agents
|
|
1524
|
-
agents = []
|
|
1525
|
-
for domain in domains:
|
|
1526
|
-
agents.append(select_expert_agent(domain))
|
|
1527
|
-
# [security-expert, backend-expert, database-expert]
|
|
1528
|
-
|
|
1529
|
-
# Step 3: Determine execution strategy
|
|
1530
|
-
if needs_parallel_execution(agents):
|
|
1531
|
-
return execute_parallel(agents)
|
|
1532
|
-
else:
|
|
1533
|
-
return execute_sequential(agents)
|
|
1534
|
-
```
|
|
1535
|
-
|
|
1536
|
-
#### 📊 Real-World Delegation Examples
|
|
1537
|
-
|
|
1538
|
-
**Example 1: Performance Optimization Request**
|
|
1539
|
-
```
|
|
1540
|
-
User: "API 응답 속도가 너무 느려서 최적화가 필요해"
|
|
1541
|
-
|
|
1542
|
-
Alfred's Delegation:
|
|
1543
|
-
├── performance-engineer (Lead)
|
|
1544
|
-
│ ├── Bottleneck analysis
|
|
1545
|
-
│ └── Optimization strategy
|
|
1546
|
-
├── backend-expert (API layer)
|
|
1547
|
-
│ ├── Code analysis
|
|
1548
|
-
│ └── Implementation fixes
|
|
1549
|
-
└── database-expert (Query optimization)
|
|
1550
|
-
├── Slow query detection
|
|
1551
|
-
└── Index optimization
|
|
1552
|
-
|
|
1553
|
-
Result: 3 experts working in parallel → 60% performance improvement
|
|
1554
|
-
```
|
|
1555
|
-
|
|
1556
|
-
**Example 2: Security Enhancement Request**
|
|
1557
|
-
```
|
|
1558
|
-
User: "보안 취약점 점검하고 개선 방안을 제안해줘"
|
|
1559
|
-
|
|
1560
|
-
Alfred's Delegation:
|
|
1561
|
-
├── security-expert (Lead)
|
|
1562
|
-
│ ├── Vulnerability assessment
|
|
1563
|
-
│ └── Security architecture review
|
|
1564
|
-
├── backend-expert (Implementation)
|
|
1565
|
-
│ ├── Code security fixes
|
|
1566
|
-
│ └── Authentication improvements
|
|
1567
|
-
└── monitoring-expert (Detection)
|
|
1568
|
-
├── Security monitoring setup
|
|
1569
|
-
└── Alert configuration
|
|
1570
|
-
|
|
1571
|
-
Result: Comprehensive security enhancement with monitoring
|
|
1572
|
-
```
|
|
1573
|
-
|
|
1574
|
-
#### 🎭 Summary: Alfred's Delegation Philosophy
|
|
1575
|
-
|
|
1576
|
-
Alfred's delegation system operates on **three core principles**:
|
|
1577
|
-
|
|
1578
|
-
1. **Intent-Driven**: Alfred understands what you want, not just what you type
|
|
1579
|
-
2. **Expert-Optimized**: Each task goes to the most qualified specialist
|
|
1580
|
-
3. **Context-Aware**: Delegation considers project history, patterns, and user preferences
|
|
1581
|
-
|
|
1582
|
-
**The Result**: You get expert-level solutions without needing to know which expert to ask. Alfred handles the complexity, you get the answers.
|
|
1583
|
-
|
|
1584
|
-
---
|
|
1585
|
-
|
|
1586
|
-
## 🏗️ Core Architecture
|
|
1587
|
-
|
|
1588
|
-
### System Components
|
|
1589
|
-
|
|
1590
|
-
```mermaid
|
|
1591
|
-
graph TD
|
|
1592
|
-
Alfred["🎩 Alfred SuperAgent<br/>Central Orchestrator"]
|
|
1593
|
-
|
|
1594
|
-
subgraph Agents["⚙️ Agents Layer - 19 Specialists"]
|
|
1595
|
-
A1["spec-builder<br/>code-builder"]
|
|
1596
|
-
A2["test-engineer<br/>doc-syncer"]
|
|
1597
|
-
A3["git-manager<br/>security-expert"]
|
|
1598
|
-
A4["backend/frontend/database<br/>devops-expert + 9 more"]
|
|
1599
|
-
end
|
|
1600
|
-
|
|
1601
|
-
subgraph Skills["📚 Skills Layer - 73+ Capsules"]
|
|
1602
|
-
S1["Foundation<br/>SPEC·TDD·TRUST"]
|
|
1603
|
-
S2["Essentials<br/>Testing·Debug·Perf"]
|
|
1604
|
-
S3["Domain<br/>Backend·Frontend·DB"]
|
|
1605
|
-
S4["Language<br/>Python·TS·Go·Rust<br/>Alfred·Operations"]
|
|
1606
|
-
end
|
|
1607
|
-
|
|
1608
|
-
subgraph Hooks["🛡️ Hooks Layer - Safety Guards"]
|
|
1609
|
-
H1["SessionStart"]
|
|
1610
|
-
H2["PreToolUse"]
|
|
1611
|
-
H3["PostToolUse"]
|
|
1612
|
-
H4["Validation"]
|
|
1613
|
-
end
|
|
1614
|
-
|
|
1615
|
-
Alfred -->|Manages| Agents
|
|
1616
|
-
Alfred -->|Activates| Skills
|
|
1617
|
-
Alfred -->|Enforces| Hooks
|
|
1618
|
-
|
|
1619
|
-
classDef alfredNode stroke:#333,stroke-width:3px,color:#000
|
|
1620
|
-
classDef layerNode stroke:#333,stroke-width:2px,color:#000
|
|
1621
|
-
classDef componentNode stroke:#666,stroke-width:1px,color:#000
|
|
1622
|
-
|
|
1623
|
-
class Alfred alfredNode
|
|
1624
|
-
class Agents,Skills,Hooks layerNode
|
|
1625
|
-
class A1,A2,A3,A4,S1,S2,S3,S4,H1,H2,H3,H4 componentNode
|
|
1626
|
-
```
|
|
1627
|
-
|
|
1628
|
-
### Key Components
|
|
1629
|
-
|
|
1630
|
-
**Alfred SuperAgent**
|
|
1631
|
-
|
|
1632
|
-
- Central orchestrator managing 19 specialized agents
|
|
1633
|
-
- Adaptive learning from project patterns
|
|
1634
|
-
- Context-aware decision making
|
|
1635
|
-
- Transparent progress tracking
|
|
1636
|
-
|
|
1637
|
-
**Specialized Agents** (19 total)
|
|
1638
|
-
|
|
1639
|
-
- **spec-builder**: Requirements engineering with EARS format
|
|
1640
|
-
- **code-builder**: TDD-driven implementation
|
|
1641
|
-
- **test-engineer**: Comprehensive test coverage
|
|
1642
|
-
- **doc-syncer**: Documentation generation and sync
|
|
1643
|
-
- **git-manager**: Version control automation
|
|
1644
|
-
- **security-expert**: Security analysis and compliance
|
|
1645
|
-
- **backend-expert**: Server-side architecture
|
|
1646
|
-
- **frontend-expert**: UI/component design
|
|
1647
|
-
- **database-expert**: Schema and query optimization
|
|
1648
|
-
- **devops-expert**: Deployment and infrastructure
|
|
1649
|
-
- **And 9 more domain specialists...**
|
|
1650
|
-
|
|
1651
|
-
**Claude Skills** (73+ total)
|
|
1652
|
-
Organized across 6 tiers:
|
|
1653
|
-
|
|
1654
|
-
- **Foundation**: Core development patterns (SPEC, TDD)
|
|
1655
|
-
- **Essentials**: Testing, debugging, performance, security
|
|
1656
|
-
- **Domain-specific**: Backend, frontend, database, mobile, ML, DevOps
|
|
1657
|
-
- **Language-specific**: Python, TypeScript, Go, Rust, PHP, Ruby, etc.
|
|
1658
|
-
- **Alfred-specific**: Workflow, orchestration, decision trees
|
|
1659
|
-
- **Operations**: Deployment, monitoring, incident response
|
|
1660
|
-
|
|
1661
|
-
---
|
|
1662
|
-
|
|
1663
|
-
## 📊 Statistics & Metrics
|
|
1664
|
-
|
|
1665
|
-
| Metric | Value |
|
|
1666
|
-
| ----------------------- | --------------------------------------------------------------------------- |
|
|
1667
|
-
| **Test Coverage** | 85%+ guaranteed |
|
|
1668
|
-
| **Specialized Agents** | 19 team members |
|
|
1669
|
-
| **Production Skills** | 125+ enterprise-grade skills (v0.23.0) |
|
|
1670
|
-
| **Skills Breakdown** | 12 BaaS + 10 Security + 15 Integration + 12 DevOps + 18 Data/Analytics + 48+ Others |
|
|
1671
|
-
| **BaaS Skills** | 12 production-ready (Foundation + 9 Extensions + 2 New Platforms) |
|
|
1672
|
-
| **Security Skills** | 10 new (Authentication, Compliance, Encryption, Testing, Assessment) |
|
|
1673
|
-
| **Enterprise Skills** | 15 Integration + 12 DevOps + 18 Data/Analytics = 45 enterprise-grade |
|
|
1674
|
-
| **Frontend Skills** | 10+ specialized (HTML/CSS, React, Vue, Angular, Tailwind, shadcn/ui) |
|
|
1675
|
-
| **Icon Libraries** | 10+ (Lucide, React Icons, Tabler, Phosphor, Heroicons, Radix, Iconify, etc.) |
|
|
1676
|
-
| **Icon Coverage** | 200K+ icons across 150+ icon sets |
|
|
1677
|
-
| **Platform Coverage** | 11 platforms (Supabase, Firebase, Vercel, Cloudflare, Auth0, Convex, Railway, Neon, Clerk) |
|
|
1678
|
-
| **Architecture Patterns** | 8 patterns (A-H) for all deployment scenarios |
|
|
1679
|
-
| **Documentation Lines** | 85,280+ words across all skills |
|
|
1680
|
-
| **Code Examples** | 200+ production-ready code examples |
|
|
1681
|
-
| **Supported Languages** | 18 (Python, TypeScript, JavaScript, Go, Rust, Java, Kotlin, Swift, Dart, PHP, Ruby, C, C++, C#, Scala, R, SQL, Shell) |
|
|
1682
|
-
| **SPEC Patterns** | 5+ EARS formats |
|
|
1683
|
-
| **Quality Gates** | TRUST 5 + additional checks |
|
|
1684
|
-
| **Git Automation** | Complete GitFlow support |
|
|
1685
|
-
| **Version Reading** | Enhanced VersionReader with advanced caching and performance optimization |
|
|
1686
|
-
| **MCP Integration** | Context7, Playwright, Sequential-thinking servers (v0.20.0+) |
|
|
1687
|
-
| **Python Support** | 3.11+ with enhanced performance and compatibility |
|
|
1688
|
-
|
|
1689
|
-
---
|
|
1690
|
-
|
|
1691
|
-
## 💡 Why Choose MoAI-ADK?
|
|
1692
|
-
|
|
1693
|
-
### For Individual Developers
|
|
1694
|
-
|
|
1695
|
-
- **Reduce context switching**: Alfred remembers your entire project
|
|
1696
|
-
- **Better code quality**: Automated TDD prevents bugs before production
|
|
1697
|
-
- **Save time**: Automatic documentation means no manual updates
|
|
1698
|
-
- **Learn patterns**: Adaptive learning from your codebase
|
|
1699
|
-
|
|
1700
|
-
### For Teams
|
|
1701
|
-
|
|
1702
|
-
- **Unified standards**: TRUST 5 principles enforced across team
|
|
1703
|
-
- **Collaboration**: Shared context and clear requirements
|
|
1704
|
-
- **Onboarding**: New team members understand patterns instantly
|
|
1705
|
-
|
|
1706
|
-
### For Organizations
|
|
1707
|
-
|
|
1708
|
-
- **Compliance ready**: Security and audit trails built-in
|
|
1709
|
-
- **Maintainability**: Code is documented, tested, and traceable
|
|
1710
|
-
- **Scalability**: Patterns grow with your codebase
|
|
1711
|
-
- **Investment protection**: Complete traceability prevents technical debt
|
|
1712
|
-
|
|
1713
|
-
---
|
|
1714
|
-
|
|
1715
|
-
## 🎭 Alfred's Adaptive Persona System (v0.23.1+)
|
|
1716
|
-
|
|
1717
|
-
MoAI-ADK provides **5 specialized personas** that adapt to your expertise level and development context. Each persona offers a unique approach while maintaining the same powerful capabilities:
|
|
1718
|
-
|
|
1719
|
-
- 🎩 **Alfred**: Beginner-friendly guidance (structured learning)
|
|
1720
|
-
- 🤖 **R2-D2**: Real-time tactical assistance (production coding)
|
|
1721
|
-
- 🧙 **Yoda**: Technical depth expert (principle understanding)
|
|
1722
|
-
- 🤖 **R2-D2 Partner**: Pair programming partner (collaborative development)
|
|
1723
|
-
- 🧑🏫 **Keating**: Personal tutor (knowledge mastery)
|
|
1724
|
-
|
|
1725
|
-
### 🎩 Alfred MoAI-ADK Beginner
|
|
1726
|
-
|
|
1727
|
-
> *"Good day, young developer! I'm Alfred, your trusted butler and development mentor. Allow me to guide you through the elegant world of MoAI-ADK with patience, precision, and the wisdom of experience."*
|
|
1728
|
-
|
|
1729
|
-
**Target Audience**: First-time MoAI-ADK developers, coding beginners, those seeking structured learning
|
|
1730
|
-
|
|
1731
|
-
**Key Features**:
|
|
1732
|
-
- **Gentle Guidance**: Step-by-step learning with wisdom and patience
|
|
1733
|
-
- **Structured Curriculum**: 3-stage flight training from basics to graduation
|
|
1734
|
-
- **Real-time Diagnostics**: R2-D2 assists with automatic system checks
|
|
1735
|
-
- **Beginner-friendly Explanations**: Complex concepts simplified with analogies
|
|
1736
|
-
|
|
1737
|
-
**Usage**: `/output-style alfred-moai-adk-beginner`
|
|
1738
|
-
|
|
1739
|
-
**Sample Experience**:
|
|
1740
|
-
```bash
|
|
1741
|
-
# R2-D2 assists with your first specification
|
|
1742
|
-
/alfred:1-plan "simple calculator addition feature"
|
|
1743
|
-
|
|
1744
|
-
# R2-D2 automatically handles:
|
|
1745
|
-
✓ Duplicate check: CALC-001 not found ✓
|
|
1746
|
-
✓ File creation: .moai/specs/SPEC-CALC-001/spec.md ✓
|
|
1747
|
-
✓ YAML metadata auto-completion ✓
|
|
1748
|
-
✓ EARS grammar template provided ✓
|
|
1749
|
-
```
|
|
1750
|
-
|
|
1751
|
-
### 🤖 R2-D2 Agentic Coding
|
|
1752
|
-
|
|
1753
|
-
> *"Beep-boop-bweep-whirr! All systems operational! I'm your loyal Astromech co-pilot, loaded with centuries of battle-tested development protocols and real-time problem-solving capabilities."*
|
|
1754
|
-
|
|
1755
|
-
**Target Audience**: Active developers, production teams, mission-critical project development
|
|
1756
|
-
|
|
1757
|
-
**Key Features**:
|
|
1758
|
-
- **Real-time Tactical Assistance**: Instant code analysis and automated problem-solving
|
|
1759
|
-
- **Production-ready Solutions**: Battle-tested development protocols
|
|
1760
|
-
- **Automated Problem Detection**: Advanced diagnostic and repair systems
|
|
1761
|
-
- **Continuous Learning**: Self-improvement protocols that learn from every interaction
|
|
1762
|
-
|
|
1763
|
-
**Usage**: `/output-style r2d2-agentic-coding`
|
|
1764
|
-
|
|
1765
|
-
**Sample Experience**:
|
|
1766
|
-
```javascript
|
|
1767
|
-
// R2-D2 provides real-time guidance as you code
|
|
1768
|
-
class UserService {
|
|
1769
|
-
// R2-D2: ⚡ Instant feedback detected!
|
|
1770
|
-
// 🔍 Analysis: Using raw SQL - security risk identified
|
|
1771
|
-
// 💡 Suggestion: Consider using ORM or parameterized queries
|
|
1772
|
-
|
|
1773
|
-
async findUser(email) {
|
|
1774
|
-
// R2-D2: ❌ SQL injection risk detected
|
|
1775
|
-
const user = await db.query(
|
|
1776
|
-
`SELECT * FROM users WHERE email = '${email}'`
|
|
1777
|
-
);
|
|
1778
|
-
return user;
|
|
1779
|
-
}
|
|
1780
|
-
|
|
1781
|
-
// R2-D2 provides secure implementation instantly
|
|
1782
|
-
}
|
|
1783
|
-
```
|
|
1784
|
-
|
|
1785
|
-
### 🧑🏫 Keating Personal Tutor
|
|
1786
|
-
|
|
1787
|
-
> *"Learning to code isn't about memorizing syntax—it's about developing problem-solving intuition. Let me guide you through understanding the 'why' behind each concept."*
|
|
1788
|
-
|
|
1789
|
-
**Target Audience**: Learners seeking deep understanding, knowledge transfer, skill mastery
|
|
1790
|
-
|
|
1791
|
-
**Key Features**:
|
|
1792
|
-
- **Socratic Learning**: Question-driven discovery and understanding
|
|
1793
|
-
- **Pattern Recognition**: Identifying and applying software design patterns
|
|
1794
|
-
- **Knowledge Integration**: Connecting concepts across different domains
|
|
1795
|
-
- **Mentorship Approach**: Personalized learning paths and skill assessment
|
|
1796
|
-
|
|
1797
|
-
**Usage**: `/output-style keating-personal-tutor`
|
|
1798
|
-
|
|
1799
|
-
---
|
|
1800
|
-
|
|
1801
|
-
### 🧙 Yoda Master - Deep Understanding Guide
|
|
1802
|
-
|
|
1803
|
-
> *"From fundamentals we begin. Through principles we understand. By practice we master. With documentation we preserve. Your true comprehension is my measure of success."*
|
|
1804
|
-
|
|
1805
|
-
**Target Audience**: Developers seeking technical depth, principle understanding, long-term knowledge retention
|
|
1806
|
-
|
|
1807
|
-
**Core Philosophy**: Understanding "why" and "how", not just "what"
|
|
1808
|
-
|
|
1809
|
-
#### 4-Capability Framework
|
|
1810
|
-
|
|
1811
|
-
1. **Principle Explanation** - Start from foundational concepts, explain design philosophy and alternatives, analyze real-world implications
|
|
1812
|
-
2. **Documentation Generation** - Auto-generate comprehensive guides saved to `.moai/learning/` directory for permanent reference
|
|
1813
|
-
3. **Concept Mastery** - Break complex concepts into digestible parts using real-world analogies, connect theory to applications
|
|
1814
|
-
4. **Practice Exercises** - Provide progressive difficulty exercises with solution guidelines and self-assessment
|
|
1815
|
-
|
|
1816
|
-
#### When to Use Yoda Master
|
|
1817
|
-
|
|
1818
|
-
- **Deep technical understanding**: "Why do we use SPEC-first development?"
|
|
1819
|
-
- **Documentation generation**: Auto-create guides in `.moai/learning/` for future reference
|
|
1820
|
-
- **Verification of understanding**: Use AskUserQuestion to ensure comprehension before moving on
|
|
1821
|
-
|
|
1822
|
-
#### Skills Integration
|
|
1823
|
-
|
|
1824
|
-
Yoda Master leverages **Skill patterns for stability** and **Context7 for latest documentation**:
|
|
1825
|
-
|
|
1826
|
-
- `Skill("moai-foundation-specs")` - SPEC-first philosophy and EARS grammar
|
|
1827
|
-
- `Skill("moai-domain-backend")` - Backend architecture principles
|
|
1828
|
-
- `Skill("moai-lang-python")` - Python programming mastery
|
|
1829
|
-
|
|
1830
|
-
**Context7 Usage**: When Skills content is outdated or you need the latest API documentation, query Context7 to merge stability (Skills) with freshness (Context7).
|
|
1831
|
-
|
|
1832
|
-
#### Real-World Interaction Example
|
|
1833
|
-
|
|
1834
|
-
```
|
|
1835
|
-
User: "Why is TDD better than testing after implementation?"
|
|
1836
|
-
|
|
1837
|
-
Yoda Master Response:
|
|
1838
|
-
🧙 Yoda ★ Deep Understanding
|
|
1839
|
-
|
|
1840
|
-
📖 Topic: TDD Philosophy and Rationale
|
|
1841
|
-
|
|
1842
|
-
💡 Comprehensive Explanation:
|
|
1843
|
-
1. Foundational Concept: How TDD creates design pressure
|
|
1844
|
-
2. Design Rationale: Why testability drives better architecture
|
|
1845
|
-
3. Alternative Approaches: Test-after, exploratory testing trade-offs
|
|
1846
|
-
4. Practical Implications: Reduced bugs, faster refactoring, team alignment
|
|
1847
|
-
|
|
1848
|
-
📚 Generated Documentation:
|
|
1849
|
-
`.moai/learning/tdd-philosophy-deep-dive.md` (2,500 words)
|
|
1850
|
-
- Historical context
|
|
1851
|
-
- Psychological benefits
|
|
1852
|
-
- When TDD is optimal vs. suboptimal
|
|
1853
|
-
- 5 practical code examples
|
|
1854
|
-
|
|
1855
|
-
✍️ Practice Exercises:
|
|
1856
|
-
1. Convert existing function to test-first approach
|
|
1857
|
-
2. Design class hierarchy using TDD
|
|
1858
|
-
3. Refactor legacy code with TDD safety net
|
|
1859
|
-
|
|
1860
|
-
❓ Understanding Verification:
|
|
1861
|
-
[Use AskUserQuestion]
|
|
1862
|
-
- "Which concepts need clarification?"
|
|
1863
|
-
- "Ready for hands-on exercises?"
|
|
1864
|
-
- "Which advanced topic interests you?"
|
|
1865
|
-
```
|
|
1866
|
-
|
|
1867
|
-
#### Usage
|
|
1868
|
-
|
|
1869
|
-
```bash
|
|
1870
|
-
# Ask Yoda Master for deep understanding
|
|
1871
|
-
/output-style yoda-master
|
|
1872
|
-
|
|
1873
|
-
# Then ask technical depth questions
|
|
1874
|
-
"Why does SPEC-first development prevent rework?"
|
|
1875
|
-
"What are the principles behind TRUST 5?"
|
|
1876
|
-
```
|
|
1877
|
-
|
|
1878
|
-
---
|
|
1879
|
-
|
|
1880
|
-
### 🤖 R2-D2 Partner - Pair Programming Partner
|
|
1881
|
-
|
|
1882
|
-
> *"I am your thinking partner, not a command executor. Every coding decision belongs to you. I present options with full rationale. We collaborate to achieve your vision. AskUserQuestion is my essential tool for understanding your true intent."*
|
|
1883
|
-
|
|
1884
|
-
**Target Audience**: Developers who want collaborative coding partnerships, not directive execution
|
|
1885
|
-
|
|
1886
|
-
**Core Philosophy**: Never assume, always verify. Present options, not commands.
|
|
1887
|
-
|
|
1888
|
-
#### 4-Phase Pair Programming Protocol
|
|
1889
|
-
|
|
1890
|
-
**Phase 1: Intent Clarification** - Always use AskUserQuestion to understand implementation approach, priorities, constraints, and preferences before proceeding
|
|
1891
|
-
|
|
1892
|
-
**Phase 2: Approach Proposal** - Present 2-4 implementation options with trade-offs, explain reasoning, confirm alignment via AskUserQuestion
|
|
1893
|
-
|
|
1894
|
-
**Phase 3: Checkpoint-Based Implementation** - Implement in incremental steps, review progress at each checkpoint, use AskUserQuestion for continue/revise/clarify decisions
|
|
1895
|
-
|
|
1896
|
-
**Phase 4: Review and Iteration** - Verify TRUST 5 compliance, identify optimization opportunities, determine next steps via AskUserQuestion
|
|
1897
|
-
|
|
1898
|
-
#### Skills + Context7 Protocol (Hallucination-Free Code Generation)
|
|
1899
|
-
|
|
1900
|
-
R2-D2 Partner generates code using a **5-step approach** ensuring no hallucinations:
|
|
1901
|
-
|
|
1902
|
-
1. **Load Relevant Skills** - Start with proven patterns from enterprise Skills
|
|
1903
|
-
2. **Query Context7** - Check for latest API versions and frameworks
|
|
1904
|
-
3. **Combine Both** - Merge stability (Skills) with freshness (Context7)
|
|
1905
|
-
4. **Cite Sources** - Every code pattern includes clear attribution
|
|
1906
|
-
5. **Include Tests** - Follow Skill test patterns automatically
|
|
1907
|
-
|
|
1908
|
-
#### Example Code with Attribution
|
|
1909
|
-
|
|
1910
|
-
```python
|
|
1911
|
-
# R2-D2 Generated Code
|
|
1912
|
-
# Pattern: Skill("moai-lang-python") - FastAPI with validation
|
|
1913
|
-
# API: Context7("/tiangolo/fastapi") - Current v0.115.x
|
|
1914
|
-
|
|
1915
|
-
from fastapi import FastAPI, HTTPException
|
|
1916
|
-
from pydantic import BaseModel, Field
|
|
1917
|
-
|
|
1918
|
-
class UserCreate(BaseModel):
|
|
1919
|
-
username: str = Field(..., min_length=3, max_length=50)
|
|
1920
|
-
email: str = Field(..., regex=r"^[\w\.-]+@[\w\.-]+\.\w+$")
|
|
1921
|
-
|
|
1922
|
-
app = FastAPI()
|
|
1923
|
-
|
|
1924
|
-
@app.post("/users/", status_code=201)
|
|
1925
|
-
async def create_user(user: UserCreate):
|
|
1926
|
-
"""Create new user (Pattern: Skill("moai-domain-backend"))"""
|
|
1927
|
-
return user
|
|
1928
|
-
|
|
1929
|
-
# Test: Follows Skill("moai-lang-python") pytest pattern
|
|
1930
|
-
import pytest
|
|
1931
|
-
from fastapi.testclient import TestClient
|
|
1932
|
-
|
|
1933
|
-
client = TestClient(app)
|
|
1934
|
-
|
|
1935
|
-
def test_create_user_success():
|
|
1936
|
-
response = client.post("/users/", json={
|
|
1937
|
-
"username": "john", "email": "john@example.com"
|
|
1938
|
-
})
|
|
1939
|
-
assert response.status_code == 201
|
|
1940
|
-
assert response.json()["username"] == "john"
|
|
1941
|
-
|
|
1942
|
-
def test_create_user_validation():
|
|
1943
|
-
response = client.post("/users/", json={
|
|
1944
|
-
"username": "ab", "email": "invalid"
|
|
1945
|
-
})
|
|
1946
|
-
assert response.status_code == 422
|
|
1947
|
-
```
|
|
1948
|
-
|
|
1949
|
-
#### When to Use R2-D2 Partner
|
|
1950
|
-
|
|
1951
|
-
- **Active coding**: "Let's implement user authentication together"
|
|
1952
|
-
- **Collaborative problem-solving**: "Help me design this API"
|
|
1953
|
-
- **Intent-driven development**: Need to clarify approach before implementation
|
|
1954
|
-
- **Checkpoint verification**: Pause and review after each step
|
|
1955
|
-
|
|
1956
|
-
#### Agent Delegation Examples
|
|
1957
|
-
|
|
1958
|
-
For complex tasks, R2-D2 Partner delegates to specialists:
|
|
1959
|
-
|
|
1960
|
-
- `Task(subagent_type="security-expert")` - Security architecture
|
|
1961
|
-
- `Task(subagent_type="database-expert")` - Schema design
|
|
1962
|
-
- `Task(subagent_type="backend-expert")` - API patterns
|
|
1963
|
-
- `Task(subagent_type="frontend-expert")` - UI implementation
|
|
1964
|
-
- `Task(subagent_type="tdd-implementer")` - TDD RED-GREEN-REFACTOR
|
|
1965
|
-
|
|
1966
|
-
#### Real-World Interaction Example
|
|
1967
|
-
|
|
1968
|
-
```
|
|
1969
|
-
User: "Add user profile management"
|
|
1970
|
-
|
|
1971
|
-
R2-D2 Partner Response:
|
|
1972
|
-
🤖 R2-D2 ★ Pair Programming
|
|
1973
|
-
|
|
1974
|
-
💡 REQUEST ANALYSIS: User Profile Management Feature
|
|
1975
|
-
|
|
1976
|
-
❓ INTENT CLARIFICATION REQUIRED:
|
|
1977
|
-
[Use AskUserQuestion]
|
|
1978
|
-
|
|
1979
|
-
Q1. Profile Data Scope:
|
|
1980
|
-
A) Basic info (name, email, avatar)
|
|
1981
|
-
B) Contact details (phone, address)
|
|
1982
|
-
C) Preferences (theme, language)
|
|
1983
|
-
|
|
1984
|
-
Q2. Update Strategy:
|
|
1985
|
-
A) Partial updates (PATCH)
|
|
1986
|
-
B) Full replacement (PUT)
|
|
1987
|
-
|
|
1988
|
-
Q3. Image Upload:
|
|
1989
|
-
A) Direct file upload
|
|
1990
|
-
B) S3 storage integration
|
|
1991
|
-
C) URL reference only
|
|
1992
|
-
|
|
1993
|
-
After user selections:
|
|
1994
|
-
|
|
1995
|
-
📊 PROPOSED APPROACH:
|
|
1996
|
-
Step 1: Define Pydantic models with validation
|
|
1997
|
-
Step 2: S3 integration (presigned URLs)
|
|
1998
|
-
Step 3: Database schema + migrations
|
|
1999
|
-
Step 4: RESTful API endpoints
|
|
2000
|
-
Step 5: Comprehensive test suite
|
|
2001
|
-
|
|
2002
|
-
💻 IMPLEMENTATION WITH CHECKPOINTS:
|
|
2003
|
-
[Implement Step 1 → Review → Approve before Step 2]
|
|
2004
|
-
[Each step verified via AskUserQuestion]
|
|
2005
|
-
|
|
2006
|
-
✅ DELIVERED COMPONENTS:
|
|
2007
|
-
- UserProfile, ProfileUpdate DTOs
|
|
2008
|
-
- S3Service with presigned URLs
|
|
2009
|
-
- database migrations
|
|
2010
|
-
- 4 RESTful endpoints
|
|
2011
|
-
- 85%+ test coverage
|
|
2012
|
-
```
|
|
2013
|
-
|
|
2014
|
-
#### Usage
|
|
2015
|
-
|
|
2016
|
-
```bash
|
|
2017
|
-
# Switch to R2-D2 Partner mode
|
|
2018
|
-
/output-style r2d2-partner
|
|
2019
|
-
|
|
2020
|
-
# Then collaborate on coding tasks
|
|
2021
|
-
"Let's implement JWT authentication"
|
|
2022
|
-
"Help me design this API"
|
|
2023
|
-
"What's the best approach for this feature?"
|
|
2024
|
-
```
|
|
2025
|
-
|
|
2026
|
-
---
|
|
2027
|
-
|
|
2028
|
-
## 🎯 Persona Selection Guide
|
|
2029
|
-
|
|
2030
|
-
**Choose the right persona based on your goal**:
|
|
2031
|
-
|
|
2032
|
-
| Goal | Persona | Best For |
|
|
2033
|
-
|------|---------|----------|
|
|
2034
|
-
| Understanding principles | 🧙 Yoda Master | "Why" questions, deep learning, documentation |
|
|
2035
|
-
| Collaborative coding | 🤖 R2-D2 Partner | Implementation, options-based decisions, checkpoints |
|
|
2036
|
-
| Production development | 🤖 R2-D2 Agentic | Real-time assistance, automated solutions |
|
|
2037
|
-
| Beginner learning | 🎩 Alfred | Structured guidance, gentle mentoring |
|
|
2038
|
-
| Knowledge mastery | 🧑🏫 Keating | Pattern recognition, intuition building |
|
|
2039
|
-
|
|
2040
|
-
**Combining Personas**:
|
|
2041
|
-
|
|
2042
|
-
1. **Learning New Framework**: First use Yoda Master to understand principles, then R2-D2 Partner for implementation
|
|
2043
|
-
2. **Production Feature**: Use R2-D2 Partner for collaborative development, delegate to specialists for complex parts
|
|
2044
|
-
3. **Debugging Complex Issue**: Start with R2-D2 Agentic for diagnosis, use Yoda Master to understand root cause
|
|
2045
|
-
|
|
2046
|
-
**Getting Started**:
|
|
2047
|
-
|
|
2048
|
-
- First-time users: Start with 🎩 Alfred, then explore other personas
|
|
2049
|
-
- Experienced developers: Default to 🤖 R2-D2 Partner, use 🧙 Yoda Master for deep dives
|
|
2050
|
-
- Quick tasks: Use 🤖 R2-D2 Agentic for automation
|
|
2051
|
-
|
|
2052
|
-
---
|
|
2053
|
-
|
|
2054
|
-
## 🚀 Enhanced BaaS Ecosystem Integration (v0.23.0+)
|
|
2055
|
-
|
|
2056
|
-
### Phase 5: Extended Platform Support
|
|
2057
|
-
|
|
2058
|
-
**New Production-Ready Platforms**:
|
|
2059
|
-
|
|
2060
|
-
#### **Neon PostgreSQL** (Advanced Database Management)
|
|
2061
|
-
- **Serverless PostgreSQL**: Auto-scaling with per-request billing
|
|
2062
|
-
- **Branching**: Database branching for development/testing
|
|
2063
|
-
- **Advanced Features**: Connection pooling, read replicas, point-in-time recovery
|
|
2064
|
-
- **Integration Pattern**: Pattern C (Monolithic Backend) + Pattern D (Real-time Collaboration)
|
|
2065
|
-
|
|
2066
|
-
#### **Clerk Authentication** (Modern User Management)
|
|
2067
|
-
- **Headless Auth**: Fully customizable authentication flows
|
|
2068
|
-
- **Multi-tenant Support**: Built-in organization management
|
|
2069
|
-
- **Modern Integrations**: Social providers, SAML, WebAuthn
|
|
2070
|
-
- **Integration Pattern**: Pattern H (Enterprise Security)
|
|
2071
|
-
|
|
2072
|
-
#### **Railway Extensions** (Advanced Deployment Patterns)
|
|
2073
|
-
- **Enterprise Features**: Blue-green deployments, custom domains
|
|
2074
|
-
- **Monitoring**: Real-time logs, metrics, alerting systems
|
|
2075
|
-
- **Cost Optimization**: Resource allocation strategies and estimation
|
|
2076
|
-
- **Multi-pattern Support**: All 8 architecture patterns (A-H)
|
|
2077
|
-
|
|
2078
|
-
### Updated Platform Statistics
|
|
2079
|
-
|
|
2080
|
-
| Metric | Value |
|
|
2081
|
-
|--------|-------|
|
|
2082
|
-
| **Total BaaS Skills** | 12 (Foundation + 9 Extensions + 2 New) |
|
|
2083
|
-
| **Platform Coverage** | 11 platforms (100% modern stack) |
|
|
2084
|
-
| **Architecture Patterns** | 8 patterns (A-H) for all scenarios |
|
|
2085
|
-
| **Code Examples** | 80+ production-ready examples |
|
|
2086
|
-
| **Documentation** | 14,000+ words |
|
|
2087
|
-
| **Production Readiness** | 11/11 fully implemented |
|
|
2088
|
-
|
|
2089
|
-
### 🎯 Enhanced Pattern Decision Framework
|
|
2090
|
-
|
|
2091
|
-
Select optimal platform using MoAI's intelligent pattern system:
|
|
2092
|
-
|
|
2093
|
-
```
|
|
2094
|
-
├─ Pattern A: Multi-tenant SaaS
|
|
2095
|
-
│ ├─ Primary: Supabase
|
|
2096
|
-
│ ├─ Secondary: Vercel
|
|
2097
|
-
│ └─ Features: RLS, Edge, Caching
|
|
2098
|
-
│
|
|
2099
|
-
├─ Pattern B: Serverless API
|
|
2100
|
-
│ ├─ Primary: Vercel
|
|
2101
|
-
│ ├─ Secondary: Cloudflare
|
|
2102
|
-
│ └─ Features: Functions, Auto-scaling
|
|
2103
|
-
│
|
|
2104
|
-
├─ Pattern C: Monolithic Backend
|
|
2105
|
-
│ ├─ Primary: Railway
|
|
2106
|
-
│ ├─ Secondary: Neon PostgreSQL
|
|
2107
|
-
│ └─ Features: Full stack, Database, Branching
|
|
2108
|
-
│
|
|
2109
|
-
├─ Pattern D: Real-time Collaboration
|
|
2110
|
-
│ ├─ Primary: Supabase
|
|
2111
|
-
│ ├─ Secondary: Firebase
|
|
2112
|
-
│ └─ Features: Realtime, Broadcast
|
|
2113
|
-
│
|
|
2114
|
-
├─ Pattern E: Mobile Backend
|
|
2115
|
-
│ ├─ Primary: Firebase
|
|
2116
|
-
│ ├─ Secondary: Convex
|
|
2117
|
-
│ └─ Features: Auth, Functions, Storage
|
|
2118
|
-
│
|
|
2119
|
-
├─ Pattern F: Real-time Backend
|
|
2120
|
-
│ ├─ Primary: Convex
|
|
2121
|
-
│ ├─ Secondary: Firebase
|
|
2122
|
-
│ └─ Features: Real-time sync, Functions
|
|
2123
|
-
│
|
|
2124
|
-
├─ Pattern G: Edge Computing
|
|
2125
|
-
│ ├─ Primary: Cloudflare
|
|
2126
|
-
│ ├─ Secondary: Vercel
|
|
2127
|
-
│ └─ Features: Workers, D1, Analytics
|
|
2128
|
-
│
|
|
2129
|
-
└─ Pattern H: Enterprise Security
|
|
2130
|
-
├─ Primary: Auth0
|
|
2131
|
-
├─ Secondary: Clerk
|
|
2132
|
-
└─ Features: SAML, OIDC, Multi-tenant
|
|
2133
|
-
```
|
|
2134
|
-
|
|
2135
|
-
---
|
|
2136
|
-
|
|
2137
|
-
## 🆕 New Advanced Skills Integration (v0.23.0+)
|
|
2138
|
-
|
|
2139
|
-
### 🚀 MCP (Model Context Protocol) Integration
|
|
2140
|
-
|
|
2141
|
-
#### **moai-cc-mcp-builder** - MCP Server Development
|
|
2142
|
-
- **Complete Context7 MCP Integration**: Auto-apply latest docs and patterns
|
|
2143
|
-
- **AI-Powered Architecture**: Agent-centered design patterns
|
|
2144
|
-
- **Industry Standards Compliance**: Automatic best practices application
|
|
2145
|
-
- **Version-Aware Development**: Framework-specific version patterns support
|
|
2146
|
-
|
|
2147
|
-
#### **moai-playwright-webapp-testing** - Web App Testing Automation
|
|
2148
|
-
- **AI Test Generation**: Context7 pattern-based automated test creation
|
|
2149
|
-
- **Cross-Browser Support**: Multi-browser compatibility testing
|
|
2150
|
-
- **Real-time Error Detection**: Automated bug detection and reporting
|
|
2151
|
-
- **Performance Metrics**: Web app performance analysis and optimization
|
|
2152
|
-
|
|
2153
|
-
### 📄 Document Processing Skills
|
|
2154
|
-
|
|
2155
|
-
#### **moai-document-processing** - Unified Document Processing
|
|
2156
|
-
- **Multiple Format Support**: Integrated docx, pdf, pptx, xlsx processing
|
|
2157
|
-
- **AI Content Extraction**: Intelligent content analysis and extraction
|
|
2158
|
-
- **Enterprise Workflows**: Large-scale document processing automation
|
|
2159
|
-
- **Context7 Integration**: Latest document processing patterns
|
|
2160
|
-
|
|
2161
|
-
### 🎨 Modern Frontend Development
|
|
2162
|
-
|
|
2163
|
-
#### **moai-artifacts-builder** - Artifact Builder
|
|
2164
|
-
- **React Component Generation**: Modern React component auto-creation
|
|
2165
|
-
- **Tailwind CSS Integration**: Utility-first CSS design
|
|
2166
|
-
- **shadcn/ui Components**: Premium UI component library
|
|
2167
|
-
- **AI-Powered Optimization**: Best user experience implementation
|
|
2168
|
-
|
|
2169
|
-
### 📢 Enterprise Communications
|
|
2170
|
-
|
|
2171
|
-
#### **moai-internal-comms** - Internal Communications
|
|
2172
|
-
- **AI Content Generation**: Enterprise communication automation
|
|
2173
|
-
- **Template Library**: Reusable communication templates
|
|
2174
|
-
- **Personalized Messaging**: Customized communication generation
|
|
2175
|
-
- **Context7 Patterns**: Latest communication best practices
|
|
2176
|
-
|
|
2177
|
-
### 📊 Skills Integration Summary
|
|
2178
|
-
|
|
2179
|
-
| Skill Category | Integrated Skills | Key Features |
|
|
2180
|
-
|----------------|-------------------|--------------|
|
|
2181
|
-
| **MCP Development** | 2 skills | Context7, Playwright integration |
|
|
2182
|
-
| **Document Processing** | 1 skill | Unified document processing (docx, pdf, pptx, xlsx) |
|
|
2183
|
-
| **Frontend** | 1 skill | React/Tailwind/shadcn/ui artifacts |
|
|
2184
|
-
| **Communications** | 1 skill | Enterprise templates and automation |
|
|
2185
|
-
| **Total** | **5 groups (8 skills)** | **AI-powered integrated solutions** |
|
|
2186
|
-
|
|
2187
|
-
### 🎯 Integration Benefits
|
|
2188
|
-
|
|
2189
|
-
- **AI Power**: Latest technology auto-application through Context7 MCP
|
|
2190
|
-
- **Alfred Integration**: Complete 4-Step workflow integration
|
|
2191
|
-
- **Korean Support**: Perfect Gentleman style application
|
|
2192
|
-
- **Enterprise Ready**: Immediate production deployment
|
|
2193
|
-
- **Quality Assurance**: TRUST 5 principles compliance
|
|
2194
|
-
|
|
2195
|
-
---
|
|
2196
|
-
|
|
2197
|
-
## 📚 Documentation & Resources
|
|
2198
|
-
|
|
2199
|
-
| Resource | Link |
|
|
2200
|
-
| ------------------------ | --------------------------------------------------------------------- |
|
|
2201
|
-
| **Online Documentation** | [adk.mo.ai.kr](https://adk.mo.ai.kr) |
|
|
2202
|
-
| **Quick Start Guide** | [Installation & Setup](https://adk.mo.ai.kr/getting-started) |
|
|
2203
|
-
| **API Reference** | [Commands & Skills](https://adk.mo.ai.kr/api) |
|
|
2204
|
-
| **Example Projects** | [Tutorials](https://adk.mo.ai.kr/examples) |
|
|
2205
|
-
| **Troubleshooting** | [FAQ & Help](https://adk.mo.ai.kr/troubleshooting) |
|
|
2206
|
-
| **GitHub Repository** | [modu-ai/moai-adk](https://github.com/modu-ai/moai-adk) |
|
|
2207
|
-
| **Issue Tracker** | [GitHub Issues](https://github.com/modu-ai/moai-adk/issues) |
|
|
2208
|
-
| **Community** | [GitHub Discussions](https://github.com/modu-ai/moai-adk/discussions) |
|
|
2209
|
-
|
|
2210
|
-
---
|
|
2211
|
-
|
|
2212
|
-
## 📋 License
|
|
2213
|
-
|
|
2214
|
-
MIT License - see [LICENSE](LICENSE) for details.
|
|
2215
|
-
|
|
2216
|
-
**Summary**: Use MoAI-ADK in commercial and private projects. Attribution is appreciated but not required.
|
|
2217
|
-
|
|
2218
|
-
---
|
|
2219
|
-
|
|
2220
|
-
## 📞 Support & Community
|
|
2221
|
-
|
|
2222
|
-
- **🐛 Issue Tracker**: Report bugs and request features
|
|
2223
|
-
- **📧 Email**: <support@mo.ai.kr>
|
|
2224
|
-
- **📖 Online Manual**: [adk.mo.ai.kr](https://adk.mo.ai.kr)
|
|
2225
|
-
- **💬 Community**: [mo.ai.kr](https://mo.ai.kr) (Coming in November - In Development)
|
|
2226
|
-
- **☕ Support Us**: [Ko-fi](https://ko-fi.com/modu_ai)
|
|
2227
|
-
|
|
2228
|
-
---
|
|
2229
|
-
|
|
2230
|
-
## ⭐ Star History
|
|
2231
|
-
|
|
2232
|
-
[](https://www.star-history.com/#modu-ai/moai-adk&Date)
|
|
2233
|
-
|
|
2234
|
-
---
|
|
2235
|
-
|
|
2236
|
-
## 🙏 Acknowledgments
|
|
2237
|
-
|
|
2238
|
-
MoAI-ADK is built on years of research into AI-assisted development, test-driven development, and software engineering best practices. Special thanks to the open-source community and all contributors.
|
|
2239
|
-
|
|
2240
|
-
---
|
|
2241
|
-
|
|
2242
|
-
## 🚀 Recent Skill Ecosystem Upgrade (v0.23.1+)
|
|
2243
|
-
|
|
2244
|
-
### Historical Milestone Achievement - November 2025
|
|
2245
|
-
|
|
2246
|
-
**Complete Skills Ecosystem Upgrade Accomplished:**
|
|
2247
|
-
|
|
2248
|
-
**Major Achievement:**
|
|
2249
|
-
- **Total Skills Resolved**: 281+ skills fully upgraded to v4.0.0 Enterprise
|
|
2250
|
-
- **Problem Skills**: 57 critical issues resolved
|
|
2251
|
-
- **Validation Success Rate**: Dramatically improved from 45% to 95%+
|
|
2252
|
-
- **Quality Assurance**: All skills now meet TRUST 5 standards
|
|
2253
|
-
|
|
2254
|
-
**Skill Categories Enhanced:**
|
|
2255
|
-
- **Foundation Skills**: Complete metadata optimization
|
|
2256
|
-
- **Domain Skills**: Full coverage for backend, frontend, database, DevOps, ML
|
|
2257
|
-
- **Language Skills**: All 18 programming languages optimized
|
|
2258
|
-
- **BaaS Skills**: 12 production-ready platforms (100% coverage)
|
|
2259
|
-
- **Advanced Skills**: MCP integration, document processing, artifact building
|
|
2260
|
-
|
|
2261
|
-
**Recent Major Enhancements:**
|
|
2262
|
-
- **Skill Validation System**: Comprehensive validation framework implemented
|
|
2263
|
-
- **Auto-Correction**: Automated metadata completion and structure standardization
|
|
2264
|
-
- **Quality Metrics**: Individual skill quality grades and system-wide compliance
|
|
2265
|
-
- **Enterprise Integration**: All skills now production-ready for enterprise deployment
|
|
2266
|
-
|
|
2267
|
-
**Quality Standards:**
|
|
2268
|
-
- **Structure**: All skills include proper YAML frontmatter
|
|
2269
|
-
- **Metadata**: Complete name, version, status, description fields
|
|
2270
|
-
- **Documentation**: examples.md and reference.md files included
|
|
2271
|
-
- **Validation**: Automated testing with 95%+ success rate
|
|
2272
|
-
|
|
2273
|
-
---
|
|
2274
|
-
|
|
2275
|
-
**Made with ❤️ by the MoAI Team**
|
|
2276
|
-
|
|
2277
|
-
[📖 Read the Full Documentation →](https://adk.mo.ai.kr)
|
|
2278
|
-
|
|
2279
|
-
|