moai-adk 0.3.12__py3-none-any.whl → 0.4.0__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 (92) hide show
  1. moai_adk/__init__.py +8 -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/status.py +1 -1
  6. moai_adk/cli/commands/update.py +136 -90
  7. moai_adk/cli/prompts/init_prompts.py +1 -1
  8. moai_adk/core/__init__.py +1 -1
  9. moai_adk/core/git/branch.py +1 -1
  10. moai_adk/core/git/manager.py +1 -1
  11. moai_adk/core/project/detector.py +14 -2
  12. moai_adk/core/quality/__init__.py +1 -1
  13. moai_adk/core/quality/trust_checker.py +1 -1
  14. moai_adk/core/quality/validators/__init__.py +1 -1
  15. moai_adk/core/quality/validators/base_validator.py +1 -1
  16. moai_adk/core/template/__init__.py +1 -1
  17. moai_adk/core/template/backup.py +2 -1
  18. moai_adk/core/template/config.py +24 -0
  19. moai_adk/core/template/languages.py +1 -1
  20. moai_adk/core/template/merger.py +58 -1
  21. moai_adk/core/template/processor.py +41 -12
  22. moai_adk/templates/.claude/agents/alfred/cc-manager.md +558 -3
  23. moai_adk/templates/.claude/commands/alfred/0-project.md +480 -12
  24. moai_adk/templates/.claude/commands/alfred/1-plan.md +563 -0
  25. moai_adk/templates/.claude/commands/alfred/1-spec.md +15 -516
  26. moai_adk/templates/.claude/commands/alfred/2-build.md +15 -417
  27. moai_adk/templates/.claude/commands/alfred/2-run.md +460 -0
  28. moai_adk/templates/.claude/hooks/alfred/handlers/session.py +12 -0
  29. moai_adk/templates/.claude/skills/moai-claude-code/SKILL.md +67 -0
  30. moai_adk/templates/.claude/skills/moai-claude-code/examples.md +513 -0
  31. moai_adk/templates/.claude/skills/moai-claude-code/reference.md +419 -0
  32. moai_adk/templates/.claude/skills/moai-claude-code/templates/agent-full.md +332 -0
  33. moai_adk/templates/.claude/skills/moai-claude-code/templates/command-full.md +384 -0
  34. moai_adk/templates/.claude/skills/moai-claude-code/templates/plugin-full.json +349 -0
  35. moai_adk/templates/.claude/skills/moai-claude-code/templates/settings-full.json +552 -0
  36. moai_adk/templates/.claude/skills/moai-claude-code/templates/skill-full.md +499 -0
  37. moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +68 -0
  38. moai_adk/templates/.claude/skills/moai-domain-cli-tool/SKILL.md +64 -0
  39. moai_adk/templates/.claude/skills/moai-domain-data-science/SKILL.md +67 -0
  40. moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +69 -0
  41. moai_adk/templates/.claude/skills/moai-domain-devops/SKILL.md +69 -0
  42. moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +68 -0
  43. moai_adk/templates/.claude/skills/moai-domain-ml/SKILL.md +67 -0
  44. moai_adk/templates/.claude/skills/moai-domain-mobile-app/SKILL.md +62 -0
  45. moai_adk/templates/.claude/skills/moai-domain-security/SKILL.md +74 -0
  46. moai_adk/templates/.claude/skills/moai-domain-web-api/SKILL.md +66 -0
  47. moai_adk/templates/.claude/skills/moai-essentials-debug/SKILL.md +66 -0
  48. moai_adk/templates/.claude/skills/moai-essentials-perf/SKILL.md +68 -0
  49. moai_adk/templates/.claude/skills/moai-essentials-refactor/SKILL.md +59 -0
  50. moai_adk/templates/.claude/skills/moai-essentials-review/SKILL.md +76 -0
  51. moai_adk/templates/.claude/skills/moai-foundation-ears/SKILL.md +61 -0
  52. moai_adk/templates/.claude/skills/moai-foundation-git/SKILL.md +63 -0
  53. moai_adk/templates/.claude/skills/moai-foundation-langs/SKILL.md +64 -0
  54. moai_adk/templates/.claude/skills/moai-foundation-specs/SKILL.md +61 -0
  55. moai_adk/templates/.claude/skills/moai-foundation-tags/SKILL.md +54 -0
  56. moai_adk/templates/.claude/skills/moai-foundation-trust/SKILL.md +46 -0
  57. moai_adk/templates/.claude/skills/moai-lang-c/SKILL.md +68 -0
  58. moai_adk/templates/.claude/skills/moai-lang-clojure/SKILL.md +68 -0
  59. moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +69 -0
  60. moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +67 -0
  61. moai_adk/templates/.claude/skills/moai-lang-dart/SKILL.md +66 -0
  62. moai_adk/templates/.claude/skills/moai-lang-elixir/SKILL.md +66 -0
  63. moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +67 -0
  64. moai_adk/templates/.claude/skills/moai-lang-haskell/SKILL.md +67 -0
  65. moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +66 -0
  66. moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +64 -0
  67. moai_adk/templates/.claude/skills/moai-lang-julia/SKILL.md +66 -0
  68. moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +67 -0
  69. moai_adk/templates/.claude/skills/moai-lang-lua/SKILL.md +65 -0
  70. moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +65 -0
  71. moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +64 -0
  72. moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +66 -0
  73. moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +66 -0
  74. moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +68 -0
  75. moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +68 -0
  76. moai_adk/templates/.claude/skills/moai-lang-shell/SKILL.md +67 -0
  77. moai_adk/templates/.claude/skills/moai-lang-sql/SKILL.md +68 -0
  78. moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +67 -0
  79. moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +64 -0
  80. moai_adk/templates/.claude/skills/scripts/standardize_skills.py +166 -0
  81. moai_adk/templates/.claude/skills/scripts/verify_standardization.sh +43 -0
  82. moai_adk/templates/CLAUDE.md +153 -0
  83. moai_adk/templates/__init__.py +1 -1
  84. moai_adk/utils/__init__.py +1 -1
  85. moai_adk/utils/banner.py +1 -1
  86. moai_adk/utils/logger.py +1 -1
  87. {moai_adk-0.3.12.dist-info → moai_adk-0.4.0.dist-info}/METADATA +244 -3
  88. moai_adk-0.4.0.dist-info/RECORD +145 -0
  89. moai_adk-0.3.12.dist-info/RECORD +0 -90
  90. {moai_adk-0.3.12.dist-info → moai_adk-0.4.0.dist-info}/WHEEL +0 -0
  91. {moai_adk-0.3.12.dist-info → moai_adk-0.4.0.dist-info}/entry_points.txt +0 -0
  92. {moai_adk-0.3.12.dist-info → moai_adk-0.4.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,499 @@
1
+ ---
2
+ name: {skill-name}
3
+ description: {Comprehensive description under 200 characters - must clearly indicate when Claude should autonomously invoke this skill}
4
+ model: haiku
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Grep
9
+ - Glob
10
+ - Bash
11
+ ---
12
+
13
+ # {Skill Title}
14
+
15
+ > {One-sentence compelling summary of value proposition}
16
+
17
+ ---
18
+
19
+ ## 🎯 이 스킬의 목적
20
+
21
+ {Comprehensive explanation covering:
22
+ - Problem statement and context
23
+ - How this skill addresses the problem
24
+ - Unique value proposition
25
+ - Integration with broader workflows}
26
+
27
+ **문제**: {Detailed problem description with examples}
28
+ **해결**: {Comprehensive solution approach}
29
+ **효과**: {Measurable benefits and improvements}
30
+
31
+ ---
32
+
33
+ ## 🏗️ MoAI-ADK 통합
34
+
35
+ ### Alfred 자동 선택 조건
36
+
37
+ Alfred는 다음 조건에서 이 스킬을 자동으로 활성화합니다:
38
+
39
+ - {Specific automatic trigger condition 1 with context}
40
+ - {Specific automatic trigger condition 2 with keywords}
41
+ - {Specific automatic trigger condition 3 with workflow state}
42
+
43
+ ### 워크플로우 위치
44
+
45
+ ```
46
+ /alfred:1-spec → /alfred:2-build → /alfred:3-sync
47
+
48
+ 이 스킬 자동 활성화
49
+ ({when activated})
50
+ ```
51
+
52
+ **통합 시점**:
53
+ - **Phase**: {Which phase of MoAI-ADK workflow}
54
+ - **트리거**: {What triggers automatic invocation}
55
+ - **역할**: {What this skill contributes to the workflow}
56
+
57
+ ---
58
+
59
+ ## 📋 핵심 기능
60
+
61
+ ### 1. {Major Feature 1 Name}
62
+
63
+ {Detailed multi-paragraph description of this feature}
64
+
65
+ **구현 방법**:
66
+ ```{language}
67
+ # {Implementation detail 1}
68
+ {code-example-1}
69
+
70
+ # {Implementation detail 2}
71
+ {code-example-2}
72
+ ```
73
+
74
+ **산출물**:
75
+ - **{Output 1}**: {Detailed description with format}
76
+ - **{Output 2}**: {Description with validation criteria}
77
+ - **{Output 3}**: {Description with usage notes}
78
+
79
+ **검증**:
80
+ ```bash
81
+ # {Verification method}
82
+ {verification-command}
83
+ ```
84
+
85
+ ---
86
+
87
+ ### 2. {Major Feature 2 Name}
88
+
89
+ {Comprehensive feature description}
90
+
91
+ **알고리즘**:
92
+ 1. {Step 1 of algorithm}
93
+ 2. {Step 2 with details}
94
+ 3. {Step 3 and expected outcome}
95
+
96
+ **구현 예시**:
97
+ ```{language}
98
+ {detailed-code-example}
99
+ ```
100
+
101
+ ---
102
+
103
+ ### 3. {Major Feature 3 Name}
104
+
105
+ {Feature description with use cases}
106
+
107
+ **사용 시나리오**:
108
+ - **{Scenario A}**: {When and why to use}
109
+ - **{Scenario B}**: {Alternative use case}
110
+
111
+ ---
112
+
113
+ ## 💡 사용 패턴
114
+
115
+ ### 패턴 1: 수동 호출
116
+
117
+ **사용자 요청 예시**:
118
+ ```
119
+ "{skill-name} 실행해주세요"
120
+ "{natural-language-trigger-phrase}"
121
+ ```
122
+
123
+ **Alfred 동작**:
124
+ 1. {What Alfred does in step 1}
125
+ 2. {What Alfred does in step 2}
126
+ 3. {Final action and result}
127
+
128
+ ---
129
+
130
+ ### 패턴 2: 자동 활성화
131
+
132
+ **트리거 조건**: {When automatic activation occurs}
133
+
134
+ **Alfred 감지 시나리오**:
135
+ ```
136
+ 사용자: "{example-user-request}"
137
+ → Alfred 분석: {how Alfred recognizes this needs the skill}
138
+ → 자동 실행: {what happens automatically}
139
+ → 결과: {what user receives}
140
+ ```
141
+
142
+ ---
143
+
144
+ ### 패턴 3: 커맨드 통합
145
+
146
+ **연관 커맨드**: `/{command-name}`
147
+
148
+ **통합 흐름**:
149
+ ```
150
+ /{command-name} 실행
151
+
152
+ {When skill is invoked during command}
153
+
154
+ 이 스킬 자동 호출
155
+
156
+ {What skill contributes}
157
+
158
+ 커맨드 계속 진행
159
+ ```
160
+
161
+ ---
162
+
163
+ ## ⚙️ 설정 및 구성
164
+
165
+ ### 설정 파일 위치
166
+
167
+ `.moai/config.json`에서 설정:
168
+
169
+ ```json
170
+ {
171
+ "{skill-config-section}": {
172
+ "{option1}": {default-value},
173
+ "{option2}": {default-value},
174
+ "{option3}": {
175
+ "{sub-option1}": {value},
176
+ "{sub-option2}": {value}
177
+ }
178
+ }
179
+ }
180
+ ```
181
+
182
+ ### 설정 옵션 상세
183
+
184
+ | 옵션 | 타입 | 기본값 | 필수 | 설명 |
185
+ |-----|------|-------|------|------|
186
+ | `{option1}` | {type} | `{default}` | ✅/⚠️ | {Comprehensive description} |
187
+ | `{option2}` | {type} | `{default}` | ⚠️ | {What this controls} |
188
+ | `{option3}` | {type} | `{default}` | ⚠️ | {Usage notes} |
189
+
190
+ ### 환경변수 (선택적)
191
+
192
+ ```bash
193
+ # {Environment variable 1}
194
+ export {VAR_NAME_1}="{value}"
195
+
196
+ # {Environment variable 2}
197
+ export {VAR_NAME_2}="{value}"
198
+ ```
199
+
200
+ ---
201
+
202
+ ## 📁 디렉토리 구조
203
+
204
+ ```
205
+ .claude/skills/{skill-name}/
206
+ ├── SKILL.md # 메인 스킬 정의 (this file)
207
+ ├── reference.md # 상세 참조 문서
208
+ ├── examples.md # 실전 예제 모음
209
+ ├── scripts/ # 유틸리티 스크립트
210
+ │ ├── {helper-1}.py
211
+ │ └── {helper-2}.py
212
+ └── templates/ # 템플릿 파일
213
+ ├── {template-1}.txt
214
+ └── {template-2}.json
215
+ ```
216
+
217
+ ### 추가 파일 설명
218
+
219
+ - **reference.md**: {What additional documentation it contains}
220
+ - **examples.md**: {What examples are provided}
221
+ - **scripts/**: {What utility scripts do}
222
+ - **templates/**: {What templates are included}
223
+
224
+ ---
225
+
226
+ ## ✅ 검증 체크리스트
227
+
228
+ ### 실행 전 검증
229
+
230
+ - [ ] {Pre-execution check 1}
231
+ - [ ] {Pre-execution check 2}
232
+ - [ ] {Pre-execution check 3}
233
+
234
+ ### 실행 후 검증
235
+
236
+ - [ ] {Post-execution validation 1 with criteria}
237
+ - [ ] {Post-execution validation 2 with expected state}
238
+ - [ ] {Post-execution validation 3 with deliverable}
239
+ - [ ] {MoAI-ADK 워크플로우 통합 확인}
240
+
241
+ ### 검증 명령어
242
+
243
+ ```bash
244
+ # {Validation script 1}
245
+ uv run .claude/skills/{skill-name}/scripts/validate.py
246
+
247
+ # {Validation check 2}
248
+ {verification-command}
249
+
250
+ # {Integration test}
251
+ {integration-test-command}
252
+ ```
253
+
254
+ ---
255
+
256
+ ## 🚨 에러 처리
257
+
258
+ ### 에러 분류
259
+
260
+ #### 1. {Error Category 1}
261
+
262
+ **증상**: {How this error manifests}
263
+
264
+ **원인**:
265
+ - {Possible cause 1}
266
+ - {Possible cause 2}
267
+
268
+ **해결 방법**:
269
+ ```bash
270
+ # {Solution step 1}
271
+ {command-1}
272
+
273
+ # {Solution step 2}
274
+ {command-2}
275
+ ```
276
+
277
+ ---
278
+
279
+ #### 2. {Error Category 2}
280
+
281
+ **증상**: {Error description}
282
+
283
+ **디버깅**:
284
+ ```bash
285
+ # {How to debug}
286
+ {debug-command}
287
+ ```
288
+
289
+ **수정**:
290
+ 1. {Fix step 1}
291
+ 2. {Fix step 2}
292
+
293
+ ---
294
+
295
+ ### 로깅 및 디버깅
296
+
297
+ **로그 위치**: `{log-file-path}`
298
+
299
+ **로그 레벨 설정**:
300
+ ```bash
301
+ # {How to enable debug logging}
302
+ {logging-config-command}
303
+ ```
304
+
305
+ **로그 확인**:
306
+ ```bash
307
+ # {How to view logs}
308
+ tail -f {log-file-path}
309
+ ```
310
+
311
+ ---
312
+
313
+ ## 🔗 연관 에이전트/커맨드
314
+
315
+ ### 연관 커맨드
316
+
317
+ - **/{command-1}** - {How this skill supports the command}
318
+ - **/{command-2}** - {Integration point}
319
+
320
+ ### 연관 에이전트
321
+
322
+ - **@agent-{agent-1}** - {How they work together}
323
+ - **@agent-{agent-2}** - {Collaboration scenario}
324
+
325
+ ### 연관 스킬
326
+
327
+ - **{skill-1}** - {Complementary functionality}
328
+ - **{skill-2}** - {When to use together}
329
+
330
+ ---
331
+
332
+ ## 📊 성능 및 메트릭
333
+
334
+ ### 성능 특성
335
+
336
+ - **실행 시간**: {Typical execution time}
337
+ - **메모리 사용**: {Expected memory usage}
338
+ - **디스크 I/O**: {File operations count}
339
+ - **네트워크**: {External API calls if any}
340
+
341
+ ### 최적화 팁
342
+
343
+ 1. **{Optimization 1}**: {How to improve performance}
344
+ 2. **{Optimization 2}**: {Configuration tweak}
345
+ 3. **{Optimization 3}**: {Best practice}
346
+
347
+ ---
348
+
349
+ ## 🎓 베스트 프랙티스
350
+
351
+ ### 1. {Practice Category 1}
352
+
353
+ **권장 사항**:
354
+ ```{language}
355
+ # {Good practice example}
356
+ {recommended-code}
357
+ ```
358
+
359
+ **피해야 할 사항**:
360
+ ```{language}
361
+ # {Anti-pattern example}
362
+ {avoid-this-code}
363
+ ```
364
+
365
+ **이유**: {Why this is best practice}
366
+
367
+ ---
368
+
369
+ ### 2. {Practice Category 2}
370
+
371
+ **팁**: {Helpful tip}
372
+
373
+ **예시**:
374
+ ```bash
375
+ {example-of-best-practice}
376
+ ```
377
+
378
+ ---
379
+
380
+ ### 3. {Practice Category 3}
381
+
382
+ **주의사항**: {Important consideration}
383
+
384
+ ---
385
+
386
+ ## 📖 실전 예제
387
+
388
+ ### 예제 1: {Common Use Case}
389
+
390
+ **목적**: {What this example demonstrates}
391
+
392
+ **입력**:
393
+ ```{format}
394
+ {example-input}
395
+ ```
396
+
397
+ **실행**:
398
+ ```bash
399
+ {commands-to-run}
400
+ ```
401
+
402
+ **출력**:
403
+ ```{format}
404
+ {example-output}
405
+ ```
406
+
407
+ **설명**: {What happened and why}
408
+
409
+ ---
410
+
411
+ ### 예제 2: {Advanced Use Case}
412
+
413
+ **목적**: {Advanced scenario}
414
+
415
+ **시나리오**: {Detailed scenario description}
416
+
417
+ **구현**:
418
+ ```{language}
419
+ {implementation-code}
420
+ ```
421
+
422
+ **결과**: {What you achieve}
423
+
424
+ ---
425
+
426
+ ### 예제 3: {Edge Case}
427
+
428
+ **상황**: {Unusual but important scenario}
429
+
430
+ **처리 방법**: {How skill handles this}
431
+
432
+ ---
433
+
434
+ ## 🔧 커스터마이제이션
435
+
436
+ ### 확장 포인트
437
+
438
+ 이 스킬을 프로젝트에 맞게 커스터마이즈할 수 있는 영역:
439
+
440
+ 1. **{Extension Point 1}**
441
+ - 파일: `{file-to-modify}`
442
+ - 수정 방법: {How to customize}
443
+
444
+ 2. **{Extension Point 2}**
445
+ - 설정: `{config-key}`
446
+ - 옵션: {Available options}
447
+
448
+ ### 플러그인 시스템 (고급)
449
+
450
+ ```python
451
+ # {How to create plugins for this skill}
452
+ {plugin-example-code}
453
+ ```
454
+
455
+ ---
456
+
457
+ ## 📚 참고 자료
458
+
459
+ ### 공식 문서
460
+ - **Claude Code Skills**: https://docs.claude.com/en/docs/claude-code/skills
461
+ - **{Related Doc}**: {URL}
462
+
463
+ ### MoAI-ADK 리소스
464
+ - **개발 가이드**: `.moai/memory/development-guide.md`
465
+ - **SPEC 메타데이터**: `.moai/memory/spec-metadata.md`
466
+
467
+ ### 커뮤니티
468
+ - **GitHub Issues**: {Link}
469
+ - **디스커션**: {Link}
470
+
471
+ ---
472
+
473
+ ## 🔄 업데이트 로그
474
+
475
+ ### v1.0.0 (Initial)
476
+ - {Feature 1 introduced}
477
+ - {Feature 2 implemented}
478
+ - {Initial release notes}
479
+
480
+ ---
481
+
482
+ **Template Level**: Full
483
+ **Best For**: Production MoAI-ADK integration, enterprise workflows
484
+ **Features**:
485
+ - Alfred 자동 선택
486
+ - 워크플로우 통합
487
+ - 상세 설정
488
+ - 검증 자동화
489
+ - 에러 처리
490
+ - 성능 최적화
491
+
492
+ **Directory Structure**: Full (SKILL.md + reference.md + examples.md + scripts/ + templates/)
493
+ **Estimated Setup Time**: 45-60 minutes
494
+ **Maintenance**: Regular updates as workflow evolves
495
+ **Support**: Full MoAI-ADK integration support
496
+
497
+ ---
498
+
499
+ 이 스킬은 {domain}에서 최고 수준의 자동화를 제공합니다.
@@ -0,0 +1,68 @@
1
+ ---
2
+ name: moai-domain-backend
3
+ description: Server architecture, API design, caching strategies, and scalability
4
+ patterns
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ ---
9
+
10
+ # Backend Expert
11
+
12
+ ## What it does
13
+
14
+ Provides expertise in backend server architecture, RESTful API design, caching strategies, database optimization, and horizontal/vertical scalability patterns.
15
+
16
+ ## When to use
17
+
18
+ - "백엔드 아키텍처", "API 설계", "캐싱 전략", "확장성"
19
+ - Automatically invoked when working with backend projects
20
+ - Backend SPEC implementation (`/alfred:2-build`)
21
+
22
+ ## How it works
23
+
24
+ **Server Architecture**:
25
+ - **Layered architecture**: Controller → Service → Repository
26
+ - **Microservices**: Service decomposition, inter-service communication
27
+ - **Monoliths**: When appropriate (team size, complexity)
28
+ - **Serverless**: Functions as a Service (AWS Lambda, Cloud Functions)
29
+
30
+ **API Design**:
31
+ - **RESTful principles**: Resource-based, stateless
32
+ - **GraphQL**: Schema-first design
33
+ - **gRPC**: Protocol buffers for high performance
34
+ - **WebSockets**: Real-time bidirectional communication
35
+
36
+ **Caching Strategies**:
37
+ - **Redis**: In-memory data store
38
+ - **Memcached**: Distributed caching
39
+ - **Cache invalidation**: TTL, cache-aside pattern
40
+ - **CDN caching**: Static asset delivery
41
+
42
+ **Database Optimization**:
43
+ - **Connection pooling**: Reuse connections
44
+ - **Query optimization**: EXPLAIN analysis
45
+ - **Read replicas**: Horizontal scaling
46
+ - **Sharding**: Data partitioning
47
+
48
+ **Scalability Patterns**:
49
+ - **Horizontal scaling**: Load balancing across instances
50
+ - **Vertical scaling**: Increasing instance resources
51
+ - **Async processing**: Message queues (RabbitMQ, Kafka)
52
+ - **Rate limiting**: API throttling
53
+
54
+ ## Examples
55
+
56
+ ### Example 1: Layered architecture implementation
57
+ User: "/alfred:2-build BACKEND-001"
58
+ Claude: (creates RED API test, GREEN layered implementation, REFACTOR with caching)
59
+
60
+ ### Example 2: Redis caching integration
61
+ User: "Redis 캐싱 추가"
62
+ Claude: (implements cache-aside pattern with Redis)
63
+
64
+ ## Works well with
65
+
66
+ - alfred-trust-validation (backend testing)
67
+ - web-api-expert (API design)
68
+ - database-expert (database optimization)
@@ -0,0 +1,64 @@
1
+ ---
2
+ name: moai-domain-cli-tool
3
+ description: CLI tool development with argument parsing, POSIX compliance, and user-friendly
4
+ help messages
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ ---
9
+
10
+ # CLI Tool Expert
11
+
12
+ ## What it does
13
+
14
+ Provides expertise in developing command-line interface tools with proper argument parsing, POSIX compliance, intuitive help messages, and standard exit codes.
15
+
16
+ ## When to use
17
+
18
+ - "CLI 도구 개발", "명령줄 파싱", "POSIX 호환성"
19
+ - Automatically invoked when working with CLI projects
20
+ - CLI tool SPEC implementation (`/alfred:2-build`)
21
+
22
+ ## How it works
23
+
24
+ **Argument Parsing**:
25
+ - **Python**: argparse, click, typer
26
+ - **Node.js**: commander, yargs, oclif
27
+ - **Rust**: clap, structopt
28
+ - **Go**: cobra, flag
29
+ - **Subcommands**: git-style commands (tool add, tool remove)
30
+
31
+ **POSIX Compliance**:
32
+ - **Short options**: -h, -v
33
+ - **Long options**: --help, --version
34
+ - **Option arguments**: -o file, --output=file
35
+ - **Standard streams**: stdin, stdout, stderr
36
+ - **Exit codes**: 0 (success), 1-255 (errors)
37
+
38
+ **User Experience**:
39
+ - **Help messages**: Comprehensive usage documentation
40
+ - **Auto-completion**: Shell completion (bash, zsh, fish)
41
+ - **Progress indicators**: Spinners, progress bars
42
+ - **Color output**: ANSI colors for readability
43
+ - **Interactive prompts**: Confirmation dialogs
44
+
45
+ **Configuration**:
46
+ - **Config files**: YAML, JSON, TOML (e.g., ~/.toolrc)
47
+ - **Environment variables**: Fallback configuration
48
+ - **Precedence**: CLI args > env vars > config file > defaults
49
+
50
+ ## Examples
51
+
52
+ ### Example 1: CLI tool with subcommands
53
+ User: "/alfred:2-build CLI-001"
54
+ Claude: (creates RED CLI test, GREEN implementation with click, REFACTOR)
55
+
56
+ ### Example 2: POSIX compliance check
57
+ User: "POSIX 호환성 확인"
58
+ Claude: (validates exit codes, option formats, stderr usage)
59
+
60
+ ## Works well with
61
+
62
+ - alfred-trust-validation (CLI testing)
63
+ - shell-expert (shell integration)
64
+ - python-expert/typescript-expert (implementation)
@@ -0,0 +1,67 @@
1
+ ---
2
+ name: moai-domain-data-science
3
+ description: Data analysis, visualization, statistical modeling, and reproducible
4
+ research workflows
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ ---
9
+
10
+ # Data Science Expert
11
+
12
+ ## What it does
13
+
14
+ Provides expertise in data analysis workflows, statistical modeling, data visualization, and reproducible research practices using Python (pandas, scikit-learn) or R (tidyverse).
15
+
16
+ ## When to use
17
+
18
+ - "데이터 분석", "시각화", "통계 모델링", "재현 가능한 연구"
19
+ - Automatically invoked when working with data science projects
20
+ - Data science SPEC implementation (`/alfred:2-build`)
21
+
22
+ ## How it works
23
+
24
+ **Data Analysis (Python)**:
25
+ - **pandas**: Data manipulation (DataFrames, groupby, merge)
26
+ - **numpy**: Numerical computing
27
+ - **scipy**: Scientific computing, statistics
28
+ - **statsmodels**: Statistical modeling
29
+
30
+ **Data Analysis (R)**:
31
+ - **tidyverse**: dplyr, ggplot2, tidyr
32
+ - **data.table**: High-performance data manipulation
33
+ - **caret**: Machine learning framework
34
+
35
+ **Visualization**:
36
+ - **matplotlib/seaborn**: Python plotting
37
+ - **plotly**: Interactive visualizations
38
+ - **ggplot2**: R grammar of graphics
39
+ - **D3.js**: Web-based visualizations
40
+
41
+ **Statistical Modeling**:
42
+ - **Hypothesis testing**: t-tests, ANOVA, chi-square
43
+ - **Regression**: Linear, logistic, polynomial
44
+ - **Time series**: ARIMA, seasonal decomposition
45
+ - **Bayesian inference**: PyMC3, Stan
46
+
47
+ **Reproducible Research**:
48
+ - **Jupyter notebooks**: Interactive analysis
49
+ - **R Markdown**: Literate programming
50
+ - **Version control**: Git for notebooks (nbstripout)
51
+ - **Environment management**: conda, renv
52
+
53
+ ## Examples
54
+
55
+ ### Example 1: Exploratory data analysis
56
+ User: "/alfred:2-build ANALYSIS-001"
57
+ Claude: (creates RED analysis test, GREEN pandas implementation, REFACTOR with visualizations)
58
+
59
+ ### Example 2: Statistical modeling
60
+ User: "회귀 분석 모델 구축"
61
+ Claude: (implements linear regression with hypothesis testing)
62
+
63
+ ## Works well with
64
+
65
+ - alfred-trust-validation (analysis testing)
66
+ - python-expert/r-expert (implementation)
67
+ - ml-expert (advanced modeling)