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,622 +0,0 @@
|
|
|
1
|
-
# moai-project-documentation
|
|
2
|
-
|
|
3
|
-
## Metadata
|
|
4
|
-
|
|
5
|
-
- **Name**: moai-project-documentation
|
|
6
|
-
- **Domain**: Project Documentation & Planning
|
|
7
|
-
- **Freedom Level**: high
|
|
8
|
-
- **Target Users**: Project owners, architects, tech leads
|
|
9
|
-
- **Invocation**: Skill("moai-project-documentation")
|
|
10
|
-
- **Progressive Disclosure**: Metadata → Content (full guide) → Resources (examples)
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## Purpose
|
|
15
|
-
|
|
16
|
-
Guide interactive creation of three core project documentation files (product.md, structure.md, tech.md) based on project type and user input. Provides templates, examples, checklists, and best practices for each project type (Web App, CLI Tool, Library, Data Science).
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
## Quick Start
|
|
21
|
-
|
|
22
|
-
**When to use this Skill:**
|
|
23
|
-
- During `/alfred:0-project` to generate project documentation
|
|
24
|
-
- To refine existing product.md, structure.md, or tech.md
|
|
25
|
-
- To understand best practices for project documentation
|
|
26
|
-
|
|
27
|
-
**Basic Usage:**
|
|
28
|
-
```
|
|
29
|
-
User: /alfred:0-project
|
|
30
|
-
Alfred: Invokes Skill("moai-project-documentation")
|
|
31
|
-
Skill: Guides user through project type selection → documentation generation
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
---
|
|
35
|
-
|
|
36
|
-
## Core Content
|
|
37
|
-
|
|
38
|
-
### Part 1: Project Type Selection
|
|
39
|
-
|
|
40
|
-
Ask user to identify their project type:
|
|
41
|
-
|
|
42
|
-
1. **Web Application**
|
|
43
|
-
- Examples: SaaS, web dashboard, REST API backend
|
|
44
|
-
- Focus: User personas, adoption metrics, real-time features
|
|
45
|
-
- Template style: Business-focused with UX emphasis
|
|
46
|
-
|
|
47
|
-
2. **Mobile Application**
|
|
48
|
-
- Examples: iOS/Android app, cross-platform app (Flutter, React Native)
|
|
49
|
-
- Focus: User retention, app store metrics, offline capability
|
|
50
|
-
- Template style: UX-driven with platform-specific performance
|
|
51
|
-
- Frameworks: Flutter, React Native, Swift, Kotlin
|
|
52
|
-
|
|
53
|
-
3. **CLI Tool / Utility**
|
|
54
|
-
- Examples: Data validator, deployment tool, package manager
|
|
55
|
-
- Focus: Performance, integration, ecosystem adoption
|
|
56
|
-
- Template style: Technical with use case emphasis
|
|
57
|
-
|
|
58
|
-
4. **Shared Library / SDK**
|
|
59
|
-
- Examples: Type validator, data parser, API client
|
|
60
|
-
- Focus: Developer experience, ecosystem adoption, performance
|
|
61
|
-
- Template style: API-first with integration focus
|
|
62
|
-
|
|
63
|
-
5. **Data Science / ML Project**
|
|
64
|
-
- Examples: Recommendation system, ML pipeline, analytics
|
|
65
|
-
- Focus: Data quality, model metrics, scalability
|
|
66
|
-
- Template style: Metrics-driven with data emphasis
|
|
67
|
-
|
|
68
|
-
---
|
|
69
|
-
|
|
70
|
-
### Part 2: Product.md Writing Guide
|
|
71
|
-
|
|
72
|
-
#### Document Structure
|
|
73
|
-
|
|
74
|
-
```markdown
|
|
75
|
-
# Mission & Strategy
|
|
76
|
-
- What problem do we solve?
|
|
77
|
-
- Who are the users?
|
|
78
|
-
- What's our value proposition?
|
|
79
|
-
|
|
80
|
-
# Success Metrics
|
|
81
|
-
- How do we measure impact?
|
|
82
|
-
- What are KPIs?
|
|
83
|
-
- How often do we measure?
|
|
84
|
-
|
|
85
|
-
# Next Features (SPEC Backlog)
|
|
86
|
-
- What features are coming?
|
|
87
|
-
- How are they prioritized?
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
#### Writing by Project Type
|
|
91
|
-
|
|
92
|
-
**Web Application Product.md Focus:**
|
|
93
|
-
- User personas (team lead, individual contributor, customer)
|
|
94
|
-
- Adoption targets (80% within 2 weeks)
|
|
95
|
-
- Integration capabilities (Slack, GitHub, Jira)
|
|
96
|
-
- Real-time collaboration features
|
|
97
|
-
|
|
98
|
-
**Mobile Application Product.md Focus:**
|
|
99
|
-
- User personas (iOS users, Android users, power users)
|
|
100
|
-
- Retention metrics (DAU, MAU, churn rate)
|
|
101
|
-
- App store presence (rating target, download goal)
|
|
102
|
-
- Offline capability requirements
|
|
103
|
-
- Push notification strategy
|
|
104
|
-
- Platform-specific features (GPS, camera, contacts)
|
|
105
|
-
|
|
106
|
-
**CLI Tool Product.md Focus:**
|
|
107
|
-
- Target workflow (validate → deploy → monitor)
|
|
108
|
-
- Performance benchmarks (1M records in <5s)
|
|
109
|
-
- Multi-format support (JSON, CSV, Avro)
|
|
110
|
-
- Ecosystem adoption (GitHub stars, npm downloads)
|
|
111
|
-
|
|
112
|
-
**Library Product.md Focus:**
|
|
113
|
-
- API design philosophy (composable, type-safe)
|
|
114
|
-
- Developer experience (time-to-first-validation <5 min)
|
|
115
|
-
- Performance characteristics (zero-cost abstractions)
|
|
116
|
-
- Community engagement (issue response time, contributions)
|
|
117
|
-
|
|
118
|
-
**Data Science Product.md Focus:**
|
|
119
|
-
- Model metrics (accuracy, precision, recall)
|
|
120
|
-
- Data quality requirements
|
|
121
|
-
- Scalability targets (1B+ records)
|
|
122
|
-
- Integration with ML platforms (MLflow, W&B)
|
|
123
|
-
|
|
124
|
-
---
|
|
125
|
-
|
|
126
|
-
### Part 3: Structure.md Writing Guide
|
|
127
|
-
|
|
128
|
-
#### Document Structure
|
|
129
|
-
|
|
130
|
-
```markdown
|
|
131
|
-
# System Architecture
|
|
132
|
-
- What's the overall design pattern?
|
|
133
|
-
- What layers/tiers exist?
|
|
134
|
-
- How do components interact?
|
|
135
|
-
|
|
136
|
-
# Core Modules
|
|
137
|
-
- What are the main building blocks?
|
|
138
|
-
- What's each module responsible for?
|
|
139
|
-
- How do they communicate?
|
|
140
|
-
|
|
141
|
-
# External Integrations
|
|
142
|
-
- What external systems do we depend on?
|
|
143
|
-
- How do we authenticate?
|
|
144
|
-
- What's our fallback strategy?
|
|
145
|
-
|
|
146
|
-
# Traceability
|
|
147
|
-
- How do SPECs map to code?
|
|
148
|
-
- How do we trace changes?
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
#### Architecture Patterns by Project Type
|
|
152
|
-
|
|
153
|
-
**Web Application Architecture:**
|
|
154
|
-
```
|
|
155
|
-
Frontend (React/Vue) ↔ API Layer (FastAPI/Node) ↔ Database (PostgreSQL)
|
|
156
|
-
↓
|
|
157
|
-
WebSocket Server (Real-time features)
|
|
158
|
-
↓
|
|
159
|
-
Message Queue (Async jobs)
|
|
160
|
-
↓
|
|
161
|
-
Background Workers
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
**Mobile Application Architecture:**
|
|
165
|
-
```
|
|
166
|
-
UI Layer (Screens, Widgets)
|
|
167
|
-
↓
|
|
168
|
-
State Management (Bloc, Redux, Riverpod)
|
|
169
|
-
↓
|
|
170
|
-
Data Layer (Local DB: SQLite/Realm, Remote: REST/GraphQL)
|
|
171
|
-
↓
|
|
172
|
-
Authentication (OAuth, JWT)
|
|
173
|
-
↓
|
|
174
|
-
Native Modules (Camera, GPS, Contacts)
|
|
175
|
-
↓
|
|
176
|
-
Offline Sync Engine
|
|
177
|
-
```
|
|
178
|
-
|
|
179
|
-
**CLI Tool Architecture:**
|
|
180
|
-
```
|
|
181
|
-
Input Parsing → Command Router → Core Logic → Output Formatter
|
|
182
|
-
↓
|
|
183
|
-
Validation Layer
|
|
184
|
-
↓
|
|
185
|
-
Caching Layer
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
**Library Architecture:**
|
|
189
|
-
```
|
|
190
|
-
Public API Surface
|
|
191
|
-
↓
|
|
192
|
-
Type Guards / Validation
|
|
193
|
-
↓
|
|
194
|
-
Core Logic
|
|
195
|
-
↓
|
|
196
|
-
Platform Adapters (Node.js, Browser, Deno)
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
**Data Science Architecture:**
|
|
200
|
-
```
|
|
201
|
-
Data Ingestion → Feature Engineering → Model Training → Inference
|
|
202
|
-
↓
|
|
203
|
-
Feature Store
|
|
204
|
-
↓
|
|
205
|
-
Model Registry
|
|
206
|
-
↓
|
|
207
|
-
Monitoring & Alerting
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
---
|
|
211
|
-
|
|
212
|
-
### Part 4: Tech.md Writing Guide
|
|
213
|
-
|
|
214
|
-
#### Document Structure
|
|
215
|
-
|
|
216
|
-
```markdown
|
|
217
|
-
# Technology Stack
|
|
218
|
-
- What language(s)?
|
|
219
|
-
- What version ranges?
|
|
220
|
-
- Why these choices?
|
|
221
|
-
|
|
222
|
-
# Quality Gates
|
|
223
|
-
- What's required to merge?
|
|
224
|
-
- How do we measure quality?
|
|
225
|
-
- What tools enforce standards?
|
|
226
|
-
|
|
227
|
-
# Security Policy
|
|
228
|
-
- How do we manage secrets?
|
|
229
|
-
- How do we handle vulnerabilities?
|
|
230
|
-
- What's our incident response?
|
|
231
|
-
|
|
232
|
-
# Deployment Strategy
|
|
233
|
-
- Where do we deploy?
|
|
234
|
-
- How do we release?
|
|
235
|
-
- How do we rollback?
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
#### Tech Stack Examples by Type
|
|
239
|
-
|
|
240
|
-
**Web Application:**
|
|
241
|
-
```
|
|
242
|
-
Frontend: TypeScript, React 18, Vitest, TailwindCSS
|
|
243
|
-
Backend: Python 3.13, FastAPI, pytest (85% coverage)
|
|
244
|
-
Database: PostgreSQL 15, Alembic migrations
|
|
245
|
-
DevOps: Docker, Kubernetes, GitHub Actions
|
|
246
|
-
Quality: TypeScript strict mode, mypy, ruff, GitHub code scanning
|
|
247
|
-
```
|
|
248
|
-
|
|
249
|
-
**Mobile Application:**
|
|
250
|
-
```
|
|
251
|
-
Framework: Flutter 3.13 or React Native 0.72
|
|
252
|
-
Language: Dart or TypeScript
|
|
253
|
-
Testing: flutter test or Jest, 80%+ coverage
|
|
254
|
-
State Management: Riverpod, Bloc, or Redux
|
|
255
|
-
Local Database: SQLite, Hive, or Realm
|
|
256
|
-
HTTP Client: Dio or Axios wrapper
|
|
257
|
-
UI: Material Design or Cupertino
|
|
258
|
-
DevOps: Fastlane, GitHub Actions for app store deployment
|
|
259
|
-
Quality: flutter analyze, dart format, excellent test coverage
|
|
260
|
-
Performance: App size <50MB (iOS), startup <2s
|
|
261
|
-
```
|
|
262
|
-
|
|
263
|
-
**CLI Tool:**
|
|
264
|
-
```
|
|
265
|
-
Language: Go 1.21 or Python 3.13
|
|
266
|
-
Testing: Go's built-in testing or pytest
|
|
267
|
-
Packaging: Single binary (Go) or PyPI (Python)
|
|
268
|
-
Quality: golangci-lint or ruff, <100MB binary
|
|
269
|
-
Performance: <100ms startup time
|
|
270
|
-
```
|
|
271
|
-
|
|
272
|
-
**Library:**
|
|
273
|
-
```
|
|
274
|
-
Language: TypeScript 5.2 or Python 3.13
|
|
275
|
-
Testing: Vitest or pytest, 90%+ coverage (libraries = higher bar)
|
|
276
|
-
Package Manager: npm/pnpm or uv
|
|
277
|
-
Documentation: TSDoc/JSDoc or Google-style docstrings
|
|
278
|
-
Type Safety: TypeScript strict or mypy strict
|
|
279
|
-
```
|
|
280
|
-
|
|
281
|
-
**Data Science:**
|
|
282
|
-
```
|
|
283
|
-
Language: Python 3.13, Jupyter notebooks
|
|
284
|
-
ML Framework: scikit-learn, PyTorch, or TensorFlow
|
|
285
|
-
Data: pandas, Polars, DuckDB
|
|
286
|
-
Testing: pytest, nbval (notebook validation)
|
|
287
|
-
Experiment Tracking: MLflow, Weights & Biases
|
|
288
|
-
Quality: 80% code coverage, data validation tests
|
|
289
|
-
```
|
|
290
|
-
|
|
291
|
-
---
|
|
292
|
-
|
|
293
|
-
### Part 5: Writing Checklists
|
|
294
|
-
|
|
295
|
-
#### Product.md Checklist
|
|
296
|
-
- [ ] Mission statement is 1-2 sentences
|
|
297
|
-
- [ ] Users are specific (not "developers")
|
|
298
|
-
- [ ] Problems are ranked by priority
|
|
299
|
-
- [ ] Success metrics are measurable
|
|
300
|
-
- [ ] Feature backlog has 3-5 next SPECs
|
|
301
|
-
- [ ] HISTORY section has v0.1.0
|
|
302
|
-
|
|
303
|
-
#### Structure.md Checklist
|
|
304
|
-
- [ ] Architecture is visualized or clearly described
|
|
305
|
-
- [ ] Modules map to git directories
|
|
306
|
-
- [ ] External integrations list auth and failure modes
|
|
307
|
-
- [ ] Traceability explains TAG system
|
|
308
|
-
- [ ] Trade-offs are documented (why this design?)
|
|
309
|
-
- [ ] HISTORY section has v0.1.0
|
|
310
|
-
|
|
311
|
-
#### Tech.md Checklist
|
|
312
|
-
- [ ] Primary language with version range specified
|
|
313
|
-
- [ ] Quality gates define failure criteria (what blocks merges?)
|
|
314
|
-
- [ ] Security policy covers secrets, audits, incidents
|
|
315
|
-
- [ ] Deployment describes full release flow
|
|
316
|
-
- [ ] Environment profiles (dev/test/prod) included
|
|
317
|
-
- [ ] HISTORY section has v0.1.0
|
|
318
|
-
|
|
319
|
-
---
|
|
320
|
-
|
|
321
|
-
### Part 6: Common Mistakes to Avoid
|
|
322
|
-
|
|
323
|
-
❌ **Too Vague**
|
|
324
|
-
- "Users are developers"
|
|
325
|
-
- "We'll measure success by growth"
|
|
326
|
-
|
|
327
|
-
✅ **Specific**
|
|
328
|
-
- "Solo developers building web apps under time pressure, 3-7 person teams"
|
|
329
|
-
- "Measure success by 80% adoption within 2 weeks, 5 features/sprint velocity"
|
|
330
|
-
|
|
331
|
-
---
|
|
332
|
-
|
|
333
|
-
❌ **Over-Specified in product.md**
|
|
334
|
-
- Function names, database schemas, API endpoints
|
|
335
|
-
- "We'll use Redis cache with 1-hour TTL"
|
|
336
|
-
|
|
337
|
-
✅ **Architecture-Level**
|
|
338
|
-
- "Caching layer for performance"
|
|
339
|
-
- "Integration with external payment provider"
|
|
340
|
-
|
|
341
|
-
---
|
|
342
|
-
|
|
343
|
-
❌ **Inconsistent Across Documents**
|
|
344
|
-
- product.md: "5 concurrent users"
|
|
345
|
-
- structure.md: "Designed for 10,000 daily users"
|
|
346
|
-
|
|
347
|
-
✅ **Aligned**
|
|
348
|
-
- All 3 documents agree on target scale, user types, quality standards
|
|
349
|
-
|
|
350
|
-
---
|
|
351
|
-
|
|
352
|
-
❌ **Outdated**
|
|
353
|
-
- Last updated 6 months ago
|
|
354
|
-
- HISTORY section has no recent entries
|
|
355
|
-
|
|
356
|
-
✅ **Fresh**
|
|
357
|
-
- HISTORY updated every sprint
|
|
358
|
-
- version number incremented on changes
|
|
359
|
-
|
|
360
|
-
---
|
|
361
|
-
|
|
362
|
-
## Examples by Project Type
|
|
363
|
-
|
|
364
|
-
### Example 1: Web App (TaskFlow)
|
|
365
|
-
|
|
366
|
-
**Product.md excerpt:**
|
|
367
|
-
```markdown
|
|
368
|
-
## Mission
|
|
369
|
-
"Simplify team collaboration through real-time task management."
|
|
370
|
-
|
|
371
|
-
## Users: Engineering Team Lead
|
|
372
|
-
- Manages 5-7 person team
|
|
373
|
-
- Needs: Centralized visibility, blocker tracking, code review integration
|
|
374
|
-
- Success: Reduce sprint planning from 2h to 45 min
|
|
375
|
-
```
|
|
376
|
-
|
|
377
|
-
**Structure.md excerpt:**
|
|
378
|
-
```markdown
|
|
379
|
-
## Architecture: Layered
|
|
380
|
-
- Frontend: React dashboard with real-time updates (WebSocket)
|
|
381
|
-
- API: GraphQL backend with permission checks
|
|
382
|
-
- Database: PostgreSQL with event log table
|
|
383
|
-
- Cache: Redis for session and frequently accessed data
|
|
384
|
-
```
|
|
385
|
-
|
|
386
|
-
**Tech.md excerpt:**
|
|
387
|
-
```markdown
|
|
388
|
-
## Primary Language: TypeScript 5.2+
|
|
389
|
-
- Rationale: Type safety, strong React tooling, compiled performance
|
|
390
|
-
|
|
391
|
-
## Quality Gates
|
|
392
|
-
- Test coverage: 85% minimum
|
|
393
|
-
- Type errors: Zero in strict mode
|
|
394
|
-
- Bundle size: <200KB gzipped
|
|
395
|
-
```
|
|
396
|
-
|
|
397
|
-
---
|
|
398
|
-
|
|
399
|
-
### Example 2: Mobile App (FitTracker)
|
|
400
|
-
|
|
401
|
-
**Product.md excerpt:**
|
|
402
|
-
```markdown
|
|
403
|
-
## Mission
|
|
404
|
-
"Make fitness tracking simple and engaging with offline-first capabilities."
|
|
405
|
-
|
|
406
|
-
## Users: Individual Fitness Enthusiast
|
|
407
|
-
- Tracks workouts daily, wants quick data entry
|
|
408
|
-
- Needs: Offline support (no WiFi at gym), social sharing, integration with Apple Health/Google Fit
|
|
409
|
-
- Success: 100K downloads in 3 months, 4.5+ star rating
|
|
410
|
-
|
|
411
|
-
## Metrics
|
|
412
|
-
- DAU (Daily Active Users): 60% of installs
|
|
413
|
-
- Session length: Average 5-10 minutes
|
|
414
|
-
- Retention: 30-day retention >40%
|
|
415
|
-
```
|
|
416
|
-
|
|
417
|
-
**Structure.md excerpt:**
|
|
418
|
-
```markdown
|
|
419
|
-
## Architecture: Layered with Offline-First
|
|
420
|
-
UI Layer (Screens) → State Management (Riverpod) → Data Layer (SQLite) → Cloud Sync
|
|
421
|
-
|
|
422
|
-
- UI: Bottom navigation, workout detail screens, statistics charts
|
|
423
|
-
- State: Provider-based state (Riverpod) for reactive updates
|
|
424
|
-
- Local DB: SQLite with drift ORM for type-safe queries
|
|
425
|
-
- Sync: Background sync engine that resolves conflicts
|
|
426
|
-
- Native: Permission handling for HealthKit, sensors
|
|
427
|
-
```
|
|
428
|
-
|
|
429
|
-
**Tech.md excerpt:**
|
|
430
|
-
```markdown
|
|
431
|
-
## Primary Language: Dart 3.0+ (Flutter)
|
|
432
|
-
- Rationale: Single codebase for iOS/Android, hot reload, excellent performance
|
|
433
|
-
|
|
434
|
-
## Quality Gates
|
|
435
|
-
- Test coverage: 80% (widget + unit tests)
|
|
436
|
-
- App size: <50MB iOS, <60MB Android
|
|
437
|
-
- Startup time: <2 seconds
|
|
438
|
-
- Frame rate: 60fps (no jank)
|
|
439
|
-
|
|
440
|
-
## Deployment
|
|
441
|
-
- App Store & Google Play via Fastlane
|
|
442
|
-
- TestFlight for beta testing
|
|
443
|
-
- Version every 2 weeks
|
|
444
|
-
```
|
|
445
|
-
---
|
|
446
|
-
|
|
447
|
-
### Example 3: CLI Tool (DataValidate)
|
|
448
|
-
|
|
449
|
-
**Product.md excerpt:**
|
|
450
|
-
```markdown
|
|
451
|
-
## Mission
|
|
452
|
-
"Validate data integrity before it reaches your database."
|
|
453
|
-
|
|
454
|
-
## Success Metrics
|
|
455
|
-
- Adoption: 10,000+ monthly downloads by month 3
|
|
456
|
-
- Performance: Validate 1M records in <5 seconds
|
|
457
|
-
- Satisfaction: 4.5+ rating on npm
|
|
458
|
-
```
|
|
459
|
-
|
|
460
|
-
**Structure.md excerpt:**
|
|
461
|
-
```markdown
|
|
462
|
-
## Architecture: Pipeline
|
|
463
|
-
Input Parsing → Schema Loading → Validation Engine → Error Formatting → Output
|
|
464
|
-
|
|
465
|
-
- Input Layer: Supports JSON, CSV, Avro formats
|
|
466
|
-
- Schema Layer: Caches compiled schemas
|
|
467
|
-
- Validation: Single-threaded streaming, memory-efficient
|
|
468
|
-
- Output: Structured errors with line numbers and suggestions
|
|
469
|
-
```
|
|
470
|
-
|
|
471
|
-
**Tech.md excerpt:**
|
|
472
|
-
```markdown
|
|
473
|
-
## Primary Language: Go 1.21+
|
|
474
|
-
- Rationale: Fast compilation, single binary, native concurrency
|
|
475
|
-
|
|
476
|
-
## Build
|
|
477
|
-
- Binary size: <100MB
|
|
478
|
-
- Startup time: <100ms
|
|
479
|
-
- Distribution: GitHub Releases + Homebrew
|
|
480
|
-
```
|
|
481
|
-
|
|
482
|
-
---
|
|
483
|
-
|
|
484
|
-
### Example 4: Library (TypeGuard)
|
|
485
|
-
|
|
486
|
-
**Product.md excerpt:**
|
|
487
|
-
```markdown
|
|
488
|
-
## Mission
|
|
489
|
-
"Bring TypeScript type safety to runtime with zero overhead."
|
|
490
|
-
|
|
491
|
-
## Value Prop
|
|
492
|
-
- Zero boilerplate (auto-generate guards from interfaces)
|
|
493
|
-
- Fast validation (<100μs per object)
|
|
494
|
-
- Clear error messages (field-by-field trace)
|
|
495
|
-
```
|
|
496
|
-
|
|
497
|
-
**Structure.md excerpt:**
|
|
498
|
-
```markdown
|
|
499
|
-
## Modules
|
|
500
|
-
- Type Guards: Generate runtime guards from TypeScript types
|
|
501
|
-
- Validators: Custom validation functions (email, URL, regex)
|
|
502
|
-
- Error Formatter: Detailed error messages with paths
|
|
503
|
-
- Platform Adapters: Node.js, Browser, Deno support
|
|
504
|
-
```
|
|
505
|
-
|
|
506
|
-
**Tech.md excerpt:**
|
|
507
|
-
```markdown
|
|
508
|
-
## Primary Language: TypeScript 5.2+
|
|
509
|
-
- Test coverage: 90% (libraries have higher bar)
|
|
510
|
-
- Type checking: Zero errors in strict mode
|
|
511
|
-
- Bundle: <50KB gzipped, tree-shakeable
|
|
512
|
-
```
|
|
513
|
-
|
|
514
|
-
---
|
|
515
|
-
|
|
516
|
-
### Example 5: Data Science (ML Pipeline)
|
|
517
|
-
|
|
518
|
-
**Product.md excerpt:**
|
|
519
|
-
```markdown
|
|
520
|
-
## Mission
|
|
521
|
-
"Predict customer churn with 90%+ accuracy in production."
|
|
522
|
-
|
|
523
|
-
## Success Metrics
|
|
524
|
-
- Model accuracy: 90%+ on test set
|
|
525
|
-
- Inference latency: <100ms p95
|
|
526
|
-
- Data quality: 99%+ complete features
|
|
527
|
-
```
|
|
528
|
-
|
|
529
|
-
**Structure.md excerpt:**
|
|
530
|
-
```markdown
|
|
531
|
-
## Pipeline
|
|
532
|
-
Data Ingestion → Feature Engineering → Model Training → Validation → Inference
|
|
533
|
-
|
|
534
|
-
- Data Layer: PostgreSQL + Snowflake for warehousing
|
|
535
|
-
- Feature Store: Feast for feature versioning
|
|
536
|
-
- Model Registry: MLflow for experiment tracking
|
|
537
|
-
- Monitoring: DataDog alerts on model drift
|
|
538
|
-
```
|
|
539
|
-
|
|
540
|
-
**Tech.md excerpt:**
|
|
541
|
-
```markdown
|
|
542
|
-
## Primary Language: Python 3.13+
|
|
543
|
-
- ML Framework: scikit-learn + XGBoost
|
|
544
|
-
- Data: pandas + Polars for processing
|
|
545
|
-
- Notebooks: Jupyter with nbval validation
|
|
546
|
-
- Testing: pytest for pipeline tests (80% coverage)
|
|
547
|
-
```
|
|
548
|
-
|
|
549
|
-
---
|
|
550
|
-
|
|
551
|
-
## Resources & Templates
|
|
552
|
-
|
|
553
|
-
### Quick Generator (for project-manager agent)
|
|
554
|
-
|
|
555
|
-
When invoking from `/alfred:0-project`:
|
|
556
|
-
|
|
557
|
-
1. **Ask: What's your project type?**
|
|
558
|
-
- Options: Web App, Mobile App, CLI Tool, Library, Data Science
|
|
559
|
-
|
|
560
|
-
2. **Ask: Who are your primary users?**
|
|
561
|
-
- Text input: Free-form description
|
|
562
|
-
|
|
563
|
-
3. **Ask: What problem does it solve?**
|
|
564
|
-
- Text input: 1-2 sentence problem statement
|
|
565
|
-
|
|
566
|
-
4. **Ask: How will you measure success?**
|
|
567
|
-
- Suggestions based on project type:
|
|
568
|
-
- Web App: Adoption rate, feature velocity, user engagement
|
|
569
|
-
- Mobile App: DAU/MAU, app store rating, retention rate, download count
|
|
570
|
-
- CLI: Downloads, performance benchmarks, ecosystem adoption
|
|
571
|
-
- Library: npm downloads, community contributions, GitHub stars
|
|
572
|
-
- Data Science: Model accuracy, data quality, inference latency
|
|
573
|
-
|
|
574
|
-
5. **Generate**:
|
|
575
|
-
- Create product.md with user inputs
|
|
576
|
-
- Generate structure.md template for their architecture
|
|
577
|
-
- Create tech.md with recommended stack for their type
|
|
578
|
-
|
|
579
|
-
6. **Offer next step**: `/alfred:1-plan` to create first SPEC
|
|
580
|
-
|
|
581
|
-
---
|
|
582
|
-
|
|
583
|
-
## Integration with Alfred Workflow
|
|
584
|
-
|
|
585
|
-
**When invoked:**
|
|
586
|
-
```python
|
|
587
|
-
# In project-manager agent during /alfred:0-project
|
|
588
|
-
Skill("moai-project-documentation")
|
|
589
|
-
→ Ask project type
|
|
590
|
-
→ Gather user inputs
|
|
591
|
-
→ Generate .moai/project/product.md
|
|
592
|
-
→ Generate .moai/project/structure.md
|
|
593
|
-
→ Generate .moai/project/tech.md
|
|
594
|
-
```
|
|
595
|
-
|
|
596
|
-
**Output files:**
|
|
597
|
-
```
|
|
598
|
-
.moai/project/
|
|
599
|
-
├── product.md (generated from user input + project type)
|
|
600
|
-
├── structure.md (template + user architecture choices)
|
|
601
|
-
└── tech.md (recommended stack + quality gates)
|
|
602
|
-
```
|
|
603
|
-
|
|
604
|
-
---
|
|
605
|
-
|
|
606
|
-
## Versioning & Updates
|
|
607
|
-
|
|
608
|
-
**When to update this Skill:**
|
|
609
|
-
- New programming languages added to MoAI
|
|
610
|
-
- New project type examples needed
|
|
611
|
-
- Quality gate standards change
|
|
612
|
-
- Package management tools evolve
|
|
613
|
-
|
|
614
|
-
**Current version:** 0.1.0 (2025-11-04)
|
|
615
|
-
|
|
616
|
-
---
|
|
617
|
-
|
|
618
|
-
## Further Reading
|
|
619
|
-
|
|
620
|
-
- EARS requirement authoring: moai-foundation-ears
|
|
621
|
-
- SPEC creation guide: moai-spec-authoring
|
|
622
|
-
- Project initialization: moai-project-init-flow
|