1
----
2
-name: "create-skill"
3
-description: "Wizard for creating new Agent Zero skills. Guides users through creating well-structured SKILL.md files. Use when users want to create custom skills."
4
-version: "1.0.0"
5
-author: "Agent Zero Team"
6
-tags: ["meta", "wizard", "creation", "tutorial", "skills"]
7
-trigger_patterns:
8
- - "create skill"
9
- - "new skill"
10
- - "make skill"
11
- - "add skill"
12
- - "skill wizard"
13
----
14
-
15
-# Create Skill Wizard
16
-
17
-This skill helps you create new Agent Zero skills that follow the SKILL.md standard.
18
-
19
-## Quick Start
20
-
21
-To create a new skill, I'll guide you through these steps:
22
-
23
-1. **Name & Purpose** - What should this skill do?
24
-2. **Trigger Patterns** - When should this skill activate?
25
-3. **Content Structure** - What instructions should the agent follow?
26
-4. **Supporting Files** - Any scripts or templates needed?
27
-
28
-## SKILL.md Format
29
-
30
-Every skill needs a `SKILL.md` file with YAML frontmatter:
31
-
32
-```yaml
33
----
34
-name: "skill-name"
35
-description: "Clear description of what this skill does and when to use it"
36
-version: "1.0.0"
37
-author: "Your Name"
38
-tags: ["category1", "category2"]
39
-trigger_patterns:
40
- - "keyword1"
41
- - "phrase that triggers this"
42
----
43
-
44
-# Skill Title
45
-
46
-Your skill instructions go here...
47
-```
48
-
49
-## Required Fields
50
-
51
-| Field | Description | Example |
52
-|-------|-------------|---------|
53
-| `name` | Unique identifier (lowercase, hyphens) | `"code-review"` |
54
-| `description` | When/why to use this skill | `"Review code for quality and security issues"` |
55
-
56
-## Optional Fields
57
-
58
-| Field | Description | Example |
59
-|-------|-------------|---------|
60
-| `version` | Semantic version | `"1.0.0"` |
61
-| `author` | Creator name | `"Jane Developer"` |
62
-| `tags` | Categorization keywords | `["review", "quality"]` |
63
-| `trigger_patterns` | Words/phrases that activate skill | `["review", "check code"]` |
64
-| `allowed_tools` | Tools this skill can use | `["code_execution", "web_search"]` |
65
-
66
-## Skill Directory Structure
67
-
68
-```
69
-/a0/usr/skills/
70
-└── my-skill/
71
- ├── SKILL.md # Required: Main skill file
72
- ├── scripts/ # Optional: Helper scripts
73
- │ ├── helper.py
74
- │ └── process.sh
75
- ├── templates/ # Optional: Templates
76
- │ └── output.md
77
- └── docs/ # Optional: Additional docs
78
- └── examples.md
79
-```
80
-
81
-## Writing Good Skill Instructions
82
-
83
-### Be Specific and Actionable
84
-
85
-```markdown
86
-# Good
87
-When reviewing code:
88
-1. Check for security vulnerabilities
89
-2. Verify error handling
90
-3. Assess test coverage
91
-
92
-# Bad
93
-Review the code and make it better.
94
-```
95
-
96
-### Include Examples
97
-
98
-```markdown
99
-## Example Usage
100
-
101
-**User**: "Review my Python function for issues"
102
-
103
-**Agent Response**:
104
-> I'll review your function using the code review checklist:
105
->
106
-> 1. **Security**: No user input validation detected
107
-> 2. **Error Handling**: Missing try-catch for file operations
108
-> 3. **Testing**: Function is testable but no tests found
109
-```
110
-
111
-### Provide Checklists
112
-
113
-```markdown
114
-## Review Checklist
115
-- [ ] Input validation present
116
-- [ ] Error handling complete
117
-- [ ] Tests included
118
-- [ ] Documentation updated
119
-```
120
-
121
-## Creating Your Skill: Step by Step
122
-
123
-### Step 1: Define Purpose
124
-
125
-Answer these questions:
126
-- What problem does this skill solve?
127
-- When should the agent use it?
128
-- What's the expected output?
129
-
130
-### Step 2: Choose a Name
131
-
132
-- Use lowercase letters and hyphens
133
-- Be descriptive but concise
134
-- Examples: `code-review`, `data-analysis`, `deploy-helper`
135
-
136
-### Step 3: Write Trigger Patterns
137
-
138
-List words/phrases that should activate this skill:
139
-
140
-```yaml
141
-trigger_patterns:
142
- - "review"
143
- - "check code"
144
- - "code quality"
145
- - "pull request"
146
-```
147
-
148
-### Step 4: Structure Your Content
149
-
150
-Organize with clear sections:
151
-
152
-```markdown
153
-# Skill Title
154
-
155
-## When to Use
156
-Describe the trigger conditions
157
-
158
-## The Process
159
-Step-by-step instructions
160
-
161
-## Examples
162
-Show sample interactions
163
-
164
-## Tips
165
-Additional guidance
166
-```
167
-
168
-### Step 5: Add Supporting Files (Optional)
169
-
170
-If your skill needs scripts or templates:
171
-
172
-```bash
173
-# Create directory structure
174
-mkdir -p /a0/usr/skills/my-skill/{scripts,templates,docs}
175
-```
176
-
177
-## Example: Complete Skill
178
-
179
-```yaml
180
----
181
-name: "python-optimizer"
182
-description: "Optimize Python code for performance and readability. Use when asked to improve or optimize Python code."
183
-version: "1.0.0"
184
-author: "Agent Zero Team"
185
-tags: ["python", "optimization", "performance"]
186
-trigger_patterns:
187
- - "optimize python"
188
- - "improve performance"
189
- - "make faster"
190
- - "python optimization"
191
----
192
-
193
-# Python Optimizer
194
-
195
-## When to Use
196
-Activate when user asks to optimize, improve, or speed up Python code.
197
-
198
-## Optimization Process
199
-
200
-### Step 1: Profile First
201
-Before optimizing, understand where time is spent:
202
-```python
203
-import cProfile
204
-cProfile.run('your_function()')
205
-```
206
-
207
-### Step 2: Common Optimizations
208
-
209
-1. **Use List Comprehensions**
210
- ```python
211
- # Slow
212
- result = []
213
- for x in data:
214
- result.append(x * 2)
215
-
216
- # Fast
217
- result = [x * 2 for x in data]
218
- ```
219
-
220
-2. **Use Sets for Lookups**
221
- ```python
222
- # Slow: O(n)
223
- if item in large_list:
224
-
225
- # Fast: O(1)
226
- if item in large_set:
227
- ```
228
-
229
-3. **Use Generators for Large Data**
230
- ```python
231
- # Memory-heavy
232
- data = [process(x) for x in huge_list]
233
-
234
- # Memory-efficient
235
- data = (process(x) for x in huge_list)
236
- ```
237
-
238
-### Step 3: Verify Improvement
239
-Always measure before and after:
240
-```python
241
-import time
242
-start = time.perf_counter()
243
-# code to measure
244
-elapsed = time.perf_counter() - start
245
-print(f"Took {elapsed:.4f} seconds")
246
-```
247
-
248
-## Anti-Patterns to Avoid
249
-- Premature optimization
250
-- Optimizing without profiling
251
-- Sacrificing readability for tiny gains
252
-```
253
-
254
-## Skill Installation
255
-
256
-### Local Installation
257
-
258
-1. Create skill directory:
259
- ```bash
260
- mkdir -p /a0/usr/skills/my-skill
261
- ```
262
-
263
-2. Create SKILL.md:
264
- ```bash
265
- touch /a0/usr/skills/my-skill/SKILL.md
266
- ```
267
-
268
-3. Add content and save
269
-
270
-4. Skills are automatically loaded on next agent initialization
271
-
272
-### Sharing Skills
273
-
274
-To share skills with others:
275
-
276
-1. Create a GitHub repository
277
-2. Include the skill directory structure
278
-3. Add a README with installation instructions
279
-4. Users can copy to their `/a0/usr/skills/` directory
280
-
281
-## Testing Your Skill
282
-
283
-After creating a skill:
284
-
285
-1. Start a new conversation
286
-2. Use one of your trigger patterns
287
-3. Verify the agent follows your instructions
288
-4. Iterate and improve based on results
\ No newline at end of file