Overview
Skills are folders of instructions, scripts, and resources that agents load dynamically to improve performance on specialized tasks. The agent first sees only a skill’s name and short description. When the task matches, it loads the fullSKILL.md and can execute commands the skill references.
How Skills Work
- Starts light - Agent discovers skills by name/description only
- Loads on demand - Pulls full instructions from
SKILL.mdwhen relevant - Executes safely - Runs skill-driven commands in isolated environment
Skill Structure
A skill is a directory with this layout:SKILL.md Format
TheSKILL.md file contains YAML frontmatter and markdown content:
Notes
- Slack prefers GIFs under 1MB
- 480px width is optimal
- 10 fps is usually sufficient
Skill Attributes
Using Skills with Agents
Pass skill paths to the agent constructor (src/agentor/core/agent.py:182):Multiple Skills
Provide multiple skills for different capabilities:Skill Injection
Skills are injected into the agent’s system prompt as XML (src/agentor/core/agent.py:227):XML Format
Skills are serialized to XML (src/agentor/skills.py:34):Example: GIF Creator Skill
From the README example:- Sees the skill name and description in its prompt
- Recognizes the task matches the skill
- Loads full instructions from
.skills/slack-gif-creator/SKILL.md - Uses ShellTool to execute ffmpeg commands from the skill
- Creates an optimized GIF for Slack
Creating Custom Skills
1. Create Directory Structure
2. Write SKILL.md
Tips
- Important tip 1
- Important tip 2