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.

Files changed (125) hide show
  1. moai_adk/__init__.py +1 -8
  2. moai_adk/cli/commands/init.py +10 -5
  3. moai_adk/cli/commands/update.py +274 -118
  4. moai_adk/cli/prompts/init_prompts.py +14 -18
  5. moai_adk/core/diagnostics/slash_commands.py +1 -1
  6. moai_adk/core/project/backup_utils.py +1 -0
  7. moai_adk/core/project/phase_executor.py +3 -1
  8. moai_adk/core/project/validator.py +3 -2
  9. moai_adk/core/template/backup.py +11 -3
  10. moai_adk/core/template/merger.py +16 -3
  11. moai_adk/core/template/processor.py +22 -3
  12. moai_adk/templates/.claude/agents/alfred/cc-manager.md +443 -424
  13. moai_adk/templates/.claude/agents/alfred/debug-helper.md +116 -103
  14. moai_adk/templates/.claude/agents/alfred/doc-syncer.md +130 -116
  15. moai_adk/templates/.claude/agents/alfred/git-manager.md +186 -174
  16. moai_adk/templates/.claude/agents/alfred/implementation-planner.md +227 -213
  17. moai_adk/templates/.claude/agents/alfred/project-manager.md +205 -125
  18. moai_adk/templates/.claude/agents/alfred/quality-gate.md +224 -209
  19. moai_adk/templates/.claude/agents/alfred/spec-builder.md +174 -160
  20. moai_adk/templates/.claude/agents/alfred/tag-agent.md +151 -139
  21. moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +209 -196
  22. moai_adk/templates/.claude/agents/alfred/trust-checker.md +247 -233
  23. moai_adk/templates/.claude/commands/alfred/0-project.md +673 -640
  24. moai_adk/templates/.claude/commands/alfred/1-plan.md +342 -333
  25. moai_adk/templates/.claude/commands/alfred/2-run.md +295 -285
  26. moai_adk/templates/.claude/commands/alfred/3-sync.md +366 -356
  27. moai_adk/templates/.claude/hooks/alfred/README.md +52 -52
  28. moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +44 -48
  29. moai_adk/templates/.claude/hooks/alfred/core/__init__.py +17 -17
  30. moai_adk/templates/.claude/hooks/alfred/core/checkpoint.py +59 -59
  31. moai_adk/templates/.claude/hooks/alfred/core/context.py +19 -19
  32. moai_adk/templates/.claude/hooks/alfred/core/project.py +52 -52
  33. moai_adk/templates/.claude/hooks/alfred/handlers/__init__.py +1 -1
  34. moai_adk/templates/.claude/hooks/alfred/handlers/notification.py +4 -4
  35. moai_adk/templates/.claude/hooks/alfred/handlers/session.py +27 -27
  36. moai_adk/templates/.claude/hooks/alfred/handlers/tool.py +16 -17
  37. moai_adk/templates/.claude/hooks/alfred/handlers/user.py +11 -11
  38. moai_adk/templates/.claude/output-styles/alfred/agentic-coding.md +308 -307
  39. moai_adk/templates/.claude/output-styles/alfred/moai-adk-learning.md +297 -296
  40. moai_adk/templates/.claude/output-styles/alfred/study-with-alfred.md +191 -190
  41. moai_adk/templates/.claude/skills/moai-alfred-code-reviewer/SKILL.md +112 -0
  42. moai_adk/templates/.claude/skills/moai-alfred-debugger-pro/SKILL.md +103 -0
  43. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/SKILL.md +103 -0
  44. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/SKILL.md +95 -0
  45. moai_adk/templates/.claude/skills/moai-alfred-language-detection/SKILL.md +99 -0
  46. moai_adk/templates/.claude/skills/moai-alfred-performance-optimizer/SKILL.md +105 -0
  47. moai_adk/templates/.claude/skills/moai-alfred-refactoring-coach/SKILL.md +97 -0
  48. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/SKILL.md +97 -0
  49. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/SKILL.md +90 -0
  50. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/SKILL.md +99 -0
  51. moai_adk/templates/.claude/skills/moai-alfred-tui-survey/SKILL.md +87 -0
  52. moai_adk/templates/.claude/skills/moai-alfred-tui-survey/examples.md +62 -0
  53. moai_adk/templates/.claude/skills/moai-claude-code/SKILL.md +70 -43
  54. moai_adk/templates/.claude/skills/moai-claude-code/examples.md +141 -141
  55. moai_adk/templates/.claude/skills/moai-claude-code/reference.md +179 -165
  56. moai_adk/templates/.claude/skills/moai-claude-code/templates/agent-full.md +78 -78
  57. moai_adk/templates/.claude/skills/moai-claude-code/templates/command-full.md +90 -90
  58. moai_adk/templates/.claude/skills/moai-claude-code/templates/plugin-full.json +39 -25
  59. moai_adk/templates/.claude/skills/moai-claude-code/templates/settings-full.json +117 -74
  60. moai_adk/templates/.claude/skills/moai-claude-code/templates/skill-full.md +131 -134
  61. moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +43 -12
  62. moai_adk/templates/.claude/skills/moai-domain-cli-tool/SKILL.md +43 -12
  63. moai_adk/templates/.claude/skills/moai-domain-data-science/SKILL.md +43 -12
  64. moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +43 -12
  65. moai_adk/templates/.claude/skills/moai-domain-devops/SKILL.md +43 -12
  66. moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +43 -12
  67. moai_adk/templates/.claude/skills/moai-domain-ml/SKILL.md +43 -11
  68. moai_adk/templates/.claude/skills/moai-domain-mobile-app/SKILL.md +43 -12
  69. moai_adk/templates/.claude/skills/moai-domain-security/SKILL.md +43 -12
  70. moai_adk/templates/.claude/skills/moai-domain-web-api/SKILL.md +43 -12
  71. moai_adk/templates/.claude/skills/moai-essentials-debug/SKILL.md +47 -11
  72. moai_adk/templates/.claude/skills/moai-essentials-perf/SKILL.md +47 -11
  73. moai_adk/templates/.claude/skills/moai-essentials-refactor/SKILL.md +51 -14
  74. moai_adk/templates/.claude/skills/moai-essentials-review/SKILL.md +46 -10
  75. moai_adk/templates/.claude/skills/moai-foundation-ears/SKILL.md +62 -25
  76. moai_adk/templates/.claude/skills/moai-foundation-git/SKILL.md +44 -17
  77. moai_adk/templates/.claude/skills/moai-foundation-langs/SKILL.md +44 -14
  78. moai_adk/templates/.claude/skills/moai-foundation-specs/SKILL.md +45 -13
  79. moai_adk/templates/.claude/skills/moai-foundation-tags/SKILL.md +46 -14
  80. moai_adk/templates/.claude/skills/moai-foundation-trust/SKILL.md +48 -8
  81. moai_adk/templates/.claude/skills/moai-lang-c/SKILL.md +44 -12
  82. moai_adk/templates/.claude/skills/moai-lang-clojure/SKILL.md +44 -12
  83. moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +44 -11
  84. moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +44 -11
  85. moai_adk/templates/.claude/skills/moai-lang-dart/SKILL.md +44 -12
  86. moai_adk/templates/.claude/skills/moai-lang-elixir/SKILL.md +44 -11
  87. moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +44 -11
  88. moai_adk/templates/.claude/skills/moai-lang-haskell/SKILL.md +44 -11
  89. moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +44 -12
  90. moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +44 -12
  91. moai_adk/templates/.claude/skills/moai-lang-julia/SKILL.md +44 -12
  92. moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +44 -12
  93. moai_adk/templates/.claude/skills/moai-lang-lua/SKILL.md +44 -11
  94. moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +44 -11
  95. moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +44 -12
  96. moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +44 -11
  97. moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +44 -11
  98. moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +44 -12
  99. moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +44 -12
  100. moai_adk/templates/.claude/skills/moai-lang-shell/SKILL.md +44 -11
  101. moai_adk/templates/.claude/skills/moai-lang-sql/SKILL.md +44 -12
  102. moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +44 -12
  103. moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +44 -12
  104. moai_adk/templates/.github/PULL_REQUEST_TEMPLATE.md +44 -43
  105. moai_adk/templates/.github/workflows/moai-gitflow.yml +36 -35
  106. moai_adk/templates/.moai/config.json +9 -6
  107. moai_adk/templates/.moai/memory/development-guide.md +220 -221
  108. moai_adk/templates/.moai/memory/gitflow-protection-policy.md +85 -85
  109. moai_adk/templates/.moai/memory/spec-metadata.md +149 -150
  110. moai_adk/templates/.moai/project/product.md +90 -90
  111. moai_adk/templates/.moai/project/structure.md +85 -85
  112. moai_adk/templates/.moai/project/tech.md +117 -117
  113. moai_adk/templates/CLAUDE.md +350 -722
  114. moai_adk-0.4.1.dist-info/METADATA +303 -0
  115. moai_adk-0.4.1.dist-info/RECORD +152 -0
  116. moai_adk/templates/.claude/commands/alfred/1-spec.md +0 -31
  117. moai_adk/templates/.claude/commands/alfred/2-build.md +0 -30
  118. moai_adk/templates/.claude/skills/scripts/standardize_skills.py +0 -166
  119. moai_adk/templates/.claude/skills/scripts/verify_standardization.sh +0 -43
  120. moai_adk/templates/.moai/hooks/pre-push.sample +0 -88
  121. moai_adk-0.4.0.dist-info/METADATA +0 -1816
  122. moai_adk-0.4.0.dist-info/RECORD +0 -145
  123. {moai_adk-0.4.0.dist-info → moai_adk-0.4.1.dist-info}/WHEEL +0 -0
  124. {moai_adk-0.4.0.dist-info → moai_adk-0.4.1.dist-info}/entry_points.txt +0 -0
  125. {moai_adk-0.4.0.dist-info → moai_adk-0.4.1.dist-info}/licenses/LICENSE +0 -0
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: alfred:2-run
3
- description: "구현할 SPEC ID (예: SPEC-001) 또는 all 모든 SPEC 구현 - 계획된 작업 실행 (TDD 구현, 프로토타입, 문서화 )"
4
- argument-hint: "SPEC-ID - 구현할 SPEC ID (예: SPEC-001) 또는 all 모든 SPEC 구현"
3
+ description: "Implement all SPECs with SPEC ID to implement (e.g. SPEC-001) or all - Execute planned work (TDD implementation, prototyping, documentation, etc.)"
4
+ argument-hint: "SPEC-ID - All with SPEC ID to implement (e.g. SPEC-001) or all SPEC Implementation”
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -19,442 +19,452 @@ allowed-tools:
19
19
  - TodoWrite
20
20
  ---
21
21
 
22
- # ⚒️ MoAI-ADK 2단계: 계획 실행 (Run) - 유연한 구현 전략
22
+ # ⚒️ MoAI-ADK Phase 2: Run the plan - Flexible implementation strategy
23
+ > Interactive prompts rely on `Skill("moai-alfred-tui-survey")` so AskUserQuestion renders TUI selection menus for user surveys and approvals.
23
24
 
24
- ## 🎯 커맨드 목적
25
+ ## 🎯 Command Purpose
25
26
 
26
- SPEC 문서를 분석하여 계획된 작업을 실행합니다. TDD 구현뿐만 아니라 프로토타입 제작, 문서화 작업 다양한 실행 시나리오를 지원합니다.
27
+ Analyze SPEC documents to execute planned tasks. It supports not only TDD implementation but also various execution scenarios such as prototyping and documentation work.
27
28
 
28
- **실행 대상**: $ARGUMENTS
29
+ **Run on**: $ARGUMENTS
29
30
 
30
- ## 💡 실행 철학: "계획(Plan)실행(Run)동기화(Sync)"
31
+ ## 💡 Execution philosophy: Plan → Run → Sync
31
32
 
32
- `/alfred:2-run`은 단순히 코드를 "빌드"하는 것이 아니라, **계획된 작업을 수행**하는 범용 커맨드입니다.
33
+ `/alfred:2-run` is a general-purpose command that does not simply "build" code, but **performs** a planned task.
33
34
 
34
- ### 3가지 주요 시나리오
35
+ ### 3 main scenarios
35
36
 
36
- #### 시나리오 1: TDD 구현 ( 사용 방식) ⭐
37
+ #### Scenario 1: TDD implementation (main method) ⭐
37
38
  ```bash
38
39
  /alfred:2-run SPEC-AUTH-001
39
40
  → RED → GREEN → REFACTOR
40
- 테스트 주도 개발로 고품질 코드 구현
41
+ Implement high-quality code through test-driven development
41
42
  ```
42
43
 
43
- #### 시나리오 2: 프로토타입 제작
44
+ #### Scenario 2: Prototyping
44
45
  ```bash
45
46
  /alfred:2-run SPEC-PROTO-001
46
- 빠른 검증을 위한 프로토타입 구현
47
- 최소한의 테스트로 신속한 피드백
47
+ Prototype implementation for quick verification
48
+ Quick feedback with minimal testing
48
49
  ```
49
50
 
50
- #### 시나리오 3: 문서화 작업
51
+ #### Scenario 3: Documentation tasks
51
52
  ```bash
52
53
  /alfred:2-run SPEC-DOCS-001
53
- 문서 작성 샘플 코드 생성
54
- → API 문서, 튜토리얼, 가이드
54
+ Writing documentation and generating sample code
55
+ → API documentation, tutorials, guides, etc.
55
56
  ```
56
57
 
57
- > **표준 2단계 워크플로우** (자세한 내용: `CLAUDE.md` - "Alfred 커맨드 실행 패턴" 참조)
58
+ > **Standard two-step workflow** (see `CLAUDE.md` - "Alfred Command Execution Pattern" for details)
58
59
 
59
- ## 📋 실행 흐름
60
+ ## 📋 Execution flow
60
61
 
61
- 1. **SPEC 분석**: 요구사항 추출 복잡도 평가
62
- 2. **실행 전략 수립**: 언어별 최적화된 접근법 결정 (TDD, 프로토타입, 문서화 )
63
- 3. **사용자 확인**: 실행 계획 검토 승인
64
- 4. **작업 실행**: 승인된 계획에 따라 작업 수행
65
- 5. **Git 작업**: git-manager를 통한 단계별 커밋 생성
62
+ 1. **SPEC Analysis**: Requirements extraction and complexity assessment
63
+ 2. **Establishment of implementation strategy**: Determine the optimized approach for each language (TDD, prototype, documentation, etc.)
64
+ 3. **User Confirmation**: Review and approve action plan
65
+ 4. **Execute work**: Perform work according to the approved plan
66
+ 5. **Git Operations**: Creating step-by-step commits with git-manager
66
67
 
67
- ## 🔗 연관 에이전트
68
+ ## 🧠 Skill Loadout Overview
68
69
 
69
- - **Phase 1**: implementation-planner (📋 테크니컬 아키텍트) - SPEC 분석 및 실행 전략 수립
70
- - **Phase 2**: tdd-implementer (🔬 시니어 개발자) - 실행 작업 전담
71
- - **Phase 2.5**: quality-gate (🛡️ 품질 보증 엔지니어) - TRUST 원칙 검증 (자동)
72
- - **Phase 3**: git-manager (🚀 릴리스 엔지니어) - Git 커밋 전담
70
+ | Agent | Auto core skill | Conditional skills |
71
+ | ----- | ---------------- | ------------------ |
72
+ | implementation-planner | Skill("moai-alfred-language-detection") | Skill("moai-foundation-langs"), Skill("moai-alfred-performance-optimizer"), Skill("moai-alfred-tag-scanning"), Detected domain skill (e.g., Skill("moai-domain-backend")), Skill("moai-alfred-trust-validation"), Skill("moai-alfred-tui-survey") |
73
+ | tdd-implementer | Skill("moai-essentials-debug") | Detected language skill (e.g., Skill("moai-lang-python")), Skill("moai-essentials-refactor"), Skill("moai-alfred-git-workflow"), Skill("moai-essentials-perf"), Skill("moai-alfred-performance-optimizer"), Skill("moai-alfred-tui-survey") |
74
+ | 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") |
75
+ | 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") |
73
76
 
74
- ## 💡 사용 예시
77
+ ## 🔗 Associated Agent
75
78
 
76
- 사용자가 다음과 같이 커맨드를 실행할 있습니다:
77
- - `/alfred:2-run SPEC-001` - 특정 SPEC 실행
78
- - `/alfred:2-run all` - 모든 SPEC 일괄 실행
79
- - `/alfred:2-run SPEC-003 --test` - 테스트만 실행
79
+ - **Phase 1**: implementation-planner (📋 technical architect) - SPEC analysis and establishment of execution strategy
80
+ - **Phase 2**: tdd-implementer (🔬 senior developer) - Dedicated to execution work
81
+ - **Phase 2.5**: quality-gate (🛡️ Quality Assurance Engineer) - TRUST principle verification (automatically)
82
+ - **Phase 3**: git-manager (🚀 Release Engineer) - Dedicated to Git commits
80
83
 
81
- ## 🔍 STEP 1: SPEC 분석 및 실행 계획 수립
84
+ ## 💡 Example of use
82
85
 
83
- 먼저 지정된 SPEC을 분석하여 실행 계획을 수립하고 사용자 확인을 받습니다.
86
+ Users can run commands as follows:
87
+ - `/alfred:2-run SPEC-001` - Run a specific SPEC
88
+ - `/alfred:2-run all` - Run all SPECs in batches
89
+ - `/alfred:2-run SPEC-003 --test` - Run only tests
84
90
 
85
- **implementation-planner 에이전트가 자동으로 필요한 문서를 로드하여 분석합니다.**
91
+ ## 🔍 STEP 1: SPEC analysis and execution plan establishment
86
92
 
87
- ### 🔍 코드베이스 탐색 (권장)
93
+ First, the specified SPEC is analyzed to establish an action plan and receive user confirmation.
88
94
 
89
- **기존 코드 구조를 파악하거나 유사 패턴을 찾아야 하는 경우** Explore 에이전트를 먼저 활용합니다:
95
+ **The implementation-planner agent automatically loads and analyzes the required documents.**
96
+
97
+ ### 🔍 Browse the code base (recommended)
98
+
99
+ **If you need to understand existing code structure or find similar patterns** Use the Explore agent first:
90
100
 
91
101
  ```
92
- Task tool 호출 (Explore 에이전트):
102
+ Invoking the Task tool (Explore agent):
93
103
  - subagent_type: "Explore"
94
- - description: "기존 코드 구조 패턴 탐색"
95
- - prompt: "SPEC-$ARGUMENTS와 관련된 기존 코드를 탐색해주세요:
96
- - 유사한 기능 구현 코드 (src/)
97
- - 참고할 테스트 패턴 (tests/)
98
- - 아키텍처 패턴 디자인 패턴
99
- - 사용 중인 라이브러리 버전 (package.json, requirements.txt)
100
- thoroughness 레벨: medium"
104
+ - description: "Explore existing code structures and patterns"
105
+ - prompt: "Please explore existing code related to SPEC-$ARGUMENTS:
106
+ - Similar function implementation code (src/)
107
+ - Test patterns for reference (tests/)
108
+ - Architectural patterns and design patterns
109
+ - Use Current libraries and versions (package.json, requirements.txt)
110
+ thoroughness level: medium"
101
111
  ```
102
112
 
103
- **Explore 에이전트 사용 시점**:
104
- - ✅ 기존 코드 구조/패턴 파악이 필요한 경우
105
- - ✅ 유사 기능의 구현 방식을 참고해야
106
- - ✅ 프로젝트의 아키텍처 규칙을 이해해야
107
- - ✅ 사용 중인 라이브러리 버전 확인
113
+ **When to use the Explore Agent**:
114
+ - ✅ When you need to understand the existing code structure/pattern
115
+ - ✅ When you need to refer to how a similar function is implemented
116
+ - ✅ When you need to understand the architectural rules of the project
117
+ - ✅ Check the library and version being used
108
118
 
109
- ### ⚙️ 에이전트 호출 방법
119
+ ### ⚙️ How to call an agent
110
120
 
111
- **STEP 1에서는 Task tool을 사용하여 implementation-planner 에이전트를 호출합니다**:
121
+ **In STEP 1, we call the implementation-planner agent using the Task tool**:
112
122
 
113
123
  ```
114
- Task tool 호출 예시:
124
+ Task tool call example:
115
125
  - subagent_type: "implementation-planner"
116
- - description: "SPEC 분석 실행 전략 수립"
117
- - prompt: "$ARGUMENTS SPEC을 분석하여 실행 계획을 수립해주세요.
118
- 다음을 포함해야 합니다:
119
- 1. SPEC 요구사항 추출 복잡도 평가
120
- 2. 라이브러리 도구 선정 (WebFetch 사용)
121
- 3. TAG 체인 설계
122
- 4. 단계별 실행 계획
123
- 5. 리스크 대응 방안
124
- 6. 실행 계획서 작성 사용자 승인 대기
125
- (선택) Explore 결과: $EXPLORE_RESULTS"
126
+ - description: "SPEC analysis and establishment of execution strategy"
127
+ - prompt: "Please analyze the SPEC of $ARGUMENTS and establish an execution plan.
128
+ It must include the following:
129
+ 1. SPEC requirements extraction and complexity assessment
130
+ 2. Library and tool selection (using WebFetch)
131
+ 3. TAG chain design
132
+ 4. Step-by-step execution plan
133
+ 5. Risks and response plans
134
+ 6. Create action plan and use `Skill("moai-alfred-tui-survey")` to confirm the next action with the user
135
+ (Optional) Explore results: $EXPLORE_RESULTS"
126
136
  ```
127
137
 
128
- ### SPEC 분석 진행
129
-
130
- 1. **SPEC 문서 분석**
131
- - 요구사항 추출 복잡도 평가
132
- - 기술적 제약사항 확인
133
- - 의존성 영향 범위 분석
134
- - (선택) Explore 결과 기반 기존 코드 구조 파악
135
-
136
- 2. **실행 전략 수립**
137
- - 프로젝트 언어 감지 최적화된 실행 전략
138
- - 접근 방식 결정 (TDD, 프로토타입, 문서화 )
139
- - 예상 작업 범위 시간 산정
140
-
141
- 3. **라이브러리 버전 확인 명시 (필수)**
142
- - **웹 검색**: `WebSearch`를 통해 사용할 모든 라이브러리의 최신 안정 버전 확인
143
- - **버전 명시**: 구현 계획 보고서에 라이브러리별 정확한 버전 명시 (예: `fastapi>=0.118.3`)
144
- - **안정성 우선**: 베타/알파 버전 제외, 프로덕션 안정 버전만 선택
145
- - **호환성 확인**: 라이브러리 버전 호환성 검증
146
- - **검색 키워드 예시**:
138
+ ### SPEC analysis in progress
139
+
140
+ 1. **SPEC document analysis**
141
+ - Requirements extraction and complexity assessment
142
+ - Check technical constraints
143
+ - Dependency and impact scope analysis
144
+ - (Optional) Identify existing code structure based on Explore results
145
+
146
+ 2. **Establish execution strategy**
147
+ - Detect project language and optimize execution strategy
148
+ - Determine approach (TDD, prototyping, documentation, etc.)
149
+ - Estimate expected work scope and time
150
+
151
+ 3. **Check and specify library versions (required)**
152
+ - **Web search**: Check the latest stable versions of all libraries to be used through `WebSearch`
153
+ - **Specify versions**: Specify the exact version for each library in the implementation plan report (e.g. `fastapi>=0.118.3`)
154
+ - **Stability priority**: Exclude beta/alpha versions, select only production stable versions
155
+ - **Check compatibility**: Verify version compatibility between libraries
156
+ - **Search keyword examples**:
147
157
  - `"FastAPI latest stable version 2025"`
148
158
  - `"SQLAlchemy 2.0 latest stable version 2025"`
149
159
  - `"React 18 latest stable version 2025"`
150
160
 
151
- 4. **실행 계획 보고**
152
- - 단계별 실행 계획 제시
153
- - 잠재적 위험 요소 식별
154
- - 품질 게이트 체크포인트 설정
155
- - **라이브러리 버전 명시 (필수)**
161
+ 4. **Report action plan**
162
+ - Present step-by-step action plan
163
+ - Identify potential risk factors
164
+ - Set quality gate checkpoints
165
+ - **Specify library version (required)**
156
166
 
157
- ### 사용자 확인 단계
167
+ ### User verification steps
158
168
 
159
- 실행 계획 검토 다음 선택하세요:
160
- - **"진행"** 또는 **"시작"**: 계획대로 작업 실행 시작
161
- - **"수정 [내용]"**: 계획 수정 요청
162
- - **"중단"**: 작업 중단
169
+ After reviewing the action plan, select one of the following:
170
+ - **"Proceed"** or **"Start"**: Start executing the task as planned
171
+ - **"Modify [Content]"**: Request a plan modification
172
+ - **"Abort"**: Stop the task
163
173
 
164
174
  ---
165
175
 
166
- ## 🚀 STEP 2: 작업 실행 (사용자 승인 )
176
+ ## 🚀 STEP 2: Execute task (after user approval)
167
177
 
168
- 사용자 승인 **Task tool을 사용하여 tdd-implementer 에이전트를 호출**합니다.
178
+ After user approval (gathered through `Skill("moai-alfred-tui-survey")`), **call the tdd-implementer agent using the Task tool**.
169
179
 
170
- ### ⚙️ 에이전트 호출 방법
180
+ ### ⚙️ How to call an agent
171
181
 
172
- **STEP 2에서는 Task tool을 사용하여 tdd-implementer 호출합니다**:
182
+ **STEP 2 calls tdd-implementer using the Task tool**:
173
183
 
174
184
  ```
175
- Task tool 호출 예시:
185
+ Task tool call example:
176
186
  - subagent_type: "tdd-implementer"
177
- - description: "작업 실행"
178
- - prompt: "STEP 1에서 승인된 계획에 따라 작업을 실행해주세요.
179
- TDD 시나리오의 경우:
180
- - RED → GREEN → REFACTOR 사이클을 수행하며,
181
- TAG별로 다음을 수행합니다:
182
- 1. RED Phase: @TEST:ID 태그로 실패하는 테스트 작성
183
- 2. GREEN Phase: @CODE:ID 태그로 최소 구현
184
- 3. REFACTOR Phase: 코드 품질 개선
185
- 4. TAG 완료 조건 검증 다음 TAG로 진행
186
-
187
- 실행 대상: $ARGUMENTS"
187
+ - description: "Execute task"
188
+ - prompt: "Please execute the task according to the plan approved in STEP 1.
189
+ For TDD scenario:
190
+ - Perform RED → GREEN → REFACTOR cycle,
191
+ Perform the following for each TAG:
192
+ 1. RED Phase: Write a test that fails with the @TEST:ID tag
193
+ 2. GREEN Phase: Minimal implementation with the @CODE:ID tag
194
+ 3. REFACTOR Phase: Improve code quality
195
+ 4. Verify TAG completion conditions and proceed to the next TAG
196
+
197
+ Execute on: $ARGUMENTS"
188
198
  ```
189
199
 
190
- ## 🔗 언어별 TDD 최적화
200
+ ## 🔗 TDD optimization for each language
191
201
 
192
- ### 프로젝트 언어 감지 최적 라우팅
202
+ ### Project language detection and optimal routing
193
203
 
194
- `tdd-implementer`는 프로젝트의 언어를 자동으로 감지하여 최적의 TDD 도구와 워크플로우를 선택합니다:
204
+ `tdd-implementer` automatically detects the language of your project and selects the optimal TDD tools and workflow:
195
205
 
196
- - **언어 감지**: 프로젝트 파일(package.json, pyproject.toml, go.mod ) 분석
197
- - **도구 선택**: 언어별 최적 테스트 프레임워크 자동 선택
198
- - **TAG 적용**: 코드 파일에 @TAG 주석 직접 작성
199
- - **사이클 실행**: RED → GREEN → REFACTOR 순차 진행
206
+ - **Language detection**: Analyze project files (package.json, pyproject.toml, go.mod, etc.)
207
+ - **Tool selection**: Automatically select the optimal test framework for each language
208
+ - **TAG application**: Write @TAG annotations directly in code files
209
+ - **Run cycle**: RED → GREEN → REFACTOR sequential process
200
210
 
201
- ### TDD 도구 매핑
211
+ ### TDD tool mapping
202
212
 
203
- #### 백엔드/시스템
213
+ #### Backend/System
204
214
 
205
- | SPEC 타입 | 구현 언어 | 테스트 프레임워크 | 성능 목표 | 커버리지 목표 |
215
+ | SPEC Type | Implementation language | Test Framework | Performance Goals | Coverage Goals |
206
216
  |-----------|-----------|-------------------|-----------|---------------|
207
- | **CLI/시스템** | TypeScript | Jest + ts-node | < 18ms | 95%+ |
208
- | **API/백엔드** | TypeScript | Jest + SuperTest | < 50ms | 90%+ |
209
- | **프론트엔드** | TypeScript | Jest + Testing Library | < 100ms | 85%+ |
210
- | **데이터 처리** | TypeScript | Jest + Mock | < 200ms | 85%+ |
211
- | **Python 프로젝트** | Python | pytest + mypy | 사용자 정의 | 85%+ |
217
+ | **CLI/System** | TypeScript | jest + ts-node | < 18ms | 95%+ |
218
+ | **API/Backend** | TypeScript | Jest + SuperTest | < 50ms | 90%+ |
219
+ | **Frontend** | TypeScript | Jest + Testing Library | < 100ms | 85%+ |
220
+ | **Data Processing** | TypeScript | Jest + Mock | < 200ms | 85%+ |
221
+ | **Python Project** | Python | pytest + mypy | Custom | 85%+ |
212
222
 
213
- #### 모바일 프레임워크
223
+ #### Mobile Framework
214
224
 
215
- | SPEC 타입 | 구현 언어 | 테스트 프레임워크 | 성능 목표 | 커버리지 목표 |
225
+ | SPEC Type | Implementation language | Test Framework | Performance Goals | Coverage Goals |
216
226
  |-----------|-----------|-------------------|-----------|---------------|
217
- | **Flutter 앱** | Dart | flutter test + widget test | < 100ms | 85%+ |
227
+ | **Flutter App** | Dart | flutter test + widget test | < 100ms | 85%+ |
218
228
  | **React Native** | TypeScript | Jest + RN Testing Library | < 100ms | 85%+ |
219
- | **iOS 앱** | Swift | XCTest + XCUITest | < 150ms | 80%+ |
220
- | **Android 앱** | Kotlin | JUnit + Espresso | < 150ms | 80%+ |
229
+ | **iOS App** | Swift | XCTest + XCUITest | < 150ms | 80%+ |
230
+ | **Android App** | Kotlin | JUnit + Espresso | < 150ms | 80%+ |
221
231
 
222
- ## 🚀 최적화된 에이전트 협업 구조
232
+ ## 🚀 Optimized agent collaboration structure
223
233
 
224
- - **Phase 1**: `implementation-planner` 에이전트가 SPEC 분석 실행 전략 수립
225
- - **Phase 2**: `tdd-implementer` 에이전트가 작업 실행 (TDD 사이클, 프로토타입, 문서화 )
226
- - **Phase 2.5**: `quality-gate` 에이전트가 TRUST 원칙 검증 품질 검증 (자동)
227
- - **Phase 3**: `git-manager` 에이전트가 작업 완료 모든 커밋을 번에 처리
228
- - **단일 책임 원칙**: 에이전트는 자신의 전문 영역만 담당
229
- - **에이전트 호출 금지**: 에이전트는 독립적으로 실행, 커맨드 레벨에서만 순차 호출
234
+ - **Phase 1**: `implementation-planner` agent analyzes SPEC and establishes execution strategy
235
+ - **Phase 2**: `tdd-implementer` agent executes tasks (TDD cycle, prototyping, documentation, etc.)
236
+ - **Phase 2.5**: `quality-gate` agent verifies TRUST principle and quality verification (automatically)
237
+ - **Phase 3**: `git-manager` agent processes all commits at once after task completion
238
+ - **Single responsibility principle**: Each agent is responsible only for its own area of expertise
239
+ - **Inter-agent call prohibited**: Each agent runs independently, sequential calls are made only at the command level
230
240
 
231
- ## 🔄 2단계 워크플로우 실행 순서
241
+ ## 🔄 Step 2 Workflow Execution Order
232
242
 
233
- ### Phase 1: 분석 계획 단계
243
+ ### Phase 1: Analysis and planning phase
234
244
 
235
- `implementation-planner` 에이전트가 다음을 수행:
245
+ The `implementation-planner` agent does the following:
236
246
 
237
- 1. **SPEC 문서 분석**: 지정된 SPEC ID의 요구사항 추출 복잡도 평가
238
- 2. **라이브러리 선정**: WebFetch를 통한 최신 안정 버전 확인 호환성 검증
239
- 3. **TAG 체인 설계**: TAG 순서 의존성 결정
240
- 4. **실행 전략 수립**: 단계별 실행 계획 리스크 식별
241
- 5. **실행 계획서 작성**: 구조화된 계획서 생성 사용자 승인 대기
247
+ 1. **SPEC document analysis**: Requirements extraction and complexity assessment of specified SPEC ID
248
+ 2. **Library selection**: Check the latest stable version and verify compatibility through WebFetch
249
+ 3. **TAG chain design**: Determine TAG order and dependency
250
+ 4. **Establishment of implementation strategy**: Step-by-step implementation plan and risk identification
251
+ 5. **Create action plan**: Create a structured plan and, via `Skill("moai-alfred-tui-survey")`, collect user approval before proceeding
242
252
 
243
- ### Phase 2: 작업 실행 단계 (승인 )
253
+ ### Phase 2: Task execution phase (after approval)
244
254
 
245
- `tdd-implementer` 에이전트가 사용자 승인 후 **TAG 단위로** 수행 (TDD 시나리오 기준):
255
+ The `tdd-implementer` agent performs **TAG-by-TAG** after user approval (based on TDD scenario):
246
256
 
247
- 1. **RED Phase**: 실패하는 테스트 작성 (@TEST:ID 태그 추가) 실패 확인
248
- 2. **GREEN Phase**: 테스트를 통과하는 최소한의 코드 작성 (@CODE:ID 태그 추가)
249
- 3. **REFACTOR Phase**: 코드 품질 개선 (기능 변경 없이)
250
- 4. **TAG 완료 확인**: TAG 완료 조건 검증 다음 TAG로 진행
257
+ 1. **RED Phase**: Write a failing test (add @TEST:ID tag) and check for failure
258
+ 2. **GREEN Phase**: Write minimal code that passes the test (add @CODE:ID tag)
259
+ 3. **REFACTOR Phase**: Improve code quality (without changing functionality)
260
+ 4. **TAG completion confirmation**: Verify the completion conditions of each TAG and proceed to the next TAG
251
261
 
252
- ### Phase 2.5: 품질 검증 게이트 (자동 실행)
262
+ ### Phase 2.5: Quality verification gate (automatic execution)
253
263
 
254
- 작업 실행 완료 `quality-gate` 에이전트가 **자동으로** 품질 검증을 수행합니다.
264
+ After the job execution is complete, the `quality-gate` agent **automatically** performs quality verification.
255
265
 
256
- **자동 실행 조건**:
257
- - 작업 실행 완료 자동 호출
258
- - 사용자 요청 수동 호출 가능
266
+ **Automatic execution conditions**:
267
+ - Automatically invoked upon completion of task execution
268
+ - Manually invoked upon user request
259
269
 
260
- **검증 항목**:
261
- - **TRUST 원칙 검증**: trust-checker 스크립트 실행 결과 파싱
262
- - T (Testable): 테스트 커버리지 ≥ 85%
263
- - R (Readable): 코드 가독성 (파일≤300 LOC, 함수≤50 LOC, 복잡도≤10)
264
- - U (Unified): 아키텍처 통합성
265
- - S (Secured): 보안 취약점 없음
266
- - T (Traceable): @TAG 체인 무결성
267
- - **코드 스타일**: 린터(ESLint/Pylint) 실행 및 검증
268
- - **테스트 커버리지**: 언어별 커버리지 도구 실행 목표 달성 확인
269
- - **TAG 체인 검증**: 고아 TAG, 누락된 TAG 확인
270
- - **의존성 검증**: 보안 취약점 확인
270
+ **Verification items**:
271
+ - **TRUST principle verification**: Trust-checker script execution and result parsing
272
+ - T (Testable): Test coverage ≥ 85%
273
+ - R (Readable): Code readability (file≤300 LOC, function≤50 LOC, Complexity≤10)
274
+ - U (Unified): Architectural integrity
275
+ - S (Secured): No security vulnerabilities
276
+ - T (Traceable): @TAG chain integrity
277
+ - **Code style**: Run and verify linter (ESLint/Pylint)
278
+ - **Test Coverage**: Run language-specific coverage tools and verify goal achievement
279
+ - **TAG chain verification**: Check orphan TAGs, missing TAGs
280
+ - **Dependency verification**: Check security vulnerabilities
271
281
 
272
- **실행 방식**: Alfred 작업 실행 완료 자동으로 quality-gate 에이전트를 호출하여 품질 검증을 수행합니다.
282
+ **How ​​it works**: When Alfred completes job execution, it automatically calls the quality-gate agent to perform quality verification.
273
283
 
274
- **검증 결과 처리**:
284
+ **Handling verification results**:
275
285
 
276
- ✅ **PASS (Critical 0개, Warning 5 이하)**:
277
- - Phase 3 (Git 작업)로 진행
278
- - 품질 리포트 생성
286
+ ✅ **PASS (0 Critical, 5 or less Warnings)**:
287
+ - Proceed to Phase 3 (Git work)
288
+ - Create a quality report
279
289
 
280
- ⚠️ **WARNING (Critical 0개, Warning 6 이상)**:
281
- - 경고 표시
282
- - 사용자 선택: "계속 진행" 또는 "수정 재검증"
290
+ ⚠️ **WARNING (0 Critical, 6 or more Warnings)**:
291
+ - Display warning
292
+ - User choice: "Continue" or "Re-verify after modification"
283
293
 
284
- ❌ **CRITICAL (Critical 1 이상)**:
285
- - Git 커밋 차단
286
- - 개선 필요 항목 상세 보고 (파일:라인 정보 포함)
287
- - tdd-implementer 재호출 권장
294
+ ❌ **CRITICAL (1 or more Critical)**:
295
+ - Block Git commits
296
+ - Detailed report on items requiring improvement (including file: line information)
297
+ - Recommended tdd-implementer re-invocation
288
298
 
289
- **검증 생략 옵션**: 품질 검증을 건너뛰려면 `--skip-quality-check` 옵션을 사용합니다.
299
+ **Skip verification option**: To skip quality verification, use the `--skip-quality-check` option.
290
300
 
291
- ### Phase 3: Git 작업 (git-manager)
301
+ ### Phase 3: Git operations (git-manager)
292
302
 
293
- `git-manager` 에이전트가 작업 완료 **한 번에** 수행:
303
+ After the `git-manager` agent completes the task **at once**:
294
304
 
295
- 1. **체크포인트 생성**: 작업 시작 백업 포인트
296
- 2. **구조화된 커밋**: 단계별 커밋 생성 (TDD의 경우 RED→GREEN→REFACTOR)
297
- 3. **최종 동기화**: 모드별 Git 전략 적용 원격 동기화
305
+ 1. **Create checkpoint**: Backup point before starting work
306
+ 2. **Structured Commit**: Step-by-step commit creation (RED→GREEN→REFACTOR for TDD)
307
+ 3. **Final synchronization**: Apply Git strategy for each mode and remote synchronization
298
308
 
299
309
 
300
- ## 📋 STEP 1 실행 가이드: SPEC 분석 계획 수립
310
+ ## 📋 STEP 1 Execution Guide: SPEC Analysis and Planning
301
311
 
302
- ### 1. SPEC 문서 분석
312
+ ### 1. SPEC document analysis
303
313
 
304
- Alfred implementation-planner 에이전트를 호출하여 SPEC 문서를 확인하고 실행 계획을 수립합니다.
314
+ Alfred calls the implementation-planner agent to check the SPEC document and create an execution plan.
305
315
 
306
- #### 분석 체크리스트
316
+ #### Analysis Checklist
307
317
 
308
- - [ ] **요구사항 명확성**: SPEC의 기능 요구사항이 구체적인가?
309
- - [ ] **기술적 제약**: 성능, 호환성, 보안 요구사항 확인
310
- - [ ] **의존성 분석**: 기존 코드와의 연결점 영향 범위
311
- - [ ] **복잡도 평가**: 구현 난이도 예상 작업량
318
+ - [ ] **Requirements clarity**: Are the functional requirements in the SPEC specific?
319
+ - [ ] **Technical constraints**: Check performance, compatibility, and security requirements
320
+ - [ ] **Dependency analysis**: Connection points with existing code and scope of impact
321
+ - [ ] **Complexity assessment**: Implementation difficulty and expected workload
312
322
 
313
- ### 2. 실행 전략 결정
323
+ ### 2. Determine implementation strategy
314
324
 
315
- #### TypeScript 실행 기준
325
+ #### TypeScript execution criteria
316
326
 
317
- | SPEC 특성 | 실행 언어 | 이유 |
327
+ | SPEC characteristics | execution language | Reason |
318
328
  |-----------|-----------|------|
319
- | CLI/시스템 도구 | TypeScript | 고성능 (18ms), 타입 안전성, SQLite3 통합 |
320
- | API/백엔드 | TypeScript | Node.js 생태계, Express/Fastify 호환성 |
321
- | 프론트엔드 | TypeScript | React/Vue 네이티브 지원 |
322
- | 데이터 처리 | TypeScript | 고성능 비동기 처리, 타입 안전성 |
323
- | 사용자 Python 프로젝트 | Python 도구 지원 | MoAI-ADK Python 프로젝트 개발 도구 제공 |
329
+ | CLI/System Tools | TypeScript | High performance (18ms), type safety, SQLite3 integration |
330
+ | API/Backend | TypeScript | Node.js ecosystem, Express/Fastify compatibility |
331
+ | Frontend | TypeScript | React/Vue native support |
332
+ | data processing | TypeScript | High-performance asynchronous processing, type safety |
333
+ | User Python Project | Python tool support | MoAI-ADK provides Python project development tools |
324
334
 
325
- #### 접근 방식
335
+ #### Approach
326
336
 
327
- - **Bottom-up**: 유틸리티서비스 → API
328
- - **Top-down**: API → 서비스유틸리티
329
- - **Middle-out**: 핵심 로직양방향 확장
337
+ - **Bottom-up**: UtilityService → API
338
+ - **Top-down**: API → ServiceUtility
339
+ - **Middle-out**: Core logicBidirectional expansion
330
340
 
331
- ### 3. 실행 계획 보고서 생성
341
+ ### 3. Generate action plan report
332
342
 
333
- 다음 형식으로 계획을 제시합니다:
343
+ Present your plan in the following format:
334
344
 
335
345
  ```
336
- ## 실행 계획 보고서: [SPEC-ID]
346
+ ## Execution Plan Report: [SPEC-ID]
337
347
 
338
- ### 📊 분석 결과
339
- - **복잡도**: [낮음/중간/높음]
340
- - **예상 작업시간**: [시간 산정]
341
- - **주요 기술 도전**: [기술적 어려움]
348
+ ### 📊 Analysis Results
349
+ - **Complexity**: [Low/Medium/High]
350
+ - **Estimated Work Time**: [Time Estimation]
351
+ - **Key Technical Challenges**: [Technical Difficulties]
342
352
 
343
- ### 🎯 실행 전략
344
- - **선택 언어**: [Python/TypeScript + 이유]
345
- - **접근법**: [Bottom-up/Top-down/Middle-out 또는 프로토타입/문서화]
346
- - **핵심 모듈**: [주요 작업 대상]
353
+ ### 🎯 Execution Strategy
354
+ - **Language of choice**: [Python/TypeScript + Reason]
355
+ - **Approach**: [Bottom-up/Top-down/Middle-out or Prototype/Documentation]
356
+ - **Core module**: [Major work target]
347
357
 
348
- ### 📦 라이브러리 버전 (필수 - 검색 기반)
349
- **백엔드 의존성** (예시):
350
- | 패키지 | 최신 안정 버전 | 설치 명령 |
358
+ ### 📦 Library version (required - based on web search)
359
+ **Backend dependencies** (example):
360
+ | package | Latest stable version | installation command |
351
361
  |--------|--------------|----------|
352
362
  | FastAPI | 0.118.3 | fastapi>=0.118.3 |
353
363
  | SQLAlchemy | 2.0.43 | sqlalchemy>=2.0.43 |
354
364
 
355
- **프론트엔드 의존성** (예시):
356
- | 패키지 | 최신 안정 버전 | 설치 명령 |
365
+ **Frontend dependency** (example):
366
+ | package | Latest stable version | installation command |
357
367
  |--------|--------------|----------|
358
368
  | React | 18.3.1 | react@^18.3.1 |
359
369
  | Vite | 7.1.9 | vite@^7.1.9 |
360
370
 
361
- **중요 호환성 정보**:
362
- - [특정 버전 요구사항]
363
- - [알려진 호환성 이슈]
371
+ **Important Compatibility Information**:
372
+ - [Specific Version Requirements]
373
+ - [Known Compatibility Issues]
364
374
 
365
- ### ⚠️ 위험 요소
366
- - **기술적 위험**: [예상 문제점]
367
- - **의존성 위험**: [외부 의존성 이슈]
368
- - **일정 위험**: [지연 가능성]
375
+ ### ⚠️ Risk Factors
376
+ - **Technical Risk**: [Expected Issues]
377
+ - **Dependency Risk**: [External Dependency Issues]
378
+ - **Schedule Risk**: [Possible Delay]
369
379
 
370
- ### ✅ 품질 게이트
371
- - **테스트 커버리지**: [목표 %]
372
- - **성능 목표**: [구체적 지표]
373
- - **보안 체크포인트**: [검증 항목]
380
+ ### ✅ Quality Gates
381
+ - **Test Coverage**: [Goal %]
382
+ - **Performance Goals**: [Specific Metrics]
383
+ - **Security Checkpoints**: [Verification Items]
374
384
 
375
385
  ---
376
- **승인 요청**: 계획으로 진행하시겠습니까?
377
- ("진행", "수정 [내용]", "중단" 중 선택)
386
+ **Approval Request**: Do you want to proceed with the above plan?
387
+ (Choose between “Proceed,” “Modify [Content],” or “Abort”)
378
388
  ```
379
389
 
380
390
  ---
381
391
 
382
- ## 🚀 STEP 2 실행 가이드: 작업 실행 (승인 )
392
+ ## 🚀 STEP 2 Execution Guide: Execute Task (After Approval)
383
393
 
384
- 사용자가 **"진행"** 또는 **"시작"**을 선택한 경우에만 Alfred tdd-implementer 에이전트를 호출하여 작업을 시작합니다.
394
+ Only if the user selects **"Proceed"** or **"Start"** will Alfred call the tdd-implementer agent to start the task.
385
395
 
386
- ### TDD 단계별 가이드
396
+ ### TDD step-by-step guide
387
397
 
388
- 1. **RED**: Given/When/Then 구조로 실패 테스트 작성. 언어별 테스트 파일 규칙을 따르고, 실패 로그를 간단히 기록합니다.
389
- 2. **GREEN**: 테스트를 통과시키는 최소한의 구현만 추가합니다. 최적화는 REFACTOR 단계로 미룹니다.
390
- 3. **REFACTOR**: 중복 제거, 명시적 네이밍, 구조화 로깅/예외 처리 보강. 필요 추가 커밋으로 분리합니다.
398
+ 1. **RED**: Writing failure tests with Given/When/Then structure. Follow test file rules for each language and simply record failure logs.
399
+ 2. **GREEN**: Add only the minimal implementation that makes the tests pass. Optimization is postponed to the REFACTOR stage.
400
+ 3. **REFACTOR**: Removal of duplication, explicit naming, structured logging/exception handling enhancements. Split into additional commits if necessary.
391
401
 
392
- **TRUST 5원칙 연계** (상세: `development-guide.md` - "TRUST 5원칙"):
393
- - **T (Test First)**: RED 단계에서 SPEC 기반 테스트 작성
394
- - **R (Readable)**: REFACTOR 단계에서 가독성 개선 (파일≤300 LOC, 함수≤50 LOC)
395
- - **T (Trackable)**: 모든 단계에서 @TAG 추적성 유지
402
+ **TRUST 5 Principles Linkage** (Details: `development-guide.md` - "TRUST 5 Principles"):
403
+ - **T (Test First)**: Writing SPEC-based tests in the RED stage
404
+ - **R (Readable)**: Readability in the REFACTOR stage Improvement (file≤300 LOC, function≤50 LOC)
405
+ - **T (Trackable)**: Maintain @TAG traceability at all stages.
396
406
 
397
- > TRUST 5원칙은 기본 권장치만 제공하므로, `simplicity_threshold`를 초과하는 구조가 필요하다면 SPEC 또는 ADR에 근거를 남기고 진행하세요.
407
+ > TRUST 5 principles provide only basic recommendations, so if you need a structure that exceeds `simplicity_threshold`, proceed with the basis in SPEC or ADR.
398
408
 
399
- ## 에이전트 역할 분리
409
+ ## Agent role separation
400
410
 
401
- ### implementation-planner 전담 영역
411
+ ### implementation-planner dedicated area
402
412
 
403
- - SPEC 문서 분석 요구사항 추출
404
- - 라이브러리 선정 버전 관리
405
- - TAG 체인 설계 순서 결정
406
- - 실행 전략 수립 리스크 식별
407
- - 실행 계획서 작성
413
+ - SPEC document analysis and requirements extraction
414
+ - Library selection and version management
415
+ - TAG chain design and sequence decision
416
+ - Establishment of implementation strategy and identification of risks
417
+ - Creation of execution plan
408
418
 
409
- ### tdd-implementer 전담 영역
419
+ ### tdd-implementer dedicated area
410
420
 
411
- - 작업 실행 (TDD, 프로토타입, 문서화 )
412
- - 테스트 작성 실행 (TDD 시나리오)
413
- - TAG 주석 추가 관리
414
- - 코드 품질 개선 (리팩토링)
415
- - 언어별 린터/포매터 실행
421
+ - Execute tasks (TDD, prototyping, documentation, etc.)
422
+ - Write and run tests (TDD scenarios)
423
+ - Add and manage TAG comments
424
+ - Improve code quality (refactoring)
425
+ - Run language-specific linters/formatters
416
426
 
417
- ### quality-gate 전담 영역
427
+ ### Quality-gate dedicated area
418
428
 
419
- - TRUST 원칙 검증
420
- - 코드 스타일 검증
421
- - 테스트 커버리지 확인
422
- - TAG 체인 무결성 검증
423
- - 의존성 보안 검증
429
+ - TRUST principle verification
430
+ - Code style verification
431
+ - Test coverage verification
432
+ - TAG chain integrity verification
433
+ - Dependency security verification
424
434
 
425
- ### git-manager 전담 영역
435
+ ### git-manager dedicated area
426
436
 
427
- - 모든 Git 커밋 작업 (add, commit, push)
428
- - 작업 단계별 체크포인트 생성
429
- - 모드별 커밋 전략 적용
430
- - 브랜치/태그 관리
431
- - 원격 동기화 처리
437
+ - All Git commit operations (add, commit, push)
438
+ - Checkpoint creation for each task stage
439
+ - Apply commit strategy for each mode
440
+ - Git branch/tag management
441
+ - Remote synchronization processing
432
442
 
433
- ## 품질 게이트 체크리스트
443
+ ## Quality Gate Checklist
434
444
 
435
- - 테스트 커버리지 ≥ `.moai/config.json.test_coverage_target` (기본 85%)
436
- - 린터/포매터 통과 (`ruff`, `eslint --fix`, `gofmt` )
437
- - 구조화 로깅 또는 관측 도구 호출 존재 확인
438
- - @TAG 업데이트 필요 변경 사항 메모 (다음 단계에서 doc-syncer 사용)
445
+ - Test coverage ≥ `.moai/config.json.test_coverage_target` (default 85%)
446
+ - Pass linter/formatter (`ruff`, `eslint --fix`, `gofmt`, etc.)
447
+ - Check presence of structured logging or observation tool call
448
+ - @TAG update needed changes note (used by doc-syncer in next step)
439
449
 
440
450
  ---
441
451
 
442
- ## 🧠 Context Management (컨텍스트 관리)
452
+ ## 🧠 Context Management
443
453
 
444
- > 자세한 내용: `.moai/memory/development-guide.md` - "Context Engineering" 섹션 참조
454
+ > For more information: `.moai/memory/development-guide.md` - see section "Context Engineering"
445
455
 
446
- ### 커맨드의 핵심 전략
456
+ ### Core strategy of this command
447
457
 
448
- **우선 로드**: `.moai/specs/SPEC-XXX/spec.md` (구현 대상 요구사항)
458
+ **Load first**: `.moai/specs/SPEC-XXX/spec.md` (implementation target requirement)
449
459
 
450
- **권장사항**: 작업 실행이 완료되었습니다. 다음 단계(`/alfred:3-sync`) 진행 `/clear` 또는 `/new` 명령으로 새로운 대화 세션을 시작하면 나은 성능과 컨텍스트 관리를 경험할 수 있습니다.
460
+ **Recommendation**: Job execution completed successfully. You can experience better performance and context management by starting a new chat session with the `/clear` or `/new` command before proceeding to the next step (`/alfred:3-sync`).
451
461
 
452
462
  ---
453
463
 
454
- ## 다음 단계
464
+ ## Next steps
455
465
 
456
- **권장사항**: 다음 단계 진행 `/clear` 또는 `/new` 명령으로 새로운 대화 세션을 시작하면 나은 성능과 컨텍스트 관리를 경험할 있습니다.
466
+ **Recommendation**: For better performance and context management, start a new chat session with the `/clear` or `/new` command before proceeding to the next step.
457
467
 
458
- - 작업 실행 완료 `/alfred:3-sync`로 문서 동기화 진행
459
- - 모든 Git 작업은 git-manager 에이전트가 전담하여 일관성 보장
460
- - 에이전트 직접 호출 없이 커맨드 레벨 오케스트레이션만 사용
468
+ - After task execution is complete, document synchronization proceeds with `/alfred:3-sync`
469
+ - All Git operations are dedicated to the git-manager agent to ensure consistency
470
+ - Only command-level orchestration is used without direct calls between agents