moai-adk 0.4.0__py3-none-any.whl → 0.4.4__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.
- moai_adk/__init__.py +2 -3
- moai_adk/cli/commands/init.py +10 -5
- moai_adk/cli/commands/update.py +274 -118
- moai_adk/cli/prompts/init_prompts.py +14 -18
- moai_adk/core/diagnostics/slash_commands.py +1 -1
- moai_adk/core/project/backup_utils.py +2 -11
- moai_adk/core/project/checker.py +2 -2
- moai_adk/core/project/phase_executor.py +11 -14
- moai_adk/core/project/validator.py +3 -2
- moai_adk/core/quality/__init__.py +1 -1
- moai_adk/core/quality/trust_checker.py +63 -63
- moai_adk/core/quality/validators/__init__.py +1 -1
- moai_adk/core/quality/validators/base_validator.py +1 -1
- moai_adk/core/template/backup.py +21 -8
- moai_adk/core/template/merger.py +14 -4
- moai_adk/core/template/processor.py +24 -5
- moai_adk/templates/.claude/agents/alfred/cc-manager.md +446 -424
- moai_adk/templates/.claude/agents/alfred/debug-helper.md +116 -103
- moai_adk/templates/.claude/agents/alfred/doc-syncer.md +130 -116
- moai_adk/templates/.claude/agents/alfred/git-manager.md +186 -174
- moai_adk/templates/.claude/agents/alfred/implementation-planner.md +227 -213
- moai_adk/templates/.claude/agents/alfred/project-manager.md +216 -128
- moai_adk/templates/.claude/agents/alfred/quality-gate.md +224 -209
- moai_adk/templates/.claude/agents/alfred/spec-builder.md +174 -160
- moai_adk/templates/.claude/agents/alfred/tag-agent.md +151 -139
- moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +209 -196
- moai_adk/templates/.claude/agents/alfred/trust-checker.md +247 -233
- moai_adk/templates/.claude/commands/alfred/0-project.md +756 -640
- moai_adk/templates/.claude/commands/alfred/1-plan.md +343 -333
- moai_adk/templates/.claude/commands/alfred/2-run.md +297 -285
- moai_adk/templates/.claude/commands/alfred/3-sync.md +387 -356
- moai_adk/templates/.claude/hooks/alfred/README.md +52 -52
- moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +44 -48
- moai_adk/templates/.claude/hooks/alfred/core/__init__.py +17 -17
- moai_adk/templates/.claude/hooks/alfred/core/checkpoint.py +59 -59
- moai_adk/templates/.claude/hooks/alfred/core/context.py +19 -19
- moai_adk/templates/.claude/hooks/alfred/core/project.py +52 -52
- moai_adk/templates/.claude/hooks/alfred/handlers/__init__.py +1 -1
- moai_adk/templates/.claude/hooks/alfred/handlers/notification.py +4 -4
- moai_adk/templates/.claude/hooks/alfred/handlers/session.py +27 -27
- moai_adk/templates/.claude/hooks/alfred/handlers/tool.py +16 -17
- moai_adk/templates/.claude/hooks/alfred/handlers/user.py +11 -11
- moai_adk/templates/.claude/output-styles/alfred/agentic-coding.md +308 -307
- moai_adk/templates/.claude/output-styles/alfred/moai-adk-learning.md +297 -296
- moai_adk/templates/.claude/output-styles/alfred/study-with-alfred.md +191 -190
- moai_adk/templates/.claude/skills/moai-alfred-code-reviewer/SKILL.md +112 -0
- moai_adk/templates/.claude/skills/moai-alfred-debugger-pro/SKILL.md +103 -0
- moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/SKILL.md +103 -0
- moai_adk/templates/.claude/skills/moai-alfred-git-workflow/SKILL.md +95 -0
- moai_adk/templates/.claude/skills/moai-alfred-language-detection/SKILL.md +99 -0
- moai_adk/templates/.claude/skills/moai-alfred-performance-optimizer/SKILL.md +105 -0
- moai_adk/templates/.claude/skills/moai-alfred-refactoring-coach/SKILL.md +97 -0
- moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/SKILL.md +97 -0
- moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/SKILL.md +90 -0
- moai_adk/templates/.claude/skills/moai-alfred-trust-validation/SKILL.md +99 -0
- moai_adk/templates/.claude/skills/moai-alfred-tui-survey/SKILL.md +87 -0
- moai_adk/templates/.claude/skills/moai-alfred-tui-survey/examples.md +62 -0
- moai_adk/templates/.claude/skills/moai-claude-code/SKILL.md +70 -43
- moai_adk/templates/.claude/skills/moai-claude-code/examples.md +141 -141
- moai_adk/templates/.claude/skills/moai-claude-code/reference.md +179 -165
- moai_adk/templates/.claude/skills/moai-claude-code/templates/agent-full.md +78 -78
- moai_adk/templates/.claude/skills/moai-claude-code/templates/command-full.md +90 -90
- moai_adk/templates/.claude/skills/moai-claude-code/templates/plugin-full.json +39 -25
- moai_adk/templates/.claude/skills/moai-claude-code/templates/settings-full.json +117 -74
- moai_adk/templates/.claude/skills/moai-claude-code/templates/skill-full.md +131 -134
- moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +43 -12
- moai_adk/templates/.claude/skills/moai-domain-cli-tool/SKILL.md +43 -12
- moai_adk/templates/.claude/skills/moai-domain-data-science/SKILL.md +43 -12
- moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +43 -12
- moai_adk/templates/.claude/skills/moai-domain-devops/SKILL.md +43 -12
- moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +43 -12
- moai_adk/templates/.claude/skills/moai-domain-ml/SKILL.md +43 -11
- moai_adk/templates/.claude/skills/moai-domain-mobile-app/SKILL.md +43 -12
- moai_adk/templates/.claude/skills/moai-domain-security/SKILL.md +43 -12
- moai_adk/templates/.claude/skills/moai-domain-web-api/SKILL.md +43 -12
- moai_adk/templates/.claude/skills/moai-essentials-debug/SKILL.md +47 -11
- moai_adk/templates/.claude/skills/moai-essentials-perf/SKILL.md +47 -11
- moai_adk/templates/.claude/skills/moai-essentials-refactor/SKILL.md +51 -14
- moai_adk/templates/.claude/skills/moai-essentials-review/SKILL.md +46 -10
- moai_adk/templates/.claude/skills/moai-foundation-ears/SKILL.md +62 -25
- moai_adk/templates/.claude/skills/moai-foundation-git/SKILL.md +44 -17
- moai_adk/templates/.claude/skills/moai-foundation-langs/SKILL.md +44 -14
- moai_adk/templates/.claude/skills/moai-foundation-specs/SKILL.md +45 -13
- moai_adk/templates/.claude/skills/moai-foundation-tags/SKILL.md +46 -14
- moai_adk/templates/.claude/skills/moai-foundation-trust/SKILL.md +48 -8
- moai_adk/templates/.claude/skills/moai-lang-c/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-clojure/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +44 -11
- moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +44 -11
- moai_adk/templates/.claude/skills/moai-lang-dart/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-elixir/SKILL.md +44 -11
- moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +44 -11
- moai_adk/templates/.claude/skills/moai-lang-haskell/SKILL.md +44 -11
- moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-julia/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-lua/SKILL.md +44 -11
- moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +44 -11
- moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +44 -11
- moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +44 -11
- moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-shell/SKILL.md +44 -11
- moai_adk/templates/.claude/skills/moai-lang-sql/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +44 -12
- moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +44 -12
- moai_adk/templates/.github/PULL_REQUEST_TEMPLATE.md +44 -43
- moai_adk/templates/.github/workflows/moai-gitflow.yml +36 -35
- moai_adk/templates/.moai/config.json +9 -6
- moai_adk/templates/.moai/memory/development-guide.md +220 -221
- moai_adk/templates/.moai/memory/gitflow-protection-policy.md +85 -85
- moai_adk/templates/.moai/memory/spec-metadata.md +229 -150
- moai_adk/templates/.moai/project/product.md +90 -90
- moai_adk/templates/.moai/project/structure.md +85 -85
- moai_adk/templates/.moai/project/tech.md +117 -117
- moai_adk/templates/CLAUDE.md +564 -709
- moai_adk-0.4.4.dist-info/METADATA +369 -0
- moai_adk-0.4.4.dist-info/RECORD +152 -0
- moai_adk/templates/.claude/commands/alfred/1-spec.md +0 -31
- moai_adk/templates/.claude/commands/alfred/2-build.md +0 -30
- moai_adk/templates/.claude/skills/scripts/standardize_skills.py +0 -166
- moai_adk/templates/.claude/skills/scripts/verify_standardization.sh +0 -43
- moai_adk/templates/.moai/hooks/pre-push.sample +0 -88
- moai_adk-0.4.0.dist-info/METADATA +0 -1816
- moai_adk-0.4.0.dist-info/RECORD +0 -145
- {moai_adk-0.4.0.dist-info → moai_adk-0.4.4.dist-info}/WHEEL +0 -0
- {moai_adk-0.4.0.dist-info → moai_adk-0.4.4.dist-info}/entry_points.txt +0 -0
- {moai_adk-0.4.0.dist-info → moai_adk-0.4.4.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: {skill-name}
|
|
3
|
-
description: {
|
|
4
|
-
|
|
5
|
-
allowed-tools:
|
|
3
|
+
description: {Capability + trigger phrases (<=1024 chars, aim for <=200)}
|
|
4
|
+
allowed-tools: # optional; remove if full tool access is acceptable
|
|
6
5
|
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Grep
|
|
9
|
-
- Glob
|
|
10
6
|
- Bash
|
|
7
|
+
- Write
|
|
11
8
|
---
|
|
12
9
|
|
|
13
10
|
# {Skill Title}
|
|
@@ -16,7 +13,7 @@ allowed-tools:
|
|
|
16
13
|
|
|
17
14
|
---
|
|
18
15
|
|
|
19
|
-
## 🎯
|
|
16
|
+
## 🎯 Purpose of this skill
|
|
20
17
|
|
|
21
18
|
{Comprehensive explanation covering:
|
|
22
19
|
- Problem statement and context
|
|
@@ -24,45 +21,45 @@ allowed-tools:
|
|
|
24
21
|
- Unique value proposition
|
|
25
22
|
- Integration with broader workflows}
|
|
26
23
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
**Problem**: {Detailed problem description with examples}
|
|
25
|
+
**Solution**: {Comprehensive solution approach}
|
|
26
|
+
**Impact**: {Measurable benefits and improvements}
|
|
30
27
|
|
|
31
28
|
---
|
|
32
29
|
|
|
33
|
-
## 🏗️ MoAI-ADK
|
|
30
|
+
## 🏗️ MoAI-ADK integration
|
|
34
31
|
|
|
35
|
-
### Alfred
|
|
32
|
+
### Alfred auto-selection conditions
|
|
36
33
|
|
|
37
|
-
Alfred
|
|
34
|
+
Alfred automatically activates this skill under the following conditions:
|
|
38
35
|
|
|
39
36
|
- {Specific automatic trigger condition 1 with context}
|
|
40
37
|
- {Specific automatic trigger condition 2 with keywords}
|
|
41
38
|
- {Specific automatic trigger condition 3 with workflow state}
|
|
42
39
|
|
|
43
|
-
###
|
|
40
|
+
### Workflow location
|
|
44
41
|
|
|
45
42
|
```
|
|
46
|
-
/alfred:1-
|
|
43
|
+
/alfred:1-plan → /alfred:2-run → /alfred:3-sync
|
|
47
44
|
↑
|
|
48
|
-
|
|
45
|
+
Automatically activate this skill
|
|
49
46
|
({when activated})
|
|
50
47
|
```
|
|
51
48
|
|
|
52
|
-
|
|
49
|
+
**Integration Point**:
|
|
53
50
|
- **Phase**: {Which phase of MoAI-ADK workflow}
|
|
54
|
-
-
|
|
55
|
-
-
|
|
51
|
+
- **Trigger**: {What triggers automatic invocation}
|
|
52
|
+
- **Role**: {What this skill contributes to the workflow}
|
|
56
53
|
|
|
57
54
|
---
|
|
58
55
|
|
|
59
|
-
## 📋
|
|
56
|
+
## 📋 Core features
|
|
60
57
|
|
|
61
58
|
### 1. {Major Feature 1 Name}
|
|
62
59
|
|
|
63
60
|
{Detailed multi-paragraph description of this feature}
|
|
64
61
|
|
|
65
|
-
|
|
62
|
+
**How to implement**:
|
|
66
63
|
```{language}
|
|
67
64
|
# {Implementation detail 1}
|
|
68
65
|
{code-example-1}
|
|
@@ -71,12 +68,12 @@ Alfred는 다음 조건에서 이 스킬을 자동으로 활성화합니다:
|
|
|
71
68
|
{code-example-2}
|
|
72
69
|
```
|
|
73
70
|
|
|
74
|
-
|
|
71
|
+
**Output**:
|
|
75
72
|
- **{Output 1}**: {Detailed description with format}
|
|
76
73
|
- **{Output 2}**: {Description with validation criteria}
|
|
77
74
|
- **{Output 3}**: {Description with usage notes}
|
|
78
75
|
|
|
79
|
-
|
|
76
|
+
**verification**:
|
|
80
77
|
```bash
|
|
81
78
|
# {Verification method}
|
|
82
79
|
{verification-command}
|
|
@@ -88,12 +85,12 @@ Alfred는 다음 조건에서 이 스킬을 자동으로 활성화합니다:
|
|
|
88
85
|
|
|
89
86
|
{Comprehensive feature description}
|
|
90
87
|
|
|
91
|
-
|
|
88
|
+
**Algorithm**:
|
|
92
89
|
1. {Step 1 of algorithm}
|
|
93
90
|
2. {Step 2 with details}
|
|
94
91
|
3. {Step 3 and expected outcome}
|
|
95
92
|
|
|
96
|
-
|
|
93
|
+
**Implementation example**:
|
|
97
94
|
```{language}
|
|
98
95
|
{detailed-code-example}
|
|
99
96
|
```
|
|
@@ -104,67 +101,67 @@ Alfred는 다음 조건에서 이 스킬을 자동으로 활성화합니다:
|
|
|
104
101
|
|
|
105
102
|
{Feature description with use cases}
|
|
106
103
|
|
|
107
|
-
|
|
104
|
+
**Use Scenario**:
|
|
108
105
|
- **{Scenario A}**: {When and why to use}
|
|
109
106
|
- **{Scenario B}**: {Alternative use case}
|
|
110
107
|
|
|
111
108
|
---
|
|
112
109
|
|
|
113
|
-
## 💡
|
|
110
|
+
## 💡 Usage Pattern
|
|
114
111
|
|
|
115
|
-
###
|
|
112
|
+
### Pattern 1: Manual call
|
|
116
113
|
|
|
117
|
-
|
|
114
|
+
**Example User Request**:
|
|
118
115
|
```
|
|
119
|
-
"{skill-name}
|
|
116
|
+
"Please execute {skill-name}"
|
|
120
117
|
"{natural-language-trigger-phrase}"
|
|
121
118
|
```
|
|
122
119
|
|
|
123
|
-
**Alfred
|
|
120
|
+
**Alfred Action**:
|
|
124
121
|
1. {What Alfred does in step 1}
|
|
125
122
|
2. {What Alfred does in step 2}
|
|
126
123
|
3. {Final action and result}
|
|
127
124
|
|
|
128
125
|
---
|
|
129
126
|
|
|
130
|
-
###
|
|
127
|
+
### Pattern 2: Automatic activation
|
|
131
128
|
|
|
132
|
-
|
|
129
|
+
**Trigger condition**: {When automatic activation occurs}
|
|
133
130
|
|
|
134
|
-
**Alfred
|
|
131
|
+
**Alfred detection scenario**:
|
|
135
132
|
```
|
|
136
|
-
|
|
137
|
-
→ Alfred
|
|
138
|
-
→
|
|
139
|
-
→
|
|
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}
|
|
140
137
|
```
|
|
141
138
|
|
|
142
139
|
---
|
|
143
140
|
|
|
144
|
-
###
|
|
141
|
+
### Pattern 3: Command integration
|
|
145
142
|
|
|
146
|
-
|
|
143
|
+
**Related command**: `/{command-name}`
|
|
147
144
|
|
|
148
|
-
|
|
145
|
+
**Integrated Flow**:
|
|
149
146
|
```
|
|
150
|
-
/{command-name}
|
|
147
|
+
Run /{command-name}
|
|
151
148
|
↓
|
|
152
149
|
{When skill is invoked during command}
|
|
153
150
|
↓
|
|
154
|
-
|
|
151
|
+
Automatically call this skill
|
|
155
152
|
↓
|
|
156
153
|
{What skill contributes}
|
|
157
154
|
↓
|
|
158
|
-
|
|
155
|
+
Continue command
|
|
159
156
|
```
|
|
160
157
|
|
|
161
158
|
---
|
|
162
159
|
|
|
163
|
-
## ⚙️
|
|
160
|
+
## ⚙️ Settings and configuration
|
|
164
161
|
|
|
165
|
-
###
|
|
162
|
+
### Configuration file location
|
|
166
163
|
|
|
167
|
-
`.moai/config.json
|
|
164
|
+
Configure in `.moai/config.json`:
|
|
168
165
|
|
|
169
166
|
```json
|
|
170
167
|
{
|
|
@@ -179,15 +176,15 @@ Alfred는 다음 조건에서 이 스킬을 자동으로 활성화합니다:
|
|
|
179
176
|
}
|
|
180
177
|
```
|
|
181
178
|
|
|
182
|
-
###
|
|
179
|
+
### Setting option details
|
|
183
180
|
|
|
184
|
-
|
|
|
185
|
-
|
|
186
|
-
| `{option1}` | {type} | `{default}` | ✅/⚠️
|
|
187
|
-
| `{option2}` | {type} | `{default}` | ⚠️
|
|
188
|
-
| `{option3}` | {type} | `{default}` | ⚠️
|
|
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} |
|
|
189
186
|
|
|
190
|
-
###
|
|
187
|
+
### Environment variables (optional)
|
|
191
188
|
|
|
192
189
|
```bash
|
|
193
190
|
# {Environment variable 1}
|
|
@@ -199,22 +196,22 @@ export {VAR_NAME_2}="{value}"
|
|
|
199
196
|
|
|
200
197
|
---
|
|
201
198
|
|
|
202
|
-
## 📁
|
|
199
|
+
## 📁 Directory Structure
|
|
203
200
|
|
|
204
201
|
```
|
|
205
202
|
.claude/skills/{skill-name}/
|
|
206
|
-
├── SKILL.md
|
|
207
|
-
├── reference.md
|
|
208
|
-
├── examples.md
|
|
209
|
-
├── scripts/
|
|
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
|
|
210
207
|
│ ├── {helper-1}.py
|
|
211
208
|
│ └── {helper-2}.py
|
|
212
|
-
└── templates/
|
|
209
|
+
└── templates/ # template file
|
|
213
210
|
├── {template-1}.txt
|
|
214
211
|
└── {template-2}.json
|
|
215
212
|
```
|
|
216
213
|
|
|
217
|
-
###
|
|
214
|
+
### Additional file descriptions
|
|
218
215
|
|
|
219
216
|
- **reference.md**: {What additional documentation it contains}
|
|
220
217
|
- **examples.md**: {What examples are provided}
|
|
@@ -223,22 +220,22 @@ export {VAR_NAME_2}="{value}"
|
|
|
223
220
|
|
|
224
221
|
---
|
|
225
222
|
|
|
226
|
-
## ✅
|
|
223
|
+
## ✅ Verification Checklist
|
|
227
224
|
|
|
228
|
-
###
|
|
225
|
+
### Validation before execution
|
|
229
226
|
|
|
230
227
|
- [ ] {Pre-execution check 1}
|
|
231
228
|
- [ ] {Pre-execution check 2}
|
|
232
229
|
- [ ] {Pre-execution check 3}
|
|
233
230
|
|
|
234
|
-
###
|
|
231
|
+
### Verify after execution
|
|
235
232
|
|
|
236
233
|
- [ ] {Post-execution validation 1 with criteria}
|
|
237
234
|
- [ ] {Post-execution validation 2 with expected state}
|
|
238
235
|
- [ ] {Post-execution validation 3 with deliverable}
|
|
239
|
-
- [ ] {MoAI-ADK
|
|
236
|
+
- [ ] {Check MoAI-ADK workflow integration}
|
|
240
237
|
|
|
241
|
-
###
|
|
238
|
+
### Verification command
|
|
242
239
|
|
|
243
240
|
```bash
|
|
244
241
|
# {Validation script 1}
|
|
@@ -253,19 +250,19 @@ uv run .claude/skills/{skill-name}/scripts/validate.py
|
|
|
253
250
|
|
|
254
251
|
---
|
|
255
252
|
|
|
256
|
-
## 🚨
|
|
253
|
+
## 🚨 Error handling
|
|
257
254
|
|
|
258
|
-
###
|
|
255
|
+
### Error classification
|
|
259
256
|
|
|
260
257
|
#### 1. {Error Category 1}
|
|
261
258
|
|
|
262
|
-
|
|
259
|
+
**Symptom**: {How this error manifests}
|
|
263
260
|
|
|
264
|
-
|
|
261
|
+
**cause**:
|
|
265
262
|
- {Possible cause 1}
|
|
266
263
|
- {Possible cause 2}
|
|
267
264
|
|
|
268
|
-
|
|
265
|
+
**Solution**:
|
|
269
266
|
```bash
|
|
270
267
|
# {Solution step 1}
|
|
271
268
|
{command-1}
|
|
@@ -278,31 +275,31 @@ uv run .claude/skills/{skill-name}/scripts/validate.py
|
|
|
278
275
|
|
|
279
276
|
#### 2. {Error Category 2}
|
|
280
277
|
|
|
281
|
-
|
|
278
|
+
**Symptom**: {Error description}
|
|
282
279
|
|
|
283
|
-
|
|
280
|
+
**Debugging**:
|
|
284
281
|
```bash
|
|
285
282
|
# {How to debug}
|
|
286
283
|
{debug-command}
|
|
287
284
|
```
|
|
288
285
|
|
|
289
|
-
|
|
286
|
+
**correction**:
|
|
290
287
|
1. {Fix step 1}
|
|
291
288
|
2. {Fix step 2}
|
|
292
289
|
|
|
293
290
|
---
|
|
294
291
|
|
|
295
|
-
###
|
|
292
|
+
### Logging and Debugging
|
|
296
293
|
|
|
297
|
-
|
|
294
|
+
**Log Location**: `{log-file-path}`
|
|
298
295
|
|
|
299
|
-
|
|
296
|
+
**Log level settings**:
|
|
300
297
|
```bash
|
|
301
298
|
# {How to enable debug logging}
|
|
302
299
|
{logging-config-command}
|
|
303
300
|
```
|
|
304
301
|
|
|
305
|
-
|
|
302
|
+
**Check log**:
|
|
306
303
|
```bash
|
|
307
304
|
# {How to view logs}
|
|
308
305
|
tail -f {log-file-path}
|
|
@@ -310,35 +307,35 @@ tail -f {log-file-path}
|
|
|
310
307
|
|
|
311
308
|
---
|
|
312
309
|
|
|
313
|
-
## 🔗
|
|
310
|
+
## 🔗 Related agents/commands
|
|
314
311
|
|
|
315
|
-
###
|
|
312
|
+
### Related commands
|
|
316
313
|
|
|
317
314
|
- **/{command-1}** - {How this skill supports the command}
|
|
318
315
|
- **/{command-2}** - {Integration point}
|
|
319
316
|
|
|
320
|
-
###
|
|
317
|
+
### Associated Agent
|
|
321
318
|
|
|
322
319
|
- **@agent-{agent-1}** - {How they work together}
|
|
323
320
|
- **@agent-{agent-2}** - {Collaboration scenario}
|
|
324
321
|
|
|
325
|
-
###
|
|
322
|
+
### Related skills
|
|
326
323
|
|
|
327
324
|
- **{skill-1}** - {Complementary functionality}
|
|
328
325
|
- **{skill-2}** - {When to use together}
|
|
329
326
|
|
|
330
327
|
---
|
|
331
328
|
|
|
332
|
-
## 📊
|
|
329
|
+
## 📊 Performance and Metrics
|
|
333
330
|
|
|
334
|
-
###
|
|
331
|
+
### Performance characteristics
|
|
335
332
|
|
|
336
|
-
-
|
|
337
|
-
-
|
|
338
|
-
-
|
|
339
|
-
-
|
|
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}
|
|
340
337
|
|
|
341
|
-
###
|
|
338
|
+
### Optimization tips
|
|
342
339
|
|
|
343
340
|
1. **{Optimization 1}**: {How to improve performance}
|
|
344
341
|
2. **{Optimization 2}**: {Configuration tweak}
|
|
@@ -346,31 +343,31 @@ tail -f {log-file-path}
|
|
|
346
343
|
|
|
347
344
|
---
|
|
348
345
|
|
|
349
|
-
## 🎓
|
|
346
|
+
## 🎓 Best Practices
|
|
350
347
|
|
|
351
348
|
### 1. {Practice Category 1}
|
|
352
349
|
|
|
353
|
-
|
|
350
|
+
**Recommendation**:
|
|
354
351
|
```{language}
|
|
355
352
|
# {Good practice example}
|
|
356
353
|
{recommended-code}
|
|
357
354
|
```
|
|
358
355
|
|
|
359
|
-
|
|
356
|
+
**What to avoid**:
|
|
360
357
|
```{language}
|
|
361
358
|
# {Anti-pattern example}
|
|
362
359
|
{avoid-this-code}
|
|
363
360
|
```
|
|
364
361
|
|
|
365
|
-
|
|
362
|
+
**Reason**: {Why this is best practice}
|
|
366
363
|
|
|
367
364
|
---
|
|
368
365
|
|
|
369
366
|
### 2. {Practice Category 2}
|
|
370
367
|
|
|
371
|
-
|
|
368
|
+
**Tip**: {Helpful tip}
|
|
372
369
|
|
|
373
|
-
|
|
370
|
+
**example**:
|
|
374
371
|
```bash
|
|
375
372
|
{example-of-best-practice}
|
|
376
373
|
```
|
|
@@ -379,73 +376,73 @@ tail -f {log-file-path}
|
|
|
379
376
|
|
|
380
377
|
### 3. {Practice Category 3}
|
|
381
378
|
|
|
382
|
-
|
|
379
|
+
**Caution**: {Important consideration}
|
|
383
380
|
|
|
384
381
|
---
|
|
385
382
|
|
|
386
|
-
## 📖
|
|
383
|
+
## 📖 Practical examples
|
|
387
384
|
|
|
388
|
-
###
|
|
385
|
+
### Example 1: {Common Use Case}
|
|
389
386
|
|
|
390
|
-
|
|
387
|
+
**Purpose**: {What this example demonstrates}
|
|
391
388
|
|
|
392
|
-
|
|
389
|
+
**input**:
|
|
393
390
|
```{format}
|
|
394
391
|
{example-input}
|
|
395
392
|
```
|
|
396
393
|
|
|
397
|
-
|
|
394
|
+
**execution**:
|
|
398
395
|
```bash
|
|
399
396
|
{commands-to-run}
|
|
400
397
|
```
|
|
401
398
|
|
|
402
|
-
|
|
399
|
+
**output of power**:
|
|
403
400
|
```{format}
|
|
404
401
|
{example-output}
|
|
405
402
|
```
|
|
406
403
|
|
|
407
|
-
|
|
404
|
+
**Explanation**: {What happened and why}
|
|
408
405
|
|
|
409
406
|
---
|
|
410
407
|
|
|
411
|
-
###
|
|
408
|
+
### Example 2: {Advanced Use Case}
|
|
412
409
|
|
|
413
|
-
|
|
410
|
+
**Purpose**: {Advanced scenario}
|
|
414
411
|
|
|
415
|
-
|
|
412
|
+
**Scenario**: {Detailed scenario description}
|
|
416
413
|
|
|
417
|
-
|
|
414
|
+
**avatar**:
|
|
418
415
|
```{language}
|
|
419
416
|
{implementation-code}
|
|
420
417
|
```
|
|
421
418
|
|
|
422
|
-
|
|
419
|
+
**Result**: {What you achieve}
|
|
423
420
|
|
|
424
421
|
---
|
|
425
422
|
|
|
426
|
-
###
|
|
423
|
+
### Example 3: {Edge Case}
|
|
427
424
|
|
|
428
|
-
|
|
425
|
+
**Scenario**: {Unusual but important scenario}
|
|
429
426
|
|
|
430
|
-
|
|
427
|
+
**How to handle**: {How skill handles this}
|
|
431
428
|
|
|
432
429
|
---
|
|
433
430
|
|
|
434
|
-
## 🔧
|
|
431
|
+
## 🔧 Customization
|
|
435
432
|
|
|
436
|
-
###
|
|
433
|
+
### Extension points
|
|
437
434
|
|
|
438
|
-
|
|
435
|
+
Areas where you can customize this skill to fit your project:
|
|
439
436
|
|
|
440
437
|
1. **{Extension Point 1}**
|
|
441
|
-
|
|
442
|
-
|
|
438
|
+
- File: `{file-to-modify}`
|
|
439
|
+
- How to modify: {How to customize}
|
|
443
440
|
|
|
444
441
|
2. **{Extension Point 2}**
|
|
445
|
-
|
|
446
|
-
|
|
442
|
+
- Settings: `{config-key}`
|
|
443
|
+
- Options: {Available options}
|
|
447
444
|
|
|
448
|
-
###
|
|
445
|
+
### Plugin system (advanced)
|
|
449
446
|
|
|
450
447
|
```python
|
|
451
448
|
# {How to create plugins for this skill}
|
|
@@ -454,23 +451,23 @@ tail -f {log-file-path}
|
|
|
454
451
|
|
|
455
452
|
---
|
|
456
453
|
|
|
457
|
-
## 📚
|
|
454
|
+
## 📚 References
|
|
458
455
|
|
|
459
|
-
###
|
|
456
|
+
### Official Documentation
|
|
460
457
|
- **Claude Code Skills**: https://docs.claude.com/en/docs/claude-code/skills
|
|
461
458
|
- **{Related Doc}**: {URL}
|
|
462
459
|
|
|
463
|
-
### MoAI-ADK
|
|
464
|
-
-
|
|
465
|
-
- **SPEC
|
|
460
|
+
### MoAI-ADK Resources
|
|
461
|
+
- **Development Guide**: `.moai/memory/development-guide.md`
|
|
462
|
+
- **SPEC Metadata**: `.moai/memory/spec-metadata.md`
|
|
466
463
|
|
|
467
|
-
###
|
|
464
|
+
### Community
|
|
468
465
|
- **GitHub Issues**: {Link}
|
|
469
|
-
-
|
|
466
|
+
- **Discussion**: {Link}
|
|
470
467
|
|
|
471
468
|
---
|
|
472
469
|
|
|
473
|
-
## 🔄
|
|
470
|
+
## 🔄 Update log
|
|
474
471
|
|
|
475
472
|
### v1.0.0 (Initial)
|
|
476
473
|
- {Feature 1 introduced}
|
|
@@ -482,12 +479,12 @@ tail -f {log-file-path}
|
|
|
482
479
|
**Template Level**: Full
|
|
483
480
|
**Best For**: Production MoAI-ADK integration, enterprise workflows
|
|
484
481
|
**Features**:
|
|
485
|
-
- Alfred
|
|
486
|
-
-
|
|
487
|
-
-
|
|
488
|
-
-
|
|
489
|
-
-
|
|
490
|
-
-
|
|
482
|
+
- Alfred auto-selection
|
|
483
|
+
- Workflow integration
|
|
484
|
+
- Detailed settings
|
|
485
|
+
- Verification automation
|
|
486
|
+
- Error handling
|
|
487
|
+
- Performance optimization
|
|
491
488
|
|
|
492
489
|
**Directory Structure**: Full (SKILL.md + reference.md + examples.md + scripts/ + templates/)
|
|
493
490
|
**Estimated Setup Time**: 45-60 minutes
|
|
@@ -496,4 +493,4 @@ tail -f {log-file-path}
|
|
|
496
493
|
|
|
497
494
|
---
|
|
498
495
|
|
|
499
|
-
|
|
496
|
+
This skill provides the highest level of automation in {domain}.
|
|
@@ -1,23 +1,32 @@
|
|
|
1
1
|
---
|
|
2
|
+
|
|
2
3
|
name: moai-domain-backend
|
|
3
|
-
description:
|
|
4
|
-
patterns
|
|
4
|
+
description: Provides backend architecture and scaling guidance; use when the project targets server-side APIs or infrastructure design decisions.
|
|
5
5
|
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Bash
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Backend Expert
|
|
11
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
|
+
|
|
12
20
|
## What it does
|
|
13
21
|
|
|
14
22
|
Provides expertise in backend server architecture, RESTful API design, caching strategies, database optimization, and horizontal/vertical scalability patterns.
|
|
15
23
|
|
|
16
24
|
## When to use
|
|
17
25
|
|
|
18
|
-
-
|
|
26
|
+
- Engages when backend or service-architecture questions come up.
|
|
27
|
+
- “Backend architecture”, “API design”, “Caching strategy”, “Scalability”
|
|
19
28
|
- Automatically invoked when working with backend projects
|
|
20
|
-
- Backend SPEC implementation (`/alfred:2-
|
|
29
|
+
- Backend SPEC implementation (`/alfred:2-run`)
|
|
21
30
|
|
|
22
31
|
## How it works
|
|
23
32
|
|
|
@@ -52,17 +61,39 @@ Provides expertise in backend server architecture, RESTful API design, caching s
|
|
|
52
61
|
- **Rate limiting**: API throttling
|
|
53
62
|
|
|
54
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.
|
|
55
76
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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.
|
|
59
80
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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.
|
|
63
90
|
|
|
64
91
|
## Works well with
|
|
65
92
|
|
|
66
93
|
- alfred-trust-validation (backend testing)
|
|
67
94
|
- web-api-expert (API design)
|
|
68
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.
|