moai-adk 0.4.7__py3-none-any.whl → 0.4.8__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 (101) hide show
  1. moai_adk/templates/.claude/agents/alfred/cc-manager.md +188 -954
  2. moai_adk/templates/.claude/agents/alfred/debug-helper.md +4 -5
  3. moai_adk/templates/.claude/agents/alfred/doc-syncer.md +2 -2
  4. moai_adk/templates/.claude/agents/alfred/git-manager.md +2 -2
  5. moai_adk/templates/.claude/agents/alfred/implementation-planner.md +3 -3
  6. moai_adk/templates/.claude/agents/alfred/project-manager.md +6 -6
  7. moai_adk/templates/.claude/agents/alfred/quality-gate.md +4 -6
  8. moai_adk/templates/.claude/agents/alfred/skill-factory.md +36 -36
  9. moai_adk/templates/.claude/agents/alfred/spec-builder.md +2 -2
  10. moai_adk/templates/.claude/agents/alfred/tag-agent.md +2 -2
  11. moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +3 -3
  12. moai_adk/templates/.claude/agents/alfred/trust-checker.md +5 -5
  13. moai_adk/templates/.claude/commands/alfred/0-project.md +98 -42
  14. moai_adk/templates/.claude/commands/alfred/1-plan.md +7 -7
  15. moai_adk/templates/.claude/commands/alfred/2-run.md +36 -36
  16. moai_adk/templates/.claude/commands/alfred/3-sync.md +10 -10
  17. moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +14 -1
  18. moai_adk/templates/.claude/hooks/alfred/core/__init__.py +115 -33
  19. moai_adk/templates/.claude/hooks/alfred/handlers/session.py +8 -9
  20. moai_adk/templates/.claude/hooks/alfred/handlers/tool.py +6 -6
  21. moai_adk/templates/.claude/hooks/alfred/handlers/user.py +5 -4
  22. moai_adk/templates/.claude/output-styles/alfred/agentic-coding.md +1 -1
  23. moai_adk/templates/.claude/output-styles/alfred/moai-adk-learning.md +1 -1
  24. moai_adk/templates/.claude/output-styles/alfred/study-with-alfred.md +1 -1
  25. moai_adk/templates/.claude/settings.json +42 -2
  26. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/SKILL.md +480 -0
  27. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/examples.md +257 -0
  28. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/reference.md +120 -0
  29. moai_adk/templates/.claude/skills/moai-cc-agents/SKILL.md +249 -0
  30. moai_adk/templates/.claude/skills/moai-cc-agents/templates/agent-template.md +32 -0
  31. moai_adk/templates/.claude/skills/moai-cc-claude-md/SKILL.md +278 -0
  32. moai_adk/templates/.claude/skills/moai-cc-claude-md/templates/CLAUDE-template.md +26 -0
  33. moai_adk/templates/.claude/skills/moai-cc-commands/SKILL.md +287 -0
  34. moai_adk/templates/.claude/skills/moai-cc-commands/templates/command-template.md +21 -0
  35. moai_adk/templates/.claude/skills/moai-cc-hooks/SKILL.md +232 -0
  36. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/pre-bash-check.sh +19 -0
  37. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/preserve-permissions.sh +19 -0
  38. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/validate-bash-command.py +24 -0
  39. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/SKILL.md +179 -0
  40. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/templates/settings-mcp-template.json +39 -0
  41. moai_adk/templates/.claude/skills/moai-cc-memory/SKILL.md +296 -0
  42. moai_adk/templates/.claude/skills/moai-cc-memory/templates/session-summary-template.md +18 -0
  43. moai_adk/templates/.claude/skills/moai-cc-settings/SKILL.md +243 -0
  44. moai_adk/templates/.claude/skills/moai-cc-settings/templates/settings-complete-template.json +30 -0
  45. moai_adk/templates/.claude/skills/moai-cc-skills/SKILL.md +271 -0
  46. moai_adk/templates/.claude/skills/moai-cc-skills/templates/SKILL-template.md +15 -0
  47. moai_adk/templates/.claude/skills/moai-skill-factory/EXAMPLES.md +261 -35
  48. moai_adk/templates/.claude/skills/moai-skill-factory/INTERACTIVE-DISCOVERY.md +15 -15
  49. moai_adk/templates/.claude/skills/moai-skill-factory/PARALLEL-ANALYSIS-REPORT.md +429 -0
  50. moai_adk/templates/.claude/skills/moai-skill-factory/PYTHON-VERSION-MATRIX.md +391 -0
  51. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL-FACTORY-WORKFLOW.md +431 -0
  52. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL.md +33 -33
  53. moai_adk/templates/.claude/skills/moai-skill-factory/STEP-BY-STEP-GUIDE.md +466 -0
  54. moai_adk/templates/.claude/skills/moai-skill-factory/reference.md +438 -42
  55. moai_adk/templates/.claude/skills/moai-spec-authoring/README.md +129 -0
  56. moai_adk/templates/.claude/skills/moai-spec-authoring/SKILL.md +1300 -0
  57. moai_adk/templates/.claude/skills/moai-spec-authoring/examples/validate-spec.sh +161 -0
  58. moai_adk/templates/CLAUDE.md +101 -93
  59. {moai_adk-0.4.7.dist-info → moai_adk-0.4.8.dist-info}/METADATA +537 -146
  60. {moai_adk-0.4.7.dist-info → moai_adk-0.4.8.dist-info}/RECORD +63 -73
  61. moai_adk/templates/.claude/skills/moai-alfred-code-reviewer/SKILL.md +0 -113
  62. moai_adk/templates/.claude/skills/moai-alfred-code-reviewer/examples.md +0 -29
  63. moai_adk/templates/.claude/skills/moai-alfred-code-reviewer/reference.md +0 -28
  64. moai_adk/templates/.claude/skills/moai-alfred-debugger-pro/SKILL.md +0 -113
  65. moai_adk/templates/.claude/skills/moai-alfred-debugger-pro/examples.md +0 -29
  66. moai_adk/templates/.claude/skills/moai-alfred-debugger-pro/reference.md +0 -28
  67. moai_adk/templates/.claude/skills/moai-alfred-performance-optimizer/SKILL.md +0 -113
  68. moai_adk/templates/.claude/skills/moai-alfred-performance-optimizer/examples.md +0 -29
  69. moai_adk/templates/.claude/skills/moai-alfred-performance-optimizer/reference.md +0 -28
  70. moai_adk/templates/.claude/skills/moai-alfred-refactoring-coach/SKILL.md +0 -113
  71. moai_adk/templates/.claude/skills/moai-alfred-refactoring-coach/examples.md +0 -29
  72. moai_adk/templates/.claude/skills/moai-alfred-refactoring-coach/reference.md +0 -28
  73. moai_adk/templates/.claude/skills/moai-alfred-tui-survey/SKILL.md +0 -635
  74. moai_adk/templates/.claude/skills/moai-alfred-tui-survey/examples.md +0 -992
  75. moai_adk/templates/.claude/skills/moai-alfred-tui-survey/reference.md +0 -801
  76. moai_adk/templates/.claude/skills/moai-claude-code/SKILL.md +0 -121
  77. moai_adk/templates/.claude/skills/moai-claude-code/examples.md +0 -29
  78. moai_adk/templates/.claude/skills/moai-claude-code/reference.md +0 -28
  79. moai_adk/templates/.claude/skills/moai-claude-code/templates/agent-full.md +0 -332
  80. moai_adk/templates/.claude/skills/moai-claude-code/templates/command-full.md +0 -384
  81. moai_adk/templates/.claude/skills/moai-claude-code/templates/plugin-full.json +0 -363
  82. moai_adk/templates/.claude/skills/moai-claude-code/templates/settings-full.json +0 -595
  83. moai_adk/templates/.claude/skills/moai-claude-code/templates/skill-full.md +0 -496
  84. moai_adk/templates/.claude/skills/moai-lang-clojure/SKILL.md +0 -123
  85. moai_adk/templates/.claude/skills/moai-lang-clojure/examples.md +0 -29
  86. moai_adk/templates/.claude/skills/moai-lang-clojure/reference.md +0 -30
  87. moai_adk/templates/.claude/skills/moai-lang-elixir/SKILL.md +0 -124
  88. moai_adk/templates/.claude/skills/moai-lang-elixir/examples.md +0 -29
  89. moai_adk/templates/.claude/skills/moai-lang-elixir/reference.md +0 -31
  90. moai_adk/templates/.claude/skills/moai-lang-haskell/SKILL.md +0 -124
  91. moai_adk/templates/.claude/skills/moai-lang-haskell/examples.md +0 -29
  92. moai_adk/templates/.claude/skills/moai-lang-haskell/reference.md +0 -31
  93. moai_adk/templates/.claude/skills/moai-lang-julia/SKILL.md +0 -123
  94. moai_adk/templates/.claude/skills/moai-lang-julia/examples.md +0 -29
  95. moai_adk/templates/.claude/skills/moai-lang-julia/reference.md +0 -30
  96. moai_adk/templates/.claude/skills/moai-lang-lua/SKILL.md +0 -123
  97. moai_adk/templates/.claude/skills/moai-lang-lua/examples.md +0 -29
  98. moai_adk/templates/.claude/skills/moai-lang-lua/reference.md +0 -30
  99. {moai_adk-0.4.7.dist-info → moai_adk-0.4.8.dist-info}/WHEEL +0 -0
  100. {moai_adk-0.4.7.dist-info → moai_adk-0.4.8.dist-info}/entry_points.txt +0 -0
  101. {moai_adk-0.4.7.dist-info → moai_adk-0.4.8.dist-info}/licenses/LICENSE +0 -0
@@ -16,7 +16,7 @@ allowed-tools:
16
16
  ---
17
17
 
18
18
  # 📋 MoAI-ADK Step 0: Initialize/Update Universal Language Support Project Documentation
19
- > Interactive prompts rely on `Skill("moai-alfred-tui-survey")` so AskUserQuestion renders TUI selection menus for user surveys and approvals.
19
+ > Interactive prompts rely on `Skill("moai-alfred-interactive-questions")` so AskUserQuestion renders TUI selection menus for user surveys and approvals.
20
20
 
21
21
  ## 🎯 Command Purpose
22
22
 
@@ -33,10 +33,10 @@ Automatically analyzes the project environment to create/update product/structur
33
33
 
34
34
  ## 🧠 Associated Skills & Agents
35
35
 
36
- | Agent | Core Skill | Purpose |
37
- | ----- | -------- | ------- |
36
+ | Agent | Core Skill | Purpose |
37
+ | --------------- | -------------------------------- | --------------------------------------------- |
38
38
  | project-manager | `moai-alfred-language-detection` | Initialize project and interview requirements |
39
- | trust-checker | `moai-alfred-trust-validation` | Verify initial project structure (optional) |
39
+ | trust-checker | `moai-alfred-trust-validation` | Verify initial project structure (optional) |
40
40
 
41
41
  **Note**: TUI Survey Skill is used for user confirmations during project initialization and is shared across all interactive prompts.
42
42
 
@@ -88,20 +88,32 @@ The user executes the `/alfred:8-project` command to start analyzing the project
88
88
 
89
89
  ---
90
90
 
91
- ## 🚀 STEP 0: Conversation Language Selection (NEW in v0.4.2)
91
+ ## 🚀 STEP 0: 초기 설정 - 언어 사용자 정보 선택
92
92
 
93
- **Purpose**: Establish the conversation language before project initialization begins. This selection applies to all Alfred prompts, interview questions, and generated documentation.
93
+ **목적**: 프로젝트 초기화 시작 전에 대화 언어를 설정하고 사용자 닉네임을 등록합니다. 설정은 모든 Alfred 프롬프트, 인터뷰 질문 생성된 문서에 적용됩니다.
94
94
 
95
- ### 0.1 Display Language Selection Menu
95
+ ### 0.0 Alfred 자기소개 환영 인사
96
96
 
97
- Alfred displays a language selection menu as the **very first interaction** using `Skill("moai-alfred-tui-survey")`:
97
+ Alfred 상호작용으로 다음과 같이 인사합니다:
98
+
99
+ ```
100
+ 안녕하세요! 👋 저는 Alfred입니다.
101
+ MoAI-ADK의 SuperAgent로서 당신의 프로젝트를 함께 만들어갈 준비가 되어 있습니다.
102
+
103
+ 앞으로의 모든 대화에서 당신을 편하게 부르기 위해,
104
+ 먼저 기본 설정을 진행하겠습니다.
105
+ ```
106
+
107
+ ### 0.1 언어 선택
108
+
109
+ Alfred가 `Skill("moai-alfred-interactive-questions")` 를 사용하여 **첫 번째 상호작용**으로 언어 선택 메뉴를 표시합니다:
98
110
 
99
111
  **Question**:
100
112
  ```
101
113
  Which language would you like to use for the project initialization and documentation?
102
114
  ```
103
115
 
104
- **Options** (AskUserQuestion with moai-alfred-tui-survey):
116
+ **Options** (AskUserQuestion with moai-alfred-interactive-questions):
105
117
  - **English** (en) — All dialogs and documentation in English
106
118
  - **한국어** (ko) — All dialogs and documentation in Korean
107
119
  - **日本語** (ja) — All dialogs and documentation in Japanese
@@ -126,22 +138,66 @@ This language preference is:
126
138
  - Used to generate all documentation in the selected language
127
139
  - Displayed in CLAUDE.md under "## Project Information"
128
140
 
129
- ### 0.3 Transition to STEP 1
141
+ ### 0.2.5 사용자 닉네임 선택
130
142
 
131
- After language selection, all subsequent interactions proceed in the selected language:
132
- - Alfred's prompts are translated
133
- - project-manager sub-agent receives language parameter
134
- - Interview questions are in the selected language
135
- - Generated documents (product.md, structure.md, tech.md) are in the selected language
136
- - CLAUDE.md displays the selected language prominently
143
+ 언어 선택 완료 후, Alfred가 `Skill("moai-alfred-interactive-questions")` 사용하여 사용자 닉네임을 요청합니다:
137
144
 
138
- **Example output for Korean selection**:
139
- ```markdown
140
- 언어 선택 완료: 한국어 (ko)
145
+ **질문**:
146
+ ```
147
+ 앞으로 대화에서 당신을 어떻게 부르면 좋을까요?
148
+ (예: GOOS, 팀장님, 개발자님, 또는 자유롭게 입력)
149
+ ```
150
+
151
+ **입력 방식**:
152
+ - 텍스트 직접 입력 가능 (자유 형식)
153
+ - 예시: "GOOS", "팀장", "개발자" 등
154
+ - 최대 20자 한도
155
+
156
+ ### 0.2.6 사용자 정보 저장
157
+
158
+ Alfred가 선택된 닉네임을 다음과 같이 저장합니다:
159
+
160
+ ```json
161
+ {
162
+ "conversation_language": "ko",
163
+ "conversation_language_name": "한국어",
164
+ "user_nickname": "GOOS",
165
+ "selected_at": "2025-10-23T12:34:56Z"
166
+ }
167
+ ```
168
+
169
+ 이 정보는:
170
+ - 모든 sub-agents 에게 컨텍스트 파라미터로 전달됨
171
+ - `.moai/config.json` 의 `user` 필드에 저장됨
172
+ - CLAUDE.md의 `{{USER_NICKNAME}}` 변수로 치환됨
173
+ - 모든 Alfred 대화에서 사용됨
174
+
175
+ **예시**:
176
+ ```
177
+ 안녕하세요, GOOS님! 👋
141
178
 
142
179
  이제 프로젝트 환경 분석으로 진행하겠습니다...
143
180
  ```
144
181
 
182
+ ### 0.3 STEP 1로 전환
183
+
184
+ 언어 및 사용자 정보 설정 완료 후, 모든 후속 상호작용이 선택된 언어로 진행됩니다:
185
+ - Alfred의 모든 프롬프트가 선택된 언어로 번역됨
186
+ - project-manager sub-agent이 언어 및 사용자 정보 파라미터를 수신
187
+ - 인터뷰 질문이 선택된 언어로 진행됨
188
+ - 생성된 문서 (product.md, structure.md, tech.md)가 선택된 언어로 작성됨
189
+ - CLAUDE.md가 선택된 언어와 사용자 닉네임을 표시함
190
+
191
+ **한국어 선택 시 출력 예시**:
192
+ ```markdown
193
+ ✅ 설정 완료!
194
+
195
+ 언어: 한국어 (ko)
196
+ 닉네임: GOOS
197
+
198
+ 이제 GOOS님의 프로젝트 환경 분석으로 진행하겠습니다...
199
+ ```
200
+
145
201
  ---
146
202
 
147
203
  ## 🚀 STEP 1: Environmental analysis and interview plan development
@@ -168,7 +224,7 @@ grep "optimized" .moai/config.json
168
224
  - `optimized: false` in `config.json` (immediately after reinitialization)
169
225
 
170
226
  **Select user if backup exists**
171
- Call `Skill("moai-alfred-tui-survey")` to display a TUI with the following options:
227
+ Call `Skill("moai-alfred-interactive-questions")` to display a TUI with the following options:
172
228
  - **Merge**: Merge backup contents and latest template (recommended)
173
229
  - **New**: Ignore the backup and start a new interview
174
230
  - **Skip**: Keep current file (terminate task)
@@ -381,9 +437,9 @@ Set optimization flags after the merge is complete:
381
437
  (Choose “Proceed,” “Modify [Content],” or “Abort”)
382
438
  ```
383
439
 
384
- ### 1.5 Wait for user approval (moai-alfred-tui-survey) (when user selects "New")
440
+ ### 1.5 Wait for user approval (moai-alfred-interactive-questions) (when user selects "New")
385
441
 
386
- After Alfred receives the project-manager's interview plan report, calls `Skill("moai-alfred-tui-survey")` and asks whether Phase 2 is approved.
442
+ After Alfred receives the project-manager's interview plan report, calls `Skill("moai-alfred-interactive-questions")` and asks whether Phase 2 is approved.
387
443
  - **Proceed**: Interview conducted according to approved plan
388
444
  - **Modify**: Re-establish the plan (re-execute Phase 1)
389
445
  - **Stop**: Stop initialization
@@ -457,7 +513,7 @@ After the project-manager has finished creating the document, **Alfred can optio
457
513
 
458
514
  **Note**: Quality verification is optional during the project initialization phase.
459
515
 
460
- ### 2.3 Sub-agent moai-alfred-tui-survey (Nested)
516
+ ### 2.3 Sub-agent moai-alfred-interactive-questions (Nested)
461
517
 
462
518
  **The project-manager agent can internally call the TUI survey skill** to check the details of the task.
463
519
 
@@ -466,7 +522,7 @@ After the project-manager has finished creating the document, **Alfred can optio
466
522
  - When selecting language/framework
467
523
  - When changing important settings
468
524
 
469
- **Example** (inside project-manager): Ask whether to "overwrite file" with `Skill("moai-alfred-tui-survey")`,
525
+ **Example** (inside project-manager): Ask whether to "overwrite file" with `Skill("moai-alfred-interactive-questions")`,
470
526
  - Allows you to choose between **Overwrite** / **Merge** / **Skip**.
471
527
 
472
528
  **Nested pattern**:
@@ -729,7 +785,7 @@ Alfred only calls the trust-checker agent to perform project initial structural
729
785
  ### 2.6: Agent & Skill Tailoring (Project Optimization)
730
786
 
731
787
  Based on the results of the interviews and initial analysis, we recommend and activate sub-agents and skills that should be immediately utilized in the project.
732
- Before actual application, user confirmation is received with `Skill("moai-alfred-tui-survey")`, and selected items are recorded in `CLAUDE.md` and `.moai/config.json`.
788
+ Before actual application, user confirmation is received with `Skill("moai-alfred-interactive-questions")`, and selected items are recorded in `CLAUDE.md` and `.moai/config.json`.
733
789
 
734
790
  #### 2.6.0 Create cc-manager briefing
735
791
 
@@ -745,21 +801,21 @@ Be sure to include the source (e.g. `product.md@SPEC:SUCCESS-001`) for each item
745
801
 
746
802
  cc-manager selects the required sub-agents and skills based on the briefing.The table below is a reference guide to help you make a decision, and when making an actual call, the supporting sentences from the relevant document are also delivered.
747
803
 
748
- |Project requirements (document basis) |Recommended sub-agent/skill |Purpose |
749
- | -------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------ |
750
- |High quality and coverage goals (`product.md@SPEC:SUCCESS-001`) |`tdd-implementer`, `moai-essentials-debug`, `moai-essentials-review` |Establishment of RED·GREEN·REFACTOR workflow |
751
- |Traceability/TAG improvement request (`structure.md@DOC:TRACEABILITY-001`) |`doc-syncer`, `moai-alfred-tag-scanning`, `moai-alfred-trust-validation` |Enhanced TAG traceability and document/code synchronization |
752
- |Deployment automation/branch strategy required (`structure.md` Architecture/TODO) |`git-manager`, `moai-alfred-git-workflow`, `moai-foundation-git` |Branch Strategy·Commit Policy·PR Automation |
753
- |Refactoring legacy modules (`product.md` BACKLOG, `tech.md` TODO) |`implementation-planner`, `moai-alfred-refactoring-coach`, `moai-essentials-refactor` |Technical Debt Diagnosis and Refactoring Roadmap |
754
- |Strengthening regulatory/security compliance (`tech.md@DOC:SECURITY-001`) |`quality-gate`, `moai-alfred-trust-validation`, `moai-foundation-trust`, `moai-domain-security` |TRUST S (Secured) and Trackable Compliance, Security Consulting |
755
- |CLI Automation/Tooling Requirements (`tech.md` BUILD/CLI section) |`implementation-planner`, `moai-domain-cli-tool`, detected language skills (e.g. `moai-lang-python`) |CLI command design, input/output standardization |
756
- |Data analysis/reporting needs (`product.md` DATA, `tech.md` ANALYTICS) |`implementation-planner`, `moai-domain-data-science`, detected language skills |Data Pipeline·Notebook Job Definition |
757
- |Improved database structure (`structure.md` DB, `tech.md` STORAGE) |`doc-syncer`, `moai-domain-database`, `moai-alfred-tag-scanning` |Strengthening schema documentation and TAG-DB mapping |
758
- |DevOps/Infrastructure automation required (`tech.md` DEVOPS, `structure.md` CI/CD) |`implementation-planner`, `moai-domain-devops`, `moai-alfred-git-workflow` |Establishing a deployment pipeline and IaC strategy |
759
- |Introduction of ML/AI functions (`product.md` AI, `tech.md` MODEL) |`implementation-planner`, `moai-domain-ml`, detected language skills |Model training/inference pipeline definition |
760
- |Mobile app strategy (`product.md` MOBILE, `structure.md` CLIENT) |`implementation-planner`, `moai-domain-mobile-app`, detected language skills (e.g. `moai-lang-dart`, `moai-lang-swift`) |Mobile client structure design |
761
- |Strengthening coding standards/review process (`tech.md` REVIEW) |`quality-gate`, `moai-essentials-review`, `moai-alfred-code-reviewer` |Strengthening review checklist and quality reporting |
762
- |Requires onboarding/training mode (`tech.md` STACK description, etc.) |`moai-alfred-tui-survey`, `moai-adk-learning`, `agentic-coding` Output style |Enhanced interview TUI and automatically provided onboarding materials |
804
+ | Project requirements (document basis) | Recommended sub-agent/skill | Purpose |
805
+ | ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
806
+ | High quality and coverage goals (`product.md@SPEC:SUCCESS-001`) | `tdd-implementer`, `moai-essentials-debug`, `moai-essentials-review` | Establishment of RED·GREEN·REFACTOR workflow |
807
+ | Traceability/TAG improvement request (`structure.md@DOC:TRACEABILITY-001`) | `doc-syncer`, `moai-alfred-tag-scanning`, `moai-alfred-trust-validation` | Enhanced TAG traceability and document/code synchronization |
808
+ | Deployment automation/branch strategy required (`structure.md` Architecture/TODO) | `git-manager`, `moai-alfred-git-workflow`, `moai-foundation-git` | Branch Strategy·Commit Policy·PR Automation |
809
+ | Refactoring legacy modules (`product.md` BACKLOG, `tech.md` TODO) | `implementation-planner`, `moai-essentials-refactor` | Technical Debt Diagnosis and Refactoring Roadmap |
810
+ | Strengthening regulatory/security compliance (`tech.md@DOC:SECURITY-001`) | `quality-gate`, `moai-alfred-trust-validation`, `moai-foundation-trust`, `moai-domain-security` | TRUST S (Secured) and Trackable Compliance, Security Consulting |
811
+ | CLI Automation/Tooling Requirements (`tech.md` BUILD/CLI section) | `implementation-planner`, `moai-domain-cli-tool`, detected language skills (e.g. `moai-lang-python`) | CLI command design, input/output standardization |
812
+ | Data analysis/reporting needs (`product.md` DATA, `tech.md` ANALYTICS) | `implementation-planner`, `moai-domain-data-science`, detected language skills | Data Pipeline·Notebook Job Definition |
813
+ | Improved database structure (`structure.md` DB, `tech.md` STORAGE) | `doc-syncer`, `moai-domain-database`, `moai-alfred-tag-scanning` | Strengthening schema documentation and TAG-DB mapping |
814
+ | DevOps/Infrastructure automation required (`tech.md` DEVOPS, `structure.md` CI/CD) | `implementation-planner`, `moai-domain-devops`, `moai-alfred-git-workflow` | Establishing a deployment pipeline and IaC strategy |
815
+ | Introduction of ML/AI functions (`product.md` AI, `tech.md` MODEL) | `implementation-planner`, `moai-domain-ml`, detected language skills | Model training/inference pipeline definition |
816
+ | Mobile app strategy (`product.md` MOBILE, `structure.md` CLIENT) | `implementation-planner`, `moai-domain-mobile-app`, detected language skills (e.g. `moai-lang-dart`, `moai-lang-swift`) | Mobile client structure design |
817
+ | Strengthening coding standards/review process (`tech.md` REVIEW) | `quality-gate`, `moai-essentials-review` | Strengthening review checklist and quality reporting |
818
+ | Requires onboarding/training mode (`tech.md` STACK description, etc.) | `moai-alfred-interactive-questions`, `moai-adk-learning`, `agentic-coding` Output style | Enhanced interview TUI and automatically provided onboarding materials |
763
819
 
764
820
  > **Language/Domain Skill Selection Rules**
765
821
  > - Select and add one relevant language skill (`moai-lang-python`, `moai-lang-java`, …) based on the `moai-alfred-language-detection` results or the stack recorded in the Tech section of the briefing.
@@ -770,7 +826,7 @@ If multiple conditions are met, the candidates are merged without duplicates and
770
826
 
771
827
  #### 2.6.2 User confirmation flow
772
828
 
773
- `Skill("moai-alfred-tui-survey")` asks “whether to enable recommended items.”
829
+ `Skill("moai-alfred-interactive-questions")` asks “whether to enable recommended items.”
774
830
  - Provides three options: **Install all** / **Install selectively** / **Do not install**.
775
831
  Selecting “Selective Install” presents the list of candidates again as multiple choices, allowing the user to select only the items they need.
776
832
 
@@ -915,7 +971,7 @@ This subcommand is executed under the following conditions:
915
971
  ```
916
972
 
917
973
  4. **Waiting for user approval**
918
- `Skill("moai-alfred-tui-survey")` asks “Do you want to proceed with template optimization?” and provides the following options.
974
+ `Skill("moai-alfred-interactive-questions")` asks “Do you want to proceed with template optimization?” and provides the following options.
919
975
  - **Proceed** → Phase 2 execution
920
976
  - **Preview** → Display change details and recheck
921
977
  - **Skip** → keep optimized=false
@@ -17,7 +17,7 @@ allowed-tools:
17
17
  ---
18
18
 
19
19
  # 🏗️ MoAI-ADK Step 1: Establish a plan (Plan) - Always make a plan first and then proceed.
20
- > Interactive prompts rely on `Skill("moai-alfred-tui-survey")` so AskUserQuestion renders TUI selection menus for user surveys and approvals.
20
+ > Interactive prompts rely on `Skill("moai-alfred-interactive-questions")` so AskUserQuestion renders TUI selection menus for user surveys and approvals.
21
21
 
22
22
  ## 🎯 Command Purpose
23
23
 
@@ -68,10 +68,10 @@ allowed-tools:
68
68
 
69
69
  ## 🧠 Associated Skills & Agents
70
70
 
71
- | Agent | Core Skill | Purpose |
72
- | ----- | -------- | ------- |
73
- | spec-builder | `moai-foundation-ears` | Write SPEC with EARS syntax |
74
- | git-manager | `moai-alfred-git-workflow` | Create branch and PR |
71
+ | Agent | Core Skill | Purpose |
72
+ | ------------ | -------------------------- | --------------------------- |
73
+ | spec-builder | `moai-foundation-ears` | Write SPEC with EARS syntax |
74
+ | git-manager | `moai-alfred-git-workflow` | Create branch and PR |
75
75
 
76
76
  **Note**: TUI Survey Skill is used for user confirmations during the plan phase and is shared across all interactive prompts.
77
77
 
@@ -152,7 +152,7 @@ Call the Task tool:
152
152
 
153
153
  ### User verification steps
154
154
 
155
- After reviewing your implementation plan, Alfred invokes `Skill("moai-alfred-tui-survey")` to present the following options:
155
+ After reviewing your implementation plan, Alfred invokes `Skill("moai-alfred-interactive-questions")` to present the following options:
156
156
  - **"Go"** or **"Start"**: Start writing the plan as planned
157
157
  - **"Modify [Content]"**: Request modifications to the plan
158
158
  - **"Stop"**: Stop writing the plan
@@ -161,7 +161,7 @@ After reviewing your implementation plan, Alfred invokes `Skill("moai-alfred-tui
161
161
 
162
162
  ## 🚀 STEP 2: Create plan document (after user approval)
163
163
 
164
- After user approval (collected via `Skill("moai-alfred-tui-survey")`), call the spec-builder and git-manager agents using the **Task tool**.
164
+ After user approval (collected via `Skill("moai-alfred-interactive-questions")`), call the spec-builder and git-manager agents using the **Task tool**.
165
165
 
166
166
  ### ⚙️ How to call an agent
167
167
 
@@ -20,7 +20,7 @@ allowed-tools:
20
20
  ---
21
21
 
22
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
+ > Interactive prompts rely on `Skill("moai-alfred-interactive-questions")` so AskUserQuestion renders TUI selection menus for user surveys and approvals.
24
24
 
25
25
  ## 🎯 Command Purpose
26
26
 
@@ -67,12 +67,12 @@ Analyze SPEC documents to execute planned tasks. It supports not only TDD implem
67
67
 
68
68
  ## 🧠 Associated Skills & Agents
69
69
 
70
- | Agent | Core Skill | Purpose |
71
- | ----- | -------- | ------- |
70
+ | Agent | Core Skill | Purpose |
71
+ | ---------------------- | -------------------------------- | --------------------------------------- |
72
72
  | implementation-planner | `moai-alfred-language-detection` | Detect language and design architecture |
73
- | tdd-implementer | `moai-essentials-debug` | Implement TDD (RED → GREEN → REFACTOR) |
74
- | quality-gate | `moai-alfred-trust-validation` | Verify TRUST 5 principles |
75
- | git-manager | `moai-alfred-git-workflow` | Commit and manage Git workflows |
73
+ | tdd-implementer | `moai-essentials-debug` | Implement TDD (RED → GREEN → REFACTOR) |
74
+ | quality-gate | `moai-alfred-trust-validation` | Verify TRUST 5 principles |
75
+ | git-manager | `moai-alfred-git-workflow` | Commit and manage Git workflows |
76
76
 
77
77
  **Note**: TUI Survey Skill is used for user confirmations during the run phase and is shared across all interactive prompts.
78
78
 
@@ -133,7 +133,7 @@ Task tool call example:
133
133
  3. TAG chain design
134
134
  4. Step-by-step execution plan
135
135
  5. Risks and response plans
136
- 6. Create action plan and use `Skill("moai-alfred-tui-survey")` to confirm the next action with the user
136
+ 6. Create action plan and use `Skill("moai-alfred-interactive-questions")` to confirm the next action with the user
137
137
  (Optional) Explore results: $EXPLORE_RESULTS"
138
138
  ```
139
139
 
@@ -177,7 +177,7 @@ After reviewing the action plan, select one of the following:
177
177
 
178
178
  ## 🚀 STEP 2: Execute task (after user approval)
179
179
 
180
- After user approval (gathered through `Skill("moai-alfred-tui-survey")`), **call the tdd-implementer agent using the Task tool**.
180
+ After user approval (gathered through `Skill("moai-alfred-interactive-questions")`), **call the tdd-implementer agent using the Task tool**.
181
181
 
182
182
  ### ⚙️ How to call an agent
183
183
 
@@ -214,22 +214,22 @@ Execute on: $ARGUMENTS"
214
214
 
215
215
  #### Backend/System
216
216
 
217
- | SPEC Type | Implementation language | Test Framework | Performance Goals | Coverage Goals |
218
- |-----------|-----------|-------------------|-----------|---------------|
219
- | **CLI/System** | TypeScript | jest + ts-node | < 18ms | 95%+ |
220
- | **API/Backend** | TypeScript | Jest + SuperTest | < 50ms | 90%+ |
221
- | **Frontend** | TypeScript | Jest + Testing Library | < 100ms | 85%+ |
222
- | **Data Processing** | TypeScript | Jest + Mock | < 200ms | 85%+ |
223
- | **Python Project** | Python | pytest + mypy | Custom | 85%+ |
217
+ | SPEC Type | Implementation language | Test Framework | Performance Goals | Coverage Goals |
218
+ | ------------------- | ----------------------- | ---------------------- | ----------------- | -------------- |
219
+ | **CLI/System** | TypeScript | jest + ts-node | < 18ms | 95%+ |
220
+ | **API/Backend** | TypeScript | Jest + SuperTest | < 50ms | 90%+ |
221
+ | **Frontend** | TypeScript | Jest + Testing Library | < 100ms | 85%+ |
222
+ | **Data Processing** | TypeScript | Jest + Mock | < 200ms | 85%+ |
223
+ | **Python Project** | Python | pytest + mypy | Custom | 85%+ |
224
224
 
225
225
  #### Mobile Framework
226
226
 
227
- | SPEC Type | Implementation language | Test Framework | Performance Goals | Coverage Goals |
228
- |-----------|-----------|-------------------|-----------|---------------|
229
- | **Flutter App** | Dart | flutter test + widget test | < 100ms | 85%+ |
230
- | **React Native** | TypeScript | Jest + RN Testing Library | < 100ms | 85%+ |
231
- | **iOS App** | Swift | XCTest + XCUITest | < 150ms | 80%+ |
232
- | **Android App** | Kotlin | JUnit + Espresso | < 150ms | 80%+ |
227
+ | SPEC Type | Implementation language | Test Framework | Performance Goals | Coverage Goals |
228
+ | ---------------- | ----------------------- | -------------------------- | ----------------- | -------------- |
229
+ | **Flutter App** | Dart | flutter test + widget test | < 100ms | 85%+ |
230
+ | **React Native** | TypeScript | Jest + RN Testing Library | < 100ms | 85%+ |
231
+ | **iOS App** | Swift | XCTest + XCUITest | < 150ms | 80%+ |
232
+ | **Android App** | Kotlin | JUnit + Espresso | < 150ms | 80%+ |
233
233
 
234
234
  ## 🚀 Optimized agent collaboration structure
235
235
 
@@ -250,7 +250,7 @@ The `implementation-planner` agent does the following:
250
250
  2. **Library selection**: Check the latest stable version and verify compatibility through WebFetch
251
251
  3. **TAG chain design**: Determine TAG order and dependency
252
252
  4. **Establishment of implementation strategy**: Step-by-step implementation plan and risk identification
253
- 5. **Create action plan**: Create a structured plan and, via `Skill("moai-alfred-tui-survey")`, collect user approval before proceeding
253
+ 5. **Create action plan**: Create a structured plan and, via `Skill("moai-alfred-interactive-questions")`, collect user approval before proceeding
254
254
 
255
255
  ### Phase 2: Task execution phase (after approval)
256
256
 
@@ -326,13 +326,13 @@ Alfred calls the implementation-planner agent to check the SPEC document and cre
326
326
 
327
327
  #### TypeScript execution criteria
328
328
 
329
- | SPEC characteristics | execution language | Reason |
330
- |-----------|-----------|------|
331
- | CLI/System Tools | TypeScript | High performance (18ms), type safety, SQLite3 integration |
332
- | API/Backend | TypeScript | Node.js ecosystem, Express/Fastify compatibility |
333
- | Frontend | TypeScript | React/Vue native support |
334
- | data processing | TypeScript | High-performance asynchronous processing, type safety |
335
- | User Python Project | Python tool support | MoAI-ADK provides Python project development tools |
329
+ | SPEC characteristics | execution language | Reason |
330
+ | -------------------- | ------------------- | --------------------------------------------------------- |
331
+ | CLI/System Tools | TypeScript | High performance (18ms), type safety, SQLite3 integration |
332
+ | API/Backend | TypeScript | Node.js ecosystem, Express/Fastify compatibility |
333
+ | Frontend | TypeScript | React/Vue native support |
334
+ | data processing | TypeScript | High-performance asynchronous processing, type safety |
335
+ | User Python Project | Python tool support | MoAI-ADK provides Python project development tools |
336
336
 
337
337
  #### Approach
338
338
 
@@ -359,16 +359,16 @@ Present your plan in the following format:
359
359
 
360
360
  ### 📦 Library version (required - based on web search)
361
361
  **Backend dependencies** (example):
362
- | package | Latest stable version | installation command |
363
- |--------|--------------|----------|
364
- | FastAPI | 0.118.3 | fastapi>=0.118.3 |
365
- | SQLAlchemy | 2.0.43 | sqlalchemy>=2.0.43 |
362
+ | package | Latest stable version | installation command |
363
+ | ---------- | --------------------- | -------------------- |
364
+ | FastAPI | 0.118.3 | fastapi>=0.118.3 |
365
+ | SQLAlchemy | 2.0.43 | sqlalchemy>=2.0.43 |
366
366
 
367
367
  **Frontend dependency** (example):
368
368
  | package | Latest stable version | installation command |
369
- |--------|--------------|----------|
370
- | React | 18.3.1 | react@^18.3.1 |
371
- | Vite | 7.1.9 | vite@^7.1.9 |
369
+ | ------- | --------------------- | -------------------- |
370
+ | React | 18.3.1 | react@^18.3.1 |
371
+ | Vite | 7.1.9 | vite@^7.1.9 |
372
372
 
373
373
  **Important Compatibility Information**:
374
374
  - [Specific Version Requirements]
@@ -17,14 +17,14 @@ allowed-tools:
17
17
  ---
18
18
 
19
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
+ > Interactive prompts rely on `Skill("moai-alfred-interactive-questions")` so AskUserQuestion renders TUI selection menus for user surveys and approvals.
21
21
 
22
22
  ## 🚀 START HERE
23
23
 
24
24
  **CRITICAL**: Load the TUI Survey Skill FIRST before any user interaction:
25
25
 
26
26
  ```
27
- Skill("moai-alfred-tui-survey")
27
+ Skill("moai-alfred-interactive-questions")
28
28
  ```
29
29
 
30
30
  This Skill MUST be loaded at the very beginning to enable TUI menu rendering for AskUserQuestion calls throughout this workflow.
@@ -40,7 +40,7 @@ Synchronize code changes to Living Documents and verify @TAG system to ensure co
40
40
  ## 📋 Execution flow
41
41
 
42
42
  **Phase 0: Skill Loading** (IMMEDIATE)
43
- - Load `Skill("moai-alfred-tui-survey")` at the very start
43
+ - Load `Skill("moai-alfred-interactive-questions")` at the very start
44
44
  - This enables TUI menu rendering for all user interactions
45
45
 
46
46
  **Phase 1: Analysis & Planning**
@@ -56,12 +56,12 @@ Synchronize code changes to Living Documents and verify @TAG system to ensure co
56
56
 
57
57
  ## 🧠 Associated Skills & Agents
58
58
 
59
- | Agent | Core Skill | Purpose |
60
- | ----- | -------- | ------- |
61
- | tag-agent | `moai-alfred-tag-scanning` | Verify TAG system integrity |
59
+ | Agent | Core Skill | Purpose |
60
+ | ------------ | ------------------------------ | ------------------------------ |
61
+ | tag-agent | `moai-alfred-tag-scanning` | Verify TAG system integrity |
62
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 |
63
+ | doc-syncer | `moai-alfred-tag-scanning` | Synchronize Living Documents |
64
+ | git-manager | `moai-alfred-git-workflow` | Handle Git operations |
65
65
 
66
66
  **Note**: TUI Survey Skill is loaded once at Phase 0 and reused throughout all user interactions.
67
67
 
@@ -205,7 +205,7 @@ To skip pre-verification, use the `/alfred:3-sync --skip-pre-check` option.
205
205
 
206
206
  ### User verification steps
207
207
 
208
- After reviewing your sync plan, `Skill("moai-alfred-tui-survey")` presents the following options for user decision:
208
+ After reviewing your sync plan, `Skill("moai-alfred-interactive-questions")` presents the following options for user decision:
209
209
  - **"Proceed"** or **"Start"**: Start synchronization as planned
210
210
  - **"Modify [Contents]"**: Request modifications to your sync plan
211
211
  - **"Abort"**: Abort the sync operation
@@ -214,7 +214,7 @@ After reviewing your sync plan, `Skill("moai-alfred-tui-survey")` presents the f
214
214
 
215
215
  ## 🚀 STEP 2: Execute document synchronization (after user approval)
216
216
 
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.
217
+ After user approval (collected via `Skill("moai-alfred-interactive-questions")`), the doc-syncer agent performs **Living Document synchronization and @TAG updates**, and optionally executes PR Ready transitions only in team mode.
218
218
 
219
219
  ### Phase 2 Details: SPEC Completion Processing (Automatic)
220
220
 
@@ -136,7 +136,8 @@ def main() -> None:
136
136
  handler = handlers.get(event_name)
137
137
  result = handler({"cwd": cwd, **data}) if handler else HookResult()
138
138
 
139
- # UserPromptSubmit uses a special output schema
139
+ # Output Hook result as JSON
140
+ # Note: UserPromptSubmit uses to_user_prompt_submit_dict() for special schema
140
141
  if event_name == "UserPromptSubmit":
141
142
  print(json.dumps(result.to_user_prompt_submit_dict()))
142
143
  else:
@@ -145,9 +146,21 @@ def main() -> None:
145
146
  sys.exit(0)
146
147
 
147
148
  except json.JSONDecodeError as e:
149
+ # Return valid Hook response even on JSON parse error
150
+ error_response: dict[str, Any] = {
151
+ "continue": True,
152
+ "hookSpecificOutput": {"error": f"JSON parse error: {e}"}
153
+ }
154
+ print(json.dumps(error_response))
148
155
  print(f"JSON parse error: {e}", file=sys.stderr)
149
156
  sys.exit(1)
150
157
  except Exception as e:
158
+ # Return valid Hook response even on unexpected error
159
+ error_response: dict[str, Any] = {
160
+ "continue": True,
161
+ "hookSpecificOutput": {"error": f"Hook error: {e}"}
162
+ }
163
+ print(json.dumps(error_response))
151
164
  print(f"Unexpected error: {e}", file=sys.stderr)
152
165
  sys.exit(1)
153
166