moai-adk 0.9.0__py3-none-any.whl → 0.15.1__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/cli/commands/init.py +14 -2
- moai_adk/cli/commands/update.py +214 -56
- moai_adk/core/issue_creator.py +2 -2
- moai_adk/core/project/detector.py +201 -12
- moai_adk/core/project/initializer.py +62 -1
- moai_adk/core/project/phase_executor.py +48 -6
- moai_adk/core/tags/ci_validator.py +34 -4
- moai_adk/core/tags/pre_commit_validator.py +40 -2
- moai_adk/core/tags/reporter.py +2 -3
- moai_adk/core/tags/validator.py +1 -1
- moai_adk/core/template_engine.py +20 -5
- moai_adk/templates/.claude/agents/alfred/backend-expert.md +319 -0
- moai_adk/templates/.claude/agents/alfred/devops-expert.md +464 -0
- moai_adk/templates/.claude/agents/alfred/doc-syncer.md +1 -1
- moai_adk/templates/.claude/agents/alfred/frontend-expert.md +357 -0
- moai_adk/templates/.claude/agents/alfred/git-manager.md +2 -2
- moai_adk/templates/.claude/agents/alfred/implementation-planner.md +76 -3
- moai_adk/templates/.claude/agents/alfred/project-manager.md +49 -10
- moai_adk/templates/.claude/agents/alfred/quality-gate.md +3 -3
- moai_adk/templates/.claude/agents/alfred/spec-builder.md +180 -41
- moai_adk/templates/.claude/agents/alfred/tag-agent.md +74 -0
- moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +107 -5
- moai_adk/templates/.claude/agents/alfred/trust-checker.md +2 -2
- moai_adk/templates/.claude/agents/alfred/ui-ux-expert.md +571 -0
- moai_adk/templates/.claude/commands/alfred/0-project.md +928 -263
- moai_adk/templates/.claude/commands/alfred/1-plan.md +220 -68
- moai_adk/templates/.claude/commands/alfred/2-run.md +299 -51
- moai_adk/templates/.claude/commands/alfred/3-sync.md +452 -51
- moai_adk/templates/.claude/commands/alfred/9-feedback.md +1 -1
- moai_adk/templates/.claude/hooks/alfred/core/project.py +25 -27
- moai_adk/templates/.claude/hooks/alfred/core/timeout.py +136 -0
- moai_adk/templates/.claude/hooks/alfred/core/ttl_cache.py +108 -0
- moai_adk/templates/.claude/hooks/alfred/core/version_cache.py +4 -4
- moai_adk/templates/.claude/hooks/alfred/handlers/__init__.py +29 -0
- moai_adk/templates/.claude/hooks/alfred/post_tool__log_changes.py +11 -19
- moai_adk/templates/.claude/hooks/alfred/pre_tool__auto_checkpoint.py +11 -19
- moai_adk/templates/.claude/hooks/alfred/session_end__cleanup.py +11 -19
- moai_adk/templates/.claude/hooks/alfred/session_start__show_project_info.py +10 -18
- moai_adk/templates/.claude/hooks/alfred/shared/core/__init__.py +2 -2
- moai_adk/templates/.claude/hooks/alfred/shared/core/checkpoint.py +3 -3
- moai_adk/templates/.claude/hooks/alfred/shared/core/context.py +5 -5
- moai_adk/templates/.claude/hooks/alfred/shared/core/project.py +40 -41
- moai_adk/templates/.claude/hooks/alfred/shared/core/tags.py +55 -23
- moai_adk/templates/.claude/hooks/alfred/shared/core/version_cache.py +4 -4
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/notification.py +132 -3
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/session.py +9 -10
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/tool.py +3 -6
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/user.py +19 -0
- moai_adk/templates/.claude/hooks/alfred/user_prompt__jit_load_docs.py +14 -22
- moai_adk/templates/.claude/hooks/alfred/utils/__init__.py +1 -0
- moai_adk/templates/.claude/hooks/alfred/utils/timeout.py +161 -0
- moai_adk/templates/.claude/settings.json +5 -5
- moai_adk/templates/.claude/skills/moai-alfred-agent-guide/SKILL.md +70 -0
- moai_adk/templates/.claude/skills/moai-alfred-agent-guide/examples.md +62 -0
- moai_adk/templates/{.moai/memory/CLAUDE-AGENTS-GUIDE.md → .claude/skills/moai-alfred-agent-guide/reference.md} +34 -0
- moai_adk/templates/.claude/skills/moai-alfred-config-schema/SKILL.md +56 -0
- moai_adk/templates/.claude/skills/moai-alfred-config-schema/examples.md +28 -0
- moai_adk/templates/.claude/skills/moai-alfred-config-schema/reference.md +444 -0
- moai_adk/templates/.claude/skills/moai-alfred-context-budget/SKILL.md +62 -0
- moai_adk/templates/.claude/skills/moai-alfred-context-budget/examples.md +28 -0
- moai_adk/templates/.claude/skills/moai-alfred-context-budget/reference.md +405 -0
- moai_adk/templates/.claude/skills/moai-alfred-dev-guide/SKILL.md +51 -0
- moai_adk/templates/.claude/skills/moai-alfred-dev-guide/examples.md +355 -0
- moai_adk/templates/.claude/skills/moai-alfred-dev-guide/reference.md +239 -0
- moai_adk/templates/.claude/skills/moai-alfred-expertise-detection/SKILL.md +323 -0
- moai_adk/templates/.claude/skills/moai-alfred-expertise-detection/examples.md +286 -0
- moai_adk/templates/.claude/skills/moai-alfred-expertise-detection/reference.md +126 -0
- moai_adk/templates/.claude/skills/moai-alfred-gitflow-policy/SKILL.md +74 -0
- moai_adk/templates/.claude/skills/moai-alfred-gitflow-policy/examples.md +4 -0
- moai_adk/templates/.claude/skills/moai-alfred-gitflow-policy/reference.md +269 -0
- moai_adk/templates/.claude/skills/moai-alfred-issue-labels/SKILL.md +19 -0
- moai_adk/templates/.claude/skills/moai-alfred-issue-labels/examples.md +4 -0
- moai_adk/templates/.claude/skills/moai-alfred-persona-roles/SKILL.md +198 -0
- moai_adk/templates/.claude/skills/moai-alfred-persona-roles/examples.md +431 -0
- moai_adk/templates/.claude/skills/moai-alfred-persona-roles/reference.md +141 -0
- moai_adk/templates/.claude/skills/moai-alfred-practices/SKILL.md +89 -0
- moai_adk/templates/.claude/skills/moai-alfred-practices/examples.md +122 -0
- moai_adk/templates/.claude/skills/moai-alfred-proactive-suggestions/SKILL.md +508 -0
- moai_adk/templates/.claude/skills/moai-alfred-proactive-suggestions/examples.md +481 -0
- moai_adk/templates/.claude/skills/moai-alfred-proactive-suggestions/reference.md +100 -0
- moai_adk/templates/.claude/skills/moai-alfred-reporting/SKILL.md +273 -0
- moai_adk/templates/.claude/skills/moai-alfred-rules/SKILL.md +77 -0
- moai_adk/templates/.claude/skills/moai-alfred-rules/examples.md +265 -0
- moai_adk/templates/.claude/skills/moai-alfred-session-state/SKILL.md +19 -0
- moai_adk/templates/.claude/skills/moai-alfred-session-state/examples.md +4 -0
- moai_adk/templates/.claude/skills/moai-alfred-session-state/reference.md +84 -0
- moai_adk/templates/.claude/skills/{moai-spec-authoring → moai-alfred-spec-authoring}/SKILL.md +5 -5
- moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-extended/SKILL.md +115 -0
- moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-extended/examples.md +4 -0
- moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-extended/reference.md +348 -0
- moai_adk/templates/.claude/skills/moai-alfred-todowrite-pattern/SKILL.md +19 -0
- moai_adk/templates/.claude/skills/moai-alfred-todowrite-pattern/examples.md +4 -0
- moai_adk/templates/.claude/skills/moai-alfred-todowrite-pattern/reference.md +211 -0
- moai_adk/templates/.claude/skills/moai-alfred-workflow/SKILL.md +288 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-descriptions/SKILL.md +19 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-descriptions/examples.md +4 -0
- moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/SKILL.md +3 -3
- moai_adk/templates/.claude/skills/moai-design-systems/SKILL.md +802 -0
- moai_adk/templates/.claude/skills/moai-design-systems/examples.md +1238 -0
- moai_adk/templates/.claude/skills/moai-design-systems/reference.md +673 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +17 -13
- moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +15 -12
- moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +14 -12
- moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +14 -11
- moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +10 -8
- moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +15 -12
- moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +13 -11
- moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +16 -10
- moai_adk/templates/.claude/skills/moai-project-documentation.md +622 -0
- moai_adk/templates/.git-hooks/pre-push +143 -0
- moai_adk/templates/.github/workflows/c-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/cpp-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/csharp-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/dart-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/go-tag-validation.yml +130 -0
- moai_adk/templates/.github/workflows/java-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/javascript-tag-validation.yml +135 -0
- moai_adk/templates/.github/workflows/kotlin-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/moai-gitflow.yml +182 -25
- moai_adk/templates/.github/workflows/moai-release-pipeline.yml +35 -29
- moai_adk/templates/.github/workflows/php-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/python-tag-validation.yml +118 -0
- moai_adk/templates/.github/workflows/release.yml +76 -7
- moai_adk/templates/.github/workflows/ruby-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/rust-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/shell-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/spec-issue-sync.yml +208 -41
- moai_adk/templates/.github/workflows/swift-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/tag-report.yml +269 -0
- moai_adk/templates/.github/workflows/tag-validation.yml +186 -0
- moai_adk/templates/.github/workflows/typescript-tag-validation.yml +154 -0
- moai_adk/templates/.moai/config.json +3 -1
- moai_adk/templates/CLAUDE.md +940 -45
- moai_adk/templates/workflows/go-tag-validation.yml +30 -0
- moai_adk/templates/workflows/javascript-tag-validation.yml +41 -0
- moai_adk/templates/workflows/python-tag-validation.yml +42 -0
- moai_adk/templates/workflows/typescript-tag-validation.yml +31 -0
- moai_adk/utils/banner.py +5 -5
- {moai_adk-0.9.0.dist-info → moai_adk-0.15.1.dist-info}/METADATA +1253 -527
- {moai_adk-0.9.0.dist-info → moai_adk-0.15.1.dist-info}/RECORD +169 -109
- moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +0 -209
- moai_adk/templates/.claude/hooks/alfred/notification__handle_events.py +0 -102
- 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/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/.github/ISSUE_TEMPLATE/spec.yml +0 -176
- moai_adk/templates/.github/PULL_REQUEST_TEMPLATE.md +0 -69
- moai_adk/templates/.moai/memory/DEVELOPMENT-GUIDE.md +0 -344
- moai_adk/templates/.moai/memory/SPEC-METADATA.md +0 -356
- moai_adk/templates/.moai/memory/gitflow-protection-policy.md +0 -330
- 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/README.md +0 -256
- moai_adk/templates/__init__.py +0 -2
- /moai_adk/templates/{.moai/memory/ISSUE-LABEL-MAPPING.md → .claude/skills/moai-alfred-issue-labels/reference.md} +0 -0
- /moai_adk/templates/{.moai/memory/CLAUDE-PRACTICES.md → .claude/skills/moai-alfred-practices/reference.md} +0 -0
- /moai_adk/templates/{.moai/memory/CLAUDE-RULES.md → .claude/skills/moai-alfred-rules/reference.md} +0 -0
- /moai_adk/templates/.claude/skills/{moai-spec-authoring → moai-alfred-spec-authoring}/README.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-spec-authoring → moai-alfred-spec-authoring}/examples/validate-spec.sh +0 -0
- /moai_adk/templates/.claude/skills/{moai-spec-authoring → moai-alfred-spec-authoring}/examples.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-spec-authoring → moai-alfred-spec-authoring}/reference.md +0 -0
- /moai_adk/templates/{.moai/memory/SKILLS-DESCRIPTION-POLICY.md → .claude/skills/moai-cc-skill-descriptions/reference.md} +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/CHECKLIST.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/EXAMPLES.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/INTERACTIVE-DISCOVERY.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/METADATA.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/PARALLEL-ANALYSIS-REPORT.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/PYTHON-VERSION-MATRIX.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/SKILL-FACTORY-WORKFLOW.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/SKILL-UPDATE-ADVISOR.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/STEP-BY-STEP-GUIDE.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/STRUCTURE.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/WEB-RESEARCH.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/reference.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/scripts/generate-structure.sh +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/scripts/validate-skill.sh +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/templates/SKILL_TEMPLATE.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/templates/examples-template.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/templates/reference-template.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/templates/scripts-template.sh +0 -0
- {moai_adk-0.9.0.dist-info → moai_adk-0.15.1.dist-info}/WHEEL +0 -0
- {moai_adk-0.9.0.dist-info → moai_adk-0.15.1.dist-info}/entry_points.txt +0 -0
- {moai_adk-0.9.0.dist-info → moai_adk-0.15.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: TECH-001
|
|
3
|
-
version: 0.1.1
|
|
4
|
-
status: active
|
|
5
|
-
created: 2025-10-01
|
|
6
|
-
updated: 2025-10-17
|
|
7
|
-
author: @tech-lead
|
|
8
|
-
priority: medium
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
# {{PROJECT_NAME}} Technology Stack
|
|
12
|
-
|
|
13
|
-
## HISTORY
|
|
14
|
-
|
|
15
|
-
### v0.1.1 (2025-10-17)
|
|
16
|
-
- **UPDATED**: Template version synced (v0.3.8)
|
|
17
|
-
- **AUTHOR**: @Alfred
|
|
18
|
-
- **SECTIONS**: Metadata standardization (single `author` field, added `priority`)
|
|
19
|
-
|
|
20
|
-
### v0.1.0 (2025-10-01)
|
|
21
|
-
- **INITIAL**: Authored the technology stack document
|
|
22
|
-
- **AUTHOR**: @tech-lead
|
|
23
|
-
- **SECTIONS**: Stack, Framework, Quality, Security, Deploy
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
## @DOC:STACK-001 Languages & Runtimes
|
|
28
|
-
|
|
29
|
-
### Primary Language
|
|
30
|
-
|
|
31
|
-
- **Language**: [Chosen primary language]
|
|
32
|
-
- **Version Range**: [Supported versions]
|
|
33
|
-
- **Rationale**: [Justification and trade-offs]
|
|
34
|
-
- **Package Manager**: [Tool used to manage dependencies]
|
|
35
|
-
|
|
36
|
-
### Multi-Platform Support
|
|
37
|
-
|
|
38
|
-
| Platform | Support Level | Validation Tooling | Key Constraints |
|
|
39
|
-
| ----------- | ------------- | ------------------- | --------------- |
|
|
40
|
-
| **Windows** | [Supported?] | [Validation method] | [Constraints] |
|
|
41
|
-
| **macOS** | [Supported?] | [Validation method] | [Constraints] |
|
|
42
|
-
| **Linux** | [Supported?] | [Validation method] | [Constraints] |
|
|
43
|
-
|
|
44
|
-
## @DOC:FRAMEWORK-001 Core Frameworks & Libraries
|
|
45
|
-
|
|
46
|
-
### 1. Runtime Dependencies
|
|
47
|
-
|
|
48
|
-
```json
|
|
49
|
-
{
|
|
50
|
-
"dependencies": {
|
|
51
|
-
"[library1]": "[version]",
|
|
52
|
-
"[library2]": "[version]",
|
|
53
|
-
"[library3]": "[version]"
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
### 2. Development Tooling
|
|
59
|
-
|
|
60
|
-
```json
|
|
61
|
-
{
|
|
62
|
-
"devDependencies": {
|
|
63
|
-
"[dev-tool1]": "[version]",
|
|
64
|
-
"[dev-tool2]": "[version]",
|
|
65
|
-
"[dev-tool3]": "[version]"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
### 3. Build System
|
|
71
|
-
|
|
72
|
-
- **Build Tool**: [Selected build tool]
|
|
73
|
-
- **Bundling**: [Bundler and configuration]
|
|
74
|
-
- **Targets**: [Build targets such as browser, Node.js, etc.]
|
|
75
|
-
- **Performance Goals**: [Desired build duration]
|
|
76
|
-
|
|
77
|
-
## @DOC:QUALITY-001 Quality Gates & Policies
|
|
78
|
-
|
|
79
|
-
### Test Coverage
|
|
80
|
-
|
|
81
|
-
- **Target**: [Coverage percentage goal]
|
|
82
|
-
- **Measurement Tool**: [Tooling used]
|
|
83
|
-
- **Failure Response**: [Actions when coverage falls short]
|
|
84
|
-
|
|
85
|
-
### Static Analysis
|
|
86
|
-
|
|
87
|
-
| Tool | Role | Config File | Failure Handling |
|
|
88
|
-
| -------------- | --------- | ------------- | ---------------- |
|
|
89
|
-
| [linter] | [Purpose] | [config file] | [Action] |
|
|
90
|
-
| [formatter] | [Purpose] | [config file] | [Action] |
|
|
91
|
-
| [type-checker] | [Purpose] | [config file] | [Action] |
|
|
92
|
-
|
|
93
|
-
### Automation Scripts
|
|
94
|
-
|
|
95
|
-
```bash
|
|
96
|
-
# Quality gate pipeline
|
|
97
|
-
[test-command] # Run tests
|
|
98
|
-
[lint-command] # Enforce code quality
|
|
99
|
-
[type-check-command] # Validate types
|
|
100
|
-
[build-command] # Verify builds
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
## @DOC:SECURITY-001 Security Policy & Operations
|
|
104
|
-
|
|
105
|
-
### Secret Management
|
|
106
|
-
|
|
107
|
-
- **Policy**: [Approach to handling secrets]
|
|
108
|
-
- **Tooling**: [Services or tools in use]
|
|
109
|
-
- **Verification**: [Automation to validate compliance]
|
|
110
|
-
|
|
111
|
-
### Dependency Security
|
|
112
|
-
|
|
113
|
-
```json
|
|
114
|
-
{
|
|
115
|
-
"security": {
|
|
116
|
-
"audit_tool": "[security-audit-tool]",
|
|
117
|
-
"update_policy": "[update-policy]",
|
|
118
|
-
"vulnerability_threshold": "[allowed-threshold]"
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
### Logging Policy
|
|
124
|
-
|
|
125
|
-
- **Log Levels**: [Define log levels]
|
|
126
|
-
- **Sensitive Data Masking**: [Masking rules]
|
|
127
|
-
- **Retention Policy**: [Log retention period]
|
|
128
|
-
|
|
129
|
-
## @DOC:DEPLOY-001 Release Channels & Strategy
|
|
130
|
-
|
|
131
|
-
### 1. Distribution Channels
|
|
132
|
-
|
|
133
|
-
- **Primary Channel**: [Main release path]
|
|
134
|
-
- **Release Procedure**: [Deployment process]
|
|
135
|
-
- **Versioning Policy**: [Version management strategy]
|
|
136
|
-
- **Rollback Strategy**: [Rollback plan]
|
|
137
|
-
|
|
138
|
-
### 2. Developer Setup
|
|
139
|
-
|
|
140
|
-
```bash
|
|
141
|
-
# Developer mode setup
|
|
142
|
-
[local-install-command]
|
|
143
|
-
[dependency-install-command]
|
|
144
|
-
[dev-environment-command]
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
### 3. CI/CD Pipeline
|
|
148
|
-
|
|
149
|
-
| Stage | Objective | Tooling | Success Criteria |
|
|
150
|
-
| --------- | ----------- | ------- | ---------------- |
|
|
151
|
-
| [Stage 1] | [Objective] | [Tool] | [Condition] |
|
|
152
|
-
| [Stage 2] | [Objective] | [Tool] | [Condition] |
|
|
153
|
-
| [Stage 3] | [Objective] | [Tool] | [Condition] |
|
|
154
|
-
|
|
155
|
-
## Environment Profiles
|
|
156
|
-
|
|
157
|
-
### Development (`dev`)
|
|
158
|
-
|
|
159
|
-
```bash
|
|
160
|
-
export PROJECT_MODE=development
|
|
161
|
-
export LOG_LEVEL=debug
|
|
162
|
-
[dev-env-command]
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
### Test (`test`)
|
|
166
|
-
|
|
167
|
-
```bash
|
|
168
|
-
export PROJECT_MODE=test
|
|
169
|
-
export LOG_LEVEL=info
|
|
170
|
-
[test-env-command]
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
### Production (`production`)
|
|
174
|
-
|
|
175
|
-
```bash
|
|
176
|
-
export PROJECT_MODE=production
|
|
177
|
-
export LOG_LEVEL=warning
|
|
178
|
-
[prod-env-command]
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
## @CODE:TECH-DEBT-001 Technical Debt Management
|
|
182
|
-
|
|
183
|
-
### Current Debt
|
|
184
|
-
|
|
185
|
-
1. **[debt-item-1]** – [Description and priority]
|
|
186
|
-
2. **[debt-item-2]** – [Description and priority]
|
|
187
|
-
3. **[debt-item-3]** – [Description and priority]
|
|
188
|
-
|
|
189
|
-
### Remediation Plan
|
|
190
|
-
|
|
191
|
-
- **Short term (1 month)**: [Immediate fixes]
|
|
192
|
-
- **Mid term (3 months)**: [Progressive improvements]
|
|
193
|
-
- **Long term (6+ months)**: [Strategic upgrades]
|
|
194
|
-
|
|
195
|
-
## EARS Technical Requirements Guide
|
|
196
|
-
|
|
197
|
-
### Using EARS for the Stack
|
|
198
|
-
|
|
199
|
-
Apply EARS patterns when documenting technical decisions and quality gates:
|
|
200
|
-
|
|
201
|
-
#### Technology Stack EARS Example
|
|
202
|
-
```markdown
|
|
203
|
-
### Ubiquitous Requirements (Baseline)
|
|
204
|
-
- The system shall guarantee TypeScript type safety.
|
|
205
|
-
- The system shall provide cross-platform compatibility.
|
|
206
|
-
|
|
207
|
-
### Event-driven Requirements
|
|
208
|
-
- WHEN code is committed, the system shall run tests automatically.
|
|
209
|
-
- WHEN a build fails, the system shall notify developers immediately.
|
|
210
|
-
|
|
211
|
-
### State-driven Requirements
|
|
212
|
-
- WHILE in development mode, the system shall offer hot reloading.
|
|
213
|
-
- WHILE in production mode, the system shall produce optimized builds.
|
|
214
|
-
|
|
215
|
-
### Optional Features
|
|
216
|
-
- WHERE Docker is available, the system may support container-based deployment.
|
|
217
|
-
- WHERE CI/CD is configured, the system may execute automated deployments.
|
|
218
|
-
|
|
219
|
-
### Constraints
|
|
220
|
-
- IF a dependency vulnerability is detected, the system shall halt the build.
|
|
221
|
-
- Test coverage shall remain at or above 85%.
|
|
222
|
-
- Build time shall not exceed 5 minutes.
|
|
223
|
-
```
|
|
224
|
-
|
|
225
|
-
---
|
|
226
|
-
|
|
227
|
-
_This technology stack guides tool selection and quality gates when `/alfred:2-run` runs._
|
moai_adk/templates/README.md
DELETED
|
@@ -1,256 +0,0 @@
|
|
|
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
|
moai_adk/templates/__init__.py
DELETED
|
File without changes
|
|
File without changes
|
/moai_adk/templates/{.moai/memory/CLAUDE-RULES.md → .claude/skills/moai-alfred-rules/reference.md}
RENAMED
|
File without changes
|
/moai_adk/templates/.claude/skills/{moai-spec-authoring → moai-alfred-spec-authoring}/README.md
RENAMED
|
File without changes
|
|
File without changes
|
/moai_adk/templates/.claude/skills/{moai-spec-authoring → moai-alfred-spec-authoring}/examples.md
RENAMED
|
File without changes
|
/moai_adk/templates/.claude/skills/{moai-spec-authoring → moai-alfred-spec-authoring}/reference.md
RENAMED
|
File without changes
|
|
File without changes
|
/moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/CHECKLIST.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/STRUCTURE.md
RENAMED
|
File without changes
|
/moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/WEB-RESEARCH.md
RENAMED
|
File without changes
|
/moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/reference.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|