Core Concepts
1. Progressive Disclosure
To manage context efficiently, skills use a three-tier loading strategy:- Discovery: Agents only load the skill’s
nameanddescriptioninitially to determine relevance. - Activation: When a task matches, the full
SKILL.mdinstructions are read into context. - Execution: Detailed scripts, references, or assets are loaded only when specifically required by the agent.
2. Portability and Auditability
A skill is simply a folder containing aSKILL.md file. This makes them:
- Self-documenting: Humans can read and audit the instructions as easily as agents.
- Versionable: Skills can be managed in Git repositories, allowing for clear change tracking.
- Extensible: They can range from simple text instructions to complex executable code.
Directory Structure
A standard AIsa skill follows this directory layout:The SKILL.md Specification
TheSKILL.md file is the heart of every skill. It must contain YAML frontmatter followed by Markdown content.
Frontmatter Fields
- name: A short, unique identifier (lowercase alphanumeric and hyphens).
- description: A clear explanation of what the skill does and when the agent should use it. This is the primary signal for discovery.
- metadata: (Optional) A map for additional properties like author, version, or platform-specific tags.
- homepage: (Optional) A link to the skill’s home or repository.
Body Content
The Markdown body contains the actual instructions. For AIsa skills, we recommend including:- Step-by-step instructions: Clear, actionable steps for the agent.
- Usage examples: Concrete cURL or Python snippets.
- Edge cases: Guidance on how to handle common errors or limitations.