moai-adk 0.25.4__py3-none-any.whl → 0.41.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +60 -126
- moai_adk/cli/commands/language.py +14 -35
- moai_adk/cli/commands/status.py +9 -15
- moai_adk/cli/commands/update.py +1560 -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 +683 -0
- moai_adk/cli/worktree/exceptions.py +89 -0
- moai_adk/cli/worktree/manager.py +493 -0
- moai_adk/cli/worktree/models.py +65 -0
- moai_adk/cli/worktree/registry.py +422 -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/migration.py +19 -9
- moai_adk/core/config/unified.py +610 -0
- moai_adk/core/context_manager.py +6 -12
- moai_adk/core/enterprise_features.py +1404 -0
- moai_adk/core/error_recovery_system.py +747 -116
- 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 +422 -0
- moai_adk/core/git/event_detector.py +16 -5
- moai_adk/core/git/manager.py +91 -1
- 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 +578 -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 +666 -0
- moai_adk/core/migration/alfred_to_moai_migrator.py +389 -0
- moai_adk/core/migration/backup_manager.py +131 -12
- moai_adk/core/migration/custom_element_scanner.py +358 -0
- moai_adk/core/migration/file_migrator.py +181 -18
- moai_adk/core/migration/interactive_checkbox_ui.py +499 -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 +127 -27
- moai_adk/core/migration/version_migrator.py +47 -12
- moai_adk/core/performance/cache_system.py +8 -10
- moai_adk/core/phase_optimized_hook_scheduler.py +879 -0
- moai_adk/core/project/backup_utils.py +9 -1
- moai_adk/core/project/checker.py +2 -4
- moai_adk/core/project/detector.py +1 -3
- moai_adk/core/project/initializer.py +142 -93
- moai_adk/core/project/phase_executor.py +130 -111
- moai_adk/core/project/validator.py +6 -12
- moai_adk/core/quality/trust_checker.py +39 -37
- moai_adk/core/realtime_monitoring_dashboard.py +1724 -0
- moai_adk/core/robust_json_parser.py +611 -0
- moai_adk/core/rollback_manager.py +116 -164
- moai_adk/core/session_manager.py +10 -26
- moai_adk/core/skill_loading_system.py +579 -0
- moai_adk/core/spec_status_manager.py +64 -74
- moai_adk/core/template/backup.py +48 -22
- moai_adk/core/template/config.py +142 -45
- moai_adk/core/template/merger.py +45 -27
- moai_adk/core/template/processor.py +391 -152
- moai_adk/core/template_engine.py +83 -41
- moai_adk/core/template_variable_synchronizer.py +431 -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 +477 -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 +18 -6
- moai_adk/statusline/enhanced_output_style_detector.py +23 -15
- moai_adk/statusline/main.py +109 -15
- moai_adk/statusline/renderer.py +85 -69
- 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 +716 -0
- moai_adk/templates/.claude/agents/moai/builder-agent.md +480 -0
- moai_adk/templates/.claude/agents/moai/builder-command.md +1194 -0
- moai_adk/templates/.claude/agents/moai/builder-plugin.md +753 -0
- moai_adk/templates/.claude/agents/moai/builder-skill.md +672 -0
- moai_adk/templates/.claude/agents/moai/expert-backend.md +903 -0
- moai_adk/templates/.claude/agents/moai/expert-database.md +782 -0
- moai_adk/templates/.claude/agents/moai/expert-debug.md +407 -0
- moai_adk/templates/.claude/agents/moai/expert-devops.md +722 -0
- moai_adk/templates/.claude/agents/moai/expert-frontend.md +727 -0
- moai_adk/templates/.claude/agents/moai/expert-performance.md +661 -0
- moai_adk/templates/.claude/agents/moai/expert-refactoring.md +218 -0
- moai_adk/templates/.claude/agents/moai/expert-security.md +525 -0
- moai_adk/templates/.claude/agents/moai/expert-testing.md +737 -0
- moai_adk/templates/.claude/agents/moai/expert-uiux.md +1047 -0
- moai_adk/templates/.claude/agents/moai/manager-claude-code.md +438 -0
- moai_adk/templates/.claude/agents/moai/manager-docs.md +578 -0
- moai_adk/templates/.claude/agents/moai/manager-git.md +1092 -0
- moai_adk/templates/.claude/agents/moai/manager-project.md +897 -0
- moai_adk/templates/.claude/agents/moai/manager-quality.md +640 -0
- moai_adk/templates/.claude/agents/moai/manager-spec.md +815 -0
- moai_adk/templates/.claude/agents/moai/manager-strategy.md +786 -0
- moai_adk/templates/.claude/agents/moai/manager-tdd.md +797 -0
- moai_adk/templates/.claude/agents/moai/mcp-context7.md +464 -0
- moai_adk/templates/.claude/agents/moai/mcp-figma.md +1588 -0
- moai_adk/templates/.claude/agents/moai/mcp-notion.md +795 -0
- moai_adk/templates/.claude/agents/moai/mcp-playwright.md +475 -0
- moai_adk/templates/.claude/agents/moai/mcp-sequential-thinking.md +1038 -0
- moai_adk/templates/.claude/commands/moai/0-project.md +1339 -0
- moai_adk/templates/.claude/commands/moai/1-plan.md +1367 -0
- moai_adk/templates/.claude/commands/moai/2-run.md +825 -0
- moai_adk/templates/.claude/commands/moai/3-sync.md +1358 -0
- moai_adk/templates/.claude/commands/moai/9-feedback.md +320 -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/README.md +143 -0
- moai_adk/templates/.claude/hooks/moai/lib/__init__.py +104 -0
- moai_adk/templates/.claude/hooks/moai/lib/checkpoint.py +247 -0
- moai_adk/templates/.claude/hooks/moai/lib/common.py +161 -0
- moai_adk/templates/.claude/hooks/moai/lib/config_manager.py +444 -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/exceptions.py +171 -0
- moai_adk/templates/.claude/hooks/moai/lib/git_operations_manager.py +590 -0
- moai_adk/templates/.claude/hooks/moai/lib/language_validator.py +407 -0
- moai_adk/templates/.claude/hooks/moai/lib/models.py +104 -0
- moai_adk/templates/.claude/hooks/moai/lib/path_utils.py +219 -0
- moai_adk/templates/.claude/hooks/moai/lib/project.py +777 -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/tool_registry.py +804 -0
- moai_adk/templates/.claude/hooks/moai/lib/unified_timeout_manager.py +542 -0
- moai_adk/templates/.claude/hooks/moai/post_tool__ast_grep_scan.py +256 -0
- moai_adk/templates/.claude/hooks/moai/post_tool__code_formatter.py +253 -0
- moai_adk/templates/.claude/hooks/moai/post_tool__linter.py +307 -0
- moai_adk/templates/.claude/hooks/moai/pre_tool__security_guard.py +231 -0
- moai_adk/templates/.claude/hooks/moai/session_end__auto_cleanup.py +866 -0
- moai_adk/templates/.claude/hooks/moai/session_start__show_project_info.py +1125 -0
- moai_adk/templates/.claude/output-styles/moai/r2d2.md +643 -0
- moai_adk/templates/.claude/output-styles/moai/yoda.md +359 -0
- moai_adk/templates/.claude/settings.json +209 -0
- moai_adk/templates/.claude/skills/moai-ai-nano-banana/SKILL.md +302 -0
- moai_adk/templates/.claude/skills/moai-ai-nano-banana/examples.md +431 -0
- moai_adk/templates/.claude/skills/moai-ai-nano-banana/reference.md +139 -0
- moai_adk/templates/.claude/skills/moai-ai-nano-banana/scripts/batch_generate.py +560 -0
- moai_adk/templates/.claude/skills/moai-ai-nano-banana/scripts/generate_image.py +362 -0
- moai_adk/templates/.claude/skills/moai-docs-generation/SKILL.md +302 -0
- moai_adk/templates/.claude/skills/moai-docs-generation/examples.md +252 -0
- moai_adk/templates/.claude/skills/moai-docs-generation/modules/README.md +56 -0
- moai_adk/templates/.claude/skills/moai-docs-generation/modules/api-documentation.md +120 -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 +185 -0
- moai_adk/templates/.claude/skills/moai-docs-generation/modules/user-guides.md +207 -0
- moai_adk/templates/.claude/skills/moai-docs-generation/reference.md +234 -0
- moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +324 -0
- moai_adk/templates/.claude/skills/moai-domain-backend/examples.md +718 -0
- moai_adk/templates/.claude/skills/moai-domain-backend/reference.md +464 -0
- moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +326 -0
- moai_adk/templates/.claude/skills/moai-domain-database/examples.md +830 -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-database/reference.md +545 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +194 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/examples.md +968 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/modules/component-architecture.md +723 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/modules/nextjs16-patterns.md +713 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/modules/performance-optimization.md +694 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/modules/react19-patterns.md +591 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/modules/state-management.md +680 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/modules/vue35-patterns.md +802 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/reference.md +664 -0
- moai_adk/templates/.claude/skills/moai-domain-uiux/SKILL.md +454 -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/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 +280 -0
- moai_adk/templates/.claude/skills/moai-formats-data/examples.md +804 -0
- moai_adk/templates/.claude/skills/moai-formats-data/modules/README.md +327 -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-formats-data/reference.md +585 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/SKILL.md +243 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/examples.md +732 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/advanced-agent-patterns.md +370 -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-cli-reference-official.md +420 -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-devcontainers-official.md +381 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-discover-plugins-official.md +379 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-headless-official.md +378 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-hooks-official.md +670 -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-plugin-marketplaces-official.md +308 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-plugins-official.md +432 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-sandboxing-official.md +282 -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 +467 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-statusline-official.md +293 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-sub-agents-official.md +420 -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-claude/reference.md +209 -0
- moai_adk/templates/.claude/skills/moai-foundation-context/SKILL.md +449 -0
- moai_adk/templates/.claude/skills/moai-foundation-context/examples.md +1048 -0
- moai_adk/templates/.claude/skills/moai-foundation-context/reference.md +246 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/SKILL.md +414 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/examples.md +358 -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 +359 -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-advanced.md +279 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/delegation-implementation.md +267 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/delegation-patterns.md +228 -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/patterns.md +22 -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-ears-format.md +200 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/spec-first-tdd.md +171 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/spec-tdd-implementation.md +275 -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 +239 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/trust-5-implementation.md +244 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/trust-5-validation.md +219 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/reference.md +478 -0
- moai_adk/templates/.claude/skills/moai-foundation-philosopher/SKILL.md +311 -0
- moai_adk/templates/.claude/skills/moai-foundation-philosopher/examples.md +228 -0
- moai_adk/templates/.claude/skills/moai-foundation-philosopher/modules/assumption-matrix.md +80 -0
- moai_adk/templates/.claude/skills/moai-foundation-philosopher/modules/cognitive-bias.md +199 -0
- moai_adk/templates/.claude/skills/moai-foundation-philosopher/modules/first-principles.md +140 -0
- moai_adk/templates/.claude/skills/moai-foundation-philosopher/modules/trade-off-analysis.md +154 -0
- moai_adk/templates/.claude/skills/moai-foundation-philosopher/reference.md +157 -0
- moai_adk/templates/.claude/skills/moai-foundation-quality/SKILL.md +363 -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-lang-cpp/SKILL.md +430 -0
- moai_adk/templates/.claude/skills/moai-lang-cpp/examples.md +17 -0
- moai_adk/templates/.claude/skills/moai-lang-cpp/modules/advanced-patterns.md +401 -0
- moai_adk/templates/.claude/skills/moai-lang-cpp/reference.md +17 -0
- moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +193 -0
- moai_adk/templates/.claude/skills/moai-lang-csharp/examples.md +585 -0
- moai_adk/templates/.claude/skills/moai-lang-csharp/modules/aspnet-core.md +627 -0
- moai_adk/templates/.claude/skills/moai-lang-csharp/modules/blazor-components.md +767 -0
- moai_adk/templates/.claude/skills/moai-lang-csharp/modules/cqrs-validation.md +626 -0
- moai_adk/templates/.claude/skills/moai-lang-csharp/modules/csharp12-features.md +580 -0
- moai_adk/templates/.claude/skills/moai-lang-csharp/modules/efcore-patterns.md +622 -0
- moai_adk/templates/.claude/skills/moai-lang-csharp/reference.md +403 -0
- moai_adk/templates/.claude/skills/moai-lang-elixir/SKILL.md +394 -0
- moai_adk/templates/.claude/skills/moai-lang-elixir/examples.md +17 -0
- moai_adk/templates/.claude/skills/moai-lang-elixir/modules/advanced-patterns.md +531 -0
- moai_adk/templates/.claude/skills/moai-lang-elixir/reference.md +17 -0
- moai_adk/templates/.claude/skills/moai-lang-flutter/SKILL.md +472 -0
- moai_adk/templates/.claude/skills/moai-lang-flutter/examples.md +1090 -0
- moai_adk/templates/.claude/skills/moai-lang-flutter/reference.md +686 -0
- moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +377 -0
- moai_adk/templates/.claude/skills/moai-lang-go/examples.md +919 -0
- moai_adk/templates/.claude/skills/moai-lang-go/reference.md +737 -0
- moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +386 -0
- moai_adk/templates/.claude/skills/moai-lang-java/examples.md +864 -0
- moai_adk/templates/.claude/skills/moai-lang-java/reference.md +291 -0
- moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +418 -0
- moai_adk/templates/.claude/skills/moai-lang-javascript/examples.md +973 -0
- moai_adk/templates/.claude/skills/moai-lang-javascript/reference.md +1543 -0
- moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +383 -0
- moai_adk/templates/.claude/skills/moai-lang-kotlin/examples.md +1006 -0
- moai_adk/templates/.claude/skills/moai-lang-kotlin/reference.md +562 -0
- moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +504 -0
- moai_adk/templates/.claude/skills/moai-lang-php/examples.md +17 -0
- moai_adk/templates/.claude/skills/moai-lang-php/modules/advanced-patterns.md +538 -0
- moai_adk/templates/.claude/skills/moai-lang-php/reference.md +17 -0
- moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +489 -0
- moai_adk/templates/.claude/skills/moai-lang-python/examples.md +977 -0
- moai_adk/templates/.claude/skills/moai-lang-python/reference.md +804 -0
- moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +389 -0
- moai_adk/templates/.claude/skills/moai-lang-r/examples.md +17 -0
- moai_adk/templates/.claude/skills/moai-lang-r/modules/advanced-patterns.md +489 -0
- moai_adk/templates/.claude/skills/moai-lang-r/reference.md +17 -0
- moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +432 -0
- moai_adk/templates/.claude/skills/moai-lang-ruby/examples.md +17 -0
- moai_adk/templates/.claude/skills/moai-lang-ruby/modules/advanced-patterns.md +309 -0
- moai_adk/templates/.claude/skills/moai-lang-ruby/modules/testing-patterns.md +306 -0
- moai_adk/templates/.claude/skills/moai-lang-ruby/reference.md +17 -0
- moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +377 -0
- moai_adk/templates/.claude/skills/moai-lang-rust/examples.md +659 -0
- moai_adk/templates/.claude/skills/moai-lang-rust/reference.md +504 -0
- moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +211 -0
- moai_adk/templates/.claude/skills/moai-lang-scala/examples.md +633 -0
- moai_adk/templates/.claude/skills/moai-lang-scala/modules/akka-actors.md +479 -0
- moai_adk/templates/.claude/skills/moai-lang-scala/modules/cats-effect.md +489 -0
- moai_adk/templates/.claude/skills/moai-lang-scala/modules/functional-programming.md +460 -0
- moai_adk/templates/.claude/skills/moai-lang-scala/modules/spark-data.md +498 -0
- moai_adk/templates/.claude/skills/moai-lang-scala/modules/zio-patterns.md +541 -0
- moai_adk/templates/.claude/skills/moai-lang-scala/reference.md +423 -0
- moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +191 -0
- moai_adk/templates/.claude/skills/moai-lang-swift/examples.md +918 -0
- moai_adk/templates/.claude/skills/moai-lang-swift/modules/combine-reactive.md +256 -0
- moai_adk/templates/.claude/skills/moai-lang-swift/modules/concurrency.md +270 -0
- moai_adk/templates/.claude/skills/moai-lang-swift/modules/swift6-features.md +265 -0
- moai_adk/templates/.claude/skills/moai-lang-swift/modules/swiftui-patterns.md +314 -0
- moai_adk/templates/.claude/skills/moai-lang-swift/reference.md +672 -0
- moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +364 -0
- moai_adk/templates/.claude/skills/moai-lang-typescript/examples.md +1089 -0
- moai_adk/templates/.claude/skills/moai-lang-typescript/reference.md +731 -0
- moai_adk/templates/.claude/skills/moai-library-mermaid/SKILL.md +164 -0
- moai_adk/templates/.claude/skills/moai-library-mermaid/examples.md +270 -0
- moai_adk/templates/.claude/skills/moai-library-mermaid/modules/advanced-patterns.md +465 -0
- moai_adk/templates/.claude/skills/moai-library-mermaid/modules/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 +335 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/examples.md +592 -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 +336 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/modules/configuration.md +350 -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/modules/optimization.md +303 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/reference.md +379 -0
- moai_adk/templates/.claude/skills/moai-library-shadcn/SKILL.md +373 -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-auth0/SKILL.md +283 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/examples.md +2446 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/adaptive-mfa.md +233 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/akamai-integration.md +214 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/application-credentials.md +280 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/attack-protection-log-events.md +224 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/attack-protection-overview.md +140 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/bot-detection.md +144 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/breached-password-detection.md +187 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/brute-force-protection.md +189 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/certifications.md +282 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/compliance-overview.md +263 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/continuous-session-protection.md +307 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/customize-mfa.md +177 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/dpop-implementation.md +283 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/fapi-implementation.md +259 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/gdpr-compliance.md +313 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/guardian-configuration.md +269 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/highly-regulated-identity.md +272 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/jwt-fundamentals.md +248 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/mdl-verification.md +210 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/mfa-api-management.md +278 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/mfa-factors.md +226 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/mfa-overview.md +174 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/mtls-sender-constraining.md +316 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/ropg-flow-mfa.md +216 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/security-center.md +325 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/security-guidance.md +277 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/state-parameters.md +177 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/step-up-authentication.md +251 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/suspicious-ip-throttling.md +240 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/tenant-access-control.md +179 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/modules/webauthn-fido.md +235 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/reference.md +224 -0
- moai_adk/templates/.claude/skills/moai-platform-clerk/SKILL.md +425 -0
- moai_adk/templates/.claude/skills/moai-platform-clerk/modules/advanced-patterns.md +417 -0
- moai_adk/templates/.claude/skills/moai-platform-clerk/reference.md +273 -0
- moai_adk/templates/.claude/skills/moai-platform-convex/SKILL.md +228 -0
- moai_adk/templates/.claude/skills/moai-platform-convex/examples.md +506 -0
- moai_adk/templates/.claude/skills/moai-platform-convex/modules/auth-integration.md +421 -0
- moai_adk/templates/.claude/skills/moai-platform-convex/modules/file-storage.md +474 -0
- moai_adk/templates/.claude/skills/moai-platform-convex/modules/reactive-queries.md +302 -0
- moai_adk/templates/.claude/skills/moai-platform-convex/modules/server-functions.md +452 -0
- moai_adk/templates/.claude/skills/moai-platform-convex/reference.md +385 -0
- moai_adk/templates/.claude/skills/moai-platform-firebase-auth/SKILL.md +249 -0
- moai_adk/templates/.claude/skills/moai-platform-firebase-auth/examples.md +514 -0
- moai_adk/templates/.claude/skills/moai-platform-firebase-auth/modules/custom-claims.md +374 -0
- moai_adk/templates/.claude/skills/moai-platform-firebase-auth/modules/phone-auth.md +372 -0
- moai_adk/templates/.claude/skills/moai-platform-firebase-auth/modules/social-auth.md +339 -0
- moai_adk/templates/.claude/skills/moai-platform-firebase-auth/reference.md +382 -0
- moai_adk/templates/.claude/skills/moai-platform-firestore/SKILL.md +230 -0
- moai_adk/templates/.claude/skills/moai-platform-firestore/examples.md +445 -0
- moai_adk/templates/.claude/skills/moai-platform-firestore/modules/offline-cache.md +392 -0
- moai_adk/templates/.claude/skills/moai-platform-firestore/modules/realtime-listeners.md +441 -0
- moai_adk/templates/.claude/skills/moai-platform-firestore/modules/security-rules.md +352 -0
- moai_adk/templates/.claude/skills/moai-platform-firestore/modules/transactions.md +452 -0
- moai_adk/templates/.claude/skills/moai-platform-firestore/reference.md +322 -0
- moai_adk/templates/.claude/skills/moai-platform-neon/SKILL.md +205 -0
- moai_adk/templates/.claude/skills/moai-platform-neon/examples.md +470 -0
- moai_adk/templates/.claude/skills/moai-platform-neon/modules/auto-scaling.md +349 -0
- moai_adk/templates/.claude/skills/moai-platform-neon/modules/branching-workflows.md +354 -0
- moai_adk/templates/.claude/skills/moai-platform-neon/modules/connection-pooling.md +412 -0
- moai_adk/templates/.claude/skills/moai-platform-neon/modules/pitr-backups.md +458 -0
- moai_adk/templates/.claude/skills/moai-platform-neon/reference.md +272 -0
- moai_adk/templates/.claude/skills/moai-platform-railway/SKILL.md +223 -0
- moai_adk/templates/.claude/skills/moai-platform-railway/examples.md +539 -0
- moai_adk/templates/.claude/skills/moai-platform-railway/modules/docker-deployment.md +261 -0
- moai_adk/templates/.claude/skills/moai-platform-railway/modules/multi-service.md +291 -0
- moai_adk/templates/.claude/skills/moai-platform-railway/modules/networking-domains.md +338 -0
- moai_adk/templates/.claude/skills/moai-platform-railway/modules/volumes-storage.md +353 -0
- moai_adk/templates/.claude/skills/moai-platform-railway/reference.md +374 -0
- moai_adk/templates/.claude/skills/moai-platform-supabase/SKILL.md +206 -0
- moai_adk/templates/.claude/skills/moai-platform-supabase/examples.md +502 -0
- moai_adk/templates/.claude/skills/moai-platform-supabase/modules/auth-integration.md +384 -0
- moai_adk/templates/.claude/skills/moai-platform-supabase/modules/edge-functions.md +371 -0
- moai_adk/templates/.claude/skills/moai-platform-supabase/modules/postgresql-pgvector.md +231 -0
- moai_adk/templates/.claude/skills/moai-platform-supabase/modules/realtime-presence.md +354 -0
- moai_adk/templates/.claude/skills/moai-platform-supabase/modules/row-level-security.md +286 -0
- moai_adk/templates/.claude/skills/moai-platform-supabase/modules/storage-cdn.md +319 -0
- moai_adk/templates/.claude/skills/moai-platform-supabase/modules/typescript-patterns.md +453 -0
- moai_adk/templates/.claude/skills/moai-platform-supabase/reference.md +284 -0
- moai_adk/templates/.claude/skills/moai-platform-vercel/SKILL.md +209 -0
- moai_adk/templates/.claude/skills/moai-platform-vercel/examples.md +502 -0
- moai_adk/templates/.claude/skills/moai-platform-vercel/modules/analytics-speed.md +348 -0
- moai_adk/templates/.claude/skills/moai-platform-vercel/modules/deployment-config.md +344 -0
- moai_adk/templates/.claude/skills/moai-platform-vercel/modules/edge-functions.md +222 -0
- moai_adk/templates/.claude/skills/moai-platform-vercel/modules/isr-caching.md +306 -0
- moai_adk/templates/.claude/skills/moai-platform-vercel/modules/kv-storage.md +399 -0
- moai_adk/templates/.claude/skills/moai-platform-vercel/reference.md +360 -0
- moai_adk/templates/.claude/skills/moai-plugin-builder/SKILL.md +473 -0
- moai_adk/templates/.claude/skills/moai-plugin-builder/examples.md +621 -0
- moai_adk/templates/.claude/skills/moai-plugin-builder/modules/migration.md +341 -0
- moai_adk/templates/.claude/skills/moai-plugin-builder/modules/validation.md +373 -0
- moai_adk/templates/.claude/skills/moai-plugin-builder/reference.md +464 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/SKILL.md +306 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/examples.md +1099 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/modules/language-specific.md +307 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/modules/pattern-syntax.md +237 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/modules/refactoring-patterns.md +260 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/modules/security-rules.md +239 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/reference.md +288 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/languages/go.yml +90 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/languages/python.yml +101 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/languages/typescript.yml +83 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/quality/complexity-check.yml +94 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/quality/deprecated-apis.yml +84 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/security/secrets-detection.yml +89 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/security/sql-injection.yml +45 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/security/xss-prevention.yml +50 -0
- moai_adk/templates/.claude/skills/moai-tool-ast-grep/rules/sgconfig.yml +54 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/SKILL.md +214 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/examples.md +697 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/index.md +96 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/acp.md +115 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/agents.md +241 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/commands.md +197 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/custom-tools.md +197 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/formatters.md +164 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/keybinds.md +150 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/lsp-servers.md +156 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/mcp-servers.md +214 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/models.md +197 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/permissions.md +162 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/rules.md +129 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/skills.md +192 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/themes.md +200 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/configure/tools.md +169 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/core/config.md +211 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/core/enterprise.md +68 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/core/intro.md +127 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/core/migration-1.0.md +82 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/core/network.md +72 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/core/providers.md +310 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/core/troubleshooting.md +124 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/develop/ecosystem.md +75 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/develop/plugins.md +218 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/develop/sdk.md +266 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/develop/server.md +207 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/usage/cli.md +159 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/usage/github.md +181 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/usage/gitlab.md +122 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/usage/ide.md +74 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/usage/share.md +106 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/usage/tui.md +129 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/modules/usage/zen.md +118 -0
- moai_adk/templates/.claude/skills/moai-tool-opencode/reference.md +790 -0
- moai_adk/templates/.claude/skills/moai-workflow-jit-docs/SKILL.md +211 -0
- moai_adk/templates/.claude/skills/moai-workflow-jit-docs/examples.md +544 -0
- moai_adk/templates/.claude/skills/moai-workflow-jit-docs/modules/advanced-patterns.md +379 -0
- moai_adk/templates/.claude/skills/moai-workflow-jit-docs/modules/optimization.md +286 -0
- moai_adk/templates/.claude/skills/moai-workflow-jit-docs/reference.md +307 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/README.md +190 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/SKILL.md +260 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/examples.md +547 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/reference.md +275 -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 +1434 -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 +92 -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-spec/SKILL.md +336 -0
- moai_adk/templates/.claude/skills/moai-workflow-spec/examples.md +900 -0
- moai_adk/templates/.claude/skills/moai-workflow-spec/modules/advanced-patterns.md +237 -0
- moai_adk/templates/.claude/skills/moai-workflow-spec/reference.md +704 -0
- moai_adk/templates/.claude/skills/moai-workflow-templates/SKILL.md +386 -0
- moai_adk/templates/.claude/skills/moai-workflow-templates/examples.md +552 -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-templates/reference.md +346 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/LICENSE.txt +202 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/SKILL.md +307 -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/examples.md +672 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/README.md +269 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/advanced-patterns.md +576 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/ai-debugging.md +302 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/context7-integration.md +286 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/review-workflows.md +500 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/trust5-framework/relevance-analysis.md +154 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/trust5-framework/safety-analysis.md +148 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/trust5-framework/scoring-algorithms.md +196 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/trust5-framework/timeliness-analysis.md +168 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/trust5-framework/truthfulness-analysis.md +136 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/trust5-framework/usability-analysis.md +153 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review/trust5-framework.md +257 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review.md +263 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/code-review/analysis-patterns.md +340 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/code-review/core-classes.md +299 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/code-review/tool-integration.md +380 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/debugging/debugging-workflows.md +451 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/debugging/error-analysis.md +442 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/optimization.md +505 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance/optimization-patterns.md +473 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance/profiling-techniques.md +481 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance-optimization/ai-optimization.md +241 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance-optimization/bottleneck-detection.md +397 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance-optimization/optimization-plan.md +315 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance-optimization/profiler-core.md +277 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance-optimization/real-time-monitoring.md +187 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance-optimization.md +327 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/quality-metrics.md +415 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/refactoring/ai-workflows.md +620 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/refactoring/patterns.md +692 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/security-analysis.md +429 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/smart-refactoring.md +313 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/static-analysis.md +438 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/tdd/core-classes.md +397 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/tdd-context7/advanced-features.md +494 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/tdd-context7/red-green-refactor.md +316 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/tdd-context7/test-generation.md +471 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/tdd-context7/test-patterns.md +371 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/tdd-context7.md +265 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/trust5-validation.md +428 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/reference/playwright-best-practices.md +57 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/reference.md +440 -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-workflow-worktree/SKILL.md +227 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/examples.md +606 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/integration-patterns.md +149 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/moai-adk-integration.md +245 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/parallel-advanced.md +310 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/parallel-development.md +202 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/parallel-workflows.md +302 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/registry-architecture.md +271 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/resource-optimization.md +300 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/tools-integration.md +280 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/troubleshooting.md +397 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/worktree-commands.md +296 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/modules/worktree-management.md +217 -0
- moai_adk/templates/.claude/skills/moai-workflow-worktree/reference.md +357 -0
- moai_adk/templates/.git-hooks/pre-commit +103 -41
- moai_adk/templates/.git-hooks/pre-push +244 -31
- 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 +181 -44
- moai_adk/templates/.lsp.json +152 -0
- moai_adk/templates/.mcp.json +6 -15
- moai_adk/templates/.moai/config/config.yaml +58 -0
- moai_adk/templates/.moai/config/multilingual-triggers.yaml +213 -0
- moai_adk/templates/.moai/config/questions/_schema.yaml +174 -0
- moai_adk/templates/.moai/config/questions/tab0-init.yaml +259 -0
- moai_adk/templates/.moai/config/questions/tab1-user.yaml +107 -0
- moai_adk/templates/.moai/config/questions/tab2-project.yaml +79 -0
- moai_adk/templates/.moai/config/questions/tab3-git.yaml +632 -0
- moai_adk/templates/.moai/config/questions/tab4-quality.yaml +183 -0
- moai_adk/templates/.moai/config/questions/tab5-system.yaml +96 -0
- moai_adk/templates/.moai/config/sections/git-strategy.yaml +116 -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 +18 -0
- moai_adk/templates/.moai/config/sections/system.yaml +24 -0
- moai_adk/templates/.moai/config/sections/user.yaml +5 -0
- moai_adk/templates/.moai/config/statusline-config.yaml +92 -0
- moai_adk/templates/.moai/scripts/setup-glm.py +136 -0
- moai_adk/templates/CLAUDE.md +804 -499
- moai_adk/utils/__init__.py +24 -1
- moai_adk/utils/banner.py +7 -10
- moai_adk/utils/common.py +49 -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.41.0.dist-info/METADATA +3274 -0
- moai_adk-0.41.0.dist-info/RECORD +683 -0
- {moai_adk-0.25.4.dist-info → moai_adk-0.41.0.dist-info}/WHEEL +1 -1
- {moai_adk-0.25.4.dist-info → moai_adk-0.41.0.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/core/config/auto_spec_config.py +0 -346
- moai_adk/core/hooks/post_tool_auto_spec_completion.py +0 -925
- moai_adk/core/spec/confidence_scoring.py +0 -749
- moai_adk/core/spec/ears_template_engine.py +0 -1182
- moai_adk/core/spec/quality_validator.py +0 -721
- 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.41.0.dist-info}/licenses/LICENSE +0 -0
moai_adk/templates/CLAUDE.md
CHANGED
|
@@ -1,588 +1,893 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Mr. Alfred Execution Directive
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Alfred: The Strategic Orchestrator (Claude Code Official Guidelines)
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
> **Current Conversation Language**: {{CONVERSATION_LANGUAGE_NAME}} (conversation_language: "{{CONVERSATION_LANGUAGE}}")
|
|
7
|
-
> **Claude Code Compatibility**: Latest v4.0+ Features Integrated
|
|
5
|
+
Core Principle: Alfred delegates all tasks to specialized agents and coordinates their execution.
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
### Mandatory Requirements
|
|
8
|
+
|
|
9
|
+
- [HARD] Full Delegation: All tasks must be delegated to appropriate specialized agents
|
|
10
|
+
WHY: Specialized agents have domain-specific knowledge and optimized tool access
|
|
11
|
+
|
|
12
|
+
- [HARD] Complexity Analysis: Analyze task complexity and requirements to select appropriate approach
|
|
13
|
+
WHY: Matching task complexity to agent capability ensures optimal outcomes
|
|
14
|
+
|
|
15
|
+
- [SOFT] Result Integration: Consolidate agent execution results and report to user
|
|
16
|
+
|
|
17
|
+
- [HARD] Language-Aware Responses: Always respond in user's selected language (internal agent instructions remain in English)
|
|
18
|
+
WHY: User comprehension is paramount; English internals ensure consistency
|
|
10
19
|
|
|
11
20
|
---
|
|
12
21
|
|
|
13
|
-
##
|
|
22
|
+
## Documentation Standards
|
|
23
|
+
|
|
24
|
+
### Required Practices
|
|
14
25
|
|
|
15
|
-
|
|
26
|
+
All instruction documents must follow these standards:
|
|
16
27
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
28
|
+
Formatting Requirements:
|
|
29
|
+
- Use detailed markdown formatting for explanations
|
|
30
|
+
- Document step-by-step procedures in text form
|
|
31
|
+
- Describe concepts and logic in narrative style
|
|
32
|
+
- Present workflows with clear textual descriptions
|
|
33
|
+
- Organize information using list format
|
|
21
34
|
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
/alfred:1-plan "your feature description" # Uses Plan Mode for complex tasks
|
|
25
|
-
```
|
|
35
|
+
### Content Restrictions
|
|
26
36
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
37
|
+
Restricted Content:
|
|
38
|
+
- Conceptual explanations expressed as code examples
|
|
39
|
+
- Flow control logic expressed as code syntax
|
|
40
|
+
- Decision trees shown as code structures
|
|
41
|
+
- Table format in instructions
|
|
42
|
+
- Emoji characters in instructions
|
|
43
|
+
- Time estimates or duration predictions
|
|
31
44
|
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
/alfred:3-sync auto SPEC-001 # Optimized context management
|
|
35
|
-
```
|
|
45
|
+
WHY: Code examples can be misinterpreted as executable commands. Flow control must use narrative text format.
|
|
36
46
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
- **Leverage MCP servers** for external integrations (`@github help`)
|
|
47
|
+
### Scope of Application
|
|
48
|
+
|
|
49
|
+
These standards apply to: CLAUDE.md, agent definitions, slash commands, skill definitions, hook definitions, and configuration files.
|
|
41
50
|
|
|
42
51
|
---
|
|
43
52
|
|
|
44
|
-
##
|
|
53
|
+
## Agent Invocation Patterns
|
|
54
|
+
|
|
55
|
+
### Explicit Invocation
|
|
56
|
+
|
|
57
|
+
Invoke agents using clear, direct natural language:
|
|
58
|
+
|
|
59
|
+
- "Use the expert-backend subagent to develop the API"
|
|
60
|
+
- "Use the manager-tdd subagent to implement with TDD approach"
|
|
61
|
+
- "Use the Explore subagent to analyze the codebase structure"
|
|
62
|
+
|
|
63
|
+
WHY: Explicit invocation patterns ensure consistent agent activation and clear task boundaries.
|
|
64
|
+
|
|
65
|
+
### Agent Management with /agents Command
|
|
66
|
+
|
|
67
|
+
The /agents command provides an interactive interface to:
|
|
68
|
+
|
|
69
|
+
- View all available sub-agents (built-in, user, project)
|
|
70
|
+
- Create new sub-agents with guided setup
|
|
71
|
+
- Edit existing custom sub-agents
|
|
72
|
+
- Manage tool permissions for each agent
|
|
73
|
+
- Delete custom sub-agents
|
|
74
|
+
|
|
75
|
+
To create a new agent: Type /agents, select "Create New Agent", define purpose, select tools, and edit the system prompt.
|
|
76
|
+
|
|
77
|
+
### Agent Chaining Patterns
|
|
78
|
+
|
|
79
|
+
Sequential Chaining:
|
|
80
|
+
First use the code-analyzer subagent to identify issues, then use the optimizer subagent to implement fixes, finally use the tester subagent to validate the solution
|
|
81
|
+
|
|
82
|
+
Parallel Execution:
|
|
83
|
+
Use the expert-backend subagent to develop the API, simultaneously use the expert-frontend subagent to create the UI
|
|
84
|
+
|
|
85
|
+
### Resumable Agents
|
|
86
|
+
|
|
87
|
+
Resume interrupted agent work using agentId:
|
|
45
88
|
|
|
46
|
-
|
|
89
|
+
- Resume agent abc123 and continue the security analysis
|
|
90
|
+
- Continue with the frontend development using the existing context
|
|
47
91
|
|
|
48
|
-
|
|
92
|
+
Each sub-agent execution gets a unique agentId stored in agent-{agentId}.jsonl format. Full context is preserved for resumption.
|
|
93
|
+
### Multilingual Agent Routing
|
|
49
94
|
|
|
50
|
-
|
|
51
|
-
```
|
|
52
|
-
Commands (Orchestration) → Task() delegation
|
|
53
|
-
↓
|
|
54
|
-
Sub-agents (Domain Expertise) → Skill() invocation
|
|
55
|
-
↓
|
|
56
|
-
Skills (Knowledge Capsules) → Progressive Disclosure
|
|
57
|
-
↓
|
|
58
|
-
Hooks (Guardrails & Context) → Auto-triggered events
|
|
59
|
-
```
|
|
95
|
+
Alfred automatically routes user requests to specialized agents based on keyword matching in any supported language.
|
|
60
96
|
|
|
61
|
-
|
|
97
|
+
#### Supported Languages
|
|
62
98
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
5. **Context Management**: Optimizes token usage with intelligent context pruning
|
|
68
|
-
6. **Thinking Mode**: Transparent reasoning process (toggle with Tab key)
|
|
99
|
+
- EN: English
|
|
100
|
+
- KO: Korean (한국어)
|
|
101
|
+
- JA: Japanese (日本語)
|
|
102
|
+
- ZH: Chinese (中文)
|
|
69
103
|
|
|
70
|
-
|
|
104
|
+
#### Intent-to-Agent Mapping
|
|
105
|
+
|
|
106
|
+
[HARD] When user request contains these keywords (in ANY language), Alfred MUST automatically invoke the corresponding agent:
|
|
107
|
+
|
|
108
|
+
Backend Domain (expert-backend):
|
|
109
|
+
- EN: backend, API, server, authentication, database, REST, GraphQL, microservices
|
|
110
|
+
- KO: 백엔드, API, 서버, 인증, 데이터베이스, RESTful, 마이크로서비스
|
|
111
|
+
- JA: バックエンド, API, サーバー, 認証, データベース
|
|
112
|
+
- ZH: 后端, API, 服务器, 认证, 数据库, 微服务
|
|
113
|
+
|
|
114
|
+
Frontend Domain (expert-frontend):
|
|
115
|
+
- EN: frontend, UI, component, React, Vue, Next.js, CSS, state management
|
|
116
|
+
- KO: 프론트엔드, UI, 컴포넌트, 리액트, 뷰, CSS, 상태관리
|
|
117
|
+
- JA: フロントエンド, UI, コンポーネント, リアクト, CSS, 状態管理
|
|
118
|
+
- ZH: 前端, UI, 组件, React, Vue, CSS, 状态管理
|
|
119
|
+
|
|
120
|
+
Database Domain (expert-database):
|
|
121
|
+
- EN: database, SQL, NoSQL, PostgreSQL, MongoDB, Redis, schema, query
|
|
122
|
+
- KO: 데이터베이스, SQL, NoSQL, 스키마, 쿼리, 인덱스
|
|
123
|
+
- JA: データベース, SQL, NoSQL, スキーマ, クエリ
|
|
124
|
+
- ZH: 数据库, SQL, NoSQL, 架构, 查询, 索引
|
|
125
|
+
|
|
126
|
+
Security Domain (expert-security):
|
|
127
|
+
- EN: security, vulnerability, OWASP, injection, XSS, CSRF, audit
|
|
128
|
+
- KO: 보안, 취약점, OWASP, 인젝션, XSS, CSRF, 감사
|
|
129
|
+
- JA: セキュリティ, 脆弱性, OWASP, インジェクション
|
|
130
|
+
- ZH: 安全, 漏洞, OWASP, 注入, XSS, CSRF, 审计
|
|
131
|
+
|
|
132
|
+
TDD Implementation (manager-tdd):
|
|
133
|
+
- EN: TDD, RED-GREEN-REFACTOR, test-driven, unit test, test first
|
|
134
|
+
- KO: TDD, 레드그린리팩터, 테스트주도개발, 유닛테스트
|
|
135
|
+
- JA: TDD, テスト駆動開発, ユニットテスト
|
|
136
|
+
- ZH: TDD, 红绿重构, 测试驱动开发, 单元测试
|
|
137
|
+
|
|
138
|
+
SPEC Creation (manager-spec):
|
|
139
|
+
- EN: SPEC, requirement, specification, EARS, acceptance criteria
|
|
140
|
+
- KO: SPEC, 요구사항, 명세서, EARS, 인수조건
|
|
141
|
+
- JA: SPEC, 要件, 仕様書, EARS, 受入基準
|
|
142
|
+
- ZH: SPEC, 需求, 规格书, EARS, 验收标准
|
|
143
|
+
|
|
144
|
+
DevOps Domain (expert-devops):
|
|
145
|
+
- EN: DevOps, CI/CD, Docker, Kubernetes, deployment, pipeline
|
|
146
|
+
- KO: 데브옵스, CI/CD, 도커, 쿠버네티스, 배포, 파이프라인
|
|
147
|
+
- JA: DevOps, CI/CD, Docker, Kubernetes, デプロイ
|
|
148
|
+
- ZH: DevOps, CI/CD, Docker, Kubernetes, 部署, 流水线
|
|
149
|
+
|
|
150
|
+
Documentation (manager-docs):
|
|
151
|
+
- EN: documentation, README, API docs, technical writing
|
|
152
|
+
- KO: 문서, README, API문서, 기술문서
|
|
153
|
+
- JA: ドキュメント, README, APIドキュメント
|
|
154
|
+
- ZH: 文档, README, API文档, 技术写作
|
|
155
|
+
|
|
156
|
+
Performance (expert-performance):
|
|
157
|
+
- EN: performance, profiling, optimization, benchmark, memory, latency
|
|
158
|
+
- KO: 성능, 프로파일링, 최적화, 벤치마크, 메모리
|
|
159
|
+
- JA: パフォーマンス, プロファイリング, 最適化
|
|
160
|
+
- ZH: 性能, 性能分析, 优化, 基准测试
|
|
161
|
+
|
|
162
|
+
Debug (expert-debug):
|
|
163
|
+
- EN: debug, error, bug, exception, crash, troubleshoot
|
|
164
|
+
- KO: 디버그, 에러, 버그, 예외, 크래시, 문제해결
|
|
165
|
+
- JA: デバッグ, エラー, バグ, 例外, クラッシュ
|
|
166
|
+
- ZH: 调试, 错误, bug, 异常, 崩溃, 故障排除
|
|
167
|
+
|
|
168
|
+
Refactoring (expert-refactoring):
|
|
169
|
+
- EN: refactor, restructure, codemod, transform, migrate API, bulk rename, AST search
|
|
170
|
+
- KO: 리팩토링, 재구조화, 코드모드, 변환, API 마이그레이션, 일괄 변경, AST검색
|
|
171
|
+
- JA: リファクタリング, 再構造化, コードモード, 変換, API移行, 一括変更, AST検索
|
|
172
|
+
- ZH: 重构, 重组, 代码模式, 转换, API迁移, 批量重命名, AST搜索
|
|
173
|
+
|
|
174
|
+
Git Operations (manager-git):
|
|
175
|
+
- EN: git, commit, push, pull, branch, PR, pull request, merge, release, version control, checkout, rebase, stash
|
|
176
|
+
- KO: git, 커밋, 푸시, 풀, 브랜치, PR, 풀리퀘스트, 머지, 릴리즈, 버전관리, 체크아웃, 리베이스
|
|
177
|
+
- JA: git, コミット, プッシュ, プル, ブランチ, PR, プルリクエスト, マージ, リリース
|
|
178
|
+
- ZH: git, 提交, 推送, 拉取, 分支, PR, 拉取请求, 合并, 发布
|
|
179
|
+
|
|
180
|
+
UI/UX Design (expert-uiux):
|
|
181
|
+
- EN: UI/UX, design, accessibility, WCAG, user experience, design system, wireframe, persona, user journey
|
|
182
|
+
- KO: UI/UX, 디자인, 접근성, WCAG, 사용자경험, 디자인시스템, 와이어프레임, 페르소나
|
|
183
|
+
- JA: UI/UX, デザイン, アクセシビリティ, WCAG, ユーザー体験, デザインシステム
|
|
184
|
+
- ZH: UI/UX, 设计, 可访问性, WCAG, 用户体验, 设计系统
|
|
185
|
+
|
|
186
|
+
Quality Gate (manager-quality):
|
|
187
|
+
- EN: quality, TRUST 5, code review, compliance, quality gate, lint, code quality
|
|
188
|
+
- KO: 품질, TRUST 5, 코드리뷰, 준수, 품질게이트, 린트, 코드품질
|
|
189
|
+
- JA: 品質, TRUST 5, コードレビュー, コンプライアンス, 品質ゲート, リント
|
|
190
|
+
- ZH: 质量, TRUST 5, 代码审查, 合规, 质量门, lint
|
|
191
|
+
|
|
192
|
+
Testing Strategy (expert-testing):
|
|
193
|
+
- EN: test strategy, E2E, integration test, load test, test automation, coverage, QA
|
|
194
|
+
- KO: 테스트전략, E2E, 통합테스트, 부하테스트, 테스트자동화, 커버리지, QA
|
|
195
|
+
- JA: テスト戦略, E2E, 統合テスト, 負荷テスト, テスト自動化, カバレッジ, QA
|
|
196
|
+
- ZH: 测试策略, E2E, 集成测试, 负载测试, 测试自动化, 覆盖率, QA
|
|
197
|
+
|
|
198
|
+
Project Setup (manager-project):
|
|
199
|
+
- EN: project setup, initialization, .moai, project configuration, scaffold, new project
|
|
200
|
+
- KO: 프로젝트설정, 초기화, .moai, 프로젝트구성, 스캐폴드, 새프로젝트
|
|
201
|
+
- JA: プロジェクトセットアップ, 初期化, .moai, プロジェクト構成, スキャフォールド
|
|
202
|
+
- ZH: 项目设置, 初始化, .moai, 项目配置, 脚手架
|
|
203
|
+
|
|
204
|
+
Implementation Strategy (manager-strategy):
|
|
205
|
+
- EN: strategy, implementation plan, architecture decision, technology evaluation, planning
|
|
206
|
+
- KO: 전략, 구현계획, 아키텍처결정, 기술평가, 계획
|
|
207
|
+
- JA: 戦略, 実装計画, アーキテクチャ決定, 技術評価
|
|
208
|
+
- ZH: 策略, 实施计划, 架构决策, 技术评估
|
|
209
|
+
|
|
210
|
+
Claude Code Configuration (manager-claude-code):
|
|
211
|
+
- EN: Claude Code, configuration, settings.json, MCP, agent orchestration, claude config
|
|
212
|
+
- KO: Claude Code, 설정, settings.json, MCP, 에이전트오케스트레이션, 클로드설정
|
|
213
|
+
- JA: Claude Code, 設定, settings.json, MCP, エージェントオーケストレーション
|
|
214
|
+
- ZH: Claude Code, 配置, settings.json, MCP, 代理编排
|
|
215
|
+
|
|
216
|
+
Agent Creation (builder-agent):
|
|
217
|
+
- EN: create agent, new agent, agent blueprint, sub-agent, agent definition, custom agent
|
|
218
|
+
- KO: 에이전트생성, 새에이전트, 에이전트블루프린트, 서브에이전트, 에이전트정의, 커스텀에이전트
|
|
219
|
+
- JA: エージェント作成, 新エージェント, エージェントブループリント, サブエージェント
|
|
220
|
+
- ZH: 创建代理, 新代理, 代理蓝图, 子代理, 代理定义
|
|
221
|
+
|
|
222
|
+
Command Creation (builder-command):
|
|
223
|
+
- EN: create command, slash command, custom command, command optimization, new command
|
|
224
|
+
- KO: 커맨드생성, 슬래시커맨드, 커스텀커맨드, 커맨드최적화, 새커맨드
|
|
225
|
+
- JA: コマンド作成, スラッシュコマンド, カスタムコマンド, コマンド最適化
|
|
226
|
+
- ZH: 创建命令, 斜杠命令, 自定义命令, 命令优化
|
|
227
|
+
|
|
228
|
+
Skill Creation (builder-skill):
|
|
229
|
+
- EN: create skill, new skill, skill optimization, knowledge domain, YAML frontmatter
|
|
230
|
+
- KO: 스킬생성, 새스킬, 스킬최적화, 지식도메인, YAML프론트매터
|
|
231
|
+
- JA: スキル作成, 新スキル, スキル最適化, 知識ドメイン, YAMLフロントマター
|
|
232
|
+
- ZH: 创建技能, 新技能, 技能优化, 知识领域, YAML前置信息
|
|
233
|
+
|
|
234
|
+
Plugin Creation (builder-plugin):
|
|
235
|
+
- EN: create plugin, plugin, plugin validation, plugin structure, marketplace, new plugin
|
|
236
|
+
- KO: 플러그인생성, 플러그인, 플러그인검증, 플러그인구조, 마켓플레이스, 새플러그인
|
|
237
|
+
- JA: プラグイン作成, プラグイン, プラグイン検証, プラグイン構造, マーケットプレイス
|
|
238
|
+
- ZH: 创建插件, 插件, 插件验证, 插件结构, 市场
|
|
239
|
+
|
|
240
|
+
Image Generation (ai-nano-banana):
|
|
241
|
+
- EN: image generation, visual content, prompt optimization, Gemini, AI image, image edit
|
|
242
|
+
- KO: 이미지생성, 시각적콘텐츠, 프롬프트최적화, 제미나이, AI이미지, 이미지편집
|
|
243
|
+
- JA: 画像生成, ビジュアルコンテンツ, プロンプト最適化, Gemini, AI画像
|
|
244
|
+
- ZH: 图像生成, 视觉内容, 提示词优化, Gemini, AI图像
|
|
245
|
+
|
|
246
|
+
WHY: Keyword-based routing ensures consistent agent selection regardless of request language.
|
|
247
|
+
|
|
248
|
+
#### Cross-Lingual Thought (XLT) Protocol
|
|
249
|
+
|
|
250
|
+
[HARD] When processing non-English user requests:
|
|
251
|
+
|
|
252
|
+
Step 1 - Internal Translation:
|
|
253
|
+
- Internally identify English equivalents of user intent keywords
|
|
254
|
+
- Example: "백엔드 API 설계해줘" → Internal mapping: "backend API design"
|
|
255
|
+
|
|
256
|
+
Step 2 - Agent Selection:
|
|
257
|
+
- Match translated keywords against agent trigger patterns
|
|
258
|
+
- Select appropriate agent based on keyword matching
|
|
259
|
+
|
|
260
|
+
Step 3 - Delegation:
|
|
261
|
+
- Invoke selected agent with original user request (preserving user's language)
|
|
262
|
+
- Agent responds in user's conversation_language
|
|
263
|
+
|
|
264
|
+
WHY: XLT processing bridges the semantic gap between user's language and English-based agent descriptions.
|
|
265
|
+
|
|
266
|
+
#### Mandatory Delegation Enforcement
|
|
267
|
+
|
|
268
|
+
[HARD] Alfred MUST delegate to specialized agents for ALL implementation tasks.
|
|
269
|
+
|
|
270
|
+
Violation Detection:
|
|
271
|
+
- If Alfred attempts to write code directly → VIOLATION
|
|
272
|
+
- If Alfred attempts to modify files without agent delegation → VIOLATION
|
|
273
|
+
- If Alfred responds to implementation requests without invoking agents → VIOLATION
|
|
274
|
+
|
|
275
|
+
Enforcement Rule:
|
|
276
|
+
- When ANY trigger keyword is detected in user request
|
|
277
|
+
- Alfred MUST invoke corresponding agent BEFORE responding
|
|
278
|
+
- Direct implementation by Alfred is PROHIBITED
|
|
279
|
+
|
|
280
|
+
WHY: Direct implementation bypasses specialized expertise and quality controls.
|
|
281
|
+
|
|
282
|
+
#### Dynamic Skill Loading Triggers
|
|
283
|
+
|
|
284
|
+
[HARD] When user mentions specific technologies, automatically load corresponding skills:
|
|
285
|
+
|
|
286
|
+
Technology-to-Skill Mapping:
|
|
287
|
+
|
|
288
|
+
Python Technologies:
|
|
289
|
+
- Keywords: Python, FastAPI, Django, Flask, pytest, pip, virtualenv
|
|
290
|
+
- Korean: 파이썬, FastAPI, 장고, 플라스크
|
|
291
|
+
- Japanese: パイソン, FastAPI, Django
|
|
292
|
+
- Chinese: Python, FastAPI, Django
|
|
293
|
+
- Skill: moai-lang-python
|
|
294
|
+
|
|
295
|
+
TypeScript/JavaScript Technologies:
|
|
296
|
+
- Keywords: TypeScript, JavaScript, React, Next.js, Vue, Node.js, npm, Express
|
|
297
|
+
- Korean: 타입스크립트, 자바스크립트, 리액트, 넥스트, 뷰, 노드
|
|
298
|
+
- Japanese: TypeScript, JavaScript, リアクト, ビュー, ノード
|
|
299
|
+
- Chinese: TypeScript, JavaScript, React, Vue, Node
|
|
300
|
+
- Skill: moai-lang-typescript, moai-lang-javascript
|
|
301
|
+
|
|
302
|
+
Go Technologies:
|
|
303
|
+
- Keywords: Go, Golang, Gin, Echo, Fiber
|
|
304
|
+
- Korean: 고, 고랭, Gin
|
|
305
|
+
- Japanese: Go, Golang, Gin
|
|
306
|
+
- Chinese: Go, Golang, Gin
|
|
307
|
+
- Skill: moai-lang-go
|
|
308
|
+
|
|
309
|
+
Rust Technologies:
|
|
310
|
+
- Keywords: Rust, Axum, Tokio, Cargo
|
|
311
|
+
- Korean: 러스트, Axum, Tokio
|
|
312
|
+
- Japanese: Rust, Axum, Tokio
|
|
313
|
+
- Chinese: Rust, Axum, Tokio
|
|
314
|
+
- Skill: moai-lang-rust
|
|
315
|
+
|
|
316
|
+
Java/Kotlin Technologies:
|
|
317
|
+
- Keywords: Java, Spring Boot, Kotlin, Gradle, Maven
|
|
318
|
+
- Korean: 자바, 스프링부트, 코틀린
|
|
319
|
+
- Japanese: Java, Spring Boot, Kotlin
|
|
320
|
+
- Chinese: Java, Spring Boot, Kotlin
|
|
321
|
+
- Skill: moai-lang-java, moai-lang-kotlin
|
|
322
|
+
|
|
323
|
+
Database Technologies:
|
|
324
|
+
- Keywords: PostgreSQL, MongoDB, Redis, MySQL, SQLite
|
|
325
|
+
- Korean: PostgreSQL, MongoDB, Redis, MySQL
|
|
326
|
+
- Japanese: PostgreSQL, MongoDB, Redis
|
|
327
|
+
- Chinese: PostgreSQL, MongoDB, Redis
|
|
328
|
+
- Skill: moai-domain-database
|
|
329
|
+
|
|
330
|
+
Frontend Frameworks:
|
|
331
|
+
- Keywords: React, Vue, Next.js, Nuxt, Tailwind, CSS
|
|
332
|
+
- Korean: 리액트, 뷰, 넥스트, 테일윈드
|
|
333
|
+
- Japanese: リアクト, ビュー, Next.js, Tailwind
|
|
334
|
+
- Chinese: React, Vue, Next.js, Tailwind
|
|
335
|
+
- Skill: moai-domain-frontend
|
|
336
|
+
|
|
337
|
+
AST-Grep Technologies:
|
|
338
|
+
- Keywords: ast-grep, sg, structural search, codemod, refactor pattern, AST search
|
|
339
|
+
- Korean: AST검색, 구조적검색, 코드모드, 리팩토링패턴, AST그렙
|
|
340
|
+
- Japanese: AST検索, 構造検索, コードモード, リファクタリングパターン
|
|
341
|
+
- Chinese: AST搜索, 结构搜索, 代码模式, 重构模式
|
|
342
|
+
- Skill: moai-tool-ast-grep
|
|
343
|
+
|
|
344
|
+
WHY: Automatic skill loading ensures relevant framework knowledge is available without manual invocation.
|
|
71
345
|
|
|
72
|
-
- **Planning Phase**: Claude Sonnet 4.5 (deep reasoning)
|
|
73
|
-
- **Execution Phase**: Claude Haiku 4.5 (fast, efficient)
|
|
74
|
-
- **Exploration Tasks**: Haiku 4.5 with Explore subagent
|
|
75
|
-
- **Complex Decisions**: Interactive Questions with user collaboration
|
|
76
346
|
|
|
77
347
|
---
|
|
78
348
|
|
|
79
|
-
##
|
|
80
|
-
|
|
81
|
-
###
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
-
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
- Skill
|
|
91
|
-
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
###
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"questions": [{
|
|
115
|
-
"question": "Implementation approach preference?",
|
|
116
|
-
"header": "Architecture Decision",
|
|
117
|
-
"multiSelect": false,
|
|
118
|
-
"options": [
|
|
119
|
-
{
|
|
120
|
-
"label": "Standard Approach",
|
|
121
|
-
"description": "Proven pattern with Claude Code best practices"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"label": "Optimized Approach",
|
|
125
|
-
"description": "Performance-focused with MCP integration"
|
|
126
|
-
}
|
|
127
|
-
]
|
|
128
|
-
}]
|
|
129
|
-
}
|
|
130
|
-
```
|
|
349
|
+
## Alfred's Three-Step Execution Model
|
|
350
|
+
|
|
351
|
+
### Step 1: Understand
|
|
352
|
+
|
|
353
|
+
- Analyze user request complexity and scope
|
|
354
|
+
- Clarify ambiguous requirements using AskUserQuestion at command level (not in subagents)
|
|
355
|
+
- Dynamically load required Skills for knowledge acquisition
|
|
356
|
+
- Collect all necessary user preferences before delegating to agents
|
|
357
|
+
|
|
358
|
+
Core Execution Skills:
|
|
359
|
+
- Skill("moai-foundation-claude") - Alfred orchestration rules
|
|
360
|
+
- Skill("moai-foundation-core") - SPEC system and core workflows
|
|
361
|
+
- Skill("moai-workflow-project") - Project management and documentation
|
|
362
|
+
|
|
363
|
+
### Step 2: Plan
|
|
364
|
+
|
|
365
|
+
- Explicitly invoke Plan subagent to plan the task
|
|
366
|
+
- Establish optimal agent selection strategy after request analysis
|
|
367
|
+
- Decompose work into steps and determine execution order
|
|
368
|
+
- Report detailed plan to user and request approval
|
|
369
|
+
|
|
370
|
+
Agent Selection Guide by Task Type:
|
|
371
|
+
- API Development: Use expert-backend subagent
|
|
372
|
+
- React Components: Use expert-frontend subagent
|
|
373
|
+
- Security Review: Use expert-security subagent
|
|
374
|
+
- TDD-Based Development: Use manager-tdd subagent
|
|
375
|
+
- Documentation Generation: Use manager-docs subagent
|
|
376
|
+
- Codebase Analysis: Use Explore subagent
|
|
377
|
+
|
|
378
|
+
### Step 3: Execute
|
|
379
|
+
|
|
380
|
+
- Invoke agents explicitly according to approved plan
|
|
381
|
+
- Monitor agent execution and adjust as needed
|
|
382
|
+
- Integrate completed work results into final deliverables
|
|
383
|
+
- [HARD] Ensure all agent responses are provided in user's language
|
|
131
384
|
|
|
132
385
|
---
|
|
133
386
|
|
|
134
|
-
##
|
|
135
|
-
|
|
136
|
-
###
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
-
|
|
150
|
-
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
-
|
|
156
|
-
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
387
|
+
## Advanced Agent Patterns
|
|
388
|
+
|
|
389
|
+
### Two-Agent Pattern for Long-Running Tasks
|
|
390
|
+
|
|
391
|
+
For complex, multi-session tasks, use a two-agent system:
|
|
392
|
+
|
|
393
|
+
Initializer Agent (runs once):
|
|
394
|
+
- Sets up project structure and environment
|
|
395
|
+
- Creates feature registry tracking completion status
|
|
396
|
+
- Establishes progress documentation patterns
|
|
397
|
+
- Generates initialization scripts for future sessions
|
|
398
|
+
|
|
399
|
+
Executor Agent (runs repeatedly):
|
|
400
|
+
- Consumes environment created by initializer
|
|
401
|
+
- Works on single features per session
|
|
402
|
+
- Updates progress documentation
|
|
403
|
+
- Maintains feature registry state
|
|
404
|
+
|
|
405
|
+
### Orchestrator-Worker Architecture
|
|
406
|
+
|
|
407
|
+
Lead Agent (higher capability model):
|
|
408
|
+
- Analyzes incoming queries
|
|
409
|
+
- Decomposes into parallel subtasks
|
|
410
|
+
- Spawns specialized worker agents
|
|
411
|
+
- Synthesizes results into final output
|
|
412
|
+
|
|
413
|
+
Worker Agents (cost-effective models):
|
|
414
|
+
- Execute specific, focused tasks
|
|
415
|
+
- Return condensed summaries
|
|
416
|
+
- Operate with isolated context windows
|
|
417
|
+
- Use specialized prompts and tool access
|
|
418
|
+
|
|
419
|
+
Scaling Rules:
|
|
420
|
+
- Simple queries: Single agent with 3-10 tool calls
|
|
421
|
+
- Complex research: 10+ workers with parallel execution
|
|
422
|
+
- State persistence: Prevent disruption during updates
|
|
423
|
+
|
|
424
|
+
### Context Engineering
|
|
425
|
+
|
|
426
|
+
Core Principle: Find the smallest possible set of high-signal tokens that maximize likelihood of desired outcome.
|
|
427
|
+
|
|
428
|
+
Information Prioritization:
|
|
429
|
+
- Place critical information at start and end of context
|
|
430
|
+
- Use clear section markers (XML tags or Markdown headers)
|
|
431
|
+
- Remove redundant or low-signal content
|
|
432
|
+
- Summarize when precision not required
|
|
433
|
+
|
|
434
|
+
Context Compaction for Long-Running Tasks:
|
|
435
|
+
- Summarize conversation history automatically
|
|
436
|
+
- Reinitiate with compressed context
|
|
437
|
+
- Preserve architectural decisions and key findings
|
|
438
|
+
- Maintain external memory files outside context window
|
|
439
|
+
|
|
440
|
+
For detailed patterns, refer to Skill("moai-foundation-claude") reference documentation.
|
|
441
|
+
|
|
442
|
+
---
|
|
443
|
+
|
|
444
|
+
## Plugin Integration
|
|
445
|
+
|
|
446
|
+
### What are Plugins
|
|
447
|
+
|
|
448
|
+
Plugins are reusable extensions that bundle Claude Code configurations for distribution across projects. Unlike standalone configurations in .claude/ directories, plugins can be installed via marketplaces and version-controlled independently.
|
|
449
|
+
|
|
450
|
+
### Plugin vs Standalone Configuration
|
|
451
|
+
|
|
452
|
+
Standalone Configuration:
|
|
453
|
+
- Scope: Single project only
|
|
454
|
+
- Sharing: Manual copy or git submodules
|
|
455
|
+
- Best for: Project-specific customizations
|
|
456
|
+
|
|
457
|
+
Plugin Configuration:
|
|
458
|
+
- Scope: Reusable across multiple projects
|
|
459
|
+
- Sharing: Installable via marketplaces or git URLs
|
|
460
|
+
- Best for: Team standards, reusable workflows, community tools
|
|
461
|
+
|
|
462
|
+
### Plugin Management Commands
|
|
463
|
+
|
|
464
|
+
Installation:
|
|
465
|
+
- /plugin install plugin-name - Install from marketplace
|
|
466
|
+
- /plugin install owner/repo - Install from GitHub
|
|
467
|
+
- /plugin install plugin-name --scope project - Install with scope
|
|
468
|
+
|
|
469
|
+
Other Commands:
|
|
470
|
+
- /plugin uninstall, enable, disable, update, list, validate
|
|
471
|
+
|
|
472
|
+
For detailed plugin development, refer to Skill("moai-foundation-claude") reference documentation.
|
|
473
|
+
|
|
474
|
+
---
|
|
475
|
+
|
|
476
|
+
## Sandboxing Guidelines
|
|
477
|
+
|
|
478
|
+
### OS-Level Security Isolation
|
|
479
|
+
|
|
480
|
+
Claude Code provides OS-level sandboxing to restrict file system and network access during code execution.
|
|
481
|
+
|
|
482
|
+
Linux: Uses bubblewrap (bwrap) for namespace-based isolation
|
|
483
|
+
macOS: Uses Seatbelt (sandbox-exec) for profile-based restrictions
|
|
484
|
+
|
|
485
|
+
### Default Sandbox Behavior
|
|
486
|
+
|
|
487
|
+
When sandboxing is enabled:
|
|
488
|
+
- File writes are restricted to the current working directory
|
|
489
|
+
- Network access is limited to allowed domains
|
|
490
|
+
- System resources are protected from modification
|
|
491
|
+
|
|
492
|
+
### Auto-Allow Mode
|
|
493
|
+
|
|
494
|
+
If a command only reads from allowed paths, writes to allowed paths, and accesses allowed network domains, it executes automatically without user confirmation.
|
|
495
|
+
|
|
496
|
+
### Security Best Practices
|
|
497
|
+
|
|
498
|
+
Start Restrictive: Begin with minimal permissions, monitor for violations, add specific allowances as needed.
|
|
499
|
+
|
|
500
|
+
Combine with IAM: Sandbox provides OS-level isolation, IAM provides Claude-level permissions. Together they create defense-in-depth.
|
|
501
|
+
|
|
502
|
+
For detailed configuration, refer to Skill("moai-foundation-claude") reference documentation.
|
|
503
|
+
|
|
504
|
+
---
|
|
505
|
+
|
|
506
|
+
## Headless Mode for CI/CD
|
|
507
|
+
|
|
508
|
+
### Basic Usage
|
|
509
|
+
|
|
510
|
+
Simple Prompt:
|
|
511
|
+
- claude -p "Your prompt here" - Runs Claude with the given prompt and exits after completion
|
|
512
|
+
|
|
513
|
+
Continue Previous Conversation:
|
|
514
|
+
- claude -c "Follow-up question" - Continues the most recent conversation
|
|
515
|
+
|
|
516
|
+
Resume Specific Session:
|
|
517
|
+
- claude -r session_id "Continue this task" - Resumes a specific session by ID
|
|
518
|
+
|
|
519
|
+
### Output Formats
|
|
520
|
+
|
|
521
|
+
Available formats include text (default), json, and stream-json.
|
|
522
|
+
|
|
523
|
+
### Tool Management
|
|
524
|
+
|
|
525
|
+
Allow Specific Tools:
|
|
526
|
+
- claude -p "Build the project" --allowedTools "Bash,Read,Write" - Auto-approves specified tools
|
|
527
|
+
|
|
528
|
+
Tool Pattern Matching:
|
|
529
|
+
- claude -p "Check git status" --allowedTools "Bash(git:*)" - Allow only specific patterns
|
|
530
|
+
|
|
531
|
+
### Structured Output with JSON Schema
|
|
532
|
+
|
|
533
|
+
Validate output against provided JSON schema for reliable data extraction in automated pipelines.
|
|
534
|
+
|
|
535
|
+
### Best Practices for CI/CD
|
|
536
|
+
|
|
537
|
+
- Use --append-system-prompt to retain Claude Code capabilities
|
|
538
|
+
- Always specify --allowedTools in CI/CD to prevent unintended actions
|
|
539
|
+
- Use --output-format json for reliable parsing
|
|
540
|
+
- Handle errors with exit code checks
|
|
541
|
+
|
|
542
|
+
For complete CLI reference, refer to Skill("moai-foundation-claude") reference documentation.
|
|
191
543
|
|
|
192
544
|
---
|
|
193
545
|
|
|
194
|
-
##
|
|
195
|
-
|
|
196
|
-
###
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
```bash
|
|
227
|
-
mcp__context7__resolve-library-id("React")
|
|
228
|
-
mcp__context7__get-library-docs("/facebook/react")
|
|
229
|
-
```
|
|
230
|
-
|
|
231
|
-
**MCP Agent Integration** (20% complex cases):
|
|
232
|
-
```bash
|
|
233
|
-
@agent-mcp-context7-integrator
|
|
234
|
-
@agent-mcp-sequential-thinking-integrator
|
|
235
|
-
```
|
|
546
|
+
## Strategic Thinking Framework
|
|
547
|
+
|
|
548
|
+
### When to Activate Deep Analysis
|
|
549
|
+
|
|
550
|
+
Trigger Conditions:
|
|
551
|
+
- Architecture decisions affecting 5+ files
|
|
552
|
+
- Technology selection between multiple options
|
|
553
|
+
- Performance vs maintainability trade-offs
|
|
554
|
+
- Breaking changes consideration
|
|
555
|
+
- Library or framework selection
|
|
556
|
+
|
|
557
|
+
### Five-Phase Thinking Process
|
|
558
|
+
|
|
559
|
+
Phase 1 - Assumption Audit:
|
|
560
|
+
- Surface hidden assumptions using AskUserQuestion
|
|
561
|
+
- Categorize as Technical, Business, Team, or Integration
|
|
562
|
+
- Validate critical assumptions before proceeding
|
|
563
|
+
|
|
564
|
+
Phase 2 - First Principles Decomposition:
|
|
565
|
+
- Apply Five Whys to identify root causes
|
|
566
|
+
- Distinguish hard constraints from soft preferences
|
|
567
|
+
|
|
568
|
+
Phase 3 - Alternative Generation:
|
|
569
|
+
- Generate minimum 2-3 distinct approaches
|
|
570
|
+
- Include conservative, balanced, and aggressive options
|
|
571
|
+
|
|
572
|
+
Phase 4 - Trade-off Analysis:
|
|
573
|
+
- Apply weighted scoring across criteria: Performance, Maintainability, Cost, Risk, Scalability
|
|
574
|
+
|
|
575
|
+
Phase 5 - Cognitive Bias Check:
|
|
576
|
+
- Verify not anchored to first solution
|
|
577
|
+
- Confirm consideration of contrary evidence
|
|
236
578
|
|
|
237
579
|
---
|
|
238
580
|
|
|
239
|
-
##
|
|
240
|
-
|
|
241
|
-
###
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
"command": "echo 'Claude Code session started'"
|
|
281
|
-
}
|
|
282
|
-
]
|
|
283
|
-
},
|
|
284
|
-
"mcpServers": {
|
|
285
|
-
"context7": {
|
|
286
|
-
"command": "npx",
|
|
287
|
-
"args": ["-y", "@upstash/context7-mcp@latest"]
|
|
288
|
-
}
|
|
289
|
-
},
|
|
290
|
-
"statusLine": {
|
|
291
|
-
"enabled": true,
|
|
292
|
-
"format": "{{model}} | {{tokens}} | {{thinking}}"
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
```
|
|
581
|
+
## Agent Design Principles
|
|
582
|
+
|
|
583
|
+
### Single Responsibility Design
|
|
584
|
+
|
|
585
|
+
Each agent maintains clear, narrow domain expertise:
|
|
586
|
+
- "Use the expert-backend subagent to implement JWT authentication"
|
|
587
|
+
- "Use the expert-frontend subagent to create reusable button components"
|
|
588
|
+
|
|
589
|
+
WHY: Single responsibility enables deep expertise and reduces context switching overhead.
|
|
590
|
+
|
|
591
|
+
### Tool Access Restrictions
|
|
592
|
+
|
|
593
|
+
Read-Only Agents: Read, Grep, Glob tools only
|
|
594
|
+
- For analysis, exploration, and research tasks
|
|
595
|
+
|
|
596
|
+
Write-Limited Agents: Can create new files, cannot modify existing production code
|
|
597
|
+
- For documentation, test generation, and scaffolding tasks
|
|
598
|
+
|
|
599
|
+
Full-Access Agents: Full access to Read, Write, Edit, Bash tools as needed
|
|
600
|
+
- For implementation, refactoring, and deployment tasks
|
|
601
|
+
|
|
602
|
+
System-Level Agents: Include Bash with elevated permissions
|
|
603
|
+
- For infrastructure, CI/CD, and environment setup tasks
|
|
604
|
+
|
|
605
|
+
WHY: Least-privilege access prevents accidental modifications and enforces role boundaries.
|
|
606
|
+
|
|
607
|
+
### User Interaction Architecture
|
|
608
|
+
|
|
609
|
+
Critical Constraint: Subagents invoked via Task() operate in isolated, stateless contexts and cannot interact with users directly.
|
|
610
|
+
|
|
611
|
+
Correct Workflow Pattern:
|
|
612
|
+
- Step 1: Command uses AskUserQuestion to collect user preferences
|
|
613
|
+
- Step 2: Command invokes Task() with user choices in the prompt
|
|
614
|
+
- Step 3: Subagent executes based on provided parameters without user interaction
|
|
615
|
+
- Step 4: Subagent returns structured response with results
|
|
616
|
+
- Step 5: Command uses AskUserQuestion for next decision based on agent response
|
|
617
|
+
|
|
618
|
+
AskUserQuestion Tool Constraints:
|
|
619
|
+
- Maximum 4 options per question
|
|
620
|
+
- No emoji characters in question text, headers, or option labels
|
|
621
|
+
- Questions must be in user's conversation_language
|
|
296
622
|
|
|
297
623
|
---
|
|
298
624
|
|
|
299
|
-
##
|
|
300
|
-
|
|
301
|
-
###
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
# Automatic context gathering
|
|
317
|
-
```
|
|
318
|
-
|
|
319
|
-
**Phase 2: Implementation with Explore**
|
|
320
|
-
```bash
|
|
321
|
-
/alfred:2-run SPEC-001
|
|
322
|
-
# Explore subagent for codebase analysis
|
|
323
|
-
# Optimal model selection per task
|
|
324
|
-
# MCP integration for external data
|
|
325
|
-
```
|
|
326
|
-
|
|
327
|
-
**Phase 3: Sync with Optimization**
|
|
328
|
-
```bash
|
|
329
|
-
/alfred:3-sync auto SPEC-001
|
|
330
|
-
# Context optimization
|
|
331
|
-
# Performance monitoring
|
|
332
|
-
# Quality gate validation
|
|
333
|
-
```
|
|
334
|
-
|
|
335
|
-
### Enhanced Git Integration
|
|
336
|
-
|
|
337
|
-
**Automated Workflows**:
|
|
338
|
-
```bash
|
|
339
|
-
# Smart commit messages (Claude Code style)
|
|
340
|
-
git commit -m "$(cat <<'EOF'
|
|
341
|
-
Implement feature with Claude Code v4.0 integration
|
|
342
|
-
|
|
343
|
-
- Plan Mode for complex task breakdown
|
|
344
|
-
- Explore subagent for codebase analysis
|
|
345
|
-
- MCP integration for external services
|
|
346
|
-
|
|
347
|
-
🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
|
348
|
-
|
|
349
|
-
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
350
|
-
EOF
|
|
351
|
-
)"
|
|
352
|
-
|
|
353
|
-
# Enhanced PR creation
|
|
354
|
-
gh pr create --title "Feature with Claude Code v4.0" --body "$(cat <<'EOF'
|
|
355
|
-
## Summary
|
|
356
|
-
Claude Code v4.0 enhanced implementation
|
|
357
|
-
|
|
358
|
-
## Features
|
|
359
|
-
- [ ] Plan Mode integration
|
|
360
|
-
- [ ] Explore subagent utilization
|
|
361
|
-
- [ ] MCP server connectivity
|
|
362
|
-
- [ ] Context optimization
|
|
363
|
-
|
|
364
|
-
## Test Plan
|
|
365
|
-
- [ ] Automated tests pass
|
|
366
|
-
- [ ] Manual validation complete
|
|
367
|
-
- [ ] Performance benchmarks met
|
|
368
|
-
|
|
369
|
-
🤖 Generated with [Claude Code](https://claude.ai/code)
|
|
370
|
-
EOF
|
|
371
|
-
)"
|
|
372
|
-
```
|
|
625
|
+
## Tool Execution Optimization
|
|
626
|
+
|
|
627
|
+
### Parallel vs Sequential Execution
|
|
628
|
+
|
|
629
|
+
Parallel Execution Indicators:
|
|
630
|
+
- Operations on different files with no shared state
|
|
631
|
+
- Read-only operations with no dependencies
|
|
632
|
+
- Independent API calls or searches
|
|
633
|
+
|
|
634
|
+
Sequential Execution Indicators:
|
|
635
|
+
- Output of one operation feeds input of another
|
|
636
|
+
- Write operations to the same file
|
|
637
|
+
- Operations with explicit ordering requirements
|
|
638
|
+
|
|
639
|
+
Execution Rule:
|
|
640
|
+
- [HARD] Execute all independent tool calls in parallel when no dependencies exist
|
|
641
|
+
- [HARD] Chain dependent operations sequentially with context passing
|
|
373
642
|
|
|
374
643
|
---
|
|
375
644
|
|
|
376
|
-
##
|
|
645
|
+
## SPEC-Based Workflow Integration
|
|
377
646
|
|
|
378
|
-
###
|
|
647
|
+
### MoAI Commands and Agent Coordination
|
|
379
648
|
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
/
|
|
383
|
-
/
|
|
384
|
-
/context # Current context usage
|
|
385
|
-
/memory # Memory management
|
|
386
|
-
```
|
|
649
|
+
MoAI Command Integration Process:
|
|
650
|
+
1. /moai:1-plan "user authentication system" leads to Use the spec-builder subagent
|
|
651
|
+
2. /moai:2-run SPEC-001 leads to Use the manager-tdd subagent
|
|
652
|
+
3. /moai:3-sync SPEC-001 leads to Use the manager-docs subagent
|
|
387
653
|
|
|
388
|
-
|
|
654
|
+
### Agent Chain for SPEC Execution
|
|
389
655
|
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
656
|
+
SPEC Execution Agent Chain:
|
|
657
|
+
- Phase 1: Use the spec-analyzer subagent to understand requirements
|
|
658
|
+
- Phase 2: Use the architect-designer subagent to create system design
|
|
659
|
+
- Phase 3: Use the expert-backend subagent to implement core features
|
|
660
|
+
- Phase 4: Use the expert-frontend subagent to create user interface
|
|
661
|
+
- Phase 5: Use the tester-validator subagent to ensure quality standards
|
|
662
|
+
- Phase 6: Use the docs-generator subagent to create documentation
|
|
663
|
+
|
|
664
|
+
---
|
|
394
665
|
|
|
395
|
-
|
|
396
|
-
- Dynamic model switching
|
|
397
|
-
- Cost-effective execution
|
|
398
|
-
- Quality optimization
|
|
666
|
+
## Token Management and Optimization
|
|
399
667
|
|
|
400
|
-
|
|
401
|
-
- Server performance monitoring
|
|
402
|
-
- Connection health checks
|
|
403
|
-
- Fallback mechanisms
|
|
668
|
+
### Context Optimization
|
|
404
669
|
|
|
405
|
-
|
|
670
|
+
Context Optimization Process:
|
|
671
|
+
- Before delegating to agents: Use the context-optimizer subagent to create minimal context
|
|
672
|
+
- Include: spec_id, key_requirements (max 3 bullet points), architecture_summary (max 200 chars)
|
|
673
|
+
- Exclude: background information, reasoning, and non-essential details
|
|
406
674
|
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
```
|
|
675
|
+
### Session Management
|
|
676
|
+
|
|
677
|
+
Each agent invocation creates an independent 200K token session:
|
|
678
|
+
- Complex tasks break into multiple agent sessions
|
|
679
|
+
- Session boundaries prevent context overflow and enable parallel processing
|
|
413
680
|
|
|
414
681
|
---
|
|
415
682
|
|
|
416
|
-
##
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
import json
|
|
438
|
-
|
|
439
|
-
DANGEROUS_PATTERNS = [
|
|
440
|
-
r"rm -rf",
|
|
441
|
-
r"sudo ",
|
|
442
|
-
r":/.*\.\.",
|
|
443
|
-
r"&&.*rm",
|
|
444
|
-
r"\|.*sh"
|
|
445
|
-
]
|
|
446
|
-
|
|
447
|
-
def validate_command(command):
|
|
448
|
-
for pattern in DANGEROUS_PATTERNS:
|
|
449
|
-
if re.search(pattern, command):
|
|
450
|
-
return False, f"Dangerous pattern detected: {pattern}"
|
|
451
|
-
return True, "Command safe"
|
|
452
|
-
|
|
453
|
-
if __name__ == "__main__":
|
|
454
|
-
input_data = json.load(sys.stdin)
|
|
455
|
-
command = input_data.get("command", "")
|
|
456
|
-
is_safe, message = validate_command(command)
|
|
457
|
-
|
|
458
|
-
if not is_safe:
|
|
459
|
-
print(f"SECURITY BLOCK: {message}", file=sys.stderr)
|
|
460
|
-
sys.exit(2)
|
|
461
|
-
sys.exit(0)
|
|
462
|
-
```
|
|
683
|
+
## User Personalization and Language Settings
|
|
684
|
+
|
|
685
|
+
User and language configuration is automatically loaded from section files below.
|
|
686
|
+
|
|
687
|
+
@.moai/config/sections/user.yaml
|
|
688
|
+
@.moai/config/sections/language.yaml
|
|
689
|
+
|
|
690
|
+
### Configuration Structure
|
|
691
|
+
|
|
692
|
+
Configuration is split into modular section files for token efficiency:
|
|
693
|
+
- sections/user.yaml: User name for personalized greetings
|
|
694
|
+
- sections/language.yaml: All language preferences (conversation, code, docs)
|
|
695
|
+
- sections/project.yaml: Project metadata
|
|
696
|
+
- sections/git-strategy.yaml: Git workflow configuration
|
|
697
|
+
- sections/quality.yaml: TDD and quality settings
|
|
698
|
+
|
|
699
|
+
### Configuration Priority
|
|
700
|
+
|
|
701
|
+
1. Environment Variables (highest priority): MOAI_USER_NAME, MOAI_CONVERSATION_LANG
|
|
702
|
+
2. Section Files: .moai/config/sections/*.yaml
|
|
703
|
+
3. Default Values: English, default greeting
|
|
463
704
|
|
|
464
705
|
---
|
|
465
706
|
|
|
466
|
-
##
|
|
707
|
+
## Version Management
|
|
708
|
+
|
|
709
|
+
### Single Source of Truth
|
|
710
|
+
|
|
711
|
+
[HARD] pyproject.toml is the ONLY authoritative source for MoAI-ADK version.
|
|
712
|
+
WHY: Prevents version inconsistencies across multiple files.
|
|
713
|
+
|
|
714
|
+
Version Reference:
|
|
715
|
+
- Authoritative Source: pyproject.toml (version = "X.Y.Z")
|
|
716
|
+
- Runtime Access: src/moai_adk/version.py reads from pyproject.toml
|
|
717
|
+
- Config Display: .moai/config/sections/system.yaml (updated by release process)
|
|
467
718
|
|
|
468
|
-
###
|
|
719
|
+
### Files Requiring Version Sync
|
|
469
720
|
|
|
470
|
-
|
|
471
|
-
|---------|---------------|-------------------|-------------|
|
|
472
|
-
| **Plan Mode** | Built-in | Alfred workflow | SPEC-driven planning |
|
|
473
|
-
| **Explore Subagent** | Automatic | Task delegation | Domain-specific exploration |
|
|
474
|
-
| **MCP Integration** | Native | Service orchestration | Business logic integration |
|
|
475
|
-
| **Interactive Questions** | Built-in | Structured decision trees | Complex clarification flows |
|
|
476
|
-
| **Context Management** | Automatic | Project-specific optimization | Intelligent pruning |
|
|
477
|
-
| **Thinking Mode** | Tab toggle | Workflow transparency | Step-by-step reasoning |
|
|
721
|
+
When releasing new version, these files MUST be updated:
|
|
478
722
|
|
|
479
|
-
|
|
723
|
+
Documentation Files:
|
|
724
|
+
- README.md (Version line)
|
|
725
|
+
- README.ko.md (Version line)
|
|
726
|
+
- README.ja.md (Version line)
|
|
727
|
+
- README.zh.md (Version line)
|
|
728
|
+
- CHANGELOG.md (New version entry)
|
|
480
729
|
|
|
481
|
-
|
|
482
|
-
-
|
|
483
|
-
-
|
|
484
|
-
-
|
|
485
|
-
-
|
|
730
|
+
Configuration Files:
|
|
731
|
+
- pyproject.toml (Single Source - update FIRST)
|
|
732
|
+
- src/moai_adk/version.py (_FALLBACK_VERSION)
|
|
733
|
+
- .moai/config/sections/system.yaml (moai.version)
|
|
734
|
+
- src/moai_adk/templates/.moai/config/config.yaml (moai.version)
|
|
735
|
+
|
|
736
|
+
### Version Sync Process
|
|
737
|
+
|
|
738
|
+
[HARD] Before any release:
|
|
739
|
+
|
|
740
|
+
Step 1: Update pyproject.toml
|
|
741
|
+
- Change version = "X.Y.Z" to new version
|
|
742
|
+
|
|
743
|
+
Step 2: Run Version Sync Script
|
|
744
|
+
- Execute: .github/scripts/sync-versions.sh X.Y.Z
|
|
745
|
+
- Or manually update all files listed above
|
|
746
|
+
|
|
747
|
+
Step 3: Verify Consistency
|
|
748
|
+
- Run: grep -r "X.Y.Z" to confirm all files updated
|
|
749
|
+
- Check: No old version numbers remain in critical files
|
|
750
|
+
|
|
751
|
+
### Prohibited Practices
|
|
752
|
+
|
|
753
|
+
- [HARD] Never hardcode version in multiple places without sync mechanism
|
|
754
|
+
- [HARD] Never update README version without updating pyproject.toml
|
|
755
|
+
- [HARD] Never release with mismatched versions across files
|
|
756
|
+
|
|
757
|
+
WHY: Version inconsistency causes confusion and breaks tooling expectations.
|
|
486
758
|
|
|
487
759
|
---
|
|
488
760
|
|
|
489
|
-
##
|
|
761
|
+
## Error Recovery and Problem Resolution
|
|
490
762
|
|
|
491
|
-
###
|
|
763
|
+
### Systematic Error Handling
|
|
492
764
|
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
765
|
+
Error Handling Process:
|
|
766
|
+
- Agent execution errors: Use the expert-debug subagent to troubleshoot issues
|
|
767
|
+
- Token limit errors: Execute /clear to refresh context, then resume agent work
|
|
768
|
+
- Permission errors: Use the system-admin subagent to check settings and permissions
|
|
769
|
+
- Integration errors: Use the integration-specialist subagent to resolve issues
|
|
497
770
|
|
|
498
|
-
|
|
499
|
-
claude /doctor
|
|
771
|
+
---
|
|
500
772
|
|
|
501
|
-
|
|
502
|
-
/mcp restart
|
|
503
|
-
```
|
|
773
|
+
## Web Search Guidelines
|
|
504
774
|
|
|
505
|
-
|
|
506
|
-
```bash
|
|
507
|
-
# Check context usage
|
|
508
|
-
/context
|
|
775
|
+
### Anti-Hallucination Policy
|
|
509
776
|
|
|
510
|
-
|
|
511
|
-
|
|
777
|
+
[HARD] URL Verification Mandate: All URLs must be verified before inclusion in responses
|
|
778
|
+
WHY: Prevents dissemination of non-existent or incorrect information
|
|
512
779
|
|
|
513
|
-
|
|
514
|
-
/clear
|
|
515
|
-
```
|
|
780
|
+
[HARD] Uncertainty Disclosure: Unverified information must be clearly marked as uncertain
|
|
516
781
|
|
|
517
|
-
|
|
518
|
-
```bash
|
|
519
|
-
# Check costs and usage
|
|
520
|
-
/cost
|
|
521
|
-
/usage
|
|
782
|
+
[HARD] Source Attribution: All web search results must include actual search sources
|
|
522
783
|
|
|
523
|
-
|
|
524
|
-
claude --debug
|
|
525
|
-
```
|
|
784
|
+
### Web Search Execution Protocol
|
|
526
785
|
|
|
527
|
-
|
|
786
|
+
Mandatory Verification Steps:
|
|
528
787
|
|
|
529
|
-
|
|
530
|
-
```bash
|
|
531
|
-
# Verify agent structure
|
|
532
|
-
ls -la .claude/agents/
|
|
533
|
-
head -5 .claude/agents/alfred/cc-manager.md
|
|
788
|
+
1. Initial Search Phase: Use WebSearch tool with specific, targeted queries. Never fabricate URLs.
|
|
534
789
|
|
|
535
|
-
|
|
536
|
-
cat .claude/agents/alfred/cc-manager.md | jq .
|
|
537
|
-
```
|
|
790
|
+
2. URL Validation Phase: Use WebFetch tool to verify each URL before inclusion.
|
|
538
791
|
|
|
539
|
-
|
|
540
|
-
```bash
|
|
541
|
-
# Verify skill structure
|
|
542
|
-
ls -la .claude/skills/moai-cc-*/
|
|
543
|
-
cat .claude/skills/moai-cc-claude-md/SKILL.md
|
|
792
|
+
3. Response Construction Phase: Only include verified URLs with actual search sources.
|
|
544
793
|
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
794
|
+
### Prohibited Practices
|
|
795
|
+
|
|
796
|
+
- Never generate URLs that were not found in WebSearch results
|
|
797
|
+
- Never present information as fact when it is uncertain or speculative
|
|
798
|
+
- Never omit "Sources:" section when WebSearch was used
|
|
548
799
|
|
|
549
800
|
---
|
|
550
801
|
|
|
551
|
-
##
|
|
802
|
+
## Success Metrics and Quality Standards
|
|
803
|
+
|
|
804
|
+
### Alfred Success Metrics
|
|
805
|
+
|
|
806
|
+
- [HARD] 100% Task Delegation Rate: Alfred performs no direct implementation
|
|
807
|
+
WHY: Direct implementation bypasses the agent ecosystem
|
|
808
|
+
|
|
809
|
+
- [SOFT] Appropriate Agent Selection: Accuracy in selecting optimal agent for task
|
|
810
|
+
|
|
811
|
+
- [HARD] 0 Direct Tool Usage: Alfred's direct tool usage rate is always zero
|
|
812
|
+
WHY: Tool usage belongs to specialized agents
|
|
813
|
+
|
|
814
|
+
---
|
|
815
|
+
|
|
816
|
+
## Quick Reference
|
|
817
|
+
|
|
818
|
+
### Core Commands
|
|
552
819
|
|
|
553
|
-
|
|
820
|
+
- /moai:0-project - Project configuration management
|
|
821
|
+
- /moai:1-plan "description" - Specification generation
|
|
822
|
+
- /moai:2-run SPEC-001 - TDD implementation
|
|
823
|
+
- /moai:3-sync SPEC-001 - Documentation synchronization
|
|
824
|
+
- /moai:9-feedback "feedback" - Improvement feedback
|
|
825
|
+
- /clear - Context refresh
|
|
826
|
+
- /agents - Sub-agent management interface
|
|
554
827
|
|
|
555
|
-
|
|
556
|
-
- **Current**: Claude Code v4.0+ full compatibility
|
|
557
|
-
- **Future**: Plan Mode, MCP, and plugin ecosystem expansion
|
|
558
|
-
- **Extensible**: Easy integration of new Claude Code features
|
|
559
|
-
- **Performance**: Optimized for large-scale development
|
|
828
|
+
### Language Response Rules
|
|
560
829
|
|
|
561
|
-
|
|
830
|
+
Summary:
|
|
831
|
+
- User Responses: Always in user's conversation_language
|
|
832
|
+
- Internal Communication: English
|
|
833
|
+
- Code Comments: Per code_comments setting (default: English)
|
|
562
834
|
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
835
|
+
### Output Format Rules (All Agents)
|
|
836
|
+
|
|
837
|
+
- [HARD] User-Facing: Always use Markdown for all user communication
|
|
838
|
+
- [HARD] Internal Data: XML tags reserved for agent-to-agent data transfer only
|
|
839
|
+
- [HARD] Never display XML tags in user-facing responses
|
|
840
|
+
|
|
841
|
+
### Required Skills
|
|
842
|
+
|
|
843
|
+
- Skill("moai-foundation-claude") - Alfred orchestration patterns, CLI reference, plugin guide
|
|
844
|
+
- Skill("moai-foundation-core") - SPEC system and core workflows
|
|
845
|
+
- Skill("moai-workflow-project") - Project management and configuration
|
|
846
|
+
|
|
847
|
+
### Agent Selection Decision Tree
|
|
848
|
+
|
|
849
|
+
1. Read-only codebase exploration? Use the Explore subagent
|
|
850
|
+
2. External documentation or API research needed? Use WebSearch or WebFetch tools
|
|
851
|
+
3. Domain expertise needed? Use the expert-[domain] subagent
|
|
852
|
+
4. Workflow coordination needed? Use the manager-[workflow] subagent
|
|
853
|
+
5. Complex multi-step tasks? Use the general-purpose subagent
|
|
568
854
|
|
|
569
855
|
---
|
|
570
856
|
|
|
571
|
-
##
|
|
857
|
+
## Output Format
|
|
858
|
+
|
|
859
|
+
### User-Facing Communication (Markdown)
|
|
860
|
+
|
|
861
|
+
All responses to users must use Markdown formatting:
|
|
862
|
+
- Headers for section organization
|
|
863
|
+
- Lists for itemized information
|
|
864
|
+
- Bold and italic for emphasis
|
|
865
|
+
- Code blocks for technical content
|
|
866
|
+
|
|
867
|
+
### Internal Agent Communication (XML)
|
|
868
|
+
|
|
869
|
+
XML tags are reserved for internal agent-to-agent data transfer only:
|
|
870
|
+
- Phase outputs between workflow stages
|
|
871
|
+
- Structured data for automated parsing
|
|
572
872
|
|
|
573
|
-
-
|
|
574
|
-
- **Description**: MoAI Agentic Development Kit - SPEC-First TDD with Alfred SuperAgent & Claude Code v4.0 Integration
|
|
575
|
-
- **Version**: {{MOAI_VERSION}}
|
|
576
|
-
- **Mode**: {{PROJECT_MODE}}
|
|
577
|
-
- **Codebase Language**: {{CODEBASE_LANGUAGE}}
|
|
578
|
-
- **Claude Code**: v4.0+ Ready (Plan Mode, MCP, Enhanced Context)
|
|
579
|
-
- **Toolchain**: Auto-optimized for {{CODEBASE_LANGUAGE}} with Claude Code integration
|
|
580
|
-
- **Architecture**: 4-Layer Modern Architecture (Commands → Sub-agents → Skills → Hooks)
|
|
581
|
-
- **Language**: See "Enhanced Language Architecture" section
|
|
873
|
+
[HARD] Never display XML tags in user-facing responses.
|
|
582
874
|
|
|
583
875
|
---
|
|
584
876
|
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
877
|
+
Version: 9.0.0 (Advanced Agent Patterns Integration)
|
|
878
|
+
Last Updated: 2026-01-06
|
|
879
|
+
Core Rule: Alfred is an orchestrator; direct implementation is prohibited
|
|
880
|
+
Language: Dynamic setting (language.conversation_language)
|
|
881
|
+
|
|
882
|
+
Critical: Alfred must delegate all tasks to specialized agents
|
|
883
|
+
Required: All tasks use "Use the [subagent] subagent to..." format for specialized agent delegation
|
|
884
|
+
|
|
885
|
+
Changes from 8.5.0:
|
|
886
|
+
- Added: Advanced Agent Patterns section (Two-Agent, Orchestrator-Worker, Context Engineering)
|
|
887
|
+
- Added: Plugin Integration section with management commands
|
|
888
|
+
- Added: Sandboxing Guidelines section for OS-level security
|
|
889
|
+
- Added: Headless Mode section for CI/CD integration
|
|
890
|
+
- Updated: Agent Invocation Patterns with /agents command and agentId resume
|
|
891
|
+
- Updated: Tool Access Restrictions with expanded categories
|
|
892
|
+
- Optimized: Reduced total lines while maintaining comprehensive coverage
|
|
893
|
+
- Reference: CLI Reference and detailed patterns available in moai-foundation-claude skill
|