moai-adk 0.4.7__py3-none-any.whl → 0.4.10__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 (103) 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/HOOK_SCHEMA_VALIDATION.md +313 -0
  18. moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +14 -1
  19. moai_adk/templates/.claude/hooks/alfred/core/__init__.py +117 -33
  20. moai_adk/templates/.claude/hooks/alfred/handlers/session.py +8 -9
  21. moai_adk/templates/.claude/hooks/alfred/handlers/tool.py +6 -6
  22. moai_adk/templates/.claude/hooks/alfred/handlers/user.py +5 -4
  23. moai_adk/templates/.claude/hooks/alfred/test_hook_output.py +175 -0
  24. moai_adk/templates/.claude/output-styles/alfred/agentic-coding.md +1 -1
  25. moai_adk/templates/.claude/output-styles/alfred/moai-adk-learning.md +1 -1
  26. moai_adk/templates/.claude/output-styles/alfred/study-with-alfred.md +1 -1
  27. moai_adk/templates/.claude/settings.json +42 -2
  28. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/SKILL.md +480 -0
  29. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/examples.md +257 -0
  30. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/reference.md +120 -0
  31. moai_adk/templates/.claude/skills/moai-cc-agents/SKILL.md +249 -0
  32. moai_adk/templates/.claude/skills/moai-cc-agents/templates/agent-template.md +32 -0
  33. moai_adk/templates/.claude/skills/moai-cc-claude-md/SKILL.md +278 -0
  34. moai_adk/templates/.claude/skills/moai-cc-claude-md/templates/CLAUDE-template.md +26 -0
  35. moai_adk/templates/.claude/skills/moai-cc-commands/SKILL.md +287 -0
  36. moai_adk/templates/.claude/skills/moai-cc-commands/templates/command-template.md +21 -0
  37. moai_adk/templates/.claude/skills/moai-cc-hooks/SKILL.md +232 -0
  38. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/pre-bash-check.sh +19 -0
  39. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/preserve-permissions.sh +19 -0
  40. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/validate-bash-command.py +24 -0
  41. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/SKILL.md +179 -0
  42. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/templates/settings-mcp-template.json +39 -0
  43. moai_adk/templates/.claude/skills/moai-cc-memory/SKILL.md +296 -0
  44. moai_adk/templates/.claude/skills/moai-cc-memory/templates/session-summary-template.md +18 -0
  45. moai_adk/templates/.claude/skills/moai-cc-settings/SKILL.md +243 -0
  46. moai_adk/templates/.claude/skills/moai-cc-settings/templates/settings-complete-template.json +30 -0
  47. moai_adk/templates/.claude/skills/moai-cc-skills/SKILL.md +271 -0
  48. moai_adk/templates/.claude/skills/moai-cc-skills/templates/SKILL-template.md +15 -0
  49. moai_adk/templates/.claude/skills/moai-skill-factory/EXAMPLES.md +261 -35
  50. moai_adk/templates/.claude/skills/moai-skill-factory/INTERACTIVE-DISCOVERY.md +15 -15
  51. moai_adk/templates/.claude/skills/moai-skill-factory/PARALLEL-ANALYSIS-REPORT.md +429 -0
  52. moai_adk/templates/.claude/skills/moai-skill-factory/PYTHON-VERSION-MATRIX.md +391 -0
  53. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL-FACTORY-WORKFLOW.md +431 -0
  54. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL.md +33 -33
  55. moai_adk/templates/.claude/skills/moai-skill-factory/STEP-BY-STEP-GUIDE.md +466 -0
  56. moai_adk/templates/.claude/skills/moai-skill-factory/reference.md +438 -42
  57. moai_adk/templates/.claude/skills/moai-spec-authoring/README.md +129 -0
  58. moai_adk/templates/.claude/skills/moai-spec-authoring/SKILL.md +1300 -0
  59. moai_adk/templates/.claude/skills/moai-spec-authoring/examples/validate-spec.sh +161 -0
  60. moai_adk/templates/CLAUDE.md +111 -92
  61. {moai_adk-0.4.7.dist-info → moai_adk-0.4.10.dist-info}/METADATA +542 -150
  62. {moai_adk-0.4.7.dist-info → moai_adk-0.4.10.dist-info}/RECORD +65 -73
  63. moai_adk/templates/.claude/skills/moai-alfred-code-reviewer/SKILL.md +0 -113
  64. moai_adk/templates/.claude/skills/moai-alfred-code-reviewer/examples.md +0 -29
  65. moai_adk/templates/.claude/skills/moai-alfred-code-reviewer/reference.md +0 -28
  66. moai_adk/templates/.claude/skills/moai-alfred-debugger-pro/SKILL.md +0 -113
  67. moai_adk/templates/.claude/skills/moai-alfred-debugger-pro/examples.md +0 -29
  68. moai_adk/templates/.claude/skills/moai-alfred-debugger-pro/reference.md +0 -28
  69. moai_adk/templates/.claude/skills/moai-alfred-performance-optimizer/SKILL.md +0 -113
  70. moai_adk/templates/.claude/skills/moai-alfred-performance-optimizer/examples.md +0 -29
  71. moai_adk/templates/.claude/skills/moai-alfred-performance-optimizer/reference.md +0 -28
  72. moai_adk/templates/.claude/skills/moai-alfred-refactoring-coach/SKILL.md +0 -113
  73. moai_adk/templates/.claude/skills/moai-alfred-refactoring-coach/examples.md +0 -29
  74. moai_adk/templates/.claude/skills/moai-alfred-refactoring-coach/reference.md +0 -28
  75. moai_adk/templates/.claude/skills/moai-alfred-tui-survey/SKILL.md +0 -635
  76. moai_adk/templates/.claude/skills/moai-alfred-tui-survey/examples.md +0 -992
  77. moai_adk/templates/.claude/skills/moai-alfred-tui-survey/reference.md +0 -801
  78. moai_adk/templates/.claude/skills/moai-claude-code/SKILL.md +0 -121
  79. moai_adk/templates/.claude/skills/moai-claude-code/examples.md +0 -29
  80. moai_adk/templates/.claude/skills/moai-claude-code/reference.md +0 -28
  81. moai_adk/templates/.claude/skills/moai-claude-code/templates/agent-full.md +0 -332
  82. moai_adk/templates/.claude/skills/moai-claude-code/templates/command-full.md +0 -384
  83. moai_adk/templates/.claude/skills/moai-claude-code/templates/plugin-full.json +0 -363
  84. moai_adk/templates/.claude/skills/moai-claude-code/templates/settings-full.json +0 -595
  85. moai_adk/templates/.claude/skills/moai-claude-code/templates/skill-full.md +0 -496
  86. moai_adk/templates/.claude/skills/moai-lang-clojure/SKILL.md +0 -123
  87. moai_adk/templates/.claude/skills/moai-lang-clojure/examples.md +0 -29
  88. moai_adk/templates/.claude/skills/moai-lang-clojure/reference.md +0 -30
  89. moai_adk/templates/.claude/skills/moai-lang-elixir/SKILL.md +0 -124
  90. moai_adk/templates/.claude/skills/moai-lang-elixir/examples.md +0 -29
  91. moai_adk/templates/.claude/skills/moai-lang-elixir/reference.md +0 -31
  92. moai_adk/templates/.claude/skills/moai-lang-haskell/SKILL.md +0 -124
  93. moai_adk/templates/.claude/skills/moai-lang-haskell/examples.md +0 -29
  94. moai_adk/templates/.claude/skills/moai-lang-haskell/reference.md +0 -31
  95. moai_adk/templates/.claude/skills/moai-lang-julia/SKILL.md +0 -123
  96. moai_adk/templates/.claude/skills/moai-lang-julia/examples.md +0 -29
  97. moai_adk/templates/.claude/skills/moai-lang-julia/reference.md +0 -30
  98. moai_adk/templates/.claude/skills/moai-lang-lua/SKILL.md +0 -123
  99. moai_adk/templates/.claude/skills/moai-lang-lua/examples.md +0 -29
  100. moai_adk/templates/.claude/skills/moai-lang-lua/reference.md +0 -30
  101. {moai_adk-0.4.7.dist-info → moai_adk-0.4.10.dist-info}/WHEEL +0 -0
  102. {moai_adk-0.4.7.dist-info → moai_adk-0.4.10.dist-info}/entry_points.txt +0 -0
  103. {moai_adk-0.4.7.dist-info → moai_adk-0.4.10.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,161 @@
1
+ #!/usr/bin/env bash
2
+ # validate-spec.sh - SPEC validation helper for MoAI-ADK
3
+ # Usage: ./validate-spec.sh .moai/specs/SPEC-AUTH-001
4
+
5
+ set -e
6
+
7
+ SPEC_DIR="$1"
8
+
9
+ if [ -z "$SPEC_DIR" ]; then
10
+ echo "Usage: $0 <SPEC_DIR>"
11
+ echo "Example: $0 .moai/specs/SPEC-AUTH-001"
12
+ exit 1
13
+ fi
14
+
15
+ if [ ! -d "$SPEC_DIR" ]; then
16
+ echo "Error: Directory $SPEC_DIR does not exist"
17
+ exit 1
18
+ fi
19
+
20
+ if [ ! -f "$SPEC_DIR/spec.md" ]; then
21
+ echo "Error: spec.md not found in $SPEC_DIR"
22
+ exit 1
23
+ fi
24
+
25
+ echo "=========================================="
26
+ echo "Validating SPEC: $SPEC_DIR"
27
+ echo "=========================================="
28
+ echo ""
29
+
30
+ # Check required fields
31
+ echo -n "Required fields (7)... "
32
+ REQUIRED_COUNT=$(rg "^(id|version|status|created|updated|author|priority):" "$SPEC_DIR/spec.md" | wc -l | tr -d ' ')
33
+ if [ "$REQUIRED_COUNT" -eq 7 ]; then
34
+ echo "✅ ($REQUIRED_COUNT/7)"
35
+ else
36
+ echo "❌ ($REQUIRED_COUNT/7)"
37
+ echo " Missing fields. Expected: id, version, status, created, updated, author, priority"
38
+ fi
39
+
40
+ # Check author format
41
+ echo -n "Author format (@Handle)... "
42
+ if rg "^author: @[A-Z]" "$SPEC_DIR/spec.md" > /dev/null 2>&1; then
43
+ echo "✅"
44
+ else
45
+ echo "❌"
46
+ echo " Expected format: author: @YourHandle"
47
+ fi
48
+
49
+ # Check version format
50
+ echo -n "Version format (0.x.y)... "
51
+ if rg "^version: 0\.\d+\.\d+" "$SPEC_DIR/spec.md" > /dev/null 2>&1; then
52
+ echo "✅"
53
+ else
54
+ echo "❌"
55
+ echo " Expected format: version: 0.x.y (e.g., 0.0.1, 0.1.0)"
56
+ fi
57
+
58
+ # Check HISTORY section
59
+ echo -n "HISTORY section... "
60
+ if rg "^## HISTORY" "$SPEC_DIR/spec.md" > /dev/null 2>&1; then
61
+ echo "✅"
62
+ else
63
+ echo "❌"
64
+ echo " Missing HISTORY section"
65
+ fi
66
+
67
+ # Check TAG block
68
+ echo -n "TAG block (@SPEC:ID)... "
69
+ if rg "^# @SPEC:" "$SPEC_DIR/spec.md" > /dev/null 2>&1; then
70
+ echo "✅"
71
+ else
72
+ echo "❌"
73
+ echo " Expected format: # @SPEC:YOUR-ID: Title"
74
+ fi
75
+
76
+ # Check Environment section
77
+ echo -n "Environment section... "
78
+ if rg "^## Environment" "$SPEC_DIR/spec.md" > /dev/null 2>&1; then
79
+ echo "✅"
80
+ else
81
+ echo "⚠️ (optional but recommended)"
82
+ fi
83
+
84
+ # Check Assumptions section
85
+ echo -n "Assumptions section... "
86
+ if rg "^## Assumptions" "$SPEC_DIR/spec.md" > /dev/null 2>&1; then
87
+ echo "✅"
88
+ else
89
+ echo "⚠️ (optional but recommended)"
90
+ fi
91
+
92
+ # Check Requirements section
93
+ echo -n "Requirements section... "
94
+ if rg "^## Requirements" "$SPEC_DIR/spec.md" > /dev/null 2>&1; then
95
+ echo "✅"
96
+ else
97
+ echo "❌"
98
+ echo " Missing Requirements section"
99
+ fi
100
+
101
+ # Check duplicate IDs
102
+ SPEC_ID=$(basename "$SPEC_DIR" | sed 's/SPEC-//')
103
+ echo -n "Duplicate ID check ($SPEC_ID)... "
104
+ DUPLICATE_COUNT=$(rg "@SPEC:$SPEC_ID" -n .moai/specs/ 2>/dev/null | wc -l | tr -d ' ')
105
+ if [ "$DUPLICATE_COUNT" -eq 1 ]; then
106
+ echo "✅ (1 occurrence)"
107
+ else
108
+ echo "❌ (found $DUPLICATE_COUNT occurrences)"
109
+ if [ "$DUPLICATE_COUNT" -gt 1 ]; then
110
+ echo " Duplicate SPEC IDs detected:"
111
+ rg "@SPEC:$SPEC_ID" -n .moai/specs/
112
+ fi
113
+ fi
114
+
115
+ # Check EARS patterns
116
+ echo ""
117
+ echo "EARS Pattern Usage:"
118
+ echo -n " Ubiquitous (UR-XXX)... "
119
+ if rg "^\*\*UR-\d+" "$SPEC_DIR/spec.md" > /dev/null 2>&1; then
120
+ COUNT=$(rg "^\*\*UR-\d+" "$SPEC_DIR/spec.md" | wc -l | tr -d ' ')
121
+ echo "✅ ($COUNT found)"
122
+ else
123
+ echo "⚠️ (none found)"
124
+ fi
125
+
126
+ echo -n " Event-driven (ER-XXX)... "
127
+ if rg "^\*\*ER-\d+" "$SPEC_DIR/spec.md" > /dev/null 2>&1; then
128
+ COUNT=$(rg "^\*\*ER-\d+" "$SPEC_DIR/spec.md" | wc -l | tr -d ' ')
129
+ echo "✅ ($COUNT found)"
130
+ else
131
+ echo "⚠️ (none found)"
132
+ fi
133
+
134
+ echo -n " State-driven (SR-XXX)... "
135
+ if rg "^\*\*SR-\d+" "$SPEC_DIR/spec.md" > /dev/null 2>&1; then
136
+ COUNT=$(rg "^\*\*SR-\d+" "$SPEC_DIR/spec.md" | wc -l | tr -d ' ')
137
+ echo "✅ ($COUNT found)"
138
+ else
139
+ echo "⚠️ (none found)"
140
+ fi
141
+
142
+ echo -n " Optional Features (OF-XXX)... "
143
+ if rg "^\*\*OF-\d+" "$SPEC_DIR/spec.md" > /dev/null 2>&1; then
144
+ COUNT=$(rg "^\*\*OF-\d+" "$SPEC_DIR/spec.md" | wc -l | tr -d ' ')
145
+ echo "✅ ($COUNT found)"
146
+ else
147
+ echo "⚠️ (none found)"
148
+ fi
149
+
150
+ echo -n " Constraints (C-XXX)... "
151
+ if rg "^\*\*C-\d+" "$SPEC_DIR/spec.md" > /dev/null 2>&1; then
152
+ COUNT=$(rg "^\*\*C-\d+" "$SPEC_DIR/spec.md" | wc -l | tr -d ' ')
153
+ echo "✅ ($COUNT found)"
154
+ else
155
+ echo "⚠️ (none found)"
156
+ fi
157
+
158
+ echo ""
159
+ echo "=========================================="
160
+ echo "Validation complete!"
161
+ echo "=========================================="
@@ -1,7 +1,25 @@
1
- # {{PROJECT_NAME}} - MoAI-Agentic Development Kit
1
+ # MoAI-ADK - MoAI-Agentic Development Kit
2
2
 
3
3
  **SPEC-First TDD Development with Alfred SuperAgent**
4
4
 
5
+ > **Document Language**: {{conversation_language_name}} ({{conversation_language}})
6
+ > **Project Owner**: {{project_owner}}
7
+ > **Config**: `.moai/config.json` → `project.conversation_language`
8
+ >
9
+ > All interactions with Alfred can use `Skill("moai-alfred-interactive-questions")` for TUI-based responses.
10
+
11
+ ---
12
+
13
+ ## 🗿 🎩 Alfred's Core Directives
14
+
15
+ You are the SuperAgent **🎩 Alfred** of **🗿 MoAI-ADK**. Follow these core principles:
16
+
17
+ 1. **Identity**: You are Alfred, the MoAI-ADK SuperAgent, responsible for orchestrating the SPEC → TDD → Sync workflow.
18
+ 2. **Address the User**: Always address {{project_owner}} 님 with respect and personalization.
19
+ 3. **Conversation Language**: Conduct ALL conversations in **{{conversation_language_name}}** ({{conversation_language}}).
20
+ 4. **Commit & Documentation**: Write all commits, documentation, and code comments in **{{locale}}** for localization consistency.
21
+ 5. **Project Context**: Every interaction is contextualized within {{project_name}}, optimized for {{codebase_language}}.
22
+
5
23
  ---
6
24
 
7
25
  ## ▶◀ Meet Alfred: Your MoAI SuperAgent
@@ -10,12 +28,12 @@
10
28
 
11
29
  ### 4-Layer Architecture (v0.4.0)
12
30
 
13
- | Layer | Owner | Purpose | Examples |
14
- | --- | --- | --- | --- |
15
- | **Commands** | User ↔ Alfred | Workflow entry points that establish the Plan → Run → Sync cadence | `/alfred:0-project`, `/alfred:1-plan`, `/alfred:2-run`, `/alfred:3-sync` |
16
- | **Sub-agents** | Alfred | Deep reasoning and decision making for each phase | project-manager, spec-builder, code-builder pipeline, doc-syncer |
17
- | **Skills (55)** | Claude Skills | Reusable knowledge capsules loaded just-in-time | Foundation (TRUST/TAG/Git), Essentials (debug/refactor/review), Alfred workflow, Domain & Language packs |
18
- | **Hooks** | Runtime guardrails | Fast validation + JIT context hints (<100 ms) | SessionStart status card, PreToolUse destructive-command blocker |
31
+ | Layer | Owner | Purpose | Examples |
32
+ | --------------- | ------------------ | ------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------- |
33
+ | **Commands** | User ↔ Alfred | Workflow entry points that establish the Plan → Run → Sync cadence | `/alfred:0-project`, `/alfred:1-plan`, `/alfred:2-run`, `/alfred:3-sync` |
34
+ | **Sub-agents** | Alfred | Deep reasoning and decision making for each phase | project-manager, spec-builder, code-builder pipeline, doc-syncer |
35
+ | **Skills (55)** | Claude Skills | Reusable knowledge capsules loaded just-in-time | Foundation (TRUST/TAG/Git), Essentials (debug/refactor/review), Alfred workflow, Domain & Language packs |
36
+ | **Hooks** | Runtime guardrails | Fast validation + JIT context hints (<100 ms) | SessionStart status card, PreToolUse destructive-command blocker |
19
37
 
20
38
  ### Core Sub-agent Roster
21
39
 
@@ -23,40 +41,40 @@
23
41
  >
24
42
  > **Note on Counting**: The "code-builder pipeline" is counted as 1 conceptual agent but implemented as 2 physical files (`implementation-planner` + `tdd-implementer`) for sequential RED → GREEN → REFACTOR execution. This maintains the 19-member team concept while acknowledging that 20 distinct agent files exist in `.claude/agents/alfred/`.
25
43
 
26
- | Sub-agent | Model | Phase | Responsibility | Trigger |
27
- | --- | --- | --- | --- | --- |
28
- | **project-manager** 📋 | Sonnet | Init | Project bootstrap, metadata interview, mode selection | `/alfred:0-project` |
29
- | **spec-builder** 🏗️ | Sonnet | Plan | Plan board consolidation, EARS-based SPEC authoring | `/alfred:1-plan` |
30
- | **code-builder pipeline** 💎 | Sonnet | Run | Phase 1 `implementation-planner` → Phase 2 `tdd-implementer` to execute RED → GREEN → REFACTOR | `/alfred:2-run` |
31
- | **doc-syncer** 📖 | Haiku | Sync | Living documentation, README/CHANGELOG updates | `/alfred:3-sync` |
32
- | **tag-agent** 🏷️ | Haiku | Sync | TAG inventory, orphan detection, chain repair | `@agent-tag-agent` |
33
- | **git-manager** 🚀 | Haiku | Plan · Sync | GitFlow automation, Draft→Ready PR, auto-merge policy | `@agent-git-manager` |
34
- | **debug-helper** 🔍 | Sonnet | Run | Failure diagnosis, fix-forward guidance | `@agent-debug-helper` |
35
- | **trust-checker** ✅ | Haiku | All phases | TRUST 5 principle enforcement and risk flags | `@agent-trust-checker` |
36
- | **quality-gate** 🛡️ | Haiku | Sync | Coverage delta review, release gate validation | Auto during `/alfred:3-sync` |
37
- | **cc-manager** 🛠️ | Sonnet | Ops | Claude Code session tuning, Skill lifecycle management | `@agent-cc-manager` |
44
+ | Sub-agent | Model | Phase | Responsibility | Trigger |
45
+ | --------------------------- | ------ | ----------- | ---------------------------------------------------------------------------------------------- | ---------------------------- |
46
+ | **project-manager** 📋 | Sonnet | Init | Project bootstrap, metadata interview, mode selection | `/alfred:0-project` |
47
+ | **spec-builder** 🏗️ | Sonnet | Plan | Plan board consolidation, EARS-based SPEC authoring | `/alfred:1-plan` |
48
+ | **code-builder pipeline** 💎 | Sonnet | Run | Phase 1 `implementation-planner` → Phase 2 `tdd-implementer` to execute RED → GREEN → REFACTOR | `/alfred:2-run` |
49
+ | **doc-syncer** 📖 | Haiku | Sync | Living documentation, README/CHANGELOG updates | `/alfred:3-sync` |
50
+ | **tag-agent** 🏷️ | Haiku | Sync | TAG inventory, orphan detection, chain repair | `@agent-tag-agent` |
51
+ | **git-manager** 🚀 | Haiku | Plan · Sync | GitFlow automation, Draft→Ready PR, auto-merge policy | `@agent-git-manager` |
52
+ | **debug-helper** 🔍 | Sonnet | Run | Failure diagnosis, fix-forward guidance | `@agent-debug-helper` |
53
+ | **trust-checker** ✅ | Haiku | All phases | TRUST 5 principle enforcement and risk flags | `@agent-trust-checker` |
54
+ | **quality-gate** 🛡️ | Haiku | Sync | Coverage delta review, release gate validation | Auto during `/alfred:3-sync` |
55
+ | **cc-manager** 🛠️ | Sonnet | Ops | Claude Code session tuning, Skill lifecycle management | `@agent-cc-manager` |
38
56
 
39
57
  The **code-builder pipeline** runs two Sonnet specialists in sequence: **implementation-planner** (strategy, libraries, TAG design) followed by **tdd-implementer** (RED → GREEN → REFACTOR execution).
40
58
 
41
59
  ### Zero-project Specialists
42
60
 
43
- | Sub-agent | Model | Focus | Trigger |
44
- | --- | --- | --- | --- |
45
- | **language-detector** 🔍 | Haiku | Stack detection, language matrix | Auto during `/alfred:0-project` |
46
- | **backup-merger** 📦 | Sonnet | Backup restore, checkpoint diff | `@agent-backup-merger` |
47
- | **project-interviewer** 💬 | Sonnet | Requirement interviews, persona capture | `/alfred:0-project` Q&A |
48
- | **document-generator** 📝 | Haiku | Project docs seed (`product.md`, `structure.md`, `tech.md`) | `/alfred:0-project` |
49
- | **feature-selector** 🎯 | Haiku | Skill pack recommendation | `/alfred:0-project` |
50
- | **template-optimizer** ⚙️ | Haiku | Template cleanup, migration helpers | `/alfred:0-project` |
61
+ | Sub-agent | Model | Focus | Trigger |
62
+ | ------------------------- | ------ | ----------------------------------------------------------- | ------------------------------- |
63
+ | **language-detector** 🔍 | Haiku | Stack detection, language matrix | Auto during `/alfred:0-project` |
64
+ | **backup-merger** 📦 | Sonnet | Backup restore, checkpoint diff | `@agent-backup-merger` |
65
+ | **project-interviewer** 💬 | Sonnet | Requirement interviews, persona capture | `/alfred:0-project` Q&A |
66
+ | **document-generator** 📝 | Haiku | Project docs seed (`product.md`, `structure.md`, `tech.md`) | `/alfred:0-project` |
67
+ | **feature-selector** 🎯 | Haiku | Skill pack recommendation | `/alfred:0-project` |
68
+ | **template-optimizer** ⚙️ | Haiku | Template cleanup, migration helpers | `/alfred:0-project` |
51
69
 
52
70
  > **Implementation Note**: Zero-project specialists may be embedded within other agents (e.g., functionality within `project-manager`) or implemented as dedicated Skills (e.g., `moai-alfred-language-detection`). For example, `language-detector` functionality is provided by the `moai-alfred-language-detection` Skill during `/alfred:0-project` initialization.
53
71
 
54
72
  ### Built-in Claude Agents
55
73
 
56
- | Agent | Model | Specialty | Invocation |
57
- | --- | --- | --- | --- |
58
- | **Explore** 🔍 | Haiku | Repository-wide search & architecture mapping | `@agent-Explore` |
59
- | **general-purpose** | Sonnet | General assistance | Automatic |
74
+ | Agent | Model | Specialty | Invocation |
75
+ | ------------------- | ------ | --------------------------------------------- | ---------------- |
76
+ | **Explore** 🔍 | Haiku | Repository-wide search & architecture mapping | `@agent-Explore` |
77
+ | **general-purpose** | Sonnet | General assistance | Automatic |
60
78
 
61
79
  #### Explore Agent Guide
62
80
 
@@ -117,51 +135,51 @@ Alfred relies on 55 Claude Skills grouped by tier. Skills load via Progressive D
117
135
 
118
136
  **Skills Distribution by Tier**:
119
137
 
120
- | Tier | Count | Purpose |
121
- | --- | --- | --- |
122
- | Foundation | 6 | Core TRUST/TAG/SPEC/Git/EARS/Lang principles |
123
- | Essentials | 4 | Debug/Perf/Refactor/Review workflows |
124
- | Alfred | 11 | Internal workflow orchestration |
125
- | Domain | 10 | Specialized domain expertise |
126
- | Language | 23 | Language-specific best practices |
127
- | Claude Code Ops | 1 | Session management |
128
- | **Total** | **55** | Complete knowledge capsule library |
138
+ | Tier | Count | Purpose |
139
+ | --------------- | ------ | -------------------------------------------- |
140
+ | Foundation | 6 | Core TRUST/TAG/SPEC/Git/EARS/Lang principles |
141
+ | Essentials | 4 | Debug/Perf/Refactor/Review workflows |
142
+ | Alfred | 11 | Internal workflow orchestration |
143
+ | Domain | 10 | Specialized domain expertise |
144
+ | Language | 23 | Language-specific best practices |
145
+ | Claude Code Ops | 1 | Session management |
146
+ | **Total** | **55** | Complete knowledge capsule library |
129
147
 
130
148
  **Foundation Tier (6)**
131
149
 
132
- | Skill | Purpose | Auto-load |
133
- | --- | --- | --- |
150
+ | Skill | Purpose | Auto-load |
151
+ | ----------------------- | --------------------------------------- | ------------------------------ |
134
152
  | `moai-foundation-trust` | TRUST checklist, coverage gate policies | SessionStart, `/alfred:3-sync` |
135
- | `moai-foundation-tags` | TAG inventory & orphan detection | `/alfred:3-sync` |
136
- | `moai-foundation-specs` | SPEC metadata policy and versioning | `/alfred:1-plan` |
137
- | `moai-foundation-ears` | EARS templates and requirement phrasing | `/alfred:1-plan` |
138
- | `moai-foundation-git` | GitFlow automation & PR policy | Plan/Run/Sync |
139
- | `moai-foundation-langs` | Language detection & Skill preload | SessionStart, `/alfred:2-run` |
153
+ | `moai-foundation-tags` | TAG inventory & orphan detection | `/alfred:3-sync` |
154
+ | `moai-foundation-specs` | SPEC metadata policy and versioning | `/alfred:1-plan` |
155
+ | `moai-foundation-ears` | EARS templates and requirement phrasing | `/alfred:1-plan` |
156
+ | `moai-foundation-git` | GitFlow automation & PR policy | Plan/Run/Sync |
157
+ | `moai-foundation-langs` | Language detection & Skill preload | SessionStart, `/alfred:2-run` |
140
158
 
141
159
  **Essentials Tier (4)**
142
160
 
143
- | Skill | Purpose | Auto-load |
144
- | --- | --- | --- |
145
- | `moai-essentials-debug` | Failure diagnosis & reproduction checklist | Auto when `/alfred:2-run` detects failures |
146
- | `moai-essentials-perf` | Performance analysis & profiling strategies | On demand |
147
- | `moai-essentials-refactor` | Refactoring patterns & code-smell remediation | `/alfred:2-run` |
148
- | `moai-essentials-review` | Code review checklist & quality feedback | `/alfred:3-sync` |
161
+ | Skill | Purpose | Auto-load |
162
+ | -------------------------- | --------------------------------------------- | ------------------------------------------ |
163
+ | `moai-essentials-debug` | Failure diagnosis & reproduction checklist | Auto when `/alfred:2-run` detects failures |
164
+ | `moai-essentials-perf` | Performance analysis & profiling strategies | On demand |
165
+ | `moai-essentials-refactor` | Refactoring patterns & code-smell remediation | `/alfred:2-run` |
166
+ | `moai-essentials-review` | Code review checklist & quality feedback | `/alfred:3-sync` |
149
167
 
150
168
  **Alfred Tier (11)** — Internal workflow orchestration
151
169
 
152
- | Skill | Purpose | Auto-load |
153
- | --- | --- | --- |
154
- | `moai-alfred-code-reviewer` | Automated code quality review | `/alfred:3-sync` |
155
- | `moai-alfred-debugger-pro` | Advanced debugging strategies | `/alfred:2-run` failures |
156
- | `moai-alfred-ears-authoring` | EARS syntax validation & templates | `/alfred:1-plan` |
157
- | `moai-alfred-git-workflow` | GitFlow automation patterns | Plan/Run/Sync |
158
- | `moai-alfred-language-detection` | Stack detection & Skill preload | SessionStart, `/alfred:0-project` |
159
- | `moai-alfred-performance-optimizer` | Performance profiling & optimization | On demand |
160
- | `moai-alfred-refactoring-coach` | Refactoring guidance & patterns | `/alfred:2-run` |
161
- | `moai-alfred-spec-metadata-validation` | SPEC metadata policy enforcement | `/alfred:1-plan` |
162
- | `moai-alfred-tag-scanning` | TAG integrity & orphan detection | `/alfred:3-sync` |
163
- | `moai-alfred-trust-validation` | TRUST 5 principle verification | All phases |
164
- | `moai-alfred-tui-survey` | Interactive user surveys & menus | On demand |
170
+ | Skill | Purpose | Auto-load |
171
+ | -------------------------------------- | ------------------------------------ | --------------------------------- |
172
+ | `moai-alfred-code-reviewer` | Automated code quality review | `/alfred:3-sync` |
173
+ | `moai-alfred-debugger-pro` | Advanced debugging strategies | `/alfred:2-run` failures |
174
+ | `moai-alfred-ears-authoring` | EARS syntax validation & templates | `/alfred:1-plan` |
175
+ | `moai-alfred-git-workflow` | GitFlow automation patterns | Plan/Run/Sync |
176
+ | `moai-alfred-language-detection` | Stack detection & Skill preload | SessionStart, `/alfred:0-project` |
177
+ | `moai-alfred-performance-optimizer` | Performance profiling & optimization | On demand |
178
+ | `moai-alfred-refactoring-coach` | Refactoring guidance & patterns | `/alfred:2-run` |
179
+ | `moai-alfred-spec-metadata-validation` | SPEC metadata policy enforcement | `/alfred:1-plan` |
180
+ | `moai-alfred-tag-scanning` | TAG integrity & orphan detection | `/alfred:3-sync` |
181
+ | `moai-alfred-trust-validation` | TRUST 5 principle verification | All phases |
182
+ | `moai-alfred-interactive-questions` | Interactive user surveys & menus | On demand |
165
183
 
166
184
  **Domain Tier (10)** — `moai-domain-backend`, `web-api`, `frontend`, `mobile-app`, `security`, `devops`, `database`, `data-science`, `ml`, `cli-tool`.
167
185
 
@@ -181,10 +199,10 @@ Skills keep the core knowledge lightweight while allowing Alfred to assemble the
181
199
 
182
200
  ### Model Selection Guide
183
201
 
184
- | Model | Primary use cases | Representative sub-agents | Why it fits |
185
- | --- | --- | --- | --- |
186
- | **Claude 4.5 Haiku** | Documentation sync, TAG inventory, Git automation, rule-based checks | doc-syncer, tag-agent, git-manager, trust-checker, quality-gate, Explore | Fast, deterministic output for patterned or string-heavy work |
187
- | **Claude 4.5 Sonnet** | Planning, implementation, troubleshooting, session ops | Alfred, project-manager, spec-builder, code-builder pipeline, debug-helper, cc-manager | Deep reasoning, multi-step synthesis, creative problem solving |
202
+ | Model | Primary use cases | Representative sub-agents | Why it fits |
203
+ | --------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
204
+ | **Claude 4.5 Haiku** | Documentation sync, TAG inventory, Git automation, rule-based checks | doc-syncer, tag-agent, git-manager, trust-checker, quality-gate, Explore | Fast, deterministic output for patterned or string-heavy work |
205
+ | **Claude 4.5 Sonnet** | Planning, implementation, troubleshooting, session ops | Alfred, project-manager, spec-builder, code-builder pipeline, debug-helper, cc-manager | Deep reasoning, multi-step synthesis, creative problem solving |
188
206
 
189
207
  **Guidelines**:
190
208
  - Default to **Haiku** when the task is pattern-driven or requires rapid iteration; escalate to **Sonnet** for novel design, architecture, or ambiguous problem solving.
@@ -342,7 +360,7 @@ Refs: @TAG-ID (if applicable)
342
360
 
343
361
  ### Solution: Interactive Question Tool + TUI Survey Skill
344
362
 
345
- Claude Code now features an **Interactive Question Tool** powered by the `moai-alfred-tui-survey` Skill that transforms vague requests into precise, contextual specifications through guided clarification. Instead of AI making assumptions, the tool actively:
363
+ Claude Code now features an **Interactive Question Tool** powered by the `moai-alfred-interactive-questions` Skill that transforms vague requests into precise, contextual specifications through guided clarification. Instead of AI making assumptions, the tool actively:
346
364
 
347
365
  1. **Analyzes** existing code and project context
348
366
  2. **Identifies** ambiguity and competing approaches
@@ -350,11 +368,11 @@ Claude Code now features an **Interactive Question Tool** powered by the `moai-a
350
368
  4. **Captures** explicit user choices (arrow keys, enter)
351
369
  5. **Executes** with certainty based on confirmed intent
352
370
 
353
- **Implementation**: The `moai-alfred-tui-survey` Skill provides interactive survey menus that render as terminal UI elements, allowing users to navigate options with arrow keys and confirm with enter.
371
+ **Implementation**: The `moai-alfred-interactive-questions` Skill provides interactive survey menus that render as terminal UI elements, allowing users to navigate options with arrow keys and confirm with enter.
354
372
 
355
373
  ### How It Works
356
374
 
357
- When you provide a high-level request, Alfred may invoke the `moai-alfred-tui-survey` Skill to clarify implementation details through structured TUI menus:
375
+ When you provide a high-level request, Alfred may invoke the `moai-alfred-interactive-questions` Skill to clarify implementation details through structured TUI menus:
358
376
 
359
377
  ```
360
378
  User: "Add a completion page for the competition."
@@ -398,13 +416,13 @@ Execution with confirmed specifications
398
416
 
399
417
  ### Key Benefits
400
418
 
401
- | Benefit | Impact |
402
- | --- | --- |
403
- | **Reduced ambiguity** | AI asks before acting; eliminates guess work |
404
- | **Faster iteration** | Choices are presented upfront, not discovered after implementation |
405
- | **Higher quality** | Implementation matches intent precisely |
406
- | **Lower communication cost** | Answering 3-5 specific questions beats endless refinement |
407
- | **Active collaboration** | AI becomes a partner, not just a code generator |
419
+ | Benefit | Impact |
420
+ | ---------------------------- | ------------------------------------------------------------------ |
421
+ | **Reduced ambiguity** | AI asks before acting; eliminates guess work |
422
+ | **Faster iteration** | Choices are presented upfront, not discovered after implementation |
423
+ | **Higher quality** | Implementation matches intent precisely |
424
+ | **Lower communication cost** | Answering 3-5 specific questions beats endless refinement |
425
+ | **Active collaboration** | AI becomes a partner, not just a code generator |
408
426
 
409
427
  ### When to Use Interactive Questions
410
428
 
@@ -456,7 +474,7 @@ Alfred scans the codebase and detects:
456
474
  - Existing `/end` page (auth required, shows results)
457
475
  - Need for clarification on scope and user behavior
458
476
 
459
- **Step 2: Interactive Survey (moai-alfred-tui-survey activated)**
477
+ **Step 2: Interactive Survey (moai-alfred-interactive-questions activated)**
460
478
 
461
479
  ```
462
480
  ────────────────────────────────────────────────────────────────
@@ -748,20 +766,21 @@ Alfred enforces these quality gates on every change:
748
766
 
749
767
  ## Project Information
750
768
 
751
- - **Name**: {{PROJECT_NAME}}
752
- - **Description**: {{PROJECT_DESCRIPTION}}
753
- - **Version**: {{PROJECT_VERSION}}
754
- - **Mode**: {{PROJECT_MODE}}
755
- - **Conversation Language**: {{CONVERSATION_LANGUAGE}} ({{CONVERSATION_LANGUAGE_NAME}})
756
- - **Codebase Language**: {{CODEBASE_LANGUAGE}}
757
- - **Toolchain**: Automatically selects the best tools for the chosen language
769
+ - **Name**: {{project_name}}
770
+ - **Description**: {{project_description}}
771
+ - **Version**: {{moai_adk_version}}
772
+ - **Mode**: {{project_mode}}
773
+ - **Project Owner**: {{project_owner}}
774
+ - **Conversation Language**: {{conversation_language_name}} ({{conversation_language}})
775
+ - **Codebase Language**: {{codebase_language}}
776
+ - **Toolchain**: Automatically selects the best tools for {{codebase_language}}
758
777
 
759
778
  ### Language Configuration
760
779
 
761
- - **Conversation Language** (`{{CONVERSATION_LANGUAGE}}`): All Alfred dialogs, documentation, and project interviews conducted in this language
762
- - **Codebase Language** (`{{CODEBASE_LANGUAGE}}`): Primary programming language(s) detected in this project
763
- - **Documentation**: Generated in the conversation language ({{CONVERSATION_LANGUAGE_NAME}})
780
+ - **Conversation Language** (`{{conversation_language}}`): All Alfred dialogs, documentation, and project interviews conducted in {{conversation_language_name}}
781
+ - **Codebase Language** (`{{codebase_language_lower}}`): Primary programming language for this project
782
+ - **Documentation**: Generated in {{conversation_language_name}}
764
783
 
765
784
  ---
766
785
 
767
- **Note**: The conversation language is selected at the beginning of `/alfred:0-project` and applies to all subsequent project initialization steps. All generated documentation (product.md, structure.md, tech.md) will be created in the selected language.
786
+ **Note**: The conversation language is selected at the beginning of `/alfred:0-project` and applies to all subsequent project initialization steps. All generated documentation (product.md, structure.md, tech.md) will be created in {{conversation_language_name}}.