moai-adk 0.4.5__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 (229) hide show
  1. moai_adk/__init__.py +1 -1
  2. moai_adk/core/project/initializer.py +12 -5
  3. moai_adk/templates/.claude/agents/alfred/cc-manager.md +188 -954
  4. moai_adk/templates/.claude/agents/alfred/debug-helper.md +4 -5
  5. moai_adk/templates/.claude/agents/alfred/doc-syncer.md +2 -2
  6. moai_adk/templates/.claude/agents/alfred/git-manager.md +2 -2
  7. moai_adk/templates/.claude/agents/alfred/implementation-planner.md +3 -3
  8. moai_adk/templates/.claude/agents/alfred/project-manager.md +6 -6
  9. moai_adk/templates/.claude/agents/alfred/quality-gate.md +4 -6
  10. moai_adk/templates/.claude/agents/alfred/skill-factory.md +829 -0
  11. moai_adk/templates/.claude/agents/alfred/spec-builder.md +2 -2
  12. moai_adk/templates/.claude/agents/alfred/tag-agent.md +2 -2
  13. moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +3 -3
  14. moai_adk/templates/.claude/agents/alfred/trust-checker.md +5 -5
  15. moai_adk/templates/.claude/commands/alfred/0-project.md +98 -42
  16. moai_adk/templates/.claude/commands/alfred/1-plan.md +7 -7
  17. moai_adk/templates/.claude/commands/alfred/2-run.md +36 -36
  18. moai_adk/templates/.claude/commands/alfred/3-sync.md +10 -10
  19. moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +14 -1
  20. moai_adk/templates/.claude/hooks/alfred/core/__init__.py +115 -33
  21. moai_adk/templates/.claude/hooks/alfred/handlers/session.py +8 -9
  22. moai_adk/templates/.claude/hooks/alfred/handlers/tool.py +6 -6
  23. moai_adk/templates/.claude/hooks/alfred/handlers/user.py +5 -4
  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-ears-authoring/SKILL.md +76 -66
  29. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/examples.md +29 -0
  30. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/reference.md +28 -0
  31. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/SKILL.md +86 -59
  32. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/examples.md +29 -0
  33. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/reference.md +29 -0
  34. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/SKILL.md +480 -0
  35. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/examples.md +257 -0
  36. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/reference.md +120 -0
  37. moai_adk/templates/.claude/skills/moai-alfred-language-detection/SKILL.md +87 -73
  38. moai_adk/templates/.claude/skills/moai-alfred-language-detection/examples.md +29 -0
  39. moai_adk/templates/.claude/skills/moai-alfred-language-detection/reference.md +28 -0
  40. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/SKILL.md +78 -62
  41. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/examples.md +29 -0
  42. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/reference.md +28 -0
  43. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/SKILL.md +78 -55
  44. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/examples.md +29 -0
  45. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/reference.md +28 -0
  46. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/SKILL.md +78 -64
  47. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/examples.md +29 -0
  48. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/reference.md +28 -0
  49. moai_adk/templates/.claude/skills/moai-cc-agents/SKILL.md +249 -0
  50. moai_adk/templates/.claude/skills/moai-cc-agents/templates/agent-template.md +32 -0
  51. moai_adk/templates/.claude/skills/moai-cc-claude-md/SKILL.md +278 -0
  52. moai_adk/templates/.claude/skills/moai-cc-claude-md/templates/CLAUDE-template.md +26 -0
  53. moai_adk/templates/.claude/skills/moai-cc-commands/SKILL.md +287 -0
  54. moai_adk/templates/.claude/skills/moai-cc-commands/templates/command-template.md +21 -0
  55. moai_adk/templates/.claude/skills/moai-cc-hooks/SKILL.md +232 -0
  56. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/pre-bash-check.sh +19 -0
  57. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/preserve-permissions.sh +19 -0
  58. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/validate-bash-command.py +24 -0
  59. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/SKILL.md +179 -0
  60. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/templates/settings-mcp-template.json +39 -0
  61. moai_adk/templates/.claude/skills/moai-cc-memory/SKILL.md +296 -0
  62. moai_adk/templates/.claude/skills/moai-cc-memory/templates/session-summary-template.md +18 -0
  63. moai_adk/templates/.claude/skills/moai-cc-settings/SKILL.md +243 -0
  64. moai_adk/templates/.claude/skills/moai-cc-settings/templates/settings-complete-template.json +30 -0
  65. moai_adk/templates/.claude/skills/moai-cc-skills/SKILL.md +271 -0
  66. moai_adk/templates/.claude/skills/moai-cc-skills/templates/SKILL-template.md +15 -0
  67. moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +234 -43
  68. moai_adk/templates/.claude/skills/moai-domain-backend/examples.md +1633 -0
  69. moai_adk/templates/.claude/skills/moai-domain-backend/reference.md +660 -0
  70. moai_adk/templates/.claude/skills/moai-domain-cli-tool/SKILL.md +97 -69
  71. moai_adk/templates/.claude/skills/moai-domain-cli-tool/examples.md +29 -0
  72. moai_adk/templates/.claude/skills/moai-domain-cli-tool/reference.md +30 -0
  73. moai_adk/templates/.claude/skills/moai-domain-data-science/SKILL.md +97 -72
  74. moai_adk/templates/.claude/skills/moai-domain-data-science/examples.md +29 -0
  75. moai_adk/templates/.claude/skills/moai-domain-data-science/reference.md +30 -0
  76. moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +97 -74
  77. moai_adk/templates/.claude/skills/moai-domain-database/examples.md +29 -0
  78. moai_adk/templates/.claude/skills/moai-domain-database/reference.md +30 -0
  79. moai_adk/templates/.claude/skills/moai-domain-devops/SKILL.md +98 -74
  80. moai_adk/templates/.claude/skills/moai-domain-devops/examples.md +29 -0
  81. moai_adk/templates/.claude/skills/moai-domain-devops/reference.md +31 -0
  82. moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +98 -73
  83. moai_adk/templates/.claude/skills/moai-domain-frontend/examples.md +29 -0
  84. moai_adk/templates/.claude/skills/moai-domain-frontend/reference.md +31 -0
  85. moai_adk/templates/.claude/skills/moai-domain-ml/SKILL.md +97 -73
  86. moai_adk/templates/.claude/skills/moai-domain-ml/examples.md +29 -0
  87. moai_adk/templates/.claude/skills/moai-domain-ml/reference.md +30 -0
  88. moai_adk/templates/.claude/skills/moai-domain-mobile-app/SKILL.md +97 -67
  89. moai_adk/templates/.claude/skills/moai-domain-mobile-app/examples.md +29 -0
  90. moai_adk/templates/.claude/skills/moai-domain-mobile-app/reference.md +30 -0
  91. moai_adk/templates/.claude/skills/moai-domain-security/SKILL.md +97 -79
  92. moai_adk/templates/.claude/skills/moai-domain-security/examples.md +29 -0
  93. moai_adk/templates/.claude/skills/moai-domain-security/reference.md +30 -0
  94. moai_adk/templates/.claude/skills/moai-domain-web-api/SKILL.md +97 -71
  95. moai_adk/templates/.claude/skills/moai-domain-web-api/examples.md +29 -0
  96. moai_adk/templates/.claude/skills/moai-domain-web-api/reference.md +30 -0
  97. moai_adk/templates/.claude/skills/moai-essentials-debug/SKILL.md +656 -60
  98. moai_adk/templates/.claude/skills/moai-essentials-debug/examples.md +1107 -0
  99. moai_adk/templates/.claude/skills/moai-essentials-debug/reference.md +1533 -0
  100. moai_adk/templates/.claude/skills/moai-essentials-perf/SKILL.md +87 -78
  101. moai_adk/templates/.claude/skills/moai-essentials-perf/examples.md +29 -0
  102. moai_adk/templates/.claude/skills/moai-essentials-perf/reference.md +28 -0
  103. moai_adk/templates/.claude/skills/moai-essentials-refactor/SKILL.md +87 -70
  104. moai_adk/templates/.claude/skills/moai-essentials-refactor/examples.md +29 -0
  105. moai_adk/templates/.claude/skills/moai-essentials-refactor/reference.md +28 -0
  106. moai_adk/templates/.claude/skills/moai-essentials-review/SKILL.md +87 -86
  107. moai_adk/templates/.claude/skills/moai-essentials-review/examples.md +29 -0
  108. moai_adk/templates/.claude/skills/moai-essentials-review/reference.md +28 -0
  109. moai_adk/templates/.claude/skills/moai-foundation-ears/SKILL.md +77 -62
  110. moai_adk/templates/.claude/skills/moai-foundation-ears/examples.md +29 -0
  111. moai_adk/templates/.claude/skills/moai-foundation-ears/reference.md +28 -0
  112. moai_adk/templates/.claude/skills/moai-foundation-git/SKILL.md +88 -56
  113. moai_adk/templates/.claude/skills/moai-foundation-git/examples.md +29 -0
  114. moai_adk/templates/.claude/skills/moai-foundation-git/reference.md +29 -0
  115. moai_adk/templates/.claude/skills/moai-foundation-langs/SKILL.md +90 -71
  116. moai_adk/templates/.claude/skills/moai-foundation-langs/examples.md +29 -0
  117. moai_adk/templates/.claude/skills/moai-foundation-langs/reference.md +28 -0
  118. moai_adk/templates/.claude/skills/moai-foundation-specs/SKILL.md +78 -58
  119. moai_adk/templates/.claude/skills/moai-foundation-specs/examples.md +29 -0
  120. moai_adk/templates/.claude/skills/moai-foundation-specs/reference.md +28 -0
  121. moai_adk/templates/.claude/skills/moai-foundation-tags/SKILL.md +78 -51
  122. moai_adk/templates/.claude/skills/moai-foundation-tags/examples.md +29 -0
  123. moai_adk/templates/.claude/skills/moai-foundation-tags/reference.md +28 -0
  124. moai_adk/templates/.claude/skills/moai-foundation-trust/SKILL.md +253 -32
  125. moai_adk/templates/.claude/skills/moai-foundation-trust/examples.md +0 -0
  126. moai_adk/templates/.claude/skills/moai-foundation-trust/reference.md +1099 -0
  127. moai_adk/templates/.claude/skills/moai-lang-c/SKILL.md +98 -74
  128. moai_adk/templates/.claude/skills/moai-lang-c/examples.md +29 -0
  129. moai_adk/templates/.claude/skills/moai-lang-c/reference.md +31 -0
  130. moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +98 -76
  131. moai_adk/templates/.claude/skills/moai-lang-cpp/examples.md +29 -0
  132. moai_adk/templates/.claude/skills/moai-lang-cpp/reference.md +31 -0
  133. moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +97 -74
  134. moai_adk/templates/.claude/skills/moai-lang-csharp/examples.md +29 -0
  135. moai_adk/templates/.claude/skills/moai-lang-csharp/reference.md +30 -0
  136. moai_adk/templates/.claude/skills/moai-lang-dart/SKILL.md +86 -61
  137. moai_adk/templates/.claude/skills/moai-lang-dart/examples.md +29 -0
  138. moai_adk/templates/.claude/skills/moai-lang-dart/reference.md +30 -0
  139. moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +98 -74
  140. moai_adk/templates/.claude/skills/moai-lang-go/examples.md +29 -0
  141. moai_adk/templates/.claude/skills/moai-lang-go/reference.md +31 -0
  142. moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +87 -61
  143. moai_adk/templates/.claude/skills/moai-lang-java/examples.md +29 -0
  144. moai_adk/templates/.claude/skills/moai-lang-java/reference.md +31 -0
  145. moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +88 -59
  146. moai_adk/templates/.claude/skills/moai-lang-javascript/examples.md +29 -0
  147. moai_adk/templates/.claude/skills/moai-lang-javascript/reference.md +32 -0
  148. moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +98 -73
  149. moai_adk/templates/.claude/skills/moai-lang-kotlin/examples.md +29 -0
  150. moai_adk/templates/.claude/skills/moai-lang-kotlin/reference.md +31 -0
  151. moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +86 -61
  152. moai_adk/templates/.claude/skills/moai-lang-php/examples.md +29 -0
  153. moai_adk/templates/.claude/skills/moai-lang-php/reference.md +30 -0
  154. moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +388 -53
  155. moai_adk/templates/.claude/skills/moai-lang-python/examples.md +624 -0
  156. moai_adk/templates/.claude/skills/moai-lang-python/reference.md +316 -0
  157. moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +97 -73
  158. moai_adk/templates/.claude/skills/moai-lang-r/examples.md +29 -0
  159. moai_adk/templates/.claude/skills/moai-lang-r/reference.md +30 -0
  160. moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +98 -73
  161. moai_adk/templates/.claude/skills/moai-lang-ruby/examples.md +29 -0
  162. moai_adk/templates/.claude/skills/moai-lang-ruby/reference.md +31 -0
  163. moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +98 -74
  164. moai_adk/templates/.claude/skills/moai-lang-rust/examples.md +29 -0
  165. moai_adk/templates/.claude/skills/moai-lang-rust/reference.md +31 -0
  166. moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +97 -74
  167. moai_adk/templates/.claude/skills/moai-lang-scala/examples.md +29 -0
  168. moai_adk/templates/.claude/skills/moai-lang-scala/reference.md +30 -0
  169. moai_adk/templates/.claude/skills/moai-lang-shell/SKILL.md +97 -74
  170. moai_adk/templates/.claude/skills/moai-lang-shell/examples.md +29 -0
  171. moai_adk/templates/.claude/skills/moai-lang-shell/reference.md +30 -0
  172. moai_adk/templates/.claude/skills/moai-lang-sql/SKILL.md +98 -74
  173. moai_adk/templates/.claude/skills/moai-lang-sql/examples.md +29 -0
  174. moai_adk/templates/.claude/skills/moai-lang-sql/reference.md +31 -0
  175. moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +97 -73
  176. moai_adk/templates/.claude/skills/moai-lang-swift/examples.md +29 -0
  177. moai_adk/templates/.claude/skills/moai-lang-swift/reference.md +30 -0
  178. moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +90 -59
  179. moai_adk/templates/.claude/skills/moai-lang-typescript/examples.md +29 -0
  180. moai_adk/templates/.claude/skills/moai-lang-typescript/reference.md +34 -0
  181. moai_adk/templates/.claude/skills/moai-skill-factory/CHECKLIST.md +482 -0
  182. moai_adk/templates/.claude/skills/moai-skill-factory/EXAMPLES.md +278 -0
  183. moai_adk/templates/.claude/skills/moai-skill-factory/INTERACTIVE-DISCOVERY.md +524 -0
  184. moai_adk/templates/.claude/skills/moai-skill-factory/METADATA.md +477 -0
  185. moai_adk/templates/.claude/skills/moai-skill-factory/PARALLEL-ANALYSIS-REPORT.md +429 -0
  186. moai_adk/templates/.claude/skills/moai-skill-factory/PYTHON-VERSION-MATRIX.md +391 -0
  187. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL-FACTORY-WORKFLOW.md +431 -0
  188. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL-UPDATE-ADVISOR.md +577 -0
  189. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL.md +560 -0
  190. moai_adk/templates/.claude/skills/moai-skill-factory/STEP-BY-STEP-GUIDE.md +466 -0
  191. moai_adk/templates/.claude/skills/moai-skill-factory/STRUCTURE.md +583 -0
  192. moai_adk/templates/.claude/skills/moai-skill-factory/WEB-RESEARCH.md +526 -0
  193. moai_adk/templates/.claude/skills/moai-skill-factory/reference.md +465 -0
  194. moai_adk/templates/.claude/skills/moai-skill-factory/scripts/generate-structure.sh +328 -0
  195. moai_adk/templates/.claude/skills/moai-skill-factory/scripts/validate-skill.sh +312 -0
  196. moai_adk/templates/.claude/skills/moai-skill-factory/templates/SKILL_TEMPLATE.md +245 -0
  197. moai_adk/templates/.claude/skills/moai-skill-factory/templates/examples-template.md +285 -0
  198. moai_adk/templates/.claude/skills/moai-skill-factory/templates/reference-template.md +278 -0
  199. moai_adk/templates/.claude/skills/moai-skill-factory/templates/scripts-template.sh +303 -0
  200. moai_adk/templates/.claude/skills/moai-spec-authoring/README.md +129 -0
  201. moai_adk/templates/.claude/skills/moai-spec-authoring/SKILL.md +1300 -0
  202. moai_adk/templates/.claude/skills/moai-spec-authoring/examples/validate-spec.sh +161 -0
  203. moai_adk/templates/CLAUDE.md +121 -81
  204. moai_adk-0.4.8.dist-info/METADATA +1553 -0
  205. moai_adk-0.4.8.dist-info/RECORD +265 -0
  206. moai_adk/templates/.claude/skills/moai-alfred-code-reviewer/SKILL.md +0 -112
  207. moai_adk/templates/.claude/skills/moai-alfred-debugger-pro/SKILL.md +0 -103
  208. moai_adk/templates/.claude/skills/moai-alfred-performance-optimizer/SKILL.md +0 -105
  209. moai_adk/templates/.claude/skills/moai-alfred-refactoring-coach/SKILL.md +0 -97
  210. moai_adk/templates/.claude/skills/moai-alfred-tui-survey/SKILL.md +0 -87
  211. moai_adk/templates/.claude/skills/moai-alfred-tui-survey/examples.md +0 -62
  212. moai_adk/templates/.claude/skills/moai-claude-code/SKILL.md +0 -94
  213. moai_adk/templates/.claude/skills/moai-claude-code/examples.md +0 -513
  214. moai_adk/templates/.claude/skills/moai-claude-code/reference.md +0 -433
  215. moai_adk/templates/.claude/skills/moai-claude-code/templates/agent-full.md +0 -332
  216. moai_adk/templates/.claude/skills/moai-claude-code/templates/command-full.md +0 -384
  217. moai_adk/templates/.claude/skills/moai-claude-code/templates/plugin-full.json +0 -363
  218. moai_adk/templates/.claude/skills/moai-claude-code/templates/settings-full.json +0 -595
  219. moai_adk/templates/.claude/skills/moai-claude-code/templates/skill-full.md +0 -496
  220. moai_adk/templates/.claude/skills/moai-lang-clojure/SKILL.md +0 -100
  221. moai_adk/templates/.claude/skills/moai-lang-elixir/SKILL.md +0 -99
  222. moai_adk/templates/.claude/skills/moai-lang-haskell/SKILL.md +0 -100
  223. moai_adk/templates/.claude/skills/moai-lang-julia/SKILL.md +0 -98
  224. moai_adk/templates/.claude/skills/moai-lang-lua/SKILL.md +0 -98
  225. moai_adk-0.4.5.dist-info/METADATA +0 -369
  226. moai_adk-0.4.5.dist-info/RECORD +0 -152
  227. {moai_adk-0.4.5.dist-info → moai_adk-0.4.8.dist-info}/WHEEL +0 -0
  228. {moai_adk-0.4.5.dist-info → moai_adk-0.4.8.dist-info}/entry_points.txt +0 -0
  229. {moai_adk-0.4.5.dist-info → moai_adk-0.4.8.dist-info}/licenses/LICENSE +0 -0
@@ -1,97 +0,0 @@
1
- ---
2
-
3
- name: moai-alfred-refactoring-coach
4
- description: Refactoring guidance with design patterns, code smells detection, and step-by-step improvement plans. Use when outlining refactor steps that preserve functionality.
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - TodoWrite
11
- ---
12
-
13
- # Alfred Refactoring Coach
14
-
15
- ## Skill Metadata
16
- | Field | Value |
17
- | ----- | ----- |
18
- | Allowed tools | Read (read_file), Write (write_file), Edit (edit_file), Bash (terminal), TodoWrite (todo_write) |
19
- | Auto-load | /alfred:2-run refactor lane |
20
- | Trigger cues | Refactoring retros, duplication cleanup, code health follow-ups inside Alfred. |
21
-
22
- ## What it does
23
-
24
- Refactoring guidance with design pattern recommendations, code smell detection, and step-by-step improvement plans.
25
-
26
- ## When to use
27
-
28
- - Activates when Alfred is asked to plan or stage refactoring work.
29
- - “Help with refactoring”, “How can I improve this code?”, “Apply design patterns”
30
- - “Code organization”, “Remove duplication”, “Separate functions”
31
-
32
- ## How it works
33
-
34
- **Refactoring Techniques**:
35
- - **Extract Method**: Separate long methods
36
- - **Replace Conditional with Polymorphism**: Remove conditional statements
37
- - **Introduce Parameter Object**: Group parameters
38
- - **Extract Class**: Massive class separation
39
-
40
- **Design Pattern Recommendations**:
41
- - Complex object creation → **Builder Pattern**
42
- - Type-specific behavior → **Strategy Pattern**
43
- - Global state → **Singleton Pattern**
44
- - Incompatible interfaces → **Adapter Pattern**
45
- - Delayed object creation → **Factory Pattern**
46
-
47
- **3-Strike Rule**:
48
- ```
49
- 1st occurrence: Just implement
50
- 2nd occurrence: Notice similarity (leave as-is)
51
- 3rd occurrence: Pattern confirmed → Refactor! 🔧
52
- ```
53
-
54
- **Refactoring Checklist**:
55
- - [ ] All tests passing before refactoring
56
- - [ ] Code smells identified
57
- - [ ] Refactoring goal clear
58
- - [ ] Change one thing at a time
59
- - [ ] Run tests after each change
60
- - [ ] Commit frequently
61
-
62
- ## Best Practices
63
- - The text shown to the user is written using TUI/report expressions.
64
- - When running the tool, a summary of commands and results are recorded.
65
-
66
- ## Examples
67
- ```markdown
68
- - Call this skill inside the /alfred command to generate a report.
69
- - Add summary to Completion Report.
70
- ```
71
-
72
- ## Inputs
73
- - MoAI-ADK project context (`.moai/project/`, `.claude/` templates, etc.).
74
- - Parameters passed from user commands or higher commands.
75
-
76
- ## Outputs
77
- - Reports, checklists or recommendations for your Alfred workflow.
78
- - Structured data for subsequent subagent calls.
79
-
80
- ## Failure Modes
81
- - When required input documents are missing or permissions are limited.
82
- - When disruptive changes are required without user approval.
83
-
84
- ## Dependencies
85
- - Cooperation with higher-level agents such as cc-manager and project-manager is required.
86
-
87
- ## References
88
- - Fowler, Martin. "Refactoring: Improving the Design of Existing Code." Addison-Wesley, 2018.
89
- - IEEE Software. "Managing Technical Debt." IEEE Software, 2021.
90
-
91
- ## Changelog
92
- - 2025-03-29: Added input/output/failure response to Alfred-specific skills.
93
-
94
- ## Works well with
95
-
96
- - alfred-code-reviewer
97
- - alfred-trust-validation
@@ -1,87 +0,0 @@
1
- ---
2
-
3
- name: moai-alfred-tui-survey
4
- description: Standardizes Claude Code Tools AskUserQuestion TUI menus for surveys, branching approvals, and option picking across Alfred workflows. Use when gathering approvals or decisions via Alfred’s TUI menus.
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - TodoWrite
10
- ---
11
-
12
- # Alfred TUI Survey Skill
13
-
14
- ## Skill Metadata
15
- | Field | Value |
16
- | ----- | ----- |
17
- | Allowed tools | Read (read_file), Write (write_file), Edit (edit_file), TodoWrite (todo_write) |
18
- | Auto-load | On demand when AskUserQuestion menus are built |
19
- | Trigger cues | Branch approvals, survey menus, decision gating via AskUserQuestion. |
20
-
21
- ## What it does
22
-
23
- Provides ready-to-use patterns for Claude Code's AskUserQuestion TUI selector so Alfred agents can gather user choices, approvals, or survey answers with structured menus instead of ad-hoc text prompts.
24
-
25
- ## When to use
26
-
27
- - Activates when Alfred needs to gather structured choices through the TUI selector.
28
- - Need confirmation before advancing to a risky/destructive step.
29
- - Choosing between alternative implementation paths or automation levels.
30
- - Collecting survey-like answers (persona, tech stack, priority, risk level).
31
- - Any time a branched workflow depends on user-selected options rather than free-form text.
32
-
33
- ## How it works
34
-
35
- 1. **Detect gate** – Pause at steps that require explicit user choice.
36
- 2. **Shape options** – Offer 2–5 focused choices with concise labels.
37
- 3. **Render menu** – Emit the `AskUserQuestion({...})` block for the selector.
38
- 4. **Map follow-ups** – Note how each option alters the next action/agent.
39
- 5. **Fallback** – Provide plain-text instructions when the UI cannot render.
40
-
41
- ### Templates & examples
42
-
43
- - [Single-select deployment decision](examples.md#single-select-template)
44
- - [Multi-select diagnostics checklist](examples.md#multi-select-variation)
45
- - [Follow-up drill-down prompt](examples.md#follow-up-prompt-for-deeper-detail)
46
-
47
- ## Best Practices
48
- - Reduce context switching by putting questions, options, and follow-up actions on one screen.
49
- - Options are sorted according to comparison criteria such as risk and priority.
50
- - If safety measures are required, such as approval/suspension/cancellation, attach a warning message.
51
- - Submission results are recorded for reuse in the Sync step or reports.
52
-
53
- ## Inputs
54
- - Decision scenarios and candidate options collected by Alfred workflows.
55
- - Definition of follow-up actions for each option (next command, subagent, TODO, etc.).
56
-
57
- ## Outputs
58
- - AskUserQuestion block and choice → follow-up action mapping.
59
- - Summary of selection results and TODO items that require further confirmation.
60
-
61
- ## Failure Modes
62
- - Ambiguous or duplicate options cause selection delays.
63
- - It is difficult to judge priorities when all options look the same.
64
- - AskUserQuestion does not work in a TUI-inactive environment, so plan B is needed.
65
-
66
- ## Dependencies
67
- - Works with the main `/alfred:*` command and schedules follow-up actions with TodoWrite when necessary.
68
- - When combined with moai-foundation-ears · moai-foundation-tags, requirements → options → TAG records are connected.
69
-
70
- ## References
71
- - Jakubovic, J. "Designing Effective CLI Dialogs." ACM Queue, 2021.
72
- - NCurses. "Programming Guide." https://invisible-island.net/ncurses/man/ncurses.3x.html (accessed 2025-03-29).
73
-
74
- ## Changelog
75
- - 2025-03-29: Added input/output/failure response to Alfred-specific skills.
76
-
77
- ## Works well with
78
-
79
- - `moai-foundation-ears` – Combine structured requirement patterns with menu-driven confirmations.
80
- - `moai-alfred-git-workflow` – Use menus to choose branch/worktree strategies.
81
- - `moai-alfred-code-reviewer` – Capture reviewer focus areas through guided selection.
82
-
83
- ## Examples
84
- ```markdown
85
- - In the `/alfred:1-plan` step, user priorities are collected and the results are written to the PLAN board.
86
- - Check user approval before high-risk operations while running `/alfred:2-run`.
87
- ```
@@ -1,62 +0,0 @@
1
- # Alfred TUI Survey Examples
2
-
3
- ## Single-select template
4
-
5
- ```typescript
6
- AskUserQuestion({
7
- questions: [{
8
- header: "Decision point: Deployment Strategy",
9
- question: "How should we roll out the new release?",
10
- options: [
11
- {
12
- label: "Canary release",
13
- description: "Gradually roll out to a small user segment; monitor metrics first."
14
- },
15
- {
16
- label: "Blue/Green",
17
- description: "Keep the current version live while preparing the new stack in parallel."
18
- },
19
- {
20
- label: "Full deploy",
21
- description: "Immediate production rollout after smoke tests succeed."
22
- }
23
- ],
24
- multiSelect: false
25
- }]
26
- })
27
- ```
28
-
29
- ## Multi-select variation
30
-
31
- ```typescript
32
- AskUserQuestion({
33
- questions: [{
34
- header: "Select diagnostics to run",
35
- question: "Which checks should run before proceeding?",
36
- options: [
37
- { label: "Unit tests", description: "Fast verification for core modules." },
38
- { label: "Integration tests", description: "Service-level interactions and DB calls." },
39
- { label: "Security scan", description: "Dependency vulnerability audit." }
40
- ],
41
- multiSelect: true
42
- }]
43
- })
44
- ```
45
-
46
- ## Follow-up prompt for deeper detail
47
-
48
- ```typescript
49
- if (selection.includes("Integration tests")) {
50
- AskUserQuestion({
51
- questions: [{
52
- header: "Integration test scope",
53
- question: "Which environment should host integration tests?",
54
- options: [
55
- { label: "Staging", description: "Use the shared staging cluster." },
56
- { label: "Ephemeral env", description: "Provision a one-off test environment." }
57
- ],
58
- multiSelect: false
59
- }]
60
- })
61
- }
62
- ```
@@ -1,94 +0,0 @@
1
- ---
2
-
3
- name: moai-claude-code
4
- description: Scaffolds and audits Claude Code agents, commands, skills, plugins, and settings with production templates. Use when configuring or reviewing Claude Code automation inside MoAI workflows.
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- ---
10
-
11
- # MoAI Claude Code Manager
12
-
13
- ## Skill Metadata
14
- | Field | Value |
15
- | ----- | ----- |
16
- | Allowed tools | Read (read_file), Write (write_file), Edit (edit_file) |
17
- | Auto-load | SessionStart (Claude Code bootstrap) |
18
- | Trigger cues | Agent/command/skill/plugin/settings authoring, Claude Code environment setup. |
19
-
20
- Create and manage Claude Code's five core components according to official standards.
21
-
22
- ## Components covered
23
-
24
- - **Agents** `.claude/agents/` — Persona, tools, and workflow definition
25
- - **Commands** `.claude/commands/` — Slash command entry points
26
- - **Skills** `.claude/skills/` — Reusable instruction capsules
27
- - **Plugins** `settings.json › mcpServers` — MCP integrations
28
- - **Settings** `.claude/settings.json` — Tool permissions, hooks, session defaults
29
-
30
- ## Reference files
31
-
32
- - `reference.md` — Writing guide and checklist
33
- - `examples.md` — Sample completed artifacts
34
- - `templates/` — Markdown/JSON skeleton for five components
35
- - `scripts/` — settings validation and template integrity check scripts
36
-
37
- ## Workflow
38
-
39
- 1. Analyze user requests to determine required components (Agent/Command/Skill/Plugin/Settings).
40
- 2. Copy the stub from `templates/` and replace the placeholders to suit your project context.
41
- 3. If necessary, run the `scripts/` verifier to check required fields, permissions, and follow-up links.
42
-
43
- ## Guardrails
44
-
45
- - Maintain minimum privileges and progressive disclosure in line with Anthropic official guidelines.
46
- - Rather than modifying the template directly, only update the hook/field guided by reference.md.
47
- - The created files and settings.json are included in Git version management and a change history is left.
48
-
49
- **Official documentation**: https://docs.claude.com/en/docs/claude-code/skills
50
- **Version**: 1.0.0
51
-
52
- ## Examples
53
- ```markdown
54
- - Create a spec-builder agent and the /alfred command set in a new project.
55
- - Review existing settings.json to update allowable tools and hook configurations.
56
- ```
57
-
58
- ## Best Practices
59
- - The output template is designed to be idempotent so that it is safe even when reapplied.
60
- - Detailed procedures are separated into reference.md (writing guide) and examples.md (sample artifacts) and loaded only when necessary.
61
-
62
- ## When to use
63
- - Activates when someone asks to scaffold or audit Claude Code components.
64
- - When bootstrapping a Claude Code configuration to a new project.
65
- - When reexamining existing agents/commands/skills/plug-ins to meet standards.
66
- - When verification of settings is required in initialization workflows such as `/alfred:0-project`.
67
-
68
- ## What it does
69
- - Create and update the five core components as official templates.
70
- - Verify accepted tools, model selection, and progressive disclosure links.
71
- - Provides reusable stubs and verification procedures through templates/·scripts/ resources.
72
-
73
- ## Inputs
74
- - User configuration requests (e.g. “add new command”, “review settings.json”) and current `.claude/` directory state.
75
- - Project-specific template requirements or security/permissions policies.
76
-
77
- ## Outputs
78
- - Official Markdown definition file under `.claude/agents|commands|skills/`.
79
- - A summary of `.claude/settings.json` that reflects the latest settings and allowed tools and follow-up TODOs.
80
-
81
- ## Failure Modes
82
- - If the template path or placeholder is different from the latest version, the result may be damaged.
83
- - The settings.json permission policy may conflict with project rules or may block verification script execution.
84
-
85
- ## Dependencies
86
- - When used with cc-manager, doc-syncer, and moai-foundation-git, the creation → verification → distribution flow is completed.
87
- - You must have versioned resources in the templates/ and scripts/ directories for automation to work properly.
88
-
89
- ## References
90
- - Anthropic. "Claude Code Style Guide." https://docs.claude.com/ (accessed 2025-03-29).
91
- - Prettier. "Opinionated Code Formatter." https://prettier.io/docs/en/ (accessed 2025-03-29).
92
-
93
- ## Changelog
94
- - 2025-03-29: Added best practice structure to Claude code formatting skill.