Agent Skills
Agent Skills is an open standard for extending AI agent capabilities with specialized knowledge and workflows. PraisonAI Agents fully supports the Agent Skills specification, enabling agents to load and use modular capabilities through SKILL.md files.Overview
Skills provide a way to give agents specialized knowledge and instructions without bloating the main system prompt. They use progressive disclosure to efficiently manage context:- Level 1 - Metadata (~100 tokens): Name and description loaded at startup
- Level 2 - Instructions (<5000 tokens): Full SKILL.md body loaded when activated
- Level 3 - Resources (as needed): Scripts, references, and assets loaded on demand
Quick Start
Using Skills with an Agent
Using SkillManager Directly
SKILL.md Format
Each skill is a directory containing aSKILL.md file with YAML frontmatter:
Required Fields
| Field | Description | Constraints |
|---|---|---|
name | Skill identifier | 1-64 chars, lowercase, hyphens only |
description | What the skill does and when to use it | 1-1024 chars |
Optional Fields
| Field | Description |
|---|---|
license | License for the skill (e.g., Apache-2.0, MIT) |
compatibility | Compatibility information (max 500 chars) |
metadata | Key-value pairs for custom properties |
allowed-tools | Space-delimited list of tools the skill requires |
Directory Structure
Skill Discovery Locations
PraisonAI searches for skills in these locations (in order of precedence):- Project:
./.praison/skills/or./.claude/skills/ - User:
~/.praison/skills/ - System:
/etc/praison/skills/
CLI Commands
List Available Skills
Validate a Skill
Create a New Skill
Generate Prompt XML
API Reference
SkillManager
The main class for managing skills.SkillLoader
For progressive loading of skills.Validation
Compatibility
PraisonAI’s Agent Skills implementation follows the open standard, ensuring compatibility with:- Claude Code (
.claude/skills/) - GitHub Copilot (
.github/skills/) - Cursor (Agent Skills support)
- OpenAI Codex CLI
.praison/skills/ and .claude/skills/ for maximum compatibility.
Performance
Agent Skills are designed for zero performance impact when not in use:- Lazy Loading: Skills are only loaded when explicitly accessed
- No Auto-discovery: Discovery runs only when requested
- Minimal Memory: Skills not in use consume no memory
- Progressive Disclosure: Only load what’s needed
Examples
See the examples/skills/ directory for complete examples:basic_skill_usage.py- Basic skill discovery and usagecustom_skill_example.py- Creating custom skills programmaticallypdf-processing/- Example skill directory

