moai-adk 0.15.1__py3-none-any.whl → 0.25.4__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 +1 -2
- moai_adk/__main__.py +85 -2
- moai_adk/cli/__init__.py +0 -1
- moai_adk/cli/commands/__init__.py +0 -1
- moai_adk/cli/commands/analyze.py +127 -0
- moai_adk/cli/commands/backup.py +5 -3
- moai_adk/cli/commands/doctor.py +35 -11
- moai_adk/cli/commands/improve_user_experience.py +348 -0
- moai_adk/cli/commands/init.py +150 -23
- moai_adk/cli/commands/language.py +269 -0
- moai_adk/cli/commands/migrate.py +158 -0
- moai_adk/cli/commands/status.py +13 -12
- moai_adk/cli/commands/update.py +364 -60
- moai_adk/cli/commands/validate_links.py +118 -0
- moai_adk/cli/main.py +3 -2
- moai_adk/cli/prompts/init_prompts.py +79 -82
- moai_adk/core/__init__.py +0 -1
- moai_adk/core/analysis/__init__.py +9 -0
- moai_adk/core/analysis/session_analyzer.py +439 -0
- moai_adk/core/claude_integration.py +421 -0
- moai_adk/core/command_helpers.py +270 -0
- moai_adk/core/config/__init__.py +6 -0
- moai_adk/core/config/auto_spec_config.py +346 -0
- moai_adk/core/config/migration.py +133 -12
- moai_adk/core/context_manager.py +279 -0
- moai_adk/core/diagnostics/slash_commands.py +0 -1
- moai_adk/core/error_recovery_system.py +1289 -0
- moai_adk/core/git/__init__.py +0 -1
- moai_adk/core/git/branch.py +0 -1
- moai_adk/core/git/branch_manager.py +4 -4
- moai_adk/core/git/checkpoint.py +1 -5
- moai_adk/core/git/commit.py +0 -1
- moai_adk/core/git/event_detector.py +3 -5
- moai_adk/core/git/manager.py +0 -1
- moai_adk/core/hooks/post_tool_auto_spec_completion.py +925 -0
- moai_adk/core/integration/__init__.py +22 -0
- moai_adk/core/integration/engine.py +169 -0
- moai_adk/core/integration/integration_tester.py +225 -0
- moai_adk/core/integration/models.py +88 -0
- moai_adk/core/integration/utils.py +211 -0
- moai_adk/core/issue_creator.py +28 -18
- moai_adk/core/language_config.py +202 -0
- moai_adk/core/language_validator.py +556 -0
- moai_adk/core/mcp/setup.py +113 -0
- moai_adk/core/migration/__init__.py +18 -0
- moai_adk/core/migration/backup_manager.py +208 -0
- moai_adk/core/migration/file_migrator.py +218 -0
- moai_adk/core/migration/version_detector.py +143 -0
- moai_adk/core/migration/version_migrator.py +228 -0
- moai_adk/core/performance/__init__.py +6 -0
- moai_adk/core/performance/cache_system.py +318 -0
- moai_adk/core/performance/parallel_processor.py +116 -0
- moai_adk/core/project/__init__.py +0 -1
- moai_adk/core/project/backup_utils.py +2 -7
- moai_adk/core/project/checker.py +3 -3
- moai_adk/core/project/detector.py +20 -40
- moai_adk/core/project/initializer.py +42 -17
- moai_adk/core/project/phase_executor.py +415 -58
- moai_adk/core/project/validator.py +6 -25
- moai_adk/core/quality/__init__.py +1 -1
- moai_adk/core/quality/trust_checker.py +64 -110
- moai_adk/core/quality/validators/__init__.py +1 -1
- moai_adk/core/quality/validators/base_validator.py +1 -1
- moai_adk/core/rollback_manager.py +993 -0
- moai_adk/core/session_manager.py +667 -0
- moai_adk/core/spec/confidence_scoring.py +749 -0
- moai_adk/core/spec/ears_template_engine.py +1182 -0
- moai_adk/core/spec/quality_validator.py +721 -0
- moai_adk/core/spec_status_manager.py +488 -0
- moai_adk/core/template/__init__.py +0 -1
- moai_adk/core/template/backup.py +41 -1
- moai_adk/core/template/config.py +11 -12
- moai_adk/core/template/languages.py +0 -1
- moai_adk/core/template/merger.py +79 -22
- moai_adk/core/template/processor.py +614 -40
- moai_adk/core/template_engine.py +36 -27
- moai_adk/foundation/git/commit_templates.py +565 -0
- moai_adk/foundation/trust/trust_principles.py +725 -0
- moai_adk/foundation/trust/validation_checklist.py +1678 -0
- moai_adk/statusline/__init__.py +38 -0
- moai_adk/statusline/alfred_detector.py +107 -0
- moai_adk/statusline/config.py +364 -0
- moai_adk/statusline/enhanced_output_style_detector.py +364 -0
- moai_adk/statusline/git_collector.py +190 -0
- moai_adk/statusline/main.py +228 -0
- moai_adk/statusline/metrics_tracker.py +78 -0
- moai_adk/statusline/renderer.py +327 -0
- moai_adk/statusline/update_checker.py +135 -0
- moai_adk/statusline/version_reader.py +647 -0
- moai_adk/templates/.git-hooks/pre-commit +66 -0
- moai_adk/templates/.git-hooks/pre-push +116 -4
- moai_adk/templates/.github/workflows/moai-gitflow.yml +1 -7
- moai_adk/templates/.github/workflows/spec-issue-sync.yml +0 -1
- moai_adk/templates/.gitignore +44 -0
- moai_adk/templates/.mcp.json +22 -0
- moai_adk/templates/CLAUDE.md +450 -1071
- moai_adk/utils/__init__.py +0 -1
- moai_adk/utils/banner.py +0 -1
- moai_adk/utils/common.py +308 -0
- moai_adk/utils/link_validator.py +249 -0
- moai_adk/utils/logger.py +4 -9
- moai_adk/utils/safe_file_reader.py +210 -0
- moai_adk/utils/user_experience.py +531 -0
- moai_adk-0.25.4.dist-info/METADATA +2279 -0
- moai_adk-0.25.4.dist-info/RECORD +112 -0
- moai_adk/core/tags/__init__.py +0 -86
- moai_adk/core/tags/ci_validator.py +0 -463
- moai_adk/core/tags/cli.py +0 -283
- moai_adk/core/tags/generator.py +0 -109
- moai_adk/core/tags/inserter.py +0 -99
- moai_adk/core/tags/mapper.py +0 -126
- moai_adk/core/tags/parser.py +0 -76
- moai_adk/core/tags/pre_commit_validator.py +0 -393
- moai_adk/core/tags/reporter.py +0 -956
- moai_adk/core/tags/tags.py +0 -149
- moai_adk/core/tags/validator.py +0 -897
- moai_adk/templates/.claude/agents/alfred/backend-expert.md +0 -319
- moai_adk/templates/.claude/agents/alfred/cc-manager.md +0 -316
- moai_adk/templates/.claude/agents/alfred/debug-helper.md +0 -208
- moai_adk/templates/.claude/agents/alfred/devops-expert.md +0 -464
- moai_adk/templates/.claude/agents/alfred/doc-syncer.md +0 -214
- moai_adk/templates/.claude/agents/alfred/frontend-expert.md +0 -357
- moai_adk/templates/.claude/agents/alfred/git-manager.md +0 -406
- moai_adk/templates/.claude/agents/alfred/implementation-planner.md +0 -423
- moai_adk/templates/.claude/agents/alfred/project-manager.md +0 -312
- moai_adk/templates/.claude/agents/alfred/quality-gate.md +0 -343
- moai_adk/templates/.claude/agents/alfred/skill-factory.md +0 -865
- moai_adk/templates/.claude/agents/alfred/spec-builder.md +0 -426
- moai_adk/templates/.claude/agents/alfred/tag-agent.md +0 -361
- moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +0 -428
- moai_adk/templates/.claude/agents/alfred/trust-checker.md +0 -375
- moai_adk/templates/.claude/agents/alfred/ui-ux-expert.md +0 -571
- moai_adk/templates/.claude/commands/alfred/0-project.md +0 -1854
- moai_adk/templates/.claude/commands/alfred/1-plan.md +0 -880
- moai_adk/templates/.claude/commands/alfred/2-run.md +0 -793
- moai_adk/templates/.claude/commands/alfred/3-sync.md +0 -1084
- moai_adk/templates/.claude/commands/alfred/9-feedback.md +0 -149
- moai_adk/templates/.claude/hooks/alfred/core/project.py +0 -748
- moai_adk/templates/.claude/hooks/alfred/core/timeout.py +0 -136
- moai_adk/templates/.claude/hooks/alfred/core/ttl_cache.py +0 -108
- moai_adk/templates/.claude/hooks/alfred/core/version_cache.py +0 -198
- moai_adk/templates/.claude/hooks/alfred/handlers/__init__.py +0 -29
- moai_adk/templates/.claude/hooks/alfred/post_tool__log_changes.py +0 -94
- moai_adk/templates/.claude/hooks/alfred/pre_tool__auto_checkpoint.py +0 -100
- moai_adk/templates/.claude/hooks/alfred/session_end__cleanup.py +0 -94
- moai_adk/templates/.claude/hooks/alfred/session_start__show_project_info.py +0 -94
- moai_adk/templates/.claude/hooks/alfred/shared/core/__init__.py +0 -170
- moai_adk/templates/.claude/hooks/alfred/shared/core/checkpoint.py +0 -271
- moai_adk/templates/.claude/hooks/alfred/shared/core/context.py +0 -67
- moai_adk/templates/.claude/hooks/alfred/shared/core/project.py +0 -749
- moai_adk/templates/.claude/hooks/alfred/shared/core/tags.py +0 -230
- moai_adk/templates/.claude/hooks/alfred/shared/core/version_cache.py +0 -198
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/__init__.py +0 -21
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/notification.py +0 -154
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/session.py +0 -174
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/tool.py +0 -87
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/user.py +0 -61
- moai_adk/templates/.claude/hooks/alfred/user_prompt__jit_load_docs.py +0 -112
- moai_adk/templates/.claude/hooks/alfred/utils/__init__.py +0 -1
- moai_adk/templates/.claude/hooks/alfred/utils/timeout.py +0 -161
- moai_adk/templates/.claude/settings.json +0 -144
- moai_adk/templates/.claude/skills/moai-alfred-agent-guide/SKILL.md +0 -70
- moai_adk/templates/.claude/skills/moai-alfred-agent-guide/examples.md +0 -62
- moai_adk/templates/.claude/skills/moai-alfred-agent-guide/reference.md +0 -242
- moai_adk/templates/.claude/skills/moai-alfred-config-schema/SKILL.md +0 -56
- moai_adk/templates/.claude/skills/moai-alfred-config-schema/examples.md +0 -28
- moai_adk/templates/.claude/skills/moai-alfred-config-schema/reference.md +0 -444
- moai_adk/templates/.claude/skills/moai-alfred-context-budget/SKILL.md +0 -62
- moai_adk/templates/.claude/skills/moai-alfred-context-budget/examples.md +0 -28
- moai_adk/templates/.claude/skills/moai-alfred-context-budget/reference.md +0 -405
- moai_adk/templates/.claude/skills/moai-alfred-dev-guide/SKILL.md +0 -51
- moai_adk/templates/.claude/skills/moai-alfred-dev-guide/examples.md +0 -355
- moai_adk/templates/.claude/skills/moai-alfred-dev-guide/reference.md +0 -239
- moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/SKILL.md +0 -113
- moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/reference.md +0 -28
- moai_adk/templates/.claude/skills/moai-alfred-expertise-detection/SKILL.md +0 -323
- moai_adk/templates/.claude/skills/moai-alfred-expertise-detection/examples.md +0 -286
- moai_adk/templates/.claude/skills/moai-alfred-expertise-detection/reference.md +0 -126
- moai_adk/templates/.claude/skills/moai-alfred-git-workflow/SKILL.md +0 -122
- moai_adk/templates/.claude/skills/moai-alfred-git-workflow/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-alfred-git-workflow/reference.md +0 -29
- moai_adk/templates/.claude/skills/moai-alfred-gitflow-policy/SKILL.md +0 -74
- moai_adk/templates/.claude/skills/moai-alfred-gitflow-policy/examples.md +0 -4
- moai_adk/templates/.claude/skills/moai-alfred-gitflow-policy/reference.md +0 -269
- moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/SKILL.md +0 -237
- moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/examples.md +0 -615
- moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/reference.md +0 -653
- moai_adk/templates/.claude/skills/moai-alfred-issue-labels/SKILL.md +0 -19
- moai_adk/templates/.claude/skills/moai-alfred-issue-labels/examples.md +0 -4
- moai_adk/templates/.claude/skills/moai-alfred-issue-labels/reference.md +0 -150
- moai_adk/templates/.claude/skills/moai-alfred-language-detection/SKILL.md +0 -113
- moai_adk/templates/.claude/skills/moai-alfred-language-detection/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-alfred-language-detection/reference.md +0 -28
- moai_adk/templates/.claude/skills/moai-alfred-persona-roles/SKILL.md +0 -198
- moai_adk/templates/.claude/skills/moai-alfred-persona-roles/examples.md +0 -431
- moai_adk/templates/.claude/skills/moai-alfred-persona-roles/reference.md +0 -141
- moai_adk/templates/.claude/skills/moai-alfred-practices/SKILL.md +0 -89
- moai_adk/templates/.claude/skills/moai-alfred-practices/examples.md +0 -122
- moai_adk/templates/.claude/skills/moai-alfred-practices/reference.md +0 -369
- moai_adk/templates/.claude/skills/moai-alfred-proactive-suggestions/SKILL.md +0 -508
- moai_adk/templates/.claude/skills/moai-alfred-proactive-suggestions/examples.md +0 -481
- moai_adk/templates/.claude/skills/moai-alfred-proactive-suggestions/reference.md +0 -100
- moai_adk/templates/.claude/skills/moai-alfred-reporting/SKILL.md +0 -273
- moai_adk/templates/.claude/skills/moai-alfred-rules/SKILL.md +0 -77
- moai_adk/templates/.claude/skills/moai-alfred-rules/examples.md +0 -265
- moai_adk/templates/.claude/skills/moai-alfred-rules/reference.md +0 -539
- moai_adk/templates/.claude/skills/moai-alfred-session-state/SKILL.md +0 -19
- moai_adk/templates/.claude/skills/moai-alfred-session-state/examples.md +0 -4
- moai_adk/templates/.claude/skills/moai-alfred-session-state/reference.md +0 -84
- moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/README.md +0 -137
- moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/SKILL.md +0 -219
- moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/examples/validate-spec.sh +0 -161
- moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/examples.md +0 -541
- moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/reference.md +0 -622
- moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-extended/SKILL.md +0 -115
- moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-extended/examples.md +0 -4
- moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-extended/reference.md +0 -348
- moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/SKILL.md +0 -113
- moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/reference.md +0 -28
- moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/SKILL.md +0 -113
- moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/reference.md +0 -28
- moai_adk/templates/.claude/skills/moai-alfred-todowrite-pattern/SKILL.md +0 -19
- moai_adk/templates/.claude/skills/moai-alfred-todowrite-pattern/examples.md +0 -4
- moai_adk/templates/.claude/skills/moai-alfred-todowrite-pattern/reference.md +0 -211
- moai_adk/templates/.claude/skills/moai-alfred-trust-validation/SKILL.md +0 -113
- moai_adk/templates/.claude/skills/moai-alfred-trust-validation/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-alfred-trust-validation/reference.md +0 -28
- moai_adk/templates/.claude/skills/moai-alfred-workflow/SKILL.md +0 -288
- moai_adk/templates/.claude/skills/moai-cc-agents/SKILL.md +0 -269
- moai_adk/templates/.claude/skills/moai-cc-agents/templates/agent-template.md +0 -32
- moai_adk/templates/.claude/skills/moai-cc-claude-md/SKILL.md +0 -298
- moai_adk/templates/.claude/skills/moai-cc-claude-md/templates/CLAUDE-template.md +0 -26
- moai_adk/templates/.claude/skills/moai-cc-commands/SKILL.md +0 -307
- moai_adk/templates/.claude/skills/moai-cc-commands/templates/command-template.md +0 -21
- moai_adk/templates/.claude/skills/moai-cc-hooks/SKILL.md +0 -252
- moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/pre-bash-check.sh +0 -19
- moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/preserve-permissions.sh +0 -19
- moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/validate-bash-command.py +0 -24
- moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/SKILL.md +0 -199
- moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/templates/settings-mcp-template.json +0 -39
- moai_adk/templates/.claude/skills/moai-cc-memory/SKILL.md +0 -316
- moai_adk/templates/.claude/skills/moai-cc-memory/templates/session-summary-template.md +0 -18
- moai_adk/templates/.claude/skills/moai-cc-settings/SKILL.md +0 -263
- moai_adk/templates/.claude/skills/moai-cc-settings/templates/settings-complete-template.json +0 -30
- moai_adk/templates/.claude/skills/moai-cc-skill-descriptions/SKILL.md +0 -19
- moai_adk/templates/.claude/skills/moai-cc-skill-descriptions/examples.md +0 -4
- moai_adk/templates/.claude/skills/moai-cc-skill-descriptions/reference.md +0 -218
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/CHECKLIST.md +0 -482
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/EXAMPLES.md +0 -278
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/INTERACTIVE-DISCOVERY.md +0 -524
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/METADATA.md +0 -477
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/PARALLEL-ANALYSIS-REPORT.md +0 -429
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/PYTHON-VERSION-MATRIX.md +0 -391
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/SKILL-FACTORY-WORKFLOW.md +0 -431
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/SKILL-UPDATE-ADVISOR.md +0 -577
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/SKILL.md +0 -271
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/STEP-BY-STEP-GUIDE.md +0 -466
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/STRUCTURE.md +0 -583
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/WEB-RESEARCH.md +0 -526
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/reference.md +0 -465
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/scripts/generate-structure.sh +0 -328
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/scripts/validate-skill.sh +0 -312
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/templates/SKILL_TEMPLATE.md +0 -245
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/templates/examples-template.md +0 -285
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/templates/reference-template.md +0 -278
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/templates/scripts-template.sh +0 -303
- moai_adk/templates/.claude/skills/moai-cc-skills/SKILL.md +0 -291
- moai_adk/templates/.claude/skills/moai-cc-skills/templates/SKILL-template.md +0 -15
- moai_adk/templates/.claude/skills/moai-design-systems/SKILL.md +0 -802
- moai_adk/templates/.claude/skills/moai-design-systems/examples.md +0 -1238
- moai_adk/templates/.claude/skills/moai-design-systems/reference.md +0 -673
- moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +0 -290
- moai_adk/templates/.claude/skills/moai-domain-backend/examples.md +0 -1633
- moai_adk/templates/.claude/skills/moai-domain-backend/reference.md +0 -660
- moai_adk/templates/.claude/skills/moai-domain-cli-tool/SKILL.md +0 -123
- moai_adk/templates/.claude/skills/moai-domain-cli-tool/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-domain-cli-tool/reference.md +0 -30
- moai_adk/templates/.claude/skills/moai-domain-data-science/SKILL.md +0 -123
- moai_adk/templates/.claude/skills/moai-domain-data-science/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-domain-data-science/reference.md +0 -30
- moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +0 -123
- moai_adk/templates/.claude/skills/moai-domain-database/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-domain-database/reference.md +0 -30
- moai_adk/templates/.claude/skills/moai-domain-devops/SKILL.md +0 -124
- moai_adk/templates/.claude/skills/moai-domain-devops/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-domain-devops/reference.md +0 -31
- moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +0 -128
- moai_adk/templates/.claude/skills/moai-domain-frontend/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-domain-frontend/reference.md +0 -31
- moai_adk/templates/.claude/skills/moai-domain-ml/SKILL.md +0 -123
- moai_adk/templates/.claude/skills/moai-domain-ml/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-domain-ml/reference.md +0 -30
- moai_adk/templates/.claude/skills/moai-domain-mobile-app/SKILL.md +0 -123
- moai_adk/templates/.claude/skills/moai-domain-mobile-app/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-domain-mobile-app/reference.md +0 -30
- moai_adk/templates/.claude/skills/moai-domain-security/SKILL.md +0 -123
- moai_adk/templates/.claude/skills/moai-domain-security/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-domain-security/reference.md +0 -30
- moai_adk/templates/.claude/skills/moai-domain-web-api/SKILL.md +0 -123
- moai_adk/templates/.claude/skills/moai-domain-web-api/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-domain-web-api/reference.md +0 -30
- moai_adk/templates/.claude/skills/moai-essentials-debug/SKILL.md +0 -303
- moai_adk/templates/.claude/skills/moai-essentials-debug/examples.md +0 -1064
- moai_adk/templates/.claude/skills/moai-essentials-debug/reference.md +0 -1047
- moai_adk/templates/.claude/skills/moai-essentials-perf/SKILL.md +0 -113
- moai_adk/templates/.claude/skills/moai-essentials-perf/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-essentials-perf/reference.md +0 -28
- moai_adk/templates/.claude/skills/moai-essentials-refactor/SKILL.md +0 -113
- moai_adk/templates/.claude/skills/moai-essentials-refactor/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-essentials-refactor/reference.md +0 -28
- moai_adk/templates/.claude/skills/moai-essentials-review/SKILL.md +0 -113
- moai_adk/templates/.claude/skills/moai-essentials-review/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-essentials-review/reference.md +0 -28
- moai_adk/templates/.claude/skills/moai-foundation-ears/SKILL.md +0 -116
- moai_adk/templates/.claude/skills/moai-foundation-ears/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-foundation-ears/reference.md +0 -28
- moai_adk/templates/.claude/skills/moai-foundation-git/SKILL.md +0 -122
- moai_adk/templates/.claude/skills/moai-foundation-git/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-foundation-git/reference.md +0 -29
- moai_adk/templates/.claude/skills/moai-foundation-langs/SKILL.md +0 -113
- moai_adk/templates/.claude/skills/moai-foundation-langs/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-foundation-langs/reference.md +0 -28
- moai_adk/templates/.claude/skills/moai-foundation-specs/SKILL.md +0 -113
- moai_adk/templates/.claude/skills/moai-foundation-specs/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-foundation-specs/reference.md +0 -28
- moai_adk/templates/.claude/skills/moai-foundation-tags/SKILL.md +0 -113
- moai_adk/templates/.claude/skills/moai-foundation-tags/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-foundation-tags/reference.md +0 -28
- moai_adk/templates/.claude/skills/moai-foundation-trust/SKILL.md +0 -307
- moai_adk/templates/.claude/skills/moai-foundation-trust/examples.md +0 -0
- moai_adk/templates/.claude/skills/moai-foundation-trust/reference.md +0 -1099
- moai_adk/templates/.claude/skills/moai-lang-c/SKILL.md +0 -124
- moai_adk/templates/.claude/skills/moai-lang-c/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-lang-c/reference.md +0 -31
- moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +0 -124
- moai_adk/templates/.claude/skills/moai-lang-cpp/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-lang-cpp/reference.md +0 -31
- moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +0 -123
- moai_adk/templates/.claude/skills/moai-lang-csharp/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-lang-csharp/reference.md +0 -30
- moai_adk/templates/.claude/skills/moai-lang-dart/SKILL.md +0 -123
- moai_adk/templates/.claude/skills/moai-lang-dart/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-lang-dart/reference.md +0 -30
- moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +0 -127
- moai_adk/templates/.claude/skills/moai-lang-go/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-lang-go/reference.md +0 -31
- moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +0 -126
- moai_adk/templates/.claude/skills/moai-lang-java/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-lang-java/reference.md +0 -31
- moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +0 -125
- moai_adk/templates/.claude/skills/moai-lang-javascript/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-lang-javascript/reference.md +0 -32
- moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +0 -124
- moai_adk/templates/.claude/skills/moai-lang-kotlin/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-lang-kotlin/reference.md +0 -31
- moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +0 -126
- moai_adk/templates/.claude/skills/moai-lang-php/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-lang-php/reference.md +0 -30
- moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +0 -433
- moai_adk/templates/.claude/skills/moai-lang-python/examples.md +0 -624
- moai_adk/templates/.claude/skills/moai-lang-python/reference.md +0 -316
- moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +0 -123
- moai_adk/templates/.claude/skills/moai-lang-r/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-lang-r/reference.md +0 -30
- moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +0 -124
- moai_adk/templates/.claude/skills/moai-lang-ruby/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-lang-ruby/reference.md +0 -31
- moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +0 -127
- moai_adk/templates/.claude/skills/moai-lang-rust/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-lang-rust/reference.md +0 -31
- moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +0 -125
- moai_adk/templates/.claude/skills/moai-lang-scala/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-lang-scala/reference.md +0 -30
- moai_adk/templates/.claude/skills/moai-lang-shell/SKILL.md +0 -123
- moai_adk/templates/.claude/skills/moai-lang-shell/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-lang-shell/reference.md +0 -30
- moai_adk/templates/.claude/skills/moai-lang-sql/SKILL.md +0 -124
- moai_adk/templates/.claude/skills/moai-lang-sql/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-lang-sql/reference.md +0 -31
- moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +0 -123
- moai_adk/templates/.claude/skills/moai-lang-swift/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-lang-swift/reference.md +0 -30
- moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +0 -133
- moai_adk/templates/.claude/skills/moai-lang-typescript/examples.md +0 -29
- moai_adk/templates/.claude/skills/moai-lang-typescript/reference.md +0 -34
- moai_adk/templates/.claude/skills/moai-project-documentation.md +0 -622
- moai_adk/templates/.github/workflows/c-tag-validation.yml +0 -11
- moai_adk/templates/.github/workflows/cpp-tag-validation.yml +0 -11
- moai_adk/templates/.github/workflows/csharp-tag-validation.yml +0 -11
- moai_adk/templates/.github/workflows/dart-tag-validation.yml +0 -11
- moai_adk/templates/.github/workflows/go-tag-validation.yml +0 -130
- moai_adk/templates/.github/workflows/java-tag-validation.yml +0 -11
- moai_adk/templates/.github/workflows/javascript-tag-validation.yml +0 -135
- moai_adk/templates/.github/workflows/kotlin-tag-validation.yml +0 -11
- moai_adk/templates/.github/workflows/php-tag-validation.yml +0 -11
- moai_adk/templates/.github/workflows/python-tag-validation.yml +0 -118
- moai_adk/templates/.github/workflows/release.yml +0 -118
- moai_adk/templates/.github/workflows/ruby-tag-validation.yml +0 -11
- moai_adk/templates/.github/workflows/rust-tag-validation.yml +0 -11
- moai_adk/templates/.github/workflows/shell-tag-validation.yml +0 -11
- moai_adk/templates/.github/workflows/swift-tag-validation.yml +0 -11
- moai_adk/templates/.github/workflows/tag-report.yml +0 -269
- moai_adk/templates/.github/workflows/tag-validation.yml +0 -186
- moai_adk/templates/.github/workflows/typescript-tag-validation.yml +0 -154
- moai_adk/templates/.moai/config.json +0 -115
- moai_adk/templates/workflows/go-tag-validation.yml +0 -30
- moai_adk/templates/workflows/javascript-tag-validation.yml +0 -41
- moai_adk/templates/workflows/python-tag-validation.yml +0 -42
- moai_adk/templates/workflows/typescript-tag-validation.yml +0 -31
- moai_adk-0.15.1.dist-info/METADATA +0 -3094
- moai_adk-0.15.1.dist-info/RECORD +0 -365
- {moai_adk-0.15.1.dist-info → moai_adk-0.25.4.dist-info}/WHEEL +0 -0
- {moai_adk-0.15.1.dist-info → moai_adk-0.25.4.dist-info}/entry_points.txt +0 -0
- {moai_adk-0.15.1.dist-info → moai_adk-0.25.4.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,423 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: implementation-planner
|
|
3
|
-
description: "Use when: When SPEC analysis and implementation strategy need to be established. Called from /alfred:2-run Phase 1"
|
|
4
|
-
tools: Read, Grep, Glob, WebFetch, TodoWrite
|
|
5
|
-
model: sonnet
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Implementation Planner - Implementation Strategist
|
|
9
|
-
> **Note**: Interactive prompts use `AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)` for TUI selection menus. The skill is loaded on-demand when user interaction is required.
|
|
10
|
-
|
|
11
|
-
You are an expert in analyzing SPECs to determine the optimal implementation strategy and library version.
|
|
12
|
-
|
|
13
|
-
## 🎭 Agent Persona (professional developer job)
|
|
14
|
-
|
|
15
|
-
**Icon**: 📋
|
|
16
|
-
**Job**: Technical Architect
|
|
17
|
-
**Area of Expertise**: SPEC analysis, architecture design, library selection, TAG chain design
|
|
18
|
-
**Role**: Strategist who translates SPECs into actual implementation plans
|
|
19
|
-
**Goal**: Clear and Provides an actionable implementation plan
|
|
20
|
-
|
|
21
|
-
## 🌍 Language Handling
|
|
22
|
-
|
|
23
|
-
**IMPORTANT**: You will receive prompts in the user's **configured conversation_language**.
|
|
24
|
-
|
|
25
|
-
Alfred passes the user's language directly to you via `Task()` calls.
|
|
26
|
-
|
|
27
|
-
**Language Guidelines**:
|
|
28
|
-
|
|
29
|
-
1. **Prompt Language**: You receive prompts in user's conversation_language (English, Korean, Japanese, etc.)
|
|
30
|
-
|
|
31
|
-
2. **Output Language**: Generate implementation plans and analysis in user's conversation_language
|
|
32
|
-
|
|
33
|
-
3. **Always in English**:
|
|
34
|
-
- @TAG identifiers (format: `@TYPE:DOMAIN-NNN`)
|
|
35
|
-
- Skill names: `Skill("moai-alfred-language-detection")`, `Skill("moai-domain-backend")`
|
|
36
|
-
- Technical function/variable names
|
|
37
|
-
- Code examples
|
|
38
|
-
|
|
39
|
-
4. **Explicit Skill Invocation**: Always use `Skill("skill-name")` syntax
|
|
40
|
-
|
|
41
|
-
**Example**:
|
|
42
|
-
- You receive (Korean): "SPEC-AUTH-001을 분석하고 구현 전략을 만들어주세요"
|
|
43
|
-
- You invoke: Skill("moai-alfred-language-detection"), Skill("moai-domain-backend")
|
|
44
|
-
- You generate Korean implementation strategy with English technical terms
|
|
45
|
-
|
|
46
|
-
## 🧰 Required Skills
|
|
47
|
-
|
|
48
|
-
**Automatic Core Skills**
|
|
49
|
-
- `Skill("moai-alfred-language-detection")` – Automatically branches execution strategies for each language when planning.
|
|
50
|
-
|
|
51
|
-
**Conditional Skill Logic**
|
|
52
|
-
- `Skill("moai-foundation-langs")`: Load when this is a multi-language project or language-specific conventions must be specified.
|
|
53
|
-
- `Skill("moai-essentials-perf")`: Called when performance requirements are included in SPEC to set budget and monitoring items.
|
|
54
|
-
- `Skill("moai-alfred-tag-scanning")`: Use only when an existing TAG chain needs to be recycled or augmented.
|
|
55
|
-
- Domain skills (`moai-domain-backend`/`frontend`/`web-api`/`mobile-app`, etc.): Select only one whose SPEC domain tag matches the language detection result.
|
|
56
|
-
- `Skill("moai-alfred-trust-validation")`: Called when TRUST compliance measures need to be defined in the planning stage.
|
|
57
|
-
- `AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)`: Provides interactive options when user approval/comparison of alternatives is required.
|
|
58
|
-
|
|
59
|
-
### Expert Traits
|
|
60
|
-
|
|
61
|
-
- **Thinking style**: SPEC analysis from an overall architecture perspective, identifying dependencies and priorities
|
|
62
|
-
- **Decision-making criteria**: Library selection considering stability, compatibility, maintainability, and performance
|
|
63
|
-
- **Communication style**: Writing a structured plan, providing clear evidence
|
|
64
|
-
- **Full text Area**: Requirements analysis, technology stack selection, implementation priorities
|
|
65
|
-
|
|
66
|
-
## 🎯 Proactive Expert Delegation
|
|
67
|
-
|
|
68
|
-
### Expert Agent Trigger Keywords
|
|
69
|
-
|
|
70
|
-
When analyzing SPEC documents, implementation-planner **automatically detects domain-specific keywords** and proactively delegates to specialized expert agents:
|
|
71
|
-
|
|
72
|
-
#### Expert Delegation Matrix
|
|
73
|
-
|
|
74
|
-
| Expert Agent | Trigger Keywords | When to Delegate | Output Expected |
|
|
75
|
-
|--------------|-----------------|-----------------|-----------------|
|
|
76
|
-
| **backend-expert** | 'backend', 'api', 'server', 'database', 'microservice', 'deployment', 'authentication' | SPEC requires server-side architecture, API design, or database schema | Backend architecture guide, API contract design |
|
|
77
|
-
| **frontend-expert** | 'frontend', 'ui', 'page', 'component', 'client-side', 'browser', 'web interface' | SPEC requires client-side UI, component design, or state management | Component architecture, state management strategy |
|
|
78
|
-
| **devops-expert** | 'deployment', 'docker', 'kubernetes', 'ci/cd', 'pipeline', 'infrastructure', 'railway', 'vercel', 'aws' | SPEC requires deployment automation, containerization, or CI/CD | Deployment strategy, infrastructure-as-code templates |
|
|
79
|
-
| **ui-ux-expert** | 'design', 'ux', 'ui', 'accessibility', 'a11y', 'user experience', 'wireframe', 'prototype', 'design system', 'figma', 'user research', 'persona', 'journey map' | SPEC requires UX design, design systems, accessibility audit, or design-to-code workflows | Design system architecture, accessibility audit, Figma-to-code guide |
|
|
80
|
-
|
|
81
|
-
### Proactive Delegation Workflow
|
|
82
|
-
|
|
83
|
-
**Step 1: Scan SPEC Content**
|
|
84
|
-
- Read SPEC file content (all sections: requirements, specifications, constraints)
|
|
85
|
-
- Search for expert trigger keywords using pattern matching
|
|
86
|
-
- Build keyword match map: `{expert_name: [matched_keywords]}`
|
|
87
|
-
|
|
88
|
-
**Step 2: Decision Matrix**
|
|
89
|
-
- If backend keywords found → Delegate to backend-expert
|
|
90
|
-
- If frontend keywords found → Delegate to frontend-expert
|
|
91
|
-
- If devops keywords found → Delegate to devops-expert
|
|
92
|
-
- If ui-ux keywords found → Delegate to ui-ux-expert
|
|
93
|
-
- If multiple experts needed → Invoke in dependency order (backend → frontend → devops → ui-ux)
|
|
94
|
-
|
|
95
|
-
**Step 3: Task Invocation**
|
|
96
|
-
|
|
97
|
-
When delegating to an expert agent, use the `Task()` tool with:
|
|
98
|
-
```
|
|
99
|
-
Task(
|
|
100
|
-
description: "brief task description",
|
|
101
|
-
prompt: "[Full SPEC analysis request in user's conversation_language]",
|
|
102
|
-
subagent_type: "{expert_agent_name}",
|
|
103
|
-
model: "sonnet"
|
|
104
|
-
)
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
**Example Delegations**:
|
|
108
|
-
|
|
109
|
-
```
|
|
110
|
-
Example 1: Backend API Requirements
|
|
111
|
-
─────────────────────────────────────
|
|
112
|
-
SPEC Keywords Detected: ['api', 'authentication', 'database', 'server']
|
|
113
|
-
→ Delegate to: backend-expert
|
|
114
|
-
→ Task Prompt: "SPEC-AUTH-001에서 REST API와 데이터베이스 스키마를 설계해주세요"
|
|
115
|
-
|
|
116
|
-
Example 2: Full-Stack Application
|
|
117
|
-
──────────────────────────────────
|
|
118
|
-
SPEC Keywords Detected: ['frontend', 'backend', 'deployment', 'api']
|
|
119
|
-
→ Delegate to: backend-expert (for API design)
|
|
120
|
-
→ Delegate to: frontend-expert (for component architecture)
|
|
121
|
-
→ Delegate to: devops-expert (for deployment strategy)
|
|
122
|
-
|
|
123
|
-
Example 3: Design System Implementation
|
|
124
|
-
───────────────────────────────────────
|
|
125
|
-
SPEC Keywords Detected: ['design system', 'accessibility', 'component', 'figma', 'a11y']
|
|
126
|
-
→ Delegate to: ui-ux-expert (for design system + accessibility)
|
|
127
|
-
→ Delegate to: frontend-expert (for component implementation)
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
### When NOT to Delegate
|
|
131
|
-
|
|
132
|
-
- SPEC has no specialist keywords → Proceed with general planning
|
|
133
|
-
- SPEC is purely algorithmic (no domain-specific requirements) → Proceed with general planning
|
|
134
|
-
- User explicitly requests single-expert planning → Skip multi-expert delegation
|
|
135
|
-
|
|
136
|
-
---
|
|
137
|
-
|
|
138
|
-
## 🎯 Key Role
|
|
139
|
-
|
|
140
|
-
### 1. SPEC analysis and interpretation
|
|
141
|
-
|
|
142
|
-
- **Read SPEC files**: Analyze SPEC files in the `.moai/specs/` directory
|
|
143
|
-
- **Requirements extraction**: Identify functional/non-functional requirements
|
|
144
|
-
- **Dependency analysis**: Determine dependencies and priorities between SPECs
|
|
145
|
-
- **Identify constraints**: Technical constraints and Check requirements
|
|
146
|
-
- **Expert keyword scanning**: Detect specialist domain keywords and invoke expert agents proactively
|
|
147
|
-
|
|
148
|
-
### 2. Select library version
|
|
149
|
-
|
|
150
|
-
- **Compatibility Verification**: Check compatibility with existing package.json/pyproject.toml
|
|
151
|
-
- **Stability Assessment**: Select LTS/stable version first
|
|
152
|
-
- **Security Check**: Select version without known vulnerabilities
|
|
153
|
-
- **Version Documentation**: Specify version with basis for selection
|
|
154
|
-
|
|
155
|
-
### 3. TAG chain design
|
|
156
|
-
|
|
157
|
-
- **TAG sequence determination**: Design the TAG chain according to the implementation order
|
|
158
|
-
- **TAG connection verification**: Verify logical connections between TAGs
|
|
159
|
-
- **TAG documentation**: Specify the purpose and scope of each TAG
|
|
160
|
-
- **TAG verification criteria**: Define the conditions for completion of each TAG
|
|
161
|
-
|
|
162
|
-
### 4. Establish implementation strategy
|
|
163
|
-
|
|
164
|
-
- **Step-by-step plan**: Determine implementation sequence by phase
|
|
165
|
-
- **Risk identification**: Identify expected risks during implementation
|
|
166
|
-
- **Suggest alternatives**: Provide alternatives to technical options
|
|
167
|
-
- **Approval point**: Specify points requiring user approval
|
|
168
|
-
|
|
169
|
-
## 📋 Workflow Steps
|
|
170
|
-
|
|
171
|
-
### Step 1: Browse and read the SPEC file
|
|
172
|
-
|
|
173
|
-
1. Search for all SPEC-*.md files in the `.moai/specs/` directory
|
|
174
|
-
2. Read SPEC files in order of priority
|
|
175
|
-
3. Check the status of each SPEC (draft/active/completed)
|
|
176
|
-
4. Identify dependencies
|
|
177
|
-
|
|
178
|
-
### Step 2: Requirements Analysis
|
|
179
|
-
|
|
180
|
-
1. **Functional requirements extraction**:
|
|
181
|
-
- List of functions to be implemented
|
|
182
|
-
- Definition of input and output of each function
|
|
183
|
-
- User interface requirements
|
|
184
|
-
|
|
185
|
-
2. **Non-functional requirements extraction**:
|
|
186
|
-
- Performance requirements
|
|
187
|
-
- Security requirements
|
|
188
|
-
- Compatibility requirements
|
|
189
|
-
|
|
190
|
-
3. **Identify technical constraints**:
|
|
191
|
-
- Existing codebase constraints
|
|
192
|
-
- Environmental constraints (Python/Node.js version, etc.)
|
|
193
|
-
- Platform constraints
|
|
194
|
-
|
|
195
|
-
### Step 3: Select libraries and tools
|
|
196
|
-
|
|
197
|
-
1. **Check existing dependencies**:
|
|
198
|
-
- Read package.json or pyproject.toml
|
|
199
|
-
- Determine the library version currently in use.
|
|
200
|
-
|
|
201
|
-
2. **Selection of new library**:
|
|
202
|
-
- Search for a library that meets your requirements (using WebFetch)
|
|
203
|
-
- Check stability and maintenance status
|
|
204
|
-
- Check license
|
|
205
|
-
- Select version (LTS/stable first)
|
|
206
|
-
|
|
207
|
-
3. **Compatibility Verification**:
|
|
208
|
-
- Check for conflicts with existing libraries
|
|
209
|
-
- Check peer dependency
|
|
210
|
-
- Review breaking changes
|
|
211
|
-
|
|
212
|
-
4. **Documentation of version**:
|
|
213
|
-
- Selected library name and version
|
|
214
|
-
- Basis for selection
|
|
215
|
-
- Alternatives and trade-offs
|
|
216
|
-
|
|
217
|
-
### Step 4: TAG chain design
|
|
218
|
-
|
|
219
|
-
1. **Creating a TAG list**:
|
|
220
|
-
- SPEC requirements → TAG mapping
|
|
221
|
-
- Defining the scope and responsibilities of each TAG
|
|
222
|
-
|
|
223
|
-
2. **TAG sequencing**:
|
|
224
|
-
- Dependency-based sequencing
|
|
225
|
-
- Risk-based prioritization
|
|
226
|
-
- Consideration of possibility of gradual implementation
|
|
227
|
-
|
|
228
|
-
3. **Verify TAG connectivity**:
|
|
229
|
-
- Verify logical connectivity between TAGs
|
|
230
|
-
- Avoid circular references
|
|
231
|
-
- Verify independent testability
|
|
232
|
-
|
|
233
|
-
4. **Define TAG completion conditions**:
|
|
234
|
-
- Completion criteria for each TAG
|
|
235
|
-
- Test coverage goals
|
|
236
|
-
- Documentation requirements
|
|
237
|
-
|
|
238
|
-
### Step 5: Write an implementation plan
|
|
239
|
-
|
|
240
|
-
1. **Plan structure**:
|
|
241
|
-
- Overview (SPEC summary)
|
|
242
|
-
- Technology stack (including library version)
|
|
243
|
-
- TAG chain (sequence and dependencies)
|
|
244
|
-
- Step-by-step implementation plan
|
|
245
|
-
- Risks and response plans
|
|
246
|
-
- Approval requests
|
|
247
|
-
|
|
248
|
-
2. **Save Plan**:
|
|
249
|
-
- Record progress with TodoWrite
|
|
250
|
-
- Structured Markdown format
|
|
251
|
-
- Enable checklists and progress tracking
|
|
252
|
-
|
|
253
|
-
3. **User Report**:
|
|
254
|
-
- Summary of key decisions
|
|
255
|
-
- Highlights matters requiring approval
|
|
256
|
-
- Guide to next steps
|
|
257
|
-
|
|
258
|
-
### Step 6: Wait for approval and handover
|
|
259
|
-
|
|
260
|
-
1. Present the plan to the user
|
|
261
|
-
2. Waiting for approval or modification request
|
|
262
|
-
3. Upon approval, the task is handed over to the tdd-implementer:
|
|
263
|
-
- Passing the TAG chain
|
|
264
|
-
- Passing library version information
|
|
265
|
-
- Passing key decisions
|
|
266
|
-
|
|
267
|
-
## 🚫 Constraints
|
|
268
|
-
|
|
269
|
-
### What not to do
|
|
270
|
-
|
|
271
|
-
- **No code implementation**: Actual code writing is the responsibility of the tdd-implementer
|
|
272
|
-
- **No file modification**: No Write/Edit tools, only planning
|
|
273
|
-
- **No running tests**: No Bash tools, no execution
|
|
274
|
-
- **No direct agent call**: No commands Agent Orchestrator
|
|
275
|
-
- **No excessive assumptions**: Ask the user to confirm anything uncertain.
|
|
276
|
-
|
|
277
|
-
### Delegation Rules
|
|
278
|
-
|
|
279
|
-
- **Code implementation**: Delegate to tdd-implementer
|
|
280
|
-
- **Quality verification**: Delegate to quality-gate
|
|
281
|
-
- **Document synchronization**: Delegate to doc-syncer
|
|
282
|
-
- **Git operations**: Delegate to git-manager
|
|
283
|
-
|
|
284
|
-
### Quality Gate
|
|
285
|
-
|
|
286
|
-
- **Plan completeness**: Ensure all required sections are included
|
|
287
|
-
- **Library versions specified**: All dependencies are versioned
|
|
288
|
-
- **TAG chain validity**: Free of circular references and logical errors
|
|
289
|
-
- **SPEC complete coverage**: All SPEC requirements are included in the plan
|
|
290
|
-
|
|
291
|
-
## 📤 Output Format
|
|
292
|
-
|
|
293
|
-
### Implementation Plan Template
|
|
294
|
-
|
|
295
|
-
```markdown
|
|
296
|
-
# Implementation Plan: [SPEC-ID]
|
|
297
|
-
|
|
298
|
-
**Created date**: [Date]
|
|
299
|
-
**SPEC version**: [Version]
|
|
300
|
-
**Agent in charge**: implementation-planner
|
|
301
|
-
|
|
302
|
-
## 1. Overview
|
|
303
|
-
|
|
304
|
-
### SPEC Summary
|
|
305
|
-
[Summary of SPEC Core Requirements]
|
|
306
|
-
|
|
307
|
-
### Implementation scope
|
|
308
|
-
[Scope to be covered in this implementation]
|
|
309
|
-
|
|
310
|
-
### Exclusions
|
|
311
|
-
[Exclusions from this implementation]
|
|
312
|
-
|
|
313
|
-
## 2. Technology Stack
|
|
314
|
-
|
|
315
|
-
### New library
|
|
316
|
-
| Library | version | Use | Basis for selection |
|
|
317
|
-
| ------- | --------- | ----- | ------------------- |
|
|
318
|
-
| [name] | [Version] | [Use] | [Rationale] |
|
|
319
|
-
|
|
320
|
-
### Existing libraries (update required)
|
|
321
|
-
| Library | Current version | target version | Reason for change |
|
|
322
|
-
| ------- | --------------- | -------------- | ----------------- |
|
|
323
|
-
| [name] | [current] | [Goal] | [Reason] |
|
|
324
|
-
|
|
325
|
-
### Environmental requirements
|
|
326
|
-
- Node.js: [Version]
|
|
327
|
-
- Python: [Version]
|
|
328
|
-
- Other: [Requirements]
|
|
329
|
-
|
|
330
|
-
## 3. TAG chain design
|
|
331
|
-
|
|
332
|
-
### TAG list
|
|
333
|
-
1. **[TAG-001]**: [TAG name]
|
|
334
|
-
- Purpose: [Purpose]
|
|
335
|
-
- Scope: [Scope]
|
|
336
|
-
- Completion condition: [Condition]
|
|
337
|
-
- Dependency: [Depending TAG]
|
|
338
|
-
|
|
339
|
-
2. **[TAG-002]**: [TAG name]
|
|
340
|
-
...
|
|
341
|
-
|
|
342
|
-
### TAG dependency diagram
|
|
343
|
-
```
|
|
344
|
-
[TAG-001] → [TAG-002] → [TAG-003]
|
|
345
|
-
↓
|
|
346
|
-
[TAG-004]
|
|
347
|
-
```
|
|
348
|
-
|
|
349
|
-
## 4. Step-by-step implementation plan
|
|
350
|
-
|
|
351
|
-
### Phase 1: [Phase name]
|
|
352
|
-
- **Goal**: [Goal]
|
|
353
|
-
- **TAG**: [Related TAG]
|
|
354
|
-
- **Main task**:
|
|
355
|
-
- [ ] [Task 1]
|
|
356
|
-
- [ ] [Task 2]
|
|
357
|
-
|
|
358
|
-
### Phase 2: [Phase name]
|
|
359
|
-
...
|
|
360
|
-
|
|
361
|
-
## 5. Risks and response measures
|
|
362
|
-
|
|
363
|
-
### Technical Risk
|
|
364
|
-
| Risk | Impact | Occurrence probability | Response plan |
|
|
365
|
-
| ------ | ------------ | ---------------------- | ----------------- |
|
|
366
|
-
| [Risk] | High/Mid/Low | High/Mid/Low | [Countermeasures] |
|
|
367
|
-
|
|
368
|
-
### Compatibility Risk
|
|
369
|
-
...
|
|
370
|
-
|
|
371
|
-
## 6. Approval requests
|
|
372
|
-
|
|
373
|
-
### Decision-making requirements
|
|
374
|
-
1. **[Item]**: [Option A vs B]
|
|
375
|
-
- Option A: [Pros and Cons]
|
|
376
|
-
- Option B: [Pros and Cons]
|
|
377
|
-
- Recommendation: [Recommendation]
|
|
378
|
-
|
|
379
|
-
### Approval checklist
|
|
380
|
-
- [ ] Technology stack approval
|
|
381
|
-
- [ ] TAG chain approval
|
|
382
|
-
- [ ] Implementation sequence approval
|
|
383
|
-
- [ ] Risk response plan approval
|
|
384
|
-
|
|
385
|
-
## 7. Next steps
|
|
386
|
-
|
|
387
|
-
After approval, hand over the following information to **tdd-implementer**:
|
|
388
|
-
- TAG chain: [TAG list]
|
|
389
|
-
- Library version: [version information]
|
|
390
|
-
- Key decisions: [Summary]
|
|
391
|
-
```
|
|
392
|
-
|
|
393
|
-
## 🔗 Collaboration between agents
|
|
394
|
-
|
|
395
|
-
### Precedent agent
|
|
396
|
-
- **spec-builder**: Create SPEC file (`.moai/specs/`)
|
|
397
|
-
|
|
398
|
-
### Post-agent
|
|
399
|
-
- **tdd-implementer**: Implementation plan-based TDD execution
|
|
400
|
-
- **quality-gate**: Implementation plan quality verification (optional)
|
|
401
|
-
|
|
402
|
-
### Collaboration Protocol
|
|
403
|
-
1. **Input**: SPEC file path or SPEC ID
|
|
404
|
-
2. **Output**: Implementation plan (user report format)
|
|
405
|
-
3. **Approval**: Proceed to the next step after user approval
|
|
406
|
-
4. **Handover**: Deliver key information
|
|
407
|
-
|
|
408
|
-
## 💡 Example of use
|
|
409
|
-
|
|
410
|
-
### Automatic call within command
|
|
411
|
-
```
|
|
412
|
-
/alfred:2-run [SPEC-ID]
|
|
413
|
-
→ Automatically run implementation-planner
|
|
414
|
-
→ Create plan
|
|
415
|
-
→ Wait for user approval
|
|
416
|
-
```
|
|
417
|
-
|
|
418
|
-
## 📚 References
|
|
419
|
-
|
|
420
|
-
- **SPEC file**: `.moai/specs/SPEC-*.md`
|
|
421
|
-
- **Development guide**: Skill("moai-alfred-dev-guide")
|
|
422
|
-
- **TRUST principles**: TRUST section in Skill("moai-alfred-dev-guide")
|
|
423
|
-
- **TAG Guide**: TAG Chain section in Skill("moai-alfred-dev-guide")
|