moai-adk 0.3.13__py3-none-any.whl → 0.4.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of moai-adk might be problematic. Click here for more details.

Files changed (141) hide show
  1. moai_adk/__init__.py +1 -1
  2. moai_adk/__main__.py +1 -1
  3. moai_adk/cli/commands/__init__.py +1 -1
  4. moai_adk/cli/commands/doctor.py +2 -2
  5. moai_adk/cli/commands/init.py +10 -5
  6. moai_adk/cli/commands/status.py +1 -1
  7. moai_adk/cli/commands/update.py +210 -8
  8. moai_adk/cli/prompts/init_prompts.py +15 -19
  9. moai_adk/core/__init__.py +1 -1
  10. moai_adk/core/diagnostics/slash_commands.py +1 -1
  11. moai_adk/core/git/branch.py +1 -1
  12. moai_adk/core/git/manager.py +1 -1
  13. moai_adk/core/project/backup_utils.py +1 -0
  14. moai_adk/core/project/phase_executor.py +3 -1
  15. moai_adk/core/project/validator.py +3 -2
  16. moai_adk/core/quality/__init__.py +1 -1
  17. moai_adk/core/quality/trust_checker.py +1 -1
  18. moai_adk/core/quality/validators/__init__.py +1 -1
  19. moai_adk/core/quality/validators/base_validator.py +1 -1
  20. moai_adk/core/template/__init__.py +1 -1
  21. moai_adk/core/template/backup.py +12 -3
  22. moai_adk/core/template/config.py +24 -0
  23. moai_adk/core/template/languages.py +1 -1
  24. moai_adk/core/template/merger.py +74 -4
  25. moai_adk/core/template/processor.py +62 -14
  26. moai_adk/templates/.claude/agents/alfred/cc-manager.md +765 -191
  27. moai_adk/templates/.claude/agents/alfred/debug-helper.md +116 -103
  28. moai_adk/templates/.claude/agents/alfred/doc-syncer.md +130 -116
  29. moai_adk/templates/.claude/agents/alfred/git-manager.md +186 -174
  30. moai_adk/templates/.claude/agents/alfred/implementation-planner.md +227 -213
  31. moai_adk/templates/.claude/agents/alfred/project-manager.md +205 -125
  32. moai_adk/templates/.claude/agents/alfred/quality-gate.md +224 -209
  33. moai_adk/templates/.claude/agents/alfred/spec-builder.md +174 -160
  34. moai_adk/templates/.claude/agents/alfred/tag-agent.md +151 -139
  35. moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +209 -196
  36. moai_adk/templates/.claude/agents/alfred/trust-checker.md +247 -233
  37. moai_adk/templates/.claude/commands/alfred/0-project.md +856 -355
  38. moai_adk/templates/.claude/commands/alfred/1-plan.md +572 -0
  39. moai_adk/templates/.claude/commands/alfred/2-run.md +470 -0
  40. moai_adk/templates/.claude/commands/alfred/3-sync.md +366 -356
  41. moai_adk/templates/.claude/hooks/alfred/README.md +52 -52
  42. moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +44 -48
  43. moai_adk/templates/.claude/hooks/alfred/core/__init__.py +17 -17
  44. moai_adk/templates/.claude/hooks/alfred/core/checkpoint.py +59 -59
  45. moai_adk/templates/.claude/hooks/alfred/core/context.py +19 -19
  46. moai_adk/templates/.claude/hooks/alfred/core/project.py +52 -52
  47. moai_adk/templates/.claude/hooks/alfred/handlers/__init__.py +1 -1
  48. moai_adk/templates/.claude/hooks/alfred/handlers/notification.py +4 -4
  49. moai_adk/templates/.claude/hooks/alfred/handlers/session.py +30 -51
  50. moai_adk/templates/.claude/hooks/alfred/handlers/tool.py +16 -17
  51. moai_adk/templates/.claude/hooks/alfred/handlers/user.py +11 -11
  52. moai_adk/templates/.claude/output-styles/alfred/agentic-coding.md +308 -307
  53. moai_adk/templates/.claude/output-styles/alfred/moai-adk-learning.md +297 -296
  54. moai_adk/templates/.claude/output-styles/alfred/study-with-alfred.md +191 -190
  55. moai_adk/templates/.claude/skills/moai-alfred-code-reviewer/SKILL.md +112 -0
  56. moai_adk/templates/.claude/skills/moai-alfred-debugger-pro/SKILL.md +103 -0
  57. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/SKILL.md +103 -0
  58. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/SKILL.md +95 -0
  59. moai_adk/templates/.claude/skills/moai-alfred-language-detection/SKILL.md +99 -0
  60. moai_adk/templates/.claude/skills/moai-alfred-performance-optimizer/SKILL.md +105 -0
  61. moai_adk/templates/.claude/skills/moai-alfred-refactoring-coach/SKILL.md +97 -0
  62. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/SKILL.md +97 -0
  63. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/SKILL.md +90 -0
  64. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/SKILL.md +99 -0
  65. moai_adk/templates/.claude/skills/moai-alfred-tui-survey/SKILL.md +87 -0
  66. moai_adk/templates/.claude/skills/moai-alfred-tui-survey/examples.md +62 -0
  67. moai_adk/templates/.claude/skills/moai-claude-code/SKILL.md +94 -0
  68. moai_adk/templates/.claude/skills/moai-claude-code/examples.md +513 -0
  69. moai_adk/templates/.claude/skills/moai-claude-code/reference.md +433 -0
  70. moai_adk/templates/.claude/skills/moai-claude-code/templates/agent-full.md +332 -0
  71. moai_adk/templates/.claude/skills/moai-claude-code/templates/command-full.md +384 -0
  72. moai_adk/templates/.claude/skills/moai-claude-code/templates/plugin-full.json +363 -0
  73. moai_adk/templates/.claude/skills/moai-claude-code/templates/settings-full.json +595 -0
  74. moai_adk/templates/.claude/skills/moai-claude-code/templates/skill-full.md +496 -0
  75. moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +99 -0
  76. moai_adk/templates/.claude/skills/moai-domain-cli-tool/SKILL.md +95 -0
  77. moai_adk/templates/.claude/skills/moai-domain-data-science/SKILL.md +98 -0
  78. moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +100 -0
  79. moai_adk/templates/.claude/skills/moai-domain-devops/SKILL.md +100 -0
  80. moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +99 -0
  81. moai_adk/templates/.claude/skills/moai-domain-ml/SKILL.md +99 -0
  82. moai_adk/templates/.claude/skills/moai-domain-mobile-app/SKILL.md +93 -0
  83. moai_adk/templates/.claude/skills/moai-domain-security/SKILL.md +105 -0
  84. moai_adk/templates/.claude/skills/moai-domain-web-api/SKILL.md +97 -0
  85. moai_adk/templates/.claude/skills/moai-essentials-debug/SKILL.md +102 -0
  86. moai_adk/templates/.claude/skills/moai-essentials-perf/SKILL.md +104 -0
  87. moai_adk/templates/.claude/skills/moai-essentials-refactor/SKILL.md +96 -0
  88. moai_adk/templates/.claude/skills/moai-essentials-review/SKILL.md +112 -0
  89. moai_adk/templates/.claude/skills/moai-foundation-ears/SKILL.md +98 -0
  90. moai_adk/templates/.claude/skills/moai-foundation-git/SKILL.md +90 -0
  91. moai_adk/templates/.claude/skills/moai-foundation-langs/SKILL.md +94 -0
  92. moai_adk/templates/.claude/skills/moai-foundation-specs/SKILL.md +93 -0
  93. moai_adk/templates/.claude/skills/moai-foundation-tags/SKILL.md +86 -0
  94. moai_adk/templates/.claude/skills/moai-foundation-trust/SKILL.md +86 -0
  95. moai_adk/templates/.claude/skills/moai-lang-c/SKILL.md +100 -0
  96. moai_adk/templates/.claude/skills/moai-lang-clojure/SKILL.md +100 -0
  97. moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +102 -0
  98. moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +100 -0
  99. moai_adk/templates/.claude/skills/moai-lang-dart/SKILL.md +98 -0
  100. moai_adk/templates/.claude/skills/moai-lang-elixir/SKILL.md +99 -0
  101. moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +100 -0
  102. moai_adk/templates/.claude/skills/moai-lang-haskell/SKILL.md +100 -0
  103. moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +98 -0
  104. moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +96 -0
  105. moai_adk/templates/.claude/skills/moai-lang-julia/SKILL.md +98 -0
  106. moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +99 -0
  107. moai_adk/templates/.claude/skills/moai-lang-lua/SKILL.md +98 -0
  108. moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +98 -0
  109. moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +96 -0
  110. moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +99 -0
  111. moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +99 -0
  112. moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +100 -0
  113. moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +100 -0
  114. moai_adk/templates/.claude/skills/moai-lang-shell/SKILL.md +100 -0
  115. moai_adk/templates/.claude/skills/moai-lang-sql/SKILL.md +100 -0
  116. moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +99 -0
  117. moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +96 -0
  118. moai_adk/templates/.github/PULL_REQUEST_TEMPLATE.md +44 -43
  119. moai_adk/templates/.github/workflows/moai-gitflow.yml +36 -35
  120. moai_adk/templates/.moai/config.json +9 -6
  121. moai_adk/templates/.moai/memory/development-guide.md +220 -221
  122. moai_adk/templates/.moai/memory/gitflow-protection-policy.md +85 -85
  123. moai_adk/templates/.moai/memory/spec-metadata.md +149 -150
  124. moai_adk/templates/.moai/project/product.md +90 -90
  125. moai_adk/templates/.moai/project/structure.md +85 -85
  126. moai_adk/templates/.moai/project/tech.md +117 -117
  127. moai_adk/templates/CLAUDE.md +354 -573
  128. moai_adk/templates/__init__.py +1 -1
  129. moai_adk/utils/__init__.py +1 -1
  130. moai_adk/utils/banner.py +7 -7
  131. moai_adk/utils/logger.py +1 -1
  132. moai_adk-0.4.1.dist-info/METADATA +303 -0
  133. moai_adk-0.4.1.dist-info/RECORD +152 -0
  134. moai_adk/templates/.claude/commands/alfred/1-spec.md +0 -532
  135. moai_adk/templates/.claude/commands/alfred/2-build.md +0 -432
  136. moai_adk/templates/.moai/hooks/pre-push.sample +0 -88
  137. moai_adk-0.3.13.dist-info/METADATA +0 -1586
  138. moai_adk-0.3.13.dist-info/RECORD +0 -90
  139. {moai_adk-0.3.13.dist-info → moai_adk-0.4.1.dist-info}/WHEEL +0 -0
  140. {moai_adk-0.3.13.dist-info → moai_adk-0.4.1.dist-info}/entry_points.txt +0 -0
  141. {moai_adk-0.3.13.dist-info → moai_adk-0.4.1.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,496 @@
1
+ ---
2
+ name: {skill-name}
3
+ description: {Capability + trigger phrases (<=1024 chars, aim for <=200)}
4
+ allowed-tools: # optional; remove if full tool access is acceptable
5
+ - Read
6
+ - Bash
7
+ - Write
8
+ ---
9
+
10
+ # {Skill Title}
11
+
12
+ > {One-sentence compelling summary of value proposition}
13
+
14
+ ---
15
+
16
+ ## 🎯 Purpose of this skill
17
+
18
+ {Comprehensive explanation covering:
19
+ - Problem statement and context
20
+ - How this skill addresses the problem
21
+ - Unique value proposition
22
+ - Integration with broader workflows}
23
+
24
+ **Problem**: {Detailed problem description with examples}
25
+ **Solution**: {Comprehensive solution approach}
26
+ **Impact**: {Measurable benefits and improvements}
27
+
28
+ ---
29
+
30
+ ## 🏗️ MoAI-ADK integration
31
+
32
+ ### Alfred auto-selection conditions
33
+
34
+ Alfred automatically activates this skill under the following conditions:
35
+
36
+ - {Specific automatic trigger condition 1 with context}
37
+ - {Specific automatic trigger condition 2 with keywords}
38
+ - {Specific automatic trigger condition 3 with workflow state}
39
+
40
+ ### Workflow location
41
+
42
+ ```
43
+ /alfred:1-plan → /alfred:2-run → /alfred:3-sync
44
+
45
+ Automatically activate this skill
46
+ ({when activated})
47
+ ```
48
+
49
+ **Integration Point**:
50
+ - **Phase**: {Which phase of MoAI-ADK workflow}
51
+ - **Trigger**: {What triggers automatic invocation}
52
+ - **Role**: {What this skill contributes to the workflow}
53
+
54
+ ---
55
+
56
+ ## 📋 Core features
57
+
58
+ ### 1. {Major Feature 1 Name}
59
+
60
+ {Detailed multi-paragraph description of this feature}
61
+
62
+ **How ​​to implement**:
63
+ ```{language}
64
+ # {Implementation detail 1}
65
+ {code-example-1}
66
+
67
+ # {Implementation detail 2}
68
+ {code-example-2}
69
+ ```
70
+
71
+ **Output**:
72
+ - **{Output 1}**: {Detailed description with format}
73
+ - **{Output 2}**: {Description with validation criteria}
74
+ - **{Output 3}**: {Description with usage notes}
75
+
76
+ **verification**:
77
+ ```bash
78
+ # {Verification method}
79
+ {verification-command}
80
+ ```
81
+
82
+ ---
83
+
84
+ ### 2. {Major Feature 2 Name}
85
+
86
+ {Comprehensive feature description}
87
+
88
+ **Algorithm**:
89
+ 1. {Step 1 of algorithm}
90
+ 2. {Step 2 with details}
91
+ 3. {Step 3 and expected outcome}
92
+
93
+ **Implementation example**:
94
+ ```{language}
95
+ {detailed-code-example}
96
+ ```
97
+
98
+ ---
99
+
100
+ ### 3. {Major Feature 3 Name}
101
+
102
+ {Feature description with use cases}
103
+
104
+ **Use Scenario**:
105
+ - **{Scenario A}**: {When and why to use}
106
+ - **{Scenario B}**: {Alternative use case}
107
+
108
+ ---
109
+
110
+ ## 💡 Usage Pattern
111
+
112
+ ### Pattern 1: Manual call
113
+
114
+ **Example User Request**:
115
+ ```
116
+ "Please execute {skill-name}"
117
+ "{natural-language-trigger-phrase}"
118
+ ```
119
+
120
+ **Alfred Action**:
121
+ 1. {What Alfred does in step 1}
122
+ 2. {What Alfred does in step 2}
123
+ 3. {Final action and result}
124
+
125
+ ---
126
+
127
+ ### Pattern 2: Automatic activation
128
+
129
+ **Trigger condition**: {When automatic activation occurs}
130
+
131
+ **Alfred detection scenario**:
132
+ ```
133
+ User: "{example-user-request}"
134
+ → Alfred Analysis: {how Alfred recognizes this needs the skill}
135
+ → Autoplay: {what happens automatically}
136
+ → Result: {what user receives}
137
+ ```
138
+
139
+ ---
140
+
141
+ ### Pattern 3: Command integration
142
+
143
+ **Related command**: `/{command-name}`
144
+
145
+ **Integrated Flow**:
146
+ ```
147
+ Run /{command-name}
148
+
149
+ {When skill is invoked during command}
150
+
151
+ Automatically call this skill
152
+
153
+ {What skill contributes}
154
+
155
+ Continue command
156
+ ```
157
+
158
+ ---
159
+
160
+ ## ⚙️ Settings and configuration
161
+
162
+ ### Configuration file location
163
+
164
+ Configure in `.moai/config.json`:
165
+
166
+ ```json
167
+ {
168
+ "{skill-config-section}": {
169
+ "{option1}": {default-value},
170
+ "{option2}": {default-value},
171
+ "{option3}": {
172
+ "{sub-option1}": {value},
173
+ "{sub-option2}": {value}
174
+ }
175
+ }
176
+ }
177
+ ```
178
+
179
+ ### Setting option details
180
+
181
+ | Options | Type | default | Required | Description |
182
+ | ----------- | ------ | ----------- | -------- | --------------------------- |
183
+ | `{option1}` | {type} | `{default}` | ✅/⚠️ | {Comprehensive description} |
184
+ | `{option2}` | {type} | `{default}` | ⚠️ | {What this controls} |
185
+ | `{option3}` | {type} | `{default}` | ⚠️ | {Usage notes} |
186
+
187
+ ### Environment variables (optional)
188
+
189
+ ```bash
190
+ # {Environment variable 1}
191
+ export {VAR_NAME_1}="{value}"
192
+
193
+ # {Environment variable 2}
194
+ export {VAR_NAME_2}="{value}"
195
+ ```
196
+
197
+ ---
198
+
199
+ ## 📁 Directory Structure
200
+
201
+ ```
202
+ .claude/skills/{skill-name}/
203
+ ├── SKILL.md # Main skill definition (this file)
204
+ ├── reference.md # Detailed reference document
205
+ ├── examples.md # Collection of practical examples
206
+ ├── scripts/ # Utility script
207
+ │ ├── {helper-1}.py
208
+ │ └── {helper-2}.py
209
+ └── templates/ # template file
210
+ ├── {template-1}.txt
211
+ └── {template-2}.json
212
+ ```
213
+
214
+ ### Additional file descriptions
215
+
216
+ - **reference.md**: {What additional documentation it contains}
217
+ - **examples.md**: {What examples are provided}
218
+ - **scripts/**: {What utility scripts do}
219
+ - **templates/**: {What templates are included}
220
+
221
+ ---
222
+
223
+ ## ✅ Verification Checklist
224
+
225
+ ### Validation before execution
226
+
227
+ - [ ] {Pre-execution check 1}
228
+ - [ ] {Pre-execution check 2}
229
+ - [ ] {Pre-execution check 3}
230
+
231
+ ### Verify after execution
232
+
233
+ - [ ] {Post-execution validation 1 with criteria}
234
+ - [ ] {Post-execution validation 2 with expected state}
235
+ - [ ] {Post-execution validation 3 with deliverable}
236
+ - [ ] {Check MoAI-ADK workflow integration}
237
+
238
+ ### Verification command
239
+
240
+ ```bash
241
+ # {Validation script 1}
242
+ uv run .claude/skills/{skill-name}/scripts/validate.py
243
+
244
+ # {Validation check 2}
245
+ {verification-command}
246
+
247
+ # {Integration test}
248
+ {integration-test-command}
249
+ ```
250
+
251
+ ---
252
+
253
+ ## 🚨 Error handling
254
+
255
+ ### Error classification
256
+
257
+ #### 1. {Error Category 1}
258
+
259
+ **Symptom**: {How this error manifests}
260
+
261
+ **cause**:
262
+ - {Possible cause 1}
263
+ - {Possible cause 2}
264
+
265
+ **Solution**:
266
+ ```bash
267
+ # {Solution step 1}
268
+ {command-1}
269
+
270
+ # {Solution step 2}
271
+ {command-2}
272
+ ```
273
+
274
+ ---
275
+
276
+ #### 2. {Error Category 2}
277
+
278
+ **Symptom**: {Error description}
279
+
280
+ **Debugging**:
281
+ ```bash
282
+ # {How to debug}
283
+ {debug-command}
284
+ ```
285
+
286
+ **correction**:
287
+ 1. {Fix step 1}
288
+ 2. {Fix step 2}
289
+
290
+ ---
291
+
292
+ ### Logging and Debugging
293
+
294
+ **Log Location**: `{log-file-path}`
295
+
296
+ **Log level settings**:
297
+ ```bash
298
+ # {How to enable debug logging}
299
+ {logging-config-command}
300
+ ```
301
+
302
+ **Check log**:
303
+ ```bash
304
+ # {How to view logs}
305
+ tail -f {log-file-path}
306
+ ```
307
+
308
+ ---
309
+
310
+ ## 🔗 Related agents/commands
311
+
312
+ ### Related commands
313
+
314
+ - **/{command-1}** - {How this skill supports the command}
315
+ - **/{command-2}** - {Integration point}
316
+
317
+ ### Associated Agent
318
+
319
+ - **@agent-{agent-1}** - {How they work together}
320
+ - **@agent-{agent-2}** - {Collaboration scenario}
321
+
322
+ ### Related skills
323
+
324
+ - **{skill-1}** - {Complementary functionality}
325
+ - **{skill-2}** - {When to use together}
326
+
327
+ ---
328
+
329
+ ## 📊 Performance and Metrics
330
+
331
+ ### Performance characteristics
332
+
333
+ - **Execution time**: {Typical execution time}
334
+ - **Memory usage**: {Expected memory usage}
335
+ - **Disk I/O**: {File operations count}
336
+ - **Network**: {External API calls if any}
337
+
338
+ ### Optimization tips
339
+
340
+ 1. **{Optimization 1}**: {How to improve performance}
341
+ 2. **{Optimization 2}**: {Configuration tweak}
342
+ 3. **{Optimization 3}**: {Best practice}
343
+
344
+ ---
345
+
346
+ ## 🎓 Best Practices
347
+
348
+ ### 1. {Practice Category 1}
349
+
350
+ **Recommendation**:
351
+ ```{language}
352
+ # {Good practice example}
353
+ {recommended-code}
354
+ ```
355
+
356
+ **What to avoid**:
357
+ ```{language}
358
+ # {Anti-pattern example}
359
+ {avoid-this-code}
360
+ ```
361
+
362
+ **Reason**: {Why this is best practice}
363
+
364
+ ---
365
+
366
+ ### 2. {Practice Category 2}
367
+
368
+ **Tip**: {Helpful tip}
369
+
370
+ **example**:
371
+ ```bash
372
+ {example-of-best-practice}
373
+ ```
374
+
375
+ ---
376
+
377
+ ### 3. {Practice Category 3}
378
+
379
+ **Caution**: {Important consideration}
380
+
381
+ ---
382
+
383
+ ## 📖 Practical examples
384
+
385
+ ### Example 1: {Common Use Case}
386
+
387
+ **Purpose**: {What this example demonstrates}
388
+
389
+ **input**:
390
+ ```{format}
391
+ {example-input}
392
+ ```
393
+
394
+ **execution**:
395
+ ```bash
396
+ {commands-to-run}
397
+ ```
398
+
399
+ **output of power**:
400
+ ```{format}
401
+ {example-output}
402
+ ```
403
+
404
+ **Explanation**: {What happened and why}
405
+
406
+ ---
407
+
408
+ ### Example 2: {Advanced Use Case}
409
+
410
+ **Purpose**: {Advanced scenario}
411
+
412
+ **Scenario**: {Detailed scenario description}
413
+
414
+ **avatar**:
415
+ ```{language}
416
+ {implementation-code}
417
+ ```
418
+
419
+ **Result**: {What you achieve}
420
+
421
+ ---
422
+
423
+ ### Example 3: {Edge Case}
424
+
425
+ **Scenario**: {Unusual but important scenario}
426
+
427
+ **How ​​to handle**: {How skill handles this}
428
+
429
+ ---
430
+
431
+ ## 🔧 Customization
432
+
433
+ ### Extension points
434
+
435
+ Areas where you can customize this skill to fit your project:
436
+
437
+ 1. **{Extension Point 1}**
438
+ - File: `{file-to-modify}`
439
+ - How to modify: {How to customize}
440
+
441
+ 2. **{Extension Point 2}**
442
+ - Settings: `{config-key}`
443
+ - Options: {Available options}
444
+
445
+ ### Plugin system (advanced)
446
+
447
+ ```python
448
+ # {How to create plugins for this skill}
449
+ {plugin-example-code}
450
+ ```
451
+
452
+ ---
453
+
454
+ ## 📚 References
455
+
456
+ ### Official Documentation
457
+ - **Claude Code Skills**: https://docs.claude.com/en/docs/claude-code/skills
458
+ - **{Related Doc}**: {URL}
459
+
460
+ ### MoAI-ADK Resources
461
+ - **Development Guide**: `.moai/memory/development-guide.md`
462
+ - **SPEC Metadata**: `.moai/memory/spec-metadata.md`
463
+
464
+ ### Community
465
+ - **GitHub Issues**: {Link}
466
+ - **Discussion**: {Link}
467
+
468
+ ---
469
+
470
+ ## 🔄 Update log
471
+
472
+ ### v1.0.0 (Initial)
473
+ - {Feature 1 introduced}
474
+ - {Feature 2 implemented}
475
+ - {Initial release notes}
476
+
477
+ ---
478
+
479
+ **Template Level**: Full
480
+ **Best For**: Production MoAI-ADK integration, enterprise workflows
481
+ **Features**:
482
+ - Alfred auto-selection
483
+ - Workflow integration
484
+ - Detailed settings
485
+ - Verification automation
486
+ - Error handling
487
+ - Performance optimization
488
+
489
+ **Directory Structure**: Full (SKILL.md + reference.md + examples.md + scripts/ + templates/)
490
+ **Estimated Setup Time**: 45-60 minutes
491
+ **Maintenance**: Regular updates as workflow evolves
492
+ **Support**: Full MoAI-ADK integration support
493
+
494
+ ---
495
+
496
+ This skill provides the highest level of automation in {domain}.
@@ -0,0 +1,99 @@
1
+ ---
2
+
3
+ name: moai-domain-backend
4
+ description: Provides backend architecture and scaling guidance; use when the project targets server-side APIs or infrastructure design decisions.
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ ---
9
+
10
+ # Backend Expert
11
+
12
+ ## Skill Metadata
13
+ | Field | Value |
14
+ | ----- | ----- |
15
+ | Allowed tools | Read (read_file), Bash (terminal) |
16
+ | Auto-load | On demand for backend architecture requests |
17
+ | Trigger cues | Service layering, API orchestration, caching, background job design discussions. |
18
+ | Tier | 4 |
19
+
20
+ ## What it does
21
+
22
+ Provides expertise in backend server architecture, RESTful API design, caching strategies, database optimization, and horizontal/vertical scalability patterns.
23
+
24
+ ## When to use
25
+
26
+ - Engages when backend or service-architecture questions come up.
27
+ - “Backend architecture”, “API design”, “Caching strategy”, “Scalability”
28
+ - Automatically invoked when working with backend projects
29
+ - Backend SPEC implementation (`/alfred:2-run`)
30
+
31
+ ## How it works
32
+
33
+ **Server Architecture**:
34
+ - **Layered architecture**: Controller → Service → Repository
35
+ - **Microservices**: Service decomposition, inter-service communication
36
+ - **Monoliths**: When appropriate (team size, complexity)
37
+ - **Serverless**: Functions as a Service (AWS Lambda, Cloud Functions)
38
+
39
+ **API Design**:
40
+ - **RESTful principles**: Resource-based, stateless
41
+ - **GraphQL**: Schema-first design
42
+ - **gRPC**: Protocol buffers for high performance
43
+ - **WebSockets**: Real-time bidirectional communication
44
+
45
+ **Caching Strategies**:
46
+ - **Redis**: In-memory data store
47
+ - **Memcached**: Distributed caching
48
+ - **Cache invalidation**: TTL, cache-aside pattern
49
+ - **CDN caching**: Static asset delivery
50
+
51
+ **Database Optimization**:
52
+ - **Connection pooling**: Reuse connections
53
+ - **Query optimization**: EXPLAIN analysis
54
+ - **Read replicas**: Horizontal scaling
55
+ - **Sharding**: Data partitioning
56
+
57
+ **Scalability Patterns**:
58
+ - **Horizontal scaling**: Load balancing across instances
59
+ - **Vertical scaling**: Increasing instance resources
60
+ - **Async processing**: Message queues (RabbitMQ, Kafka)
61
+ - **Rate limiting**: API throttling
62
+
63
+ ## Examples
64
+ ```bash
65
+ $ make test-backend
66
+ $ k6 run perf/api-smoke.js
67
+ ```
68
+
69
+ ## Inputs
70
+ - Domain-specific design documents and user requirements.
71
+ - Project technology stack and operational constraints.
72
+
73
+ ## Outputs
74
+ - Domain-specific architecture or implementation guidelines.
75
+ - Recommended list of associated sub-agents/skills.
76
+
77
+ ## Failure Modes
78
+ - When the domain document does not exist or is ambiguous.
79
+ - When the project strategy is unconfirmed and cannot be specified.
80
+
81
+ ## Dependencies
82
+ - `.moai/project/` document and latest technical briefing are required.
83
+
84
+ ## References
85
+ - AWS. "AWS Well-Architected Framework." https://docs.aws.amazon.com/wellarchitected/latest/framework/ (accessed 2025-03-29).
86
+ - Heroku. "The Twelve-Factor App." https://12factor.net/ (accessed 2025-03-29).
87
+
88
+ ## Changelog
89
+ - 2025-03-29: Codified input/output and failure responses for domain skills.
90
+
91
+ ## Works well with
92
+
93
+ - alfred-trust-validation (backend testing)
94
+ - web-api-expert (API design)
95
+ - database-expert (database optimization)
96
+
97
+ ## Best Practices
98
+ - Record supporting documentation (version/link) for each domain decision.
99
+ - Review performance, security, and operational requirements simultaneously at an early stage.
@@ -0,0 +1,95 @@
1
+ ---
2
+
3
+ name: moai-domain-cli-tool
4
+ description: CLI tool development with argument parsing, POSIX compliance, and user-friendly help messages. Use when working on command-line tooling scenarios.
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ ---
9
+
10
+ # CLI Tool Expert
11
+
12
+ ## Skill Metadata
13
+ | Field | Value |
14
+ | ----- | ----- |
15
+ | Allowed tools | Read (read_file), Bash (terminal) |
16
+ | Auto-load | On demand for CLI design requests |
17
+ | Trigger cues | Command-line UX, packaging, distribution, and automation workflows. |
18
+ | Tier | 4 |
19
+
20
+ ## What it does
21
+
22
+ Provides expertise in developing command-line interface tools with proper argument parsing, POSIX compliance, intuitive help messages, and standard exit codes.
23
+
24
+ ## When to use
25
+
26
+ - Engages when building or enhancing command-line tools.
27
+ - “CLI tool development”, “command line parsing”, “POSIX compatibility”
28
+ - Automatically invoked when working with CLI projects
29
+ - CLI tool SPEC implementation (`/alfred:2-run`)
30
+
31
+ ## How it works
32
+
33
+ **Argument Parsing**:
34
+ - **Python**: argparse, click, typer
35
+ - **Node.js**: commander, yargs, oclif
36
+ - **Rust**: clap, structopt
37
+ - **Go**: cobra, flag
38
+ - **Subcommands**: git-style commands (tool add, tool remove)
39
+
40
+ **POSIX Compliance**:
41
+ - **Short options**: -h, -v
42
+ - **Long options**: --help, --version
43
+ - **Option arguments**: -o file, --output=file
44
+ - **Standard streams**: stdin, stdout, stderr
45
+ - **Exit codes**: 0 (success), 1-255 (errors)
46
+
47
+ **User Experience**:
48
+ - **Help messages**: Comprehensive usage documentation
49
+ - **Auto-completion**: Shell completion (bash, zsh, fish)
50
+ - **Progress indicators**: Spinners, progress bars
51
+ - **Color output**: ANSI colors for readability
52
+ - **Interactive prompts**: Confirmation dialogs
53
+
54
+ **Configuration**:
55
+ - **Config files**: YAML, JSON, TOML (e.g., ~/.toolrc)
56
+ - **Environment variables**: Fallback configuration
57
+ - **Precedence**: CLI args > env vars > config file > defaults
58
+
59
+ ## Examples
60
+ ```bash
61
+ $ tool --help
62
+ $ tool run --config config.yml
63
+ ```
64
+
65
+ ## Inputs
66
+ - Domain-specific design documents and user requirements.
67
+ - Project technology stack and operational constraints.
68
+
69
+ ## Outputs
70
+ - Domain-specific architecture or implementation guidelines.
71
+ - Recommended list of associated sub-agents/skills.
72
+
73
+ ## Failure Modes
74
+ - When the domain document does not exist or is ambiguous.
75
+ - When the project strategy is unconfirmed and cannot be specified.
76
+
77
+ ## Dependencies
78
+ - `.moai/project/` document and latest technical briefing are required.
79
+
80
+ ## References
81
+ - Microsoft. "Command Line Interface Guidelines." https://learn.microsoft.com/windows/console/ (accessed 2025-03-29).
82
+ - Python Packaging Authority. "Command-line Interface Guidelines." https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/#entry-points (accessed 2025-03-29).
83
+
84
+ ## Changelog
85
+ - 2025-03-29: Codified input/output and failure responses for domain skills.
86
+
87
+ ## Works well with
88
+
89
+ - alfred-trust-validation (CLI testing)
90
+ - shell-expert (shell integration)
91
+ - python-expert/typescript-expert (implementation)
92
+
93
+ ## Best Practices
94
+ - Record supporting documentation (version/link) for each domain decision.
95
+ - Review performance, security, and operational requirements simultaneously at an early stage.