moai-adk 0.9.1__py3-none-any.whl → 0.11.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of moai-adk might be problematic. Click here for more details.
- moai_adk/core/project/phase_executor.py +4 -0
- moai_adk/core/tags/ci_validator.py +33 -3
- moai_adk/core/template_engine.py +6 -2
- moai_adk/templates/.git-hooks/pre-push +143 -0
- moai_adk/templates/.github/workflows/moai-gitflow.yml +6 -1
- moai_adk/templates/.github/workflows/release.yml +6 -2
- moai_adk/templates/.github/workflows/tag-validation.yml +57 -8
- moai_adk/templates/CLAUDE.md +477 -28
- moai_adk/templates/README.md +256 -0
- {moai_adk-0.9.1.dist-info → moai_adk-0.11.0.dist-info}/METADATA +740 -90
- moai_adk-0.11.0.dist-info/RECORD +77 -0
- 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/doc-syncer.md +0 -214
- moai_adk/templates/.claude/agents/alfred/git-manager.md +0 -406
- moai_adk/templates/.claude/agents/alfred/implementation-planner.md +0 -350
- moai_adk/templates/.claude/agents/alfred/project-manager.md +0 -273
- 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 -287
- moai_adk/templates/.claude/agents/alfred/tag-agent.md +0 -287
- moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +0 -326
- moai_adk/templates/.claude/agents/alfred/trust-checker.md +0 -375
- moai_adk/templates/.claude/commands/alfred/0-project.md +0 -1189
- moai_adk/templates/.claude/commands/alfred/1-plan.md +0 -728
- moai_adk/templates/.claude/commands/alfred/2-run.md +0 -545
- moai_adk/templates/.claude/commands/alfred/3-sync.md +0 -683
- moai_adk/templates/.claude/commands/alfred/9-feedback.md +0 -149
- moai_adk/templates/.claude/hooks/alfred/.moai/cache/version-check.json +0 -9
- moai_adk/templates/.claude/hooks/alfred/README.md +0 -343
- moai_adk/templates/.claude/hooks/alfred/TROUBLESHOOTING.md +0 -471
- moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +0 -209
- moai_adk/templates/.claude/hooks/alfred/core/version_cache.py +0 -198
- moai_adk/templates/.claude/hooks/alfred/notification__handle_events.py +0 -102
- moai_adk/templates/.claude/hooks/alfred/post_tool__log_changes.py +0 -102
- moai_adk/templates/.claude/hooks/alfred/pre_tool__auto_checkpoint.py +0 -108
- moai_adk/templates/.claude/hooks/alfred/session_end__cleanup.py +0 -102
- moai_adk/templates/.claude/hooks/alfred/session_start__show_project_info.py +0 -102
- 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 -683
- moai_adk/templates/.claude/hooks/alfred/shared/core/tags.py +0 -198
- 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 -25
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/session.py +0 -175
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/tool.py +0 -90
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/user.py +0 -61
- moai_adk/templates/.claude/hooks/alfred/stop__handle_interrupt.py +0 -102
- moai_adk/templates/.claude/hooks/alfred/subagent_stop__handle_subagent_end.py +0 -102
- moai_adk/templates/.claude/hooks/alfred/user_prompt__jit_load_docs.py +0 -120
- moai_adk/templates/.claude/output-styles/alfred/agentic-coding.md +0 -640
- moai_adk/templates/.claude/output-styles/alfred/moai-adk-learning.md +0 -696
- moai_adk/templates/.claude/output-styles/alfred/study-with-alfred.md +0 -474
- moai_adk/templates/.claude/settings.json +0 -144
- 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-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-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-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-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-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-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-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-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 -124
- 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 -124
- 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 -124
- 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 -123
- 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 -431
- 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 -124
- 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 -123
- 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 -127
- 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-skill-factory/CHECKLIST.md +0 -482
- moai_adk/templates/.claude/skills/moai-skill-factory/EXAMPLES.md +0 -278
- moai_adk/templates/.claude/skills/moai-skill-factory/INTERACTIVE-DISCOVERY.md +0 -524
- moai_adk/templates/.claude/skills/moai-skill-factory/METADATA.md +0 -477
- moai_adk/templates/.claude/skills/moai-skill-factory/PARALLEL-ANALYSIS-REPORT.md +0 -429
- moai_adk/templates/.claude/skills/moai-skill-factory/PYTHON-VERSION-MATRIX.md +0 -391
- moai_adk/templates/.claude/skills/moai-skill-factory/SKILL-FACTORY-WORKFLOW.md +0 -431
- moai_adk/templates/.claude/skills/moai-skill-factory/SKILL-UPDATE-ADVISOR.md +0 -577
- moai_adk/templates/.claude/skills/moai-skill-factory/SKILL.md +0 -271
- moai_adk/templates/.claude/skills/moai-skill-factory/STEP-BY-STEP-GUIDE.md +0 -466
- moai_adk/templates/.claude/skills/moai-skill-factory/STRUCTURE.md +0 -583
- moai_adk/templates/.claude/skills/moai-skill-factory/WEB-RESEARCH.md +0 -526
- moai_adk/templates/.claude/skills/moai-skill-factory/reference.md +0 -465
- moai_adk/templates/.claude/skills/moai-skill-factory/scripts/generate-structure.sh +0 -328
- moai_adk/templates/.claude/skills/moai-skill-factory/scripts/validate-skill.sh +0 -312
- moai_adk/templates/.claude/skills/moai-skill-factory/templates/SKILL_TEMPLATE.md +0 -245
- moai_adk/templates/.claude/skills/moai-skill-factory/templates/examples-template.md +0 -285
- moai_adk/templates/.claude/skills/moai-skill-factory/templates/reference-template.md +0 -278
- moai_adk/templates/.claude/skills/moai-skill-factory/templates/scripts-template.sh +0 -303
- moai_adk/templates/.claude/skills/moai-spec-authoring/README.md +0 -137
- moai_adk/templates/.claude/skills/moai-spec-authoring/SKILL.md +0 -219
- moai_adk/templates/.claude/skills/moai-spec-authoring/examples/validate-spec.sh +0 -161
- moai_adk/templates/.claude/skills/moai-spec-authoring/examples.md +0 -541
- moai_adk/templates/.claude/skills/moai-spec-authoring/reference.md +0 -622
- moai_adk/templates/.github/workflows/tag-report.yml +0 -261
- moai_adk/templates/.moai/config.json +0 -113
- moai_adk/templates/.moai/docs/quick-issue-creation-guide.md +0 -219
- moai_adk/templates/.moai/hooks/install.sh +0 -79
- moai_adk/templates/.moai/hooks/pre-commit.sh +0 -66
- moai_adk/templates/.moai/memory/CLAUDE-AGENTS-GUIDE.md +0 -208
- moai_adk/templates/.moai/memory/CLAUDE-PRACTICES.md +0 -369
- moai_adk/templates/.moai/memory/CLAUDE-RULES.md +0 -539
- moai_adk/templates/.moai/memory/DEVELOPMENT-GUIDE.md +0 -344
- moai_adk/templates/.moai/memory/GITFLOW-PROTECTION-POLICY.md +0 -220
- moai_adk/templates/.moai/memory/ISSUE-LABEL-MAPPING.md +0 -150
- moai_adk/templates/.moai/memory/SKILLS-DESCRIPTION-POLICY.md +0 -218
- moai_adk/templates/.moai/memory/SPEC-METADATA.md +0 -356
- moai_adk/templates/.moai/memory/gitflow-protection-policy.md +0 -220
- moai_adk/templates/.moai/memory/spec-metadata.md +0 -356
- moai_adk/templates/.moai/project/product.md +0 -161
- moai_adk/templates/.moai/project/structure.md +0 -156
- moai_adk/templates/.moai/project/tech.md +0 -227
- moai_adk/templates/src/moai_adk/core/__init__.py +0 -5
- moai_adk/templates/src/moai_adk/core/tags/__init__.py +0 -86
- moai_adk/templates/src/moai_adk/core/tags/ci_validator.py +0 -433
- moai_adk/templates/src/moai_adk/core/tags/cli.py +0 -283
- moai_adk/templates/src/moai_adk/core/tags/validator.py +0 -897
- moai_adk-0.9.1.dist-info/RECORD +0 -320
- {moai_adk-0.9.1.dist-info → moai_adk-0.11.0.dist-info}/WHEEL +0 -0
- {moai_adk-0.9.1.dist-info → moai_adk-0.11.0.dist-info}/entry_points.txt +0 -0
- {moai_adk-0.9.1.dist-info → moai_adk-0.11.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
# MoAI-ADK Project Templates
|
|
2
|
+
|
|
3
|
+
This directory contains template files that are copied to new projects when users run `moai-adk init`.
|
|
4
|
+
|
|
5
|
+
## Directory Structure
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
templates/
|
|
9
|
+
├── .claude/ # Claude Code configuration
|
|
10
|
+
│ ├── agents/ # Alfred sub-agents (12 specialists)
|
|
11
|
+
│ ├── commands/ # Slash commands (/alfred:0-4)
|
|
12
|
+
│ ├── skills/ # 55 reusable knowledge capsules
|
|
13
|
+
│ └── hooks/ # Session lifecycle hooks
|
|
14
|
+
├── .moai/ # MoAI-ADK configuration
|
|
15
|
+
│ ├── config.json # Project settings (language, mode, owner)
|
|
16
|
+
│ ├── docs/ # Internal documentation
|
|
17
|
+
│ ├── memory/ # Session context persistence
|
|
18
|
+
│ ├── reports/ # Quality and sync reports
|
|
19
|
+
│ └── specs/ # SPEC documents directory
|
|
20
|
+
├── .github/ # GitHub Actions workflows
|
|
21
|
+
│ └── workflows/ # CI/CD automation
|
|
22
|
+
├── CLAUDE.md # Project guidance for Claude Code
|
|
23
|
+
└── .gitignore # Git ignore patterns
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Template Components
|
|
29
|
+
|
|
30
|
+
### 1. `.claude/` - Claude Code Configuration (2.0 MB)
|
|
31
|
+
|
|
32
|
+
The complete Alfred SuperAgent system:
|
|
33
|
+
|
|
34
|
+
- **Agents** (12 specialists): spec-builder, tdd-implementer, doc-syncer, tag-agent, trust-checker, debug-helper, implementation-planner, project-manager, quality-gate, git-manager, cc-manager, skill-factory
|
|
35
|
+
- **Commands** (4 workflow commands): `/alfred:0-project`, `/alfred:1-plan`, `/alfred:2-run`, `/alfred:3-sync`
|
|
36
|
+
- **Skills** (55 knowledge capsules): Foundation (5), Essentials (4), Alfred (7), Domain (7), Language (18), CC (14)
|
|
37
|
+
- **Hooks**: SessionStart, PreToolUse, PostToolUse lifecycle guards
|
|
38
|
+
|
|
39
|
+
### 2. `.moai/` - MoAI-ADK Configuration (120 KB)
|
|
40
|
+
|
|
41
|
+
Project configuration and memory:
|
|
42
|
+
|
|
43
|
+
- **config.json**: Language settings, project owner, team mode
|
|
44
|
+
- **memory/**: Persistent session context and state
|
|
45
|
+
- **docs/**: Internal guides and strategies
|
|
46
|
+
- **reports/**: Sync analysis and quality reports
|
|
47
|
+
- **specs/**: SPEC document directory structure
|
|
48
|
+
|
|
49
|
+
### 3. `.github/` - GitHub Workflows (80 KB)
|
|
50
|
+
|
|
51
|
+
Continuous integration and deployment:
|
|
52
|
+
|
|
53
|
+
- **workflows/**: Pre-configured GitHub Actions for testing, linting, type checking
|
|
54
|
+
- **ISSUE_TEMPLATE/**: Standard issue templates
|
|
55
|
+
|
|
56
|
+
### 4. `CLAUDE.md` - Project Guidance (15 KB)
|
|
57
|
+
|
|
58
|
+
The master instruction document for Claude Code:
|
|
59
|
+
|
|
60
|
+
- **Variable substitution**: `{{PROJECT_OWNER}}`, `{{CONVERSATION_LANGUAGE}}`, `{{CODEBASE_LANGUAGE}}`
|
|
61
|
+
- **Customizable**: User-facing project instructions in user's language
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## How Templates Are Used
|
|
66
|
+
|
|
67
|
+
### Initialization Flow
|
|
68
|
+
|
|
69
|
+
When a user runs `moai-adk init`, the `TemplateProcessor` class performs:
|
|
70
|
+
|
|
71
|
+
1. **Template Discovery**: Locates `src/moai_adk/templates/` via package path resolution
|
|
72
|
+
2. **Directory Copy**: Copies `.claude/`, `.moai/`, `.github/` to target project
|
|
73
|
+
3. **File Copy**: Copies `CLAUDE.md`, `.gitignore` individually
|
|
74
|
+
4. **Variable Substitution**: Replaces template placeholders with user values:
|
|
75
|
+
- `{{PROJECT_OWNER}}` → User's configured name
|
|
76
|
+
- `{{CONVERSATION_LANGUAGE}}` → User's language (Korean, Japanese, etc.)
|
|
77
|
+
- `{{CONVERSATION_LANGUAGE_NAME}}` → Language display name
|
|
78
|
+
- `{{CODEBASE_LANGUAGE}}` → Detected or specified project language
|
|
79
|
+
|
|
80
|
+
### Current Template Processor Logic
|
|
81
|
+
|
|
82
|
+
**File**: `src/moai_adk/core/template/processor.py`
|
|
83
|
+
|
|
84
|
+
**Methods**:
|
|
85
|
+
- `_copy_claude()`: Copy Alfred system (agents, commands, skills, hooks)
|
|
86
|
+
- `_copy_moai()`: Copy MoAI-ADK configuration and structure
|
|
87
|
+
- `_copy_github()`: Copy GitHub Actions workflows
|
|
88
|
+
- `_copy_claude_md()`: Copy and substitute variables in CLAUDE.md
|
|
89
|
+
- `_copy_gitignore()`: Copy Git ignore patterns
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## @TAG System & Traceability
|
|
94
|
+
|
|
95
|
+
### What Are @TAG Markers?
|
|
96
|
+
|
|
97
|
+
**@TAG markers** are MoAI-ADK's core traceability feature, linking:
|
|
98
|
+
- `@SPEC:ID` → Requirements
|
|
99
|
+
- `@TEST:ID` → Test cases
|
|
100
|
+
- `@CODE:ID` → Implementation
|
|
101
|
+
- `@DOC:ID` → Documentation
|
|
102
|
+
|
|
103
|
+
**Example**:
|
|
104
|
+
```python
|
|
105
|
+
# @CODE:AUTH-001 | SPEC: SPEC-AUTH-001/spec.md | Chain: AUTH-001
|
|
106
|
+
def authenticate_user(username, password):
|
|
107
|
+
"""Authenticate user credentials (SPEC-AUTH-001)."""
|
|
108
|
+
# Implementation...
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### How @TAGs Work in New Projects
|
|
112
|
+
|
|
113
|
+
**Day 1**: Your project starts with **0 @TAGs**
|
|
114
|
+
- No setup required, no validation needed
|
|
115
|
+
- Tags are created automatically via Alfred commands
|
|
116
|
+
|
|
117
|
+
**Day 30**: Tags grow naturally
|
|
118
|
+
- `/alfred:1-plan "User auth"` → creates `@SPEC:AUTH-001`
|
|
119
|
+
- `/alfred:2-run SPEC-AUTH-001` → creates `@TEST:AUTH-001`, `@CODE:AUTH-001`
|
|
120
|
+
- `/alfred:3-sync` → creates `@DOC:AUTH-001`
|
|
121
|
+
|
|
122
|
+
**Simple & Automatic**: @TAGs are added by Alfred agents, not by you.
|
|
123
|
+
|
|
124
|
+
### TAG Validation (Advanced, Optional)
|
|
125
|
+
|
|
126
|
+
**MoAI-ADK framework** uses TAG validation (82 files, complex chains)
|
|
127
|
+
**Your new project** does NOT need TAG validation
|
|
128
|
+
|
|
129
|
+
**When you might want TAG validation**:
|
|
130
|
+
- Project has 100+ TAGs
|
|
131
|
+
- Team has 10+ developers
|
|
132
|
+
- Need automated quality gates
|
|
133
|
+
|
|
134
|
+
**How to add TAG validation** (if needed):
|
|
135
|
+
- See MoAI-ADK documentation: "Advanced: TAG Validation Setup"
|
|
136
|
+
- Manual installation from framework source
|
|
137
|
+
- Optional plugin (future): `moai-adk plugin install tag-validation`
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## Maintenance Guidelines
|
|
142
|
+
|
|
143
|
+
### Syncing Skills to Templates
|
|
144
|
+
|
|
145
|
+
**Script**: `scripts/sync_allowed_tools.py` (Korean)
|
|
146
|
+
|
|
147
|
+
This script synchronizes `.claude/skills/` to `src/moai_adk/templates/.claude/skills/` to ensure new projects receive the latest skill versions.
|
|
148
|
+
|
|
149
|
+
**When to run**:
|
|
150
|
+
- After adding new skills
|
|
151
|
+
- After updating existing skill content
|
|
152
|
+
- Before releasing a new version
|
|
153
|
+
|
|
154
|
+
### Template Versioning
|
|
155
|
+
|
|
156
|
+
Templates are versioned with the MoAI-ADK package. When releasing:
|
|
157
|
+
|
|
158
|
+
1. Update template files in `src/moai_adk/templates/`
|
|
159
|
+
2. Run skill sync script
|
|
160
|
+
3. Update this README if structure changes
|
|
161
|
+
4. Test with `moai-adk init` on a clean directory
|
|
162
|
+
5. Document breaking changes in CHANGELOG.md
|
|
163
|
+
|
|
164
|
+
### Testing Template Changes
|
|
165
|
+
|
|
166
|
+
**Integration tests**: `tests/integration/test_phase_executor.py`
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
# Test project initialization
|
|
170
|
+
pytest tests/integration/test_phase_executor.py::test_phase_0_initialization
|
|
171
|
+
|
|
172
|
+
# Test full workflow
|
|
173
|
+
pytest tests/e2e/test_e2e_workflow.py
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
## Related Documentation
|
|
179
|
+
|
|
180
|
+
- **CLAUDE.md**: Main project guidance (repository root)
|
|
181
|
+
- **CLAUDE-AGENTS-GUIDE.md**: Alfred team structure (repository root)
|
|
182
|
+
- **CLAUDE-RULES.md**: Development rules and conventions (repository root)
|
|
183
|
+
- **Language Configuration**: `.moai/memory/language-config-schema.md`
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## FAQ
|
|
188
|
+
|
|
189
|
+
### Q: What is the difference between MoAI-ADK framework and user projects?
|
|
190
|
+
|
|
191
|
+
**A**:
|
|
192
|
+
- **MoAI-ADK framework** = The tool itself (this repository, needs complex validation)
|
|
193
|
+
- **User projects** = Projects created by `moai-adk init` (your apps, simple start)
|
|
194
|
+
|
|
195
|
+
Think of it like Ruby on Rails:
|
|
196
|
+
- Rails framework has complex CI/CD infrastructure
|
|
197
|
+
- `rails new my-app` creates a simple, clean project
|
|
198
|
+
|
|
199
|
+
### Q: Will my project have @TAG markers?
|
|
200
|
+
|
|
201
|
+
**A**: Yes! @TAG markers are **automatic and core** to MoAI-ADK workflow:
|
|
202
|
+
- Created automatically by `/alfred:1-plan`, `/alfred:2-run`, `/alfred:3-sync`
|
|
203
|
+
- Provide traceability (link requirements → tests → code → docs)
|
|
204
|
+
- No validation needed for small/medium projects (simple grep is enough)
|
|
205
|
+
|
|
206
|
+
### Q: When do I need TAG validation?
|
|
207
|
+
|
|
208
|
+
**A**: Only for **mature, large-scale projects**:
|
|
209
|
+
- 100+ SPEC documents
|
|
210
|
+
- 10+ team members
|
|
211
|
+
- Complex TAG chains requiring automated integrity checks
|
|
212
|
+
|
|
213
|
+
For most projects, @TAG markers alone are sufficient.
|
|
214
|
+
|
|
215
|
+
### Q: Will old projects break when templates are updated?
|
|
216
|
+
|
|
217
|
+
**A**: No. Templates only affect **new** projects created via `moai-adk init`. Existing projects are not modified unless explicitly updated via `moai-adk update`.
|
|
218
|
+
|
|
219
|
+
### Q: How do I customize templates for my organization?
|
|
220
|
+
|
|
221
|
+
**A**: Fork MoAI-ADK and modify files in `src/moai_adk/templates/`. Maintain your fork's template sync script to merge upstream updates.
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## Design Philosophy
|
|
226
|
+
|
|
227
|
+
### Framework vs User Projects
|
|
228
|
+
|
|
229
|
+
**What MoAI-ADK framework needs** (this repository):
|
|
230
|
+
- ✅ Complex TAG validation (82 files, orphan/duplicate detection)
|
|
231
|
+
- ✅ Advanced CI/CD workflows
|
|
232
|
+
- ✅ Quality gates for framework development
|
|
233
|
+
|
|
234
|
+
**What new user projects need** (`moai-adk init`):
|
|
235
|
+
- ✅ Alfred SuperAgent (workflow orchestration)
|
|
236
|
+
- ✅ @TAG markers (traceability)
|
|
237
|
+
- ✅ Basic CI/CD (testing, linting)
|
|
238
|
+
- ❌ NO complex TAG validation (not needed until project matures)
|
|
239
|
+
|
|
240
|
+
**Goal**: Start simple, grow as needed.
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
## Change History
|
|
245
|
+
|
|
246
|
+
| Date | Version | Changes |
|
|
247
|
+
|------|---------|---------|
|
|
248
|
+
| 2025-10-29 | 0.8.3 | Removed TAG validation system from templates (design clarification) |
|
|
249
|
+
| 2025-10-29 | 0.7.0 | Language localization complete (5 languages supported) |
|
|
250
|
+
| 2025-10-16 | 0.6.0 | Initial template structure with Alfred system |
|
|
251
|
+
|
|
252
|
+
---
|
|
253
|
+
|
|
254
|
+
**Last Updated**: 2025-10-29
|
|
255
|
+
**Maintained By**: MoAI-ADK Core Team
|
|
256
|
+
**Design Principle**: Start simple, scale as needed
|