moai-adk 0.4.0__py3-none-any.whl → 0.4.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/__init__.py +1 -8
- moai_adk/cli/commands/init.py +10 -5
- moai_adk/cli/commands/update.py +274 -118
- moai_adk/cli/prompts/init_prompts.py +14 -18
- moai_adk/core/diagnostics/slash_commands.py +1 -1
- moai_adk/core/project/backup_utils.py +1 -0
- moai_adk/core/project/phase_executor.py +3 -1
- moai_adk/core/project/validator.py +3 -2
- moai_adk/core/template/backup.py +11 -3
- moai_adk/core/template/merger.py +16 -3
- moai_adk/core/template/processor.py +22 -3
- moai_adk/templates/.claude/agents/alfred/cc-manager.md +443 -424
- moai_adk/templates/.claude/agents/alfred/debug-helper.md +116 -103
- moai_adk/templates/.claude/agents/alfred/doc-syncer.md +130 -116
- moai_adk/templates/.claude/agents/alfred/git-manager.md +186 -174
- moai_adk/templates/.claude/agents/alfred/implementation-planner.md +227 -213
- moai_adk/templates/.claude/agents/alfred/project-manager.md +205 -125
- moai_adk/templates/.claude/agents/alfred/quality-gate.md +224 -209
- moai_adk/templates/.claude/agents/alfred/spec-builder.md +174 -160
- moai_adk/templates/.claude/agents/alfred/tag-agent.md +151 -139
- moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +209 -196
- moai_adk/templates/.claude/agents/alfred/trust-checker.md +247 -233
- moai_adk/templates/.claude/commands/alfred/0-project.md +673 -640
- moai_adk/templates/.claude/commands/alfred/1-plan.md +342 -333
- moai_adk/templates/.claude/commands/alfred/2-run.md +295 -285
- moai_adk/templates/.claude/commands/alfred/3-sync.md +366 -356
- moai_adk/templates/.claude/hooks/alfred/README.md +52 -52
- moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +44 -48
- moai_adk/templates/.claude/hooks/alfred/core/__init__.py +17 -17
- moai_adk/templates/.claude/hooks/alfred/core/checkpoint.py +59 -59
- moai_adk/templates/.claude/hooks/alfred/core/context.py +19 -19
- moai_adk/templates/.claude/hooks/alfred/core/project.py +52 -52
- moai_adk/templates/.claude/hooks/alfred/handlers/__init__.py +1 -1
- moai_adk/templates/.claude/hooks/alfred/handlers/notification.py +4 -4
- moai_adk/templates/.claude/hooks/alfred/handlers/session.py +27 -27
- moai_adk/templates/.claude/hooks/alfred/handlers/tool.py +16 -17
- moai_adk/templates/.claude/hooks/alfred/handlers/user.py +11 -11
- moai_adk/templates/.claude/output-styles/alfred/agentic-coding.md +308 -307
- moai_adk/templates/.claude/output-styles/alfred/moai-adk-learning.md +297 -296
- moai_adk/templates/.claude/output-styles/alfred/study-with-alfred.md +191 -190
- moai_adk/templates/.claude/skills/moai-alfred-code-reviewer/SKILL.md +112 -0
- moai_adk/templates/.claude/skills/moai-alfred-debugger-pro/SKILL.md +103 -0
- moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/SKILL.md +103 -0
- moai_adk/templates/.claude/skills/moai-alfred-git-workflow/SKILL.md +95 -0
- moai_adk/templates/.claude/skills/moai-alfred-language-detection/SKILL.md +99 -0
- moai_adk/templates/.claude/skills/moai-alfred-performance-optimizer/SKILL.md +105 -0
- moai_adk/templates/.claude/skills/moai-alfred-refactoring-coach/SKILL.md +97 -0
- moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/SKILL.md +97 -0
- moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/SKILL.md +90 -0
- moai_adk/templates/.claude/skills/moai-alfred-trust-validation/SKILL.md +99 -0
- moai_adk/templates/.claude/skills/moai-alfred-tui-survey/SKILL.md +87 -0
- moai_adk/templates/.claude/skills/moai-alfred-tui-survey/examples.md +62 -0
- moai_adk/templates/.claude/skills/moai-claude-code/SKILL.md +70 -43
- moai_adk/templates/.claude/skills/moai-claude-code/examples.md +141 -141
- moai_adk/templates/.claude/skills/moai-claude-code/reference.md +179 -165
- moai_adk/templates/.claude/skills/moai-claude-code/templates/agent-full.md +78 -78
- moai_adk/templates/.claude/skills/moai-claude-code/templates/command-full.md +90 -90
- moai_adk/templates/.claude/skills/moai-claude-code/templates/plugin-full.json +39 -25
- moai_adk/templates/.claude/skills/moai-claude-code/templates/settings-full.json +117 -74
- moai_adk/templates/.claude/skills/moai-claude-code/templates/skill-full.md +131 -134
- moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +43 -12
- moai_adk/templates/.claude/skills/moai-domain-cli-tool/SKILL.md +43 -12
- moai_adk/templates/.claude/skills/moai-domain-data-science/SKILL.md +43 -12
- moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +43 -12
- moai_adk/templates/.claude/skills/moai-domain-devops/SKILL.md +43 -12
- moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +43 -12
- moai_adk/templates/.claude/skills/moai-domain-ml/SKILL.md +43 -11
- moai_adk/templates/.claude/skills/moai-domain-mobile-app/SKILL.md +43 -12
- moai_adk/templates/.claude/skills/moai-domain-security/SKILL.md +43 -12
- moai_adk/templates/.claude/skills/moai-domain-web-api/SKILL.md +43 -12
- moai_adk/templates/.claude/skills/moai-essentials-debug/SKILL.md +47 -11
- moai_adk/templates/.claude/skills/moai-essentials-perf/SKILL.md +47 -11
- moai_adk/templates/.claude/skills/moai-essentials-refactor/SKILL.md +51 -14
- moai_adk/templates/.claude/skills/moai-essentials-review/SKILL.md +46 -10
- moai_adk/templates/.claude/skills/moai-foundation-ears/SKILL.md +62 -25
- moai_adk/templates/.claude/skills/moai-foundation-git/SKILL.md +44 -17
- moai_adk/templates/.claude/skills/moai-foundation-langs/SKILL.md +44 -14
- moai_adk/templates/.claude/skills/moai-foundation-specs/SKILL.md +45 -13
- moai_adk/templates/.claude/skills/moai-foundation-tags/SKILL.md +46 -14
- moai_adk/templates/.claude/skills/moai-foundation-trust/SKILL.md +48 -8
- moai_adk/templates/.claude/skills/moai-lang-c/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-clojure/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +44 -11
- moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +44 -11
- moai_adk/templates/.claude/skills/moai-lang-dart/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-elixir/SKILL.md +44 -11
- moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +44 -11
- moai_adk/templates/.claude/skills/moai-lang-haskell/SKILL.md +44 -11
- moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-julia/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-lua/SKILL.md +44 -11
- moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +44 -11
- moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +44 -11
- moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +44 -11
- moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-shell/SKILL.md +44 -11
- moai_adk/templates/.claude/skills/moai-lang-sql/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +44 -12
- moai_adk/templates/.github/PULL_REQUEST_TEMPLATE.md +44 -43
- moai_adk/templates/.github/workflows/moai-gitflow.yml +36 -35
- moai_adk/templates/.moai/config.json +9 -6
- moai_adk/templates/.moai/memory/development-guide.md +220 -221
- moai_adk/templates/.moai/memory/gitflow-protection-policy.md +85 -85
- moai_adk/templates/.moai/memory/spec-metadata.md +149 -150
- moai_adk/templates/.moai/project/product.md +90 -90
- moai_adk/templates/.moai/project/structure.md +85 -85
- moai_adk/templates/.moai/project/tech.md +117 -117
- moai_adk/templates/CLAUDE.md +350 -722
- moai_adk-0.4.1.dist-info/METADATA +303 -0
- moai_adk-0.4.1.dist-info/RECORD +152 -0
- moai_adk/templates/.claude/commands/alfred/1-spec.md +0 -31
- moai_adk/templates/.claude/commands/alfred/2-build.md +0 -30
- moai_adk/templates/.claude/skills/scripts/standardize_skills.py +0 -166
- moai_adk/templates/.claude/skills/scripts/verify_standardization.sh +0 -43
- moai_adk/templates/.moai/hooks/pre-push.sample +0 -88
- moai_adk-0.4.0.dist-info/METADATA +0 -1816
- moai_adk-0.4.0.dist-info/RECORD +0 -145
- {moai_adk-0.4.0.dist-info → moai_adk-0.4.1.dist-info}/WHEEL +0 -0
- {moai_adk-0.4.0.dist-info → moai_adk-0.4.1.dist-info}/entry_points.txt +0 -0
- {moai_adk-0.4.0.dist-info → moai_adk-0.4.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
# SPEC
|
|
1
|
+
# SPEC Metadata Structure Guide
|
|
2
2
|
|
|
3
|
-
> **MoAI-ADK SPEC
|
|
3
|
+
> **MoAI-ADK SPEC Metadata Standard**
|
|
4
4
|
>
|
|
5
|
-
>
|
|
5
|
+
> Every SPEC document must follow this structure.
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
## 📋
|
|
9
|
+
## 📋 Metadata Overview
|
|
10
10
|
|
|
11
|
-
SPEC
|
|
11
|
+
SPEC metadata contains **7 required fields** and **9 optional fields**.
|
|
12
12
|
|
|
13
|
-
###
|
|
13
|
+
### Full Example
|
|
14
14
|
|
|
15
15
|
```yaml
|
|
16
16
|
---
|
|
17
|
-
#
|
|
18
|
-
id: AUTH-001 # SPEC
|
|
19
|
-
version: 0.0.1 # Semantic
|
|
17
|
+
# Required Fields (7)
|
|
18
|
+
id: AUTH-001 # Unique SPEC ID
|
|
19
|
+
version: 0.0.1 # Semantic version (v0.0.1 = INITIAL, draft start)
|
|
20
20
|
status: draft # draft|active|completed|deprecated
|
|
21
|
-
created: 2025-09-15
|
|
22
|
-
updated: 2025-09-15
|
|
23
|
-
author: @Goos #
|
|
21
|
+
created: 2025-09-15 # Creation date (YYYY-MM-DD)
|
|
22
|
+
updated: 2025-09-15 # Last updated (YYYY-MM-DD; initially same as created)
|
|
23
|
+
author: @Goos # Author (single GitHub handle)
|
|
24
24
|
priority: high # low|medium|high|critical
|
|
25
25
|
|
|
26
|
-
#
|
|
26
|
+
# Optional Fields – Classification/Meta
|
|
27
27
|
category: security # feature|bugfix|refactor|security|docs|perf
|
|
28
|
-
labels: #
|
|
28
|
+
labels: # Tags for search and grouping
|
|
29
29
|
- authentication
|
|
30
30
|
- jwt
|
|
31
31
|
|
|
32
|
-
#
|
|
33
|
-
depends_on: #
|
|
32
|
+
# Optional Fields – Relationships (Dependency Graph)
|
|
33
|
+
depends_on: # SPECs this one depends on (optional)
|
|
34
34
|
- USER-001
|
|
35
|
-
blocks: #
|
|
35
|
+
blocks: # SPECs blocked by this one (optional)
|
|
36
36
|
- AUTH-002
|
|
37
|
-
related_specs: #
|
|
37
|
+
related_specs: # Related SPECs (optional)
|
|
38
38
|
- TOKEN-002
|
|
39
39
|
related_issue: "https://github.com/modu-ai/moai-adk/issues/123"
|
|
40
40
|
|
|
41
|
-
#
|
|
41
|
+
# Optional Fields – Scope/Impact
|
|
42
42
|
scope:
|
|
43
|
-
packages: #
|
|
43
|
+
packages: # Impacted packages
|
|
44
44
|
- src/core/auth
|
|
45
|
-
files: #
|
|
45
|
+
files: # Key files (optional)
|
|
46
46
|
- auth-service.ts
|
|
47
47
|
- jwt-manager.ts
|
|
48
48
|
---
|
|
@@ -50,85 +50,84 @@ scope:
|
|
|
50
50
|
|
|
51
51
|
---
|
|
52
52
|
|
|
53
|
-
##
|
|
54
|
-
|
|
55
|
-
### 1. `id`
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
### 2. `version`
|
|
66
|
-
-
|
|
67
|
-
-
|
|
68
|
-
-
|
|
69
|
-
-
|
|
70
|
-
- **v0.0.
|
|
71
|
-
- **v0.0
|
|
72
|
-
- **v0.1.
|
|
73
|
-
- **v0.
|
|
74
|
-
- **
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
-
|
|
79
|
-
-
|
|
80
|
-
- `
|
|
81
|
-
- `
|
|
82
|
-
- `
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
-
|
|
92
|
-
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
-
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
-
|
|
106
|
-
-
|
|
107
|
-
- `
|
|
108
|
-
- `
|
|
109
|
-
- `
|
|
110
|
-
- `low`: 낮은 우선순위 (최적화, 문서)
|
|
53
|
+
## Required Fields
|
|
54
|
+
|
|
55
|
+
### 1. `id` – Unique SPEC Identifier
|
|
56
|
+
- **Type**: string
|
|
57
|
+
- **Format**: `<DOMAIN>-<NUMBER>`
|
|
58
|
+
- **Examples**: `AUTH-001`, `INSTALLER-SEC-001`
|
|
59
|
+
- **Rules**:
|
|
60
|
+
- Immutable once assigned
|
|
61
|
+
- Use three digits (001–999)
|
|
62
|
+
- Domain in uppercase; hyphens allowed
|
|
63
|
+
- Directory name: `.moai/specs/SPEC-{ID}/` (e.g., `.moai/specs/SPEC-AUTH-001/`)
|
|
64
|
+
|
|
65
|
+
### 2. `version` – Semantic Version
|
|
66
|
+
- **Type**: string (`MAJOR.MINOR.PATCH`)
|
|
67
|
+
- **Default**: `0.0.1` (all SPECs start here, status: draft)
|
|
68
|
+
- **Version Lifecycle**:
|
|
69
|
+
- **v0.0.1**: INITIAL – SPEC first draft (status: draft)
|
|
70
|
+
- **v0.0.x**: Draft refinements (increment PATCH when editing the SPEC)
|
|
71
|
+
- **v0.1.0**: TDD implementation complete (status: completed, updated via `/alfred:3-sync`)
|
|
72
|
+
- **v0.1.x**: Bug fixes or doc improvements (PATCH increment)
|
|
73
|
+
- **v0.x.0**: Feature additions or major enhancements (MINOR increment)
|
|
74
|
+
- **v1.0.0**: Stable release (production ready, explicit stakeholder approval required)
|
|
75
|
+
|
|
76
|
+
### 3. `status` – Progress State
|
|
77
|
+
- **Type**: enum
|
|
78
|
+
- **Values**:
|
|
79
|
+
- `draft`: Authoring in progress
|
|
80
|
+
- `active`: Implementation underway
|
|
81
|
+
- `completed`: Implementation finished
|
|
82
|
+
- `deprecated`: Planned for retirement
|
|
83
|
+
|
|
84
|
+
### 4. `created` – Creation Date
|
|
85
|
+
- **Type**: date string
|
|
86
|
+
- **Format**: `YYYY-MM-DD`
|
|
87
|
+
- **Example**: `2025-10-06`
|
|
88
|
+
|
|
89
|
+
### 5. `updated` – Last Modified Date
|
|
90
|
+
- **Type**: date string
|
|
91
|
+
- **Format**: `YYYY-MM-DD`
|
|
92
|
+
- **Rule**: Update whenever the SPEC content changes.
|
|
93
|
+
|
|
94
|
+
### 6. `author` – Primary Author
|
|
95
|
+
- **Type**: string
|
|
96
|
+
- **Format**: `@{GitHub ID}`
|
|
97
|
+
- **Example**: `@Goos`
|
|
98
|
+
- **Rules**:
|
|
99
|
+
- Single value only (no `authors` array)
|
|
100
|
+
- Prefix the GitHub handle with `@`
|
|
101
|
+
- Additional contributors belong in the HISTORY section
|
|
102
|
+
|
|
103
|
+
### 7. `priority` – Work Priority
|
|
104
|
+
- **Type**: enum
|
|
105
|
+
- **Values**:
|
|
106
|
+
- `critical`: Immediate attention (security, severe defects)
|
|
107
|
+
- `high`: Major feature work
|
|
108
|
+
- `medium`: Enhancements
|
|
109
|
+
- `low`: Optimizations or documentation
|
|
111
110
|
|
|
112
111
|
---
|
|
113
112
|
|
|
114
|
-
##
|
|
113
|
+
## Optional Fields
|
|
115
114
|
|
|
116
|
-
###
|
|
115
|
+
### Classification / Meta
|
|
117
116
|
|
|
118
|
-
#### 8. `category`
|
|
119
|
-
-
|
|
120
|
-
-
|
|
121
|
-
- `feature`:
|
|
122
|
-
- `bugfix`:
|
|
123
|
-
- `refactor`:
|
|
124
|
-
- `security`:
|
|
125
|
-
- `docs`:
|
|
126
|
-
- `perf`:
|
|
117
|
+
#### 8. `category` – Change Type
|
|
118
|
+
- **Type**: enum
|
|
119
|
+
- **Values**:
|
|
120
|
+
- `feature`: New functionality
|
|
121
|
+
- `bugfix`: Defect resolution
|
|
122
|
+
- `refactor`: Structural improvements
|
|
123
|
+
- `security`: Security enhancements
|
|
124
|
+
- `docs`: Documentation updates
|
|
125
|
+
- `perf`: Performance optimizations
|
|
127
126
|
|
|
128
|
-
#### 9. `labels`
|
|
129
|
-
-
|
|
130
|
-
-
|
|
131
|
-
-
|
|
127
|
+
#### 9. `labels` – Classification Tags
|
|
128
|
+
- **Type**: array of strings
|
|
129
|
+
- **Purpose**: Search, filtering, grouping
|
|
130
|
+
- **Example**:
|
|
132
131
|
```yaml
|
|
133
132
|
labels:
|
|
134
133
|
- installer
|
|
@@ -136,52 +135,52 @@ scope:
|
|
|
136
135
|
- security
|
|
137
136
|
```
|
|
138
137
|
|
|
139
|
-
###
|
|
138
|
+
### Relationship Fields (Dependency Graph)
|
|
140
139
|
|
|
141
|
-
#### 10. `depends_on`
|
|
142
|
-
-
|
|
143
|
-
-
|
|
144
|
-
-
|
|
140
|
+
#### 10. `depends_on` – Required SPECs
|
|
141
|
+
- **Type**: array of strings
|
|
142
|
+
- **Meaning**: SPECs that must be completed first
|
|
143
|
+
- **Example**:
|
|
145
144
|
```yaml
|
|
146
145
|
depends_on:
|
|
147
146
|
- USER-001
|
|
148
147
|
- AUTH-001
|
|
149
148
|
```
|
|
150
|
-
-
|
|
149
|
+
- **Use Case**: Determines execution order and parallelization.
|
|
151
150
|
|
|
152
|
-
#### 11. `blocks`
|
|
153
|
-
-
|
|
154
|
-
-
|
|
155
|
-
-
|
|
151
|
+
#### 11. `blocks` – Blocked SPECs
|
|
152
|
+
- **Type**: array of strings
|
|
153
|
+
- **Meaning**: SPECs that cannot proceed until this one is resolved
|
|
154
|
+
- **Example**:
|
|
156
155
|
```yaml
|
|
157
156
|
blocks:
|
|
158
157
|
- PAYMENT-003
|
|
159
158
|
```
|
|
160
159
|
|
|
161
|
-
#### 12. `related_specs`
|
|
162
|
-
-
|
|
163
|
-
-
|
|
164
|
-
-
|
|
160
|
+
#### 12. `related_specs` – Associated SPECs
|
|
161
|
+
- **Type**: array of strings
|
|
162
|
+
- **Meaning**: Related items without direct dependencies
|
|
163
|
+
- **Example**:
|
|
165
164
|
```yaml
|
|
166
165
|
related_specs:
|
|
167
166
|
- TOKEN-002
|
|
168
167
|
- SESSION-001
|
|
169
168
|
```
|
|
170
169
|
|
|
171
|
-
#### 13. `related_issue`
|
|
172
|
-
-
|
|
173
|
-
-
|
|
174
|
-
-
|
|
170
|
+
#### 13. `related_issue` – Linked GitHub Issue
|
|
171
|
+
- **Type**: string (URL)
|
|
172
|
+
- **Format**: Full GitHub issue URL
|
|
173
|
+
- **Example**:
|
|
175
174
|
```yaml
|
|
176
175
|
related_issue: "https://github.com/modu-ai/moai-adk/issues/123"
|
|
177
176
|
```
|
|
178
177
|
|
|
179
|
-
###
|
|
178
|
+
### Scope Fields (Impact Analysis)
|
|
180
179
|
|
|
181
|
-
#### 14. `scope.packages`
|
|
182
|
-
-
|
|
183
|
-
-
|
|
184
|
-
-
|
|
180
|
+
#### 14. `scope.packages` – Impacted Packages
|
|
181
|
+
- **Type**: array of strings
|
|
182
|
+
- **Meaning**: Packages or modules touched by the SPEC
|
|
183
|
+
- **Example**:
|
|
185
184
|
```yaml
|
|
186
185
|
scope:
|
|
187
186
|
packages:
|
|
@@ -189,10 +188,10 @@ scope:
|
|
|
189
188
|
- moai-adk-ts/src/core/git
|
|
190
189
|
```
|
|
191
190
|
|
|
192
|
-
#### 15. `scope.files`
|
|
193
|
-
-
|
|
194
|
-
-
|
|
195
|
-
-
|
|
191
|
+
#### 15. `scope.files` – Key Files
|
|
192
|
+
- **Type**: array of strings
|
|
193
|
+
- **Meaning**: Primary files involved (for reference)
|
|
194
|
+
- **Example**:
|
|
196
195
|
```yaml
|
|
197
196
|
scope:
|
|
198
197
|
files:
|
|
@@ -202,43 +201,43 @@ scope:
|
|
|
202
201
|
|
|
203
202
|
---
|
|
204
203
|
|
|
205
|
-
##
|
|
204
|
+
## Metadata Validation
|
|
206
205
|
|
|
207
|
-
###
|
|
206
|
+
### Required Field Checks
|
|
208
207
|
```bash
|
|
209
|
-
#
|
|
208
|
+
# Verify that every SPEC includes the required fields
|
|
210
209
|
rg "^(id|version|status|created|updated|author|priority):" .moai/specs/SPEC-*/spec.md
|
|
211
210
|
|
|
212
|
-
#
|
|
211
|
+
# Identify SPECs missing the priority field
|
|
213
212
|
rg -L "^priority:" .moai/specs/SPEC-*/spec.md
|
|
214
213
|
```
|
|
215
214
|
|
|
216
|
-
###
|
|
215
|
+
### Format Checks
|
|
217
216
|
```bash
|
|
218
|
-
# author
|
|
217
|
+
# Ensure the author field uses @Handle format
|
|
219
218
|
rg "^author: @[A-Z]" .moai/specs/SPEC-*/spec.md
|
|
220
219
|
|
|
221
|
-
# version
|
|
220
|
+
# Ensure the version field follows 0.x.y
|
|
222
221
|
rg "^version: 0\.\d+\.\d+" .moai/specs/SPEC-*/spec.md
|
|
223
222
|
```
|
|
224
223
|
|
|
225
224
|
---
|
|
226
225
|
|
|
227
|
-
##
|
|
226
|
+
## Migration Guide
|
|
228
227
|
|
|
229
|
-
###
|
|
228
|
+
### Updating Existing SPECs
|
|
230
229
|
|
|
231
|
-
#### 1. priority
|
|
232
|
-
|
|
230
|
+
#### 1. Add the `priority` Field
|
|
231
|
+
Add it if missing:
|
|
233
232
|
```yaml
|
|
234
|
-
priority: medium #
|
|
233
|
+
priority: medium # or low|high|critical
|
|
235
234
|
```
|
|
236
235
|
|
|
237
|
-
#### 2. author
|
|
236
|
+
#### 2. Normalize the `author` Field
|
|
238
237
|
- `authors: ["@goos"]` → `author: @Goos`
|
|
239
|
-
-
|
|
238
|
+
- Convert lowercase handles to the canonical casing.
|
|
240
239
|
|
|
241
|
-
#### 3.
|
|
240
|
+
#### 3. Add Optional Fields (Recommended)
|
|
242
241
|
```yaml
|
|
243
242
|
category: refactor
|
|
244
243
|
labels:
|
|
@@ -248,30 +247,30 @@ labels:
|
|
|
248
247
|
|
|
249
248
|
---
|
|
250
249
|
|
|
251
|
-
##
|
|
250
|
+
## Design Principles
|
|
252
251
|
|
|
253
252
|
### 1. DRY (Don't Repeat Yourself)
|
|
254
|
-
- ❌
|
|
255
|
-
- ✅
|
|
253
|
+
- ❌ **Remove**: the `reference` field (every SPEC referenced the same master plan)
|
|
254
|
+
- ✅ **Instead**: document project-level resources in README.md
|
|
256
255
|
|
|
257
256
|
### 2. Context-Aware
|
|
258
|
-
-
|
|
259
|
-
-
|
|
257
|
+
- Include only the necessary context.
|
|
258
|
+
- Use optional fields only when they add value.
|
|
260
259
|
|
|
261
260
|
### 3. Traceable
|
|
262
|
-
- `depends_on`, `blocks`, `related_specs
|
|
263
|
-
-
|
|
261
|
+
- Use `depends_on`, `blocks`, and `related_specs` to map dependencies.
|
|
262
|
+
- Automated tooling can detect cyclic references.
|
|
264
263
|
|
|
265
264
|
### 4. Maintainable
|
|
266
|
-
-
|
|
267
|
-
-
|
|
265
|
+
- Every field must be machine-verifiable.
|
|
266
|
+
- Maintain consistent formatting for easy parsing.
|
|
268
267
|
|
|
269
268
|
### 5. Simple First
|
|
270
|
-
-
|
|
271
|
-
-
|
|
272
|
-
-
|
|
269
|
+
- Keep complexity low.
|
|
270
|
+
- Limit to 7 required + 9 optional fields.
|
|
271
|
+
- Expand gradually when justified.
|
|
273
272
|
|
|
274
273
|
---
|
|
275
274
|
|
|
276
|
-
|
|
277
|
-
|
|
275
|
+
**Last Updated**: 2025-10-06
|
|
276
|
+
**Author**: @Alfred
|