Create Agent Skill
Overview
This skill teaches how to create custom skills for various AI agents (opencode, Qwen Code, Zed). It covers the structure, location, and validation requirements for each agent's skill format.
Skill Structure
A skill is a Markdown file with a specific structure:
- File name:
SKILL.md - Frontmatter with
nameanddescriptionfields - Content in markdown format
Agent-Specific Locations
- opencode:
~/.config/opencode/skills/or~/.agents/skills/ - Qwen Code:
~/.qwen/skills/or~/.agents/skills/ - Zed:
~/.config/zed/skills/or~/.agents/skills/
Validation Requirements
- opencode: Name must match regex pattern
^[a-z][a-z0-9_-]*[a-z0-9]$ - Qwen Code: Allows Unicode in names
- Zed: Uses
disable-model-invocationfield
Skill Types
- Global Skills: Stored in shared directory
~/.agents/skills/for all agents - Project Skills: Stored in project's
.qwen/skills/or.zed/skills/directory
Creating a Skill
- Create a new Markdown file named
SKILL.md - Add required frontmatter with
nameanddescription - Add your skill content in markdown format
- Place in appropriate directory based on scope