moai-adk 0.4.0__py3-none-any.whl → 0.4.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 +2 -3
- 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 +2 -11
- moai_adk/core/project/checker.py +2 -2
- moai_adk/core/project/phase_executor.py +11 -14
- moai_adk/core/project/validator.py +3 -2
- moai_adk/core/quality/__init__.py +1 -1
- moai_adk/core/quality/trust_checker.py +63 -63
- moai_adk/core/quality/validators/__init__.py +1 -1
- moai_adk/core/quality/validators/base_validator.py +1 -1
- moai_adk/core/template/backup.py +21 -8
- moai_adk/core/template/merger.py +14 -4
- moai_adk/core/template/processor.py +24 -5
- moai_adk/templates/.claude/agents/alfred/cc-manager.md +446 -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 +216 -128
- 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 +756 -640
- moai_adk/templates/.claude/commands/alfred/1-plan.md +343 -333
- moai_adk/templates/.claude/commands/alfred/2-run.md +297 -285
- moai_adk/templates/.claude/commands/alfred/3-sync.md +387 -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 +229 -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 +564 -709
- moai_adk-0.4.4.dist-info/METADATA +369 -0
- moai_adk-0.4.4.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.4.dist-info}/WHEEL +0 -0
- {moai_adk-0.4.0.dist-info → moai_adk-0.4.4.dist-info}/entry_points.txt +0 -0
- {moai_adk-0.4.0.dist-info → moai_adk-0.4.4.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: alfred:3-sync
|
|
3
|
-
description:
|
|
4
|
-
argument-hint: "
|
|
3
|
+
description: Document synchronization + PR Ready conversion
|
|
4
|
+
argument-hint: "Mode target path - Mode: auto (default)|force|status|project, target path: Synchronization target path"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
|
7
7
|
- Write
|
|
@@ -16,539 +16,570 @@ allowed-tools:
|
|
|
16
16
|
- TodoWrite
|
|
17
17
|
---
|
|
18
18
|
|
|
19
|
-
# 📚 MoAI-ADK 3
|
|
19
|
+
# 📚 MoAI-ADK Step 3: Document Synchronization (+Optional PR Ready)
|
|
20
|
+
> Interactive prompts rely on `Skill("moai-alfred-tui-survey")` so AskUserQuestion renders TUI selection menus for user surveys and approvals.
|
|
20
21
|
|
|
21
|
-
##
|
|
22
|
+
## 🚀 START HERE
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
**CRITICAL**: Load the TUI Survey Skill FIRST before any user interaction:
|
|
24
25
|
|
|
25
|
-
|
|
26
|
+
```
|
|
27
|
+
Skill("moai-alfred-tui-survey")
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
This Skill MUST be loaded at the very beginning to enable TUI menu rendering for AskUserQuestion calls throughout this workflow.
|
|
31
|
+
|
|
32
|
+
## 🎯 Command Purpose
|
|
33
|
+
|
|
34
|
+
Synchronize code changes to Living Documents and verify @TAG system to ensure complete traceability.
|
|
35
|
+
|
|
36
|
+
**Document sync to**: $ARGUMENTS
|
|
37
|
+
|
|
38
|
+
> **Standard two-step workflow** (see `CLAUDE.md` - "Alfred Command Execution Pattern" for details)
|
|
39
|
+
|
|
40
|
+
## 📋 Execution flow
|
|
41
|
+
|
|
42
|
+
**Phase 0: Skill Loading** (IMMEDIATE)
|
|
43
|
+
- Load `Skill("moai-alfred-tui-survey")` at the very start
|
|
44
|
+
- This enables TUI menu rendering for all user interactions
|
|
45
|
+
|
|
46
|
+
**Phase 1: Analysis & Planning**
|
|
47
|
+
1. **Project status analysis**: Git changes and TAG system verification
|
|
48
|
+
2. **Determine the scope of synchronization**: Full/partial/selective synchronization strategy
|
|
49
|
+
3. **User Confirmation**: Review and approve synchronization plan via AskUserQuestion (TUI menu)
|
|
50
|
+
|
|
51
|
+
**Phase 2: Conditional Execution** (based on user choice)
|
|
52
|
+
4. **Document Synchronization**: Living Document updates and TAG integrity guaranteed (IF user selects "Proceed")
|
|
53
|
+
5. **Git operations**: Commit and PR state transitions via git-manager (IF user selects "Proceed")
|
|
54
|
+
- OR abort workflow (IF user selects "Abort")
|
|
55
|
+
- OR revise plan (IF user selects "Modify")
|
|
26
56
|
|
|
27
|
-
|
|
57
|
+
## 🧠 Associated Skills & Agents
|
|
28
58
|
|
|
29
|
-
|
|
59
|
+
| Agent | Core Skill | Purpose |
|
|
60
|
+
| ----- | -------- | ------- |
|
|
61
|
+
| tag-agent | `moai-alfred-tag-scanning` | Verify TAG system integrity |
|
|
62
|
+
| quality-gate | `moai-alfred-trust-validation` | Check code quality before sync |
|
|
63
|
+
| doc-syncer | `moai-alfred-tag-scanning` | Synchronize Living Documents |
|
|
64
|
+
| git-manager | `moai-alfred-git-workflow` | Handle Git operations |
|
|
30
65
|
|
|
31
|
-
|
|
32
|
-
2. **동기화 범위 결정**: 전체/부분/선택적 동기화 전략
|
|
33
|
-
3. **사용자 확인**: 동기화 계획 검토 및 승인
|
|
34
|
-
4. **문서 동기화**: Living Document 갱신 및 TAG 무결성 보장
|
|
35
|
-
5. **Git 작업**: git-manager를 통한 커밋 및 PR 상태 전환
|
|
66
|
+
**Note**: TUI Survey Skill is loaded once at Phase 0 and reused throughout all user interactions.
|
|
36
67
|
|
|
37
|
-
## 🔗
|
|
68
|
+
## 🔗 Associated Agent
|
|
38
69
|
|
|
39
|
-
- **Phase 1**: quality-gate (🛡️
|
|
40
|
-
- **Primary**: doc-syncer (📖
|
|
41
|
-
- **Secondary**: git-manager (🚀
|
|
70
|
+
- **Phase 1**: quality-gate (🛡️ Quality Assurance Engineer) - Quality verification before synchronization (conditional)
|
|
71
|
+
- **Primary**: doc-syncer (📖 Technical Writer) - Dedicated to document synchronization
|
|
72
|
+
- **Secondary**: git-manager (🚀 Release Engineer) - Dedicated to Git commits/PR
|
|
42
73
|
|
|
43
|
-
## 💡
|
|
74
|
+
## 💡 Example of use
|
|
44
75
|
|
|
45
|
-
|
|
46
|
-
- `/alfred:3-sync` -
|
|
47
|
-
- `/alfred:3-sync --auto-merge` - PR
|
|
48
|
-
- `/alfred:3-sync force` -
|
|
49
|
-
- `/alfred:3-sync status` -
|
|
50
|
-
- `/alfred:3-sync project` -
|
|
76
|
+
Users can run the command as follows:
|
|
77
|
+
- `/alfred:3-sync` - Auto-sync (PR Ready only)
|
|
78
|
+
- `/alfred:3-sync --auto-merge` - PR auto-merge + branch cleanup
|
|
79
|
+
- `/alfred:3-sync force` - Force full synchronization
|
|
80
|
+
- `/alfred:3-sync status` - Check synchronization status
|
|
81
|
+
- `/alfred:3-sync project` - Integrated project synchronization
|
|
51
82
|
|
|
52
|
-
### 🚀
|
|
83
|
+
### 🚀 Fully automated GitFlow (--auto-merge)
|
|
53
84
|
|
|
54
|
-
**
|
|
55
|
-
1.
|
|
56
|
-
2. PR Ready
|
|
57
|
-
3. CI/CD
|
|
58
|
-
4. PR
|
|
59
|
-
5.
|
|
60
|
-
6.
|
|
61
|
-
7.
|
|
85
|
+
**Automatically performs the following actions when used in Team mode**:
|
|
86
|
+
1. Document synchronization complete
|
|
87
|
+
2. Switch to PR Ready
|
|
88
|
+
3. Check CI/CD status
|
|
89
|
+
4. PR automatic merge (squash)
|
|
90
|
+
5. Develop checkout and synchronization
|
|
91
|
+
6. Organizing local feature branches
|
|
92
|
+
7. **Ready for next task** ✅
|
|
62
93
|
|
|
63
|
-
|
|
94
|
+
**Recommended use time**: When you want to complete the merge in one go after completing TDD implementation.
|
|
64
95
|
|
|
65
|
-
**Personal
|
|
96
|
+
**Personal mode**: Automate local main/develop merges and branch cleanups
|
|
66
97
|
|
|
67
|
-
## 🔍 STEP 1:
|
|
98
|
+
## 🔍 STEP 1: Analyze synchronization scope and establish plan
|
|
68
99
|
|
|
69
|
-
|
|
100
|
+
Analyze project status to determine synchronization scope, develop a systematic synchronization plan, and receive user confirmation.
|
|
70
101
|
|
|
71
|
-
**doc-syncer
|
|
102
|
+
**The doc-syncer agent automatically scans the TAG chain and identifies and analyzes Git changes.**
|
|
72
103
|
|
|
73
|
-
### 🔍 TAG
|
|
104
|
+
### 🔍 TAG chain navigation (optional)
|
|
74
105
|
|
|
75
|
-
**TAG
|
|
106
|
+
**If your TAG chain is complex or extensive**, utilize the Explore agent first:
|
|
76
107
|
|
|
77
108
|
```
|
|
78
|
-
Task tool
|
|
109
|
+
Invoking the Task tool (Explore agent):
|
|
79
110
|
- subagent_type: "Explore"
|
|
80
|
-
- description: "
|
|
81
|
-
- prompt: "
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
- @DOC TAG
|
|
86
|
-
|
|
87
|
-
|
|
111
|
+
- description: "Scan entire TAG system"
|
|
112
|
+
- prompt: "Please scan @TAG system throughout the project:
|
|
113
|
+
- @SPEC TAG location (.moai/specs/)
|
|
114
|
+
- @TEST TAG location (tests/)
|
|
115
|
+
- @CODE TAG location (src/)
|
|
116
|
+
- @DOC TAG location (docs/)
|
|
117
|
+
- Detect orphan TAGs and broken references
|
|
118
|
+
Thoroughness level: very thorough"
|
|
88
119
|
```
|
|
89
120
|
|
|
90
|
-
**Explore
|
|
91
|
-
- ✅
|
|
92
|
-
- ✅ TAG
|
|
93
|
-
- ✅
|
|
94
|
-
- ❌
|
|
121
|
+
**Explore Agent When to Use**:
|
|
122
|
+
- ✅ Large projects (100+ files)
|
|
123
|
+
- ✅ When TAG chain integrity verification is required
|
|
124
|
+
- ✅ Changes across multiple SPECs
|
|
125
|
+
- ❌ Simple changes to a single SPEC
|
|
95
126
|
|
|
96
|
-
### ⚙️
|
|
127
|
+
### ⚙️ How to call an agent
|
|
97
128
|
|
|
98
|
-
**STEP 1
|
|
129
|
+
**In STEP 1, call doc-syncer and tag-agent using the Task tool**:
|
|
99
130
|
|
|
100
131
|
```
|
|
101
|
-
1.
|
|
132
|
+
1. Tag-agent call (TAG verification):
|
|
102
133
|
- subagent_type: "tag-agent"
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
134
|
+
- description: "Verify TAG system"
|
|
135
|
+
- prompt: "Please verify the integrity of the entire TAG chain.
|
|
136
|
+
Please verify the integrity of @SPEC, @TEST, @CODE, @DOC TAGs
|
|
137
|
+
and orphan TAGs.
|
|
138
|
+
(Optional) Explore results: $EXPLORE_RESULTS"
|
|
108
139
|
|
|
109
|
-
2. doc-syncer
|
|
140
|
+
2. doc-syncer call (synchronization plan):
|
|
110
141
|
- subagent_type: "doc-syncer"
|
|
111
|
-
|
|
112
|
-
|
|
142
|
+
- description: "Establish a document synchronization plan"
|
|
143
|
+
- prompt: "Please analyze Git changes and establish a document synchronization plan.
|
|
113
144
|
$ARGUMENTS
|
|
114
|
-
|
|
145
|
+
(Optional) TAG validation results: $TAG_VALIDATION_RESULTS"
|
|
115
146
|
```
|
|
116
147
|
|
|
117
|
-
###
|
|
148
|
+
### Synchronization analysis in progress
|
|
118
149
|
|
|
119
|
-
1.
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
150
|
+
1. **Check project status**
|
|
151
|
+
- Git status and changed file list
|
|
152
|
+
- Code-document consistency check
|
|
153
|
+
- @TAG system verification (using tag-agent or Explore)
|
|
154
|
+
- (Optional) Extensive TAG scan based on Explore results
|
|
124
155
|
|
|
125
|
-
2.
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
156
|
+
2. **Determine the scope of synchronization**
|
|
157
|
+
- Living Document area requiring update
|
|
158
|
+
- TAG index need to be updated
|
|
159
|
+
- PR status transition possibility (team mode)
|
|
129
160
|
|
|
130
|
-
3.
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
161
|
+
3. **Establish a synchronization strategy**
|
|
162
|
+
- Synchronization approach for each mode
|
|
163
|
+
- Estimated work time and priorities
|
|
164
|
+
- Identify potential risks
|
|
134
165
|
|
|
135
|
-
### Phase 1
|
|
166
|
+
### Phase 1 Details: Quality pre-verification (conditional automatic execution)
|
|
136
167
|
|
|
137
|
-
|
|
168
|
+
Quickly check code quality before synchronization.
|
|
138
169
|
|
|
139
|
-
**Phase 3 (2-build)
|
|
140
|
-
- **Phase 3**:
|
|
141
|
-
- **Phase 1**:
|
|
170
|
+
**Differences from Phase 3 (2-build)**:
|
|
171
|
+
- **Phase 3**: In-depth verification after completion of TDD implementation (test coverage, code quality, security)
|
|
172
|
+
- **Phase 1**: Quick scan before synchronization (file corruption, critical issues only)
|
|
142
173
|
|
|
143
|
-
|
|
174
|
+
**Purpose**: Prevent documentation of code with quality issues
|
|
144
175
|
|
|
145
|
-
|
|
146
|
-
-
|
|
147
|
-
-
|
|
148
|
-
-
|
|
149
|
-
-
|
|
176
|
+
**Execution conditions (automatic judgment)**:
|
|
177
|
+
- Check the number of code change lines with Git diff
|
|
178
|
+
- Changed lines > 50 lines: Automatically run
|
|
179
|
+
- Changed lines ≤ 50 lines: Skip
|
|
180
|
+
- Change only document: Skip
|
|
150
181
|
|
|
151
|
-
|
|
152
|
-
-
|
|
153
|
-
- **TRUST
|
|
154
|
-
-
|
|
155
|
-
- **TAG
|
|
182
|
+
**Verification items**:
|
|
183
|
+
- **Verify only changed files**: File targets verified by Git diff
|
|
184
|
+
- **TRUST principle verification**: Run trust-checker script
|
|
185
|
+
- **Code style**: Run linter (changed files only)
|
|
186
|
+
- **TAG chain**: Verify changed TAG integrity
|
|
156
187
|
|
|
157
|
-
|
|
158
|
-
Alfred
|
|
188
|
+
**How it works**:
|
|
189
|
+
Alfred automatically calls the quality-gate agent when there are a lot of code changes to perform quick quality verification before document synchronization.
|
|
159
190
|
|
|
160
|
-
|
|
191
|
+
**Handling verification results**:
|
|
161
192
|
|
|
162
|
-
✅ **PASS (Critical
|
|
193
|
+
✅ **PASS (0 Critical)**: Synchronization in progress
|
|
163
194
|
|
|
164
|
-
⚠️ **WARNING (Critical
|
|
195
|
+
⚠️ **WARNING (0 Critical, Warning included)**: Synchronization proceeds after displaying warning.
|
|
165
196
|
|
|
166
|
-
❌ **CRITICAL (
|
|
167
|
-
- Critical
|
|
168
|
-
-
|
|
197
|
+
❌ **CRITICAL (1 or more Critical)**: Synchronization stopped, correction recommended
|
|
198
|
+
- Critical issue found: Synchronization stopped, correction recommended
|
|
199
|
+
- User selection: “Retry after modification” or “Force proceed”
|
|
169
200
|
|
|
170
|
-
|
|
171
|
-
|
|
201
|
+
**Skip verification option**:
|
|
202
|
+
To skip pre-verification, use the `/alfred:3-sync --skip-pre-check` option.
|
|
172
203
|
|
|
173
204
|
---
|
|
174
205
|
|
|
175
|
-
###
|
|
206
|
+
### User verification steps
|
|
176
207
|
|
|
177
|
-
|
|
178
|
-
- **"
|
|
179
|
-
- **"
|
|
180
|
-
- **"
|
|
208
|
+
After reviewing your sync plan, `Skill("moai-alfred-tui-survey")` presents the following options for user decision:
|
|
209
|
+
- **"Proceed"** or **"Start"**: Start synchronization as planned
|
|
210
|
+
- **"Modify [Contents]"**: Request modifications to your sync plan
|
|
211
|
+
- **"Abort"**: Abort the sync operation
|
|
181
212
|
|
|
182
213
|
---
|
|
183
214
|
|
|
184
|
-
## 🚀 STEP 2:
|
|
215
|
+
## 🚀 STEP 2: Execute document synchronization (after user approval)
|
|
185
216
|
|
|
186
|
-
|
|
217
|
+
After user approval (collected via `Skill("moai-alfred-tui-survey")`), the doc-syncer agent performs **Living Document synchronization and @TAG updates**, and optionally executes PR Ready transitions only in team mode.
|
|
187
218
|
|
|
188
|
-
### Phase 2
|
|
219
|
+
### Phase 2 Details: SPEC Completion Processing (Automatic)
|
|
189
220
|
|
|
190
|
-
doc-syncer
|
|
221
|
+
The doc-syncer agent automatically determines whether TDD implementation is complete and updates SPEC metadata.
|
|
191
222
|
|
|
192
|
-
|
|
193
|
-
- status
|
|
194
|
-
- RED → GREEN → REFACTOR
|
|
195
|
-
- @TEST
|
|
223
|
+
**Automatic update conditions**:
|
|
224
|
+
- SPEC with status `draft`
|
|
225
|
+
- RED → GREEN → REFACTOR commit exists
|
|
226
|
+
- @TEST and @CODE TAG exist
|
|
196
227
|
|
|
197
|
-
|
|
228
|
+
**Update details**:
|
|
198
229
|
- `status: draft` → `status: completed`
|
|
199
230
|
- `version: 0.0.x` → `version: 0.1.0`
|
|
200
|
-
-
|
|
231
|
+
- Automatic addition of HISTORY section
|
|
201
232
|
|
|
202
|
-
|
|
233
|
+
**If conditions are not met**: Phase 2 detailed work is automatically skipped
|
|
203
234
|
|
|
204
|
-
##
|
|
235
|
+
## function
|
|
205
236
|
|
|
206
|
-
-
|
|
237
|
+
- **Automatic Document Synchronization**: The doc-syncer agent performs Living Document synchronization and @TAG updates. Optionally implements the PR Ready transition only in team mode.
|
|
207
238
|
|
|
208
|
-
##
|
|
239
|
+
## Synchronization output
|
|
209
240
|
|
|
210
|
-
- `.moai/reports/sync-report.md`
|
|
211
|
-
- TAG
|
|
241
|
+
- `.moai/reports/sync-report.md` creation/update
|
|
242
|
+
- TAG chain verification: Direct code scan (`rg '@TAG' -n src/ tests/`)
|
|
212
243
|
|
|
213
|
-
##
|
|
244
|
+
## Execution method by mode
|
|
214
245
|
|
|
215
|
-
## 📋 STEP 1
|
|
246
|
+
## 📋 STEP 1 Implementation Guide: Analyzing the scope of synchronization and establishing a plan
|
|
216
247
|
|
|
217
|
-
### 1.
|
|
248
|
+
### 1. Project status analysis
|
|
218
249
|
|
|
219
|
-
Alfred
|
|
250
|
+
Alfred calls the doc-syncer agent to analyze synchronization targets and scopes.
|
|
220
251
|
|
|
221
|
-
####
|
|
252
|
+
#### Analysis Checklist
|
|
222
253
|
|
|
223
|
-
- [ ] **Git
|
|
224
|
-
- [ ]
|
|
225
|
-
- [ ] **TAG
|
|
226
|
-
- [ ]
|
|
254
|
+
- [ ] **Git status**: Changed files, branch status, commit history
|
|
255
|
+
- [ ] **Document consistency**: Need for code-to-document synchronization
|
|
256
|
+
- [ ] **TAG system**: @TAG scheme verification and broken links
|
|
257
|
+
- [ ] **Sync scope**: Full vs partial vs specific path synchronization
|
|
227
258
|
|
|
228
|
-
### 2.
|
|
259
|
+
### 2. Determine synchronization strategy
|
|
229
260
|
|
|
230
|
-
####
|
|
261
|
+
#### Mode-specific synchronization approach
|
|
231
262
|
|
|
232
|
-
|
|
|
233
|
-
|
|
234
|
-
| **Personal** |
|
|
235
|
-
| **Team**
|
|
236
|
-
| **Auto**
|
|
237
|
-
| **Force**
|
|
263
|
+
| mode | Synchronization range | PR processing | Key Features |
|
|
264
|
+
| ------------ | ------------------------------- | ---------------------- | ---------------------- |
|
|
265
|
+
| **Personal** | Local document synchronization | checkpoint only | Focus on personal work |
|
|
266
|
+
| **Team** | Full Sync + TAG | PR Ready conversion | Collaboration support |
|
|
267
|
+
| **Auto** | Intelligent automatic selection | Decisions by situation | Optimal strategy |
|
|
268
|
+
| **Force** | Force full sync | Full regeneration | For error recovery |
|
|
238
269
|
|
|
239
|
-
####
|
|
270
|
+
#### Expected scope of work
|
|
240
271
|
|
|
241
|
-
- **Living Document**: API
|
|
242
|
-
- **TAG
|
|
243
|
-
-
|
|
244
|
-
- **PR
|
|
272
|
+
- **Living Document**: API documentation, README, architecture document
|
|
273
|
+
- **TAG index**: Update `.moai/indexes/tags.db`
|
|
274
|
+
- **Sync report**: `.moai/reports/sync-report.md`
|
|
275
|
+
- **PR status**: Draft → Ready for Review transition
|
|
245
276
|
|
|
246
|
-
### 3.
|
|
277
|
+
### 3. Generate synchronization plan report
|
|
247
278
|
|
|
248
|
-
|
|
279
|
+
Present your plan in the following format:
|
|
249
280
|
|
|
250
281
|
```
|
|
251
|
-
##
|
|
282
|
+
## Document Synchronization Plan Report: [TARGET]
|
|
252
283
|
|
|
253
|
-
### 📊
|
|
254
|
-
-
|
|
255
|
-
-
|
|
256
|
-
- **TAG
|
|
284
|
+
### 📊 Health Analysis Results
|
|
285
|
+
- **Changed Files**: [Number and Type]
|
|
286
|
+
- **Synchronization Required**: [High/Medium/Low]
|
|
287
|
+
- **TAG System Status**: [Healthy/Problem Detected]
|
|
257
288
|
|
|
258
|
-
### 🎯
|
|
259
|
-
-
|
|
260
|
-
-
|
|
261
|
-
- **PR
|
|
289
|
+
### 🎯 Sync Strategy
|
|
290
|
+
- **Selected Mode**: [auto/force/status/project]
|
|
291
|
+
- **Sync Scope**: [Full/Partial/Selective]
|
|
292
|
+
- **PR Handling**: [Maintain/Switch Ready/Create New PR]
|
|
262
293
|
|
|
263
|
-
### ⚠️
|
|
264
|
-
-
|
|
265
|
-
- **TAG
|
|
266
|
-
-
|
|
294
|
+
### ⚠️ Notes
|
|
295
|
+
- **Potential conflicts**: [Possible document conflicts]
|
|
296
|
+
- **TAG issues**: [Broken links, duplicate TAGs]
|
|
297
|
+
- **Performance impact**: [Estimated time for large synchronization]
|
|
267
298
|
|
|
268
|
-
### ✅
|
|
269
|
-
- **sync-report.md**: [
|
|
270
|
-
- **tags.db**: [
|
|
271
|
-
- **Living Documents**: [
|
|
272
|
-
- **PR
|
|
299
|
+
### ✅ Expected deliverables
|
|
300
|
+
- **sync-report.md**: [Summary of sync results]
|
|
301
|
+
- **tags.db**: [Updated TAG index]
|
|
302
|
+
- **Living Documents**: [Updated document list]
|
|
303
|
+
- **PR Status**: [PR transition in team mode]
|
|
273
304
|
|
|
274
305
|
---
|
|
275
|
-
|
|
276
|
-
(
|
|
306
|
+
**Approval Request**: Do you want to proceed with synchronization using the above plan?
|
|
307
|
+
(select “Proceed”, “Modify [Content]”, or “Abort”)
|
|
277
308
|
```
|
|
278
309
|
|
|
279
310
|
---
|
|
280
311
|
|
|
281
|
-
## 🚀 STEP 2
|
|
312
|
+
## 🚀 STEP 2 Implementation Guide: Document Synchronization (After Approval)
|
|
282
313
|
|
|
283
|
-
|
|
314
|
+
Only when the user selects **"Proceed"** or **"Start"** will Alfred call the doc-syncer agent to perform Living Document synchronization and TAG updates.
|
|
284
315
|
|
|
285
|
-
###
|
|
316
|
+
### Sync step-by-step guide
|
|
286
317
|
|
|
287
|
-
1. **Living Document
|
|
288
|
-
2. **TAG
|
|
289
|
-
3.
|
|
290
|
-
4.
|
|
318
|
+
1. **Living Document Synchronization**: Code → Document automatically reflected
|
|
319
|
+
2. **TAG System Verification**: @TAG System Integrity Verification
|
|
320
|
+
3. **Index Update**: Traceability Matrix Update
|
|
321
|
+
4. **Create Report**: Create a summary of synchronization results
|
|
291
322
|
|
|
292
|
-
###
|
|
323
|
+
### Agent collaboration structure
|
|
293
324
|
|
|
294
|
-
- **1
|
|
295
|
-
- **2
|
|
296
|
-
-
|
|
297
|
-
-
|
|
298
|
-
-
|
|
325
|
+
- **Step 1**: The `doc-syncer` agent is dedicated to Living Document synchronization and @TAG management.
|
|
326
|
+
- **Step 2**: The `git-manager` agent is dedicated to all Git commits, PR state transitions, and synchronization.
|
|
327
|
+
- **Single Responsibility Principle**: doc-syncer only performs document tasks, and git-manager only performs Git tasks.
|
|
328
|
+
- **Sequential execution**: Executes in the order doc-syncer → git-manager to maintain clear dependencies.
|
|
329
|
+
- **No inter-agent calls**: Each agent does not directly call other agents, and executes commands. Runs sequentially in levels only.
|
|
299
330
|
|
|
300
|
-
## 🚀
|
|
331
|
+
## 🚀 Optimized parallel/sequential hybrid workflow
|
|
301
332
|
|
|
302
|
-
### Phase 1:
|
|
333
|
+
### Phase 1: Quick status check (parallel execution)
|
|
303
334
|
|
|
304
|
-
|
|
335
|
+
Do the following **simultaneously**:
|
|
305
336
|
|
|
306
337
|
```
|
|
307
|
-
Task 1 (haiku): Git
|
|
308
|
-
├──
|
|
309
|
-
├──
|
|
310
|
-
└──
|
|
311
|
-
|
|
312
|
-
Task 2 (sonnet):
|
|
313
|
-
├──
|
|
314
|
-
├── TAG
|
|
315
|
-
└──
|
|
338
|
+
Task 1 (haiku): Check Git status
|
|
339
|
+
├── Collect list of changed files
|
|
340
|
+
├── Check branch status
|
|
341
|
+
└── Determine need for synchronization
|
|
342
|
+
|
|
343
|
+
Task 2 (sonnet): Analyze document structure
|
|
344
|
+
├── Detect project type
|
|
345
|
+
├── Collect TAG list
|
|
346
|
+
└── Determine synchronization scope
|
|
316
347
|
```
|
|
317
348
|
|
|
318
|
-
### Phase 2:
|
|
349
|
+
### Phase 2: Document synchronization (sequential execution)
|
|
319
350
|
|
|
320
|
-
`doc-syncer`
|
|
351
|
+
The `doc-syncer` agent (sonnet) handles intensive processing:
|
|
321
352
|
|
|
322
|
-
- Living Document
|
|
323
|
-
- @TAG
|
|
324
|
-
-
|
|
325
|
-
- TAG
|
|
353
|
+
- Living Document synchronization
|
|
354
|
+
- @TAG system verification and update
|
|
355
|
+
- Document-code consistency check
|
|
356
|
+
- TAG traceability matrix update
|
|
326
357
|
|
|
327
|
-
### Phase 3: Git
|
|
358
|
+
### Phase 3: Git task processing (sequential execution)
|
|
328
359
|
|
|
329
|
-
`git-manager`
|
|
360
|
+
Final processing by the `git-manager` agent (haiku):
|
|
330
361
|
|
|
331
|
-
-
|
|
332
|
-
-
|
|
333
|
-
-
|
|
334
|
-
-
|
|
362
|
+
- Commit document changes
|
|
363
|
+
- Apply synchronization strategy for each mode
|
|
364
|
+
- Switch PR Ready in Team mode
|
|
365
|
+
- Automatically assign reviewers (using gh CLI)
|
|
335
366
|
|
|
336
|
-
### Phase 4: PR
|
|
367
|
+
### Phase 4: PR merge and branch cleanup (optional)
|
|
337
368
|
|
|
338
|
-
|
|
369
|
+
Additional processing by `git-manager` when using the `--auto-merge` flag:
|
|
339
370
|
|
|
340
|
-
**Team
|
|
341
|
-
1. PR
|
|
342
|
-
2. PR
|
|
343
|
-
3.
|
|
344
|
-
4.
|
|
345
|
-
5.
|
|
346
|
-
6.
|
|
371
|
+
**Team mode (GitFlow)**:
|
|
372
|
+
1. Check PR status (CI/CD pass check)
|
|
373
|
+
2. PR automatic merge (to develop branch)
|
|
374
|
+
3. Delete remote feature branch
|
|
375
|
+
4. Local develop checkout and synchronization
|
|
376
|
+
5. Organizing local feature branches
|
|
377
|
+
6. Notification that the next task is ready
|
|
347
378
|
|
|
348
|
-
**Personal
|
|
349
|
-
1.
|
|
350
|
-
2. feature
|
|
351
|
-
3.
|
|
352
|
-
4.
|
|
379
|
+
**Personal Mode**:
|
|
380
|
+
1. Local main/develop merge
|
|
381
|
+
2. Delete feature branch
|
|
382
|
+
3. Check out the base branch
|
|
383
|
+
4. Notification that the next task is ready
|
|
353
384
|
|
|
354
|
-
|
|
385
|
+
**Performance improvements**: Minimize latency by parallelizing the initial verification step
|
|
355
386
|
|
|
356
|
-
###
|
|
387
|
+
### Argument handling
|
|
357
388
|
|
|
358
|
-
- **$1 (
|
|
359
|
-
- **$2 (
|
|
360
|
-
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
389
|
+
- **$1 (mode)**: `$1` → `auto` (default)|`force`|`status`|`project`
|
|
390
|
+
- **$2 (path)**: `$2` → Sync target path (optional)
|
|
391
|
+
- **flags**:
|
|
392
|
+
- `--auto-merge`: Enable PR automatic merge and branch cleanup (Team mode)
|
|
393
|
+
- `--skip-pre-check`: Skip pre-quality check
|
|
394
|
+
- `--skip-quality-check`: Skip final quality check
|
|
364
395
|
|
|
365
|
-
|
|
366
|
-
- `/alfred:3-sync` -
|
|
367
|
-
- `/alfred:3-sync --auto-merge` - PR
|
|
368
|
-
- `/alfred:3-sync force` -
|
|
369
|
-
- `/alfred:3-sync status` -
|
|
370
|
-
- `/alfred:3-sync project` -
|
|
371
|
-
- `/alfred:3-sync auto src/auth/` -
|
|
372
|
-
- `/alfred:3-sync --auto-merge --skip-pre-check` -
|
|
396
|
+
**Command usage example**:
|
|
397
|
+
- `/alfred:3-sync` - Basic automatic synchronization (optimized by mode)
|
|
398
|
+
- `/alfred:3-sync --auto-merge` - PR automatic merge + branch cleanup (Team mode recommended)
|
|
399
|
+
- `/alfred:3-sync force` - Force full synchronization
|
|
400
|
+
- `/alfred:3-sync status` - Check synchronization status
|
|
401
|
+
- `/alfred:3-sync project` - Integrated project synchronization
|
|
402
|
+
- `/alfred:3-sync auto src/auth/` - Specific path Synchronization
|
|
403
|
+
- `/alfred:3-sync --auto-merge --skip-pre-check` - Fast merge
|
|
373
404
|
|
|
374
|
-
###
|
|
405
|
+
### Agent role separation
|
|
375
406
|
|
|
376
|
-
#### doc-syncer
|
|
407
|
+
#### doc-syncer dedicated area
|
|
377
408
|
|
|
378
|
-
- Living Document
|
|
379
|
-
- @TAG
|
|
380
|
-
-
|
|
381
|
-
- README
|
|
382
|
-
-
|
|
409
|
+
- Living Document synchronization (code ↔ document)
|
|
410
|
+
- @TAG system verification and update
|
|
411
|
+
- Automatic creation/update of API document
|
|
412
|
+
- README and architecture document synchronization
|
|
413
|
+
- Verification of document-code consistency
|
|
383
414
|
|
|
384
|
-
#### git-manager
|
|
415
|
+
#### git-manager dedicated area
|
|
385
416
|
|
|
386
|
-
-
|
|
387
|
-
-
|
|
388
|
-
- PR
|
|
389
|
-
- **PR
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
-
|
|
394
|
-
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
-
|
|
399
|
-
- GitHub CLI
|
|
417
|
+
- All Git commit operations (add, commit, push)
|
|
418
|
+
- Apply synchronization strategy for each mode
|
|
419
|
+
- PR status transition (Draft → Ready)
|
|
420
|
+
- **PR auto merge** (when --auto-merge flag)
|
|
421
|
+
- Check CI/CD status
|
|
422
|
+
- Conflict verification
|
|
423
|
+
- Execute Squash merge
|
|
424
|
+
- Remote branch deletion
|
|
425
|
+
- **Branch cleanup and conversion**
|
|
426
|
+
- Local develop checkout
|
|
427
|
+
- Remote synchronization (git pull)
|
|
428
|
+
- Local feature branch deletion
|
|
429
|
+
- Automatic assignment and labeling of reviewers
|
|
430
|
+
- GitHub CLI integration and remote synchronization
|
|
400
431
|
|
|
401
|
-
### 🧪
|
|
432
|
+
### 🧪 Personal Mode
|
|
402
433
|
|
|
403
|
-
- git-manager
|
|
404
|
-
- README
|
|
434
|
+
- The git-manager agent automatically creates checkpoints before and after synchronization
|
|
435
|
+
- The README, in-depth documentation, and PR body are organized manually according to the checklist.
|
|
405
436
|
|
|
406
|
-
### 🏢
|
|
437
|
+
### 🏢 Team Mode
|
|
407
438
|
|
|
408
|
-
- Living Document
|
|
409
|
-
-
|
|
410
|
-
- **--auto-merge
|
|
411
|
-
|
|
439
|
+
- Full synchronization of Living Document + @TAG verification/correction
|
|
440
|
+
- Optionally perform PR Ready conversion and labeling only when gh CLI is set
|
|
441
|
+
- Fully automated when using **--auto-merge flag**:
|
|
442
|
+
1. Document synchronization complete.
|
|
412
443
|
2. git push origin feature/SPEC-{ID}
|
|
413
444
|
3. gh pr ready {PR_NUMBER}
|
|
414
|
-
|
|
445
|
+
4. Check CI/CD status (gh pr checks)
|
|
415
446
|
5. gh pr merge --squash --delete-branch
|
|
416
447
|
6. git checkout develop && git pull origin develop
|
|
417
|
-
|
|
448
|
+
7. Notification that the next task is ready
|
|
418
449
|
|
|
419
|
-
|
|
450
|
+
**Important**: All Git operations (commit, sync, PR management) are handled by the git-manager agent, so this command does not run Git operations directly.
|
|
420
451
|
|
|
421
|
-
|
|
422
|
-
-
|
|
423
|
-
-
|
|
424
|
-
-
|
|
452
|
+
**Branch Policy**:
|
|
453
|
+
- Base branch: `develop` (GitFlow standard)
|
|
454
|
+
- After merge: automatically checkout `develop`
|
|
455
|
+
- Next `/alfred:1-plan` automatically starts in `develop`
|
|
425
456
|
|
|
426
|
-
##
|
|
457
|
+
## Synchronization Details (Summary)
|
|
427
458
|
|
|
428
|
-
1.
|
|
429
|
-
2.
|
|
430
|
-
3. TAG
|
|
459
|
+
1. Project analysis and TAG verification → Check broken/duplicate/orphaned TAG
|
|
460
|
+
2. Code ↔ Document synchronization → API/README/architecture document update, SPEC ↔ Code TODO synchronization
|
|
461
|
+
3. TAG chain verification → `rg '@TAG' -n src/ tests/` (scan code directly)
|
|
431
462
|
|
|
432
|
-
##
|
|
463
|
+
## Next steps
|
|
433
464
|
|
|
434
|
-
|
|
465
|
+
**Recommendation**: For better performance and context management, start a new chat session with the `/clear` or `/new` command before proceeding to the next step.
|
|
435
466
|
|
|
436
|
-
-
|
|
437
|
-
-
|
|
438
|
-
-
|
|
467
|
+
- The entire MoAI-ADK workflow is completed after document synchronization is completed
|
|
468
|
+
- All Git operations are dedicated to the git-manager agent to ensure consistency
|
|
469
|
+
- Only command-level orchestration is used without direct calls between agents
|
|
439
470
|
|
|
440
|
-
##
|
|
471
|
+
## Report results
|
|
441
472
|
|
|
442
|
-
|
|
473
|
+
Report synchronization results in a structured format:
|
|
443
474
|
|
|
444
|
-
###
|
|
475
|
+
### Successful synchronization (summary example)
|
|
445
476
|
|
|
446
|
-
✅
|
|
477
|
+
✅ Document synchronization complete — Update N, Create M, TAG Modify K, Verification passed
|
|
447
478
|
|
|
448
|
-
###
|
|
479
|
+
### Partial synchronization (problem detected)
|
|
449
480
|
|
|
450
481
|
```
|
|
451
|
-
⚠️
|
|
482
|
+
⚠️ Partial sync completed (issue found)
|
|
452
483
|
|
|
453
|
-
❌
|
|
454
|
-
├──
|
|
455
|
-
├──
|
|
456
|
-
└──
|
|
484
|
+
❌ Problems that need solving:
|
|
485
|
+
├── Broken links: X (specific list)
|
|
486
|
+
├── Duplicate TAG: X
|
|
487
|
+
└── Orphan TAG: X
|
|
457
488
|
|
|
458
|
-
🛠️
|
|
459
|
-
1.
|
|
460
|
-
2.
|
|
461
|
-
3.
|
|
489
|
+
🛠️ Auto-correction recommendations:
|
|
490
|
+
1. Broken link recovery
|
|
491
|
+
2. Merge duplicate TAGs
|
|
492
|
+
3. Orphan TAG cleanup
|
|
462
493
|
```
|
|
463
494
|
|
|
464
|
-
##
|
|
495
|
+
## Next steps guidance
|
|
465
496
|
|
|
466
|
-
###
|
|
497
|
+
### Development cycle complete
|
|
467
498
|
|
|
468
|
-
|
|
499
|
+
**Default mode (PR Ready only)**:
|
|
469
500
|
```
|
|
470
|
-
🔄 MoAI-ADK 3
|
|
471
|
-
✅ /alfred:1-
|
|
472
|
-
✅ /alfred:2-
|
|
473
|
-
✅ /alfred:3-sync →
|
|
474
|
-
|
|
475
|
-
⏳
|
|
476
|
-
> gh pr view (PR
|
|
477
|
-
> gh pr merge --squash (
|
|
501
|
+
🔄 MoAI-ADK 3-step workflow completion:
|
|
502
|
+
✅ /alfred:1-plan → Create EARS specification (feature/SPEC-{ID} branch)
|
|
503
|
+
✅ /alfred:2-run → TDD implementation
|
|
504
|
+
✅ /alfred:3-sync → Document synchronization + PR Ready
|
|
505
|
+
|
|
506
|
+
⏳ Next steps: PR review and manual merge required
|
|
507
|
+
> gh pr view (check PR)
|
|
508
|
+
> gh pr merge --squash (merge after review)
|
|
478
509
|
```
|
|
479
510
|
|
|
480
|
-
|
|
511
|
+
**Auto Merge Mode (Recommended)**:
|
|
481
512
|
```
|
|
482
|
-
🔄
|
|
483
|
-
✅ /alfred:1-
|
|
484
|
-
✅ /alfred:2-
|
|
485
|
-
✅ /alfred:3-sync --auto-merge →
|
|
486
|
-
|
|
487
|
-
🎉
|
|
488
|
-
📍
|
|
489
|
-
> /alfred:1-
|
|
513
|
+
🔄 Fully automated GitFlow workflow:
|
|
514
|
+
✅ /alfred:1-plan → EARS specification creation (from develop)
|
|
515
|
+
✅ /alfred:2-run → TDD implementation
|
|
516
|
+
✅ /alfred:3-sync --auto-merge → Document synchronization + PR Merge + branch cleanup
|
|
517
|
+
|
|
518
|
+
🎉 Automatic switch to develop branch done!
|
|
519
|
+
📍 You are here: develop (ready for next work)
|
|
520
|
+
> /alfred:1-plan "Describe next feature" # Create new branch in develop
|
|
490
521
|
```
|
|
491
522
|
|
|
492
|
-
###
|
|
523
|
+
### Integrated project mode
|
|
493
524
|
|
|
494
|
-
|
|
495
|
-
-
|
|
496
|
-
-
|
|
525
|
+
**When to use**:
|
|
526
|
+
- When the implementation of multiple SPECs has been completed and the entire project documentation needs to be updated
|
|
527
|
+
- When periodic synchronization of the entire document in Personal mode is required.
|
|
497
528
|
|
|
498
|
-
**Personal/Team
|
|
499
|
-
- **Personal/Team
|
|
500
|
-
- **Project
|
|
529
|
+
**Differences from Personal/Team mode**:
|
|
530
|
+
- **Personal/Team mode**: Synchronize only specific SPEC-related documents
|
|
531
|
+
- **Project mode**: Synchronize README, architecture documentation, and entire API documentation
|
|
501
532
|
|
|
502
|
-
|
|
503
|
-
- README.md (
|
|
504
|
-
- docs/architecture.md (
|
|
505
|
-
- docs/api/ (
|
|
506
|
-
- .moai/indexes/ (
|
|
533
|
+
**Output**:
|
|
534
|
+
- README.md (updated complete feature list)
|
|
535
|
+
- docs/architecture.md (updated system design)
|
|
536
|
+
- docs/api/ (unified API documentation)
|
|
537
|
+
- .moai/indexes/ (rebuilt full TAG index)
|
|
507
538
|
|
|
508
539
|
```
|
|
509
|
-
🏢
|
|
540
|
+
🏢 Integrated branch sync complete!
|
|
510
541
|
|
|
511
|
-
📋
|
|
512
|
-
├── README.md (
|
|
513
|
-
├── docs/architecture.md (
|
|
514
|
-
├── docs/api/ (
|
|
515
|
-
└── .moai/indexes/ (
|
|
542
|
+
📋 Entire project synchronization:
|
|
543
|
+
├── README.md (full feature list)
|
|
544
|
+
├── docs/architecture.md (system design)
|
|
545
|
+
├── docs/api/ (unified API documentation)
|
|
546
|
+
└── .moai/indexes/ (full TAG index)
|
|
516
547
|
|
|
517
|
-
🎯 PR
|
|
548
|
+
🎯 PR conversion support completed
|
|
518
549
|
```
|
|
519
550
|
|
|
520
|
-
##
|
|
551
|
+
## Constraints and Assumptions
|
|
521
552
|
|
|
522
|
-
|
|
553
|
+
**Environment Dependency:**
|
|
523
554
|
|
|
524
|
-
- Git
|
|
525
|
-
- gh CLI (
|
|
526
|
-
- Python3 (TAG
|
|
555
|
+
- Git repository required
|
|
556
|
+
- gh CLI (required for GitHub integration)
|
|
557
|
+
- Python3 (TAG verification script)
|
|
527
558
|
|
|
528
|
-
|
|
559
|
+
**Prerequisites:**
|
|
529
560
|
|
|
530
|
-
- MoAI-ADK
|
|
531
|
-
- TDD
|
|
532
|
-
- TRUST 5
|
|
561
|
+
- MoAI-ADK project structure (.moai/, .claude/)
|
|
562
|
+
- TDD implementation completion status
|
|
563
|
+
- Compliance with TRUST 5 principles
|
|
533
564
|
|
|
534
|
-
|
|
565
|
+
**Limitations:**
|
|
535
566
|
|
|
536
|
-
- TAG
|
|
537
|
-
- PR
|
|
538
|
-
-
|
|
567
|
+
- TAG verification is based on file existence
|
|
568
|
+
- PR automatic conversion only works in gh CLI environment
|
|
569
|
+
- Coverage figures need to be measured separately
|
|
539
570
|
|
|
540
571
|
---
|
|
541
572
|
|
|
542
|
-
## 🧠 Context Management
|
|
573
|
+
## 🧠 Context Management
|
|
543
574
|
|
|
544
|
-
>
|
|
575
|
+
> For more information: `.moai/memory/development-guide.md` - see section "Context Engineering"
|
|
545
576
|
|
|
546
|
-
###
|
|
577
|
+
### Core strategy of this command
|
|
547
578
|
|
|
548
|
-
|
|
579
|
+
**Load first**: `.moai/reports/sync-report-latest.md` (old sync state)
|
|
549
580
|
|
|
550
|
-
|
|
581
|
+
**Recommendation**: Document synchronization is complete. Now that the entire MoAI-ADK cycle (1-spec → 2-build → 3-sync) has been completed, start a new conversation session with the `/clear` or `/new` command before developing the next feature.
|
|
551
582
|
|
|
552
583
|
---
|
|
553
584
|
|
|
554
|
-
**
|
|
585
|
+
**Aims to improve code-document consistency and ensure @TAG traceability by linking with the doc-syncer subagent.**
|