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