skills/create-skill/SKILL.md
Wizard for creating new Agent Zero skills. Guides users through creating well-structured SKILL.md files. Use when users want to create custom skills.
npx skillsauth add agent0ai/agent-zero create-skillInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill helps you create new Agent Zero skills that follow the SKILL.md standard.
To create a new skill, I'll guide you through these steps:
Every skill needs a SKILL.md file with YAML frontmatter:
---
name: "skill-name"
description: "Clear description of what this skill does and when to use it"
version: "1.0.0"
author: "Your Name"
tags: ["category1", "category2"]
trigger_patterns:
- "keyword1"
- "phrase that triggers this"
---
# Skill Title
Your skill instructions go here...
| Field | Description | Example |
|-------|-------------|---------|
| name | Unique identifier (lowercase, hyphens) | "code-review" |
| description | When/why to use this skill | "Review code for quality and security issues" |
| Field | Description | Example |
|-------|-------------|---------|
| version | Semantic version | "1.0.0" |
| author | Creator name | "Jane Developer" |
| tags | Categorization keywords | ["review", "quality"] |
| trigger_patterns | Words/phrases that activate skill | ["review", "check code"] |
| allowed_tools | Tools this skill can use | ["code_execution", "web_search"] |
/a0/usr/skills/
└── my-skill/
├── SKILL.md # Required: Main skill file
├── scripts/ # Optional: Helper scripts
│ ├── helper.py
│ └── process.sh
├── templates/ # Optional: Templates
│ └── output.md
└── docs/ # Optional: Additional docs
└── examples.md
# Good
When reviewing code:
1. Check for security vulnerabilities
2. Verify error handling
3. Assess test coverage
# Bad
Review the code and make it better.
## Example Usage
**User**: "Review my Python function for issues"
**Agent Response**:
> I'll review your function using the code review checklist:
>
> 1. **Security**: No user input validation detected
> 2. **Error Handling**: Missing try-catch for file operations
> 3. **Testing**: Function is testable but no tests found
## Review Checklist
- [ ] Input validation present
- [ ] Error handling complete
- [ ] Tests included
- [ ] Documentation updated
Answer these questions:
code-review, data-analysis, deploy-helperList words/phrases that should activate this skill:
trigger_patterns:
- "review"
- "check code"
- "code quality"
- "pull request"
Organize with clear sections:
# Skill Title
## When to Use
Describe the trigger conditions
## The Process
Step-by-step instructions
## Examples
Show sample interactions
## Tips
Additional guidance
If your skill needs scripts or templates:
# Create directory structure
mkdir -p /a0/usr/skills/my-skill/{scripts,templates,docs}
---
name: "python-optimizer"
description: "Optimize Python code for performance and readability. Use when asked to improve or optimize Python code."
version: "1.0.0"
author: "Agent Zero Team"
tags: ["python", "optimization", "performance"]
trigger_patterns:
- "optimize python"
- "improve performance"
- "make faster"
- "python optimization"
---
# Python Optimizer
## When to Use
Activate when user asks to optimize, improve, or speed up Python code.
## Optimization Process
### Step 1: Profile First
Before optimizing, understand where time is spent:
```python
import cProfile
cProfile.run('your_function()')
Use List Comprehensions
# Slow
result = []
for x in data:
result.append(x * 2)
# Fast
result = [x * 2 for x in data]
Use Sets for Lookups
# Slow: O(n)
if item in large_list:
# Fast: O(1)
if item in large_set:
Use Generators for Large Data
# Memory-heavy
data = [process(x) for x in huge_list]
# Memory-efficient
data = (process(x) for x in huge_list)
Always measure before and after:
import time
start = time.perf_counter()
# code to measure
elapsed = time.perf_counter() - start
print(f"Took {elapsed:.4f} seconds")
## Skill Installation
### Local Installation
1. Create skill directory:
```bash
mkdir -p /a0/usr/skills/my-skill
Create SKILL.md:
touch /a0/usr/skills/my-skill/SKILL.md
Add content and save
Skills are automatically loaded on next agent initialization
To share skills with others:
/a0/usr/skills/ directoryAfter creating a skill:
testing
Use when creating, opening, or editing LibreOffice Writer ODT documents, or DOCX documents only when Microsoft Word compatibility is explicitly required.
testing
Use when creating, opening, or editing LibreOffice Impress ODP presentations, or PPTX decks only when PowerPoint compatibility is explicitly required.
testing
Use when creating, opening, or editing LibreOffice Calc ODS spreadsheets, or XLSX workbooks only when Excel compatibility is explicitly required.
data-ai
Use when the user asks Agent Zero to operate the built-in Linux Desktop, XFCE apps, LibreOffice GUI apps, file manager, terminal, or visual desktop workflows.