Agent Skills
AIDF integrates the Agent Skills standard, allowing you to consume portable skill definitions from the ecosystem and publish your own.
Skills are self-contained SKILL.md files that provide instructions, expertise, and constraints to the AI during task execution. They are injected into the prompt as additional context alongside the role and task.
Why Skills?
Section titled “Why Skills?”Without Skills
Section titled “Without Skills”Your AI agent only knows what's in AGENTS.md + role + task.Adding new expertise means editing roles or writing longer task descriptions.With Skills
Section titled “With Skills”Drop a SKILL.md into .ai/skills/ and the AI gains new capabilities instantly.Share skills across projects. Use skills published by the community.Skills provide:
- Portability: Same skill works in any agent that supports the standard (34+ compatible agents)
- Composability: Combine multiple skills for a single task execution
- Separation: Skills are separate from roles — roles define who, skills define what the AI can do
- Ecosystem: Consume skills from the community or publish your own
SKILL.md Format
Section titled “SKILL.md Format”Every skill is a directory containing a SKILL.md file with YAML frontmatter and markdown content:
.ai/skills/ └── my-skill/ └── SKILL.mdStructure
Section titled “Structure”---name: my-skilldescription: A brief description of what this skill doesversion: 1.0.0author: Your Nametags: tag1, tag2, tag3globs: src/**/*.ts, tests/**---
# My Skill
## Instructions
Detailed instructions for the AI when this skill is active.
## When to Use
Describe when this skill should be activated.
## Behavior Rules
### ALWAYS- Rule 1- Rule 2
### NEVER- Rule 1- Rule 2Frontmatter Fields
Section titled “Frontmatter Fields”| Field | Required | Description |
|---|---|---|
name | Yes | Unique skill identifier |
description | Yes | Brief description (shown in aidf skills list) |
version | No | Semantic version |
author | No | Skill author |
tags | No | Comma-separated tags for categorization |
globs | No | Comma-separated file patterns the skill relates to |
Skill Discovery
Section titled “Skill Discovery”AIDF discovers skills from three locations, in order:
| Priority | Location | Source label | Description |
|---|---|---|---|
| 1 | .ai/skills/ | project | Project-specific skills |
| 2 | ~/.aidf/skills/ | global | User-wide skills shared across projects |
| 3 | Config directories | config | Extra paths defined in config.yml |
All discovered skills are loaded and injected into the execution prompt automatically.
Configuration
Section titled “Configuration”Add the skills section to .ai/config.yml:
skills: enabled: true # default: true (omit section to enable) directories: # additional directories to scan for skills - /path/to/shared/skills - ../other-project/.ai/skillsTo disable skills entirely:
skills: enabled: falseIf the skills section is omitted, skills are enabled by default and AIDF will scan the standard directories (.ai/skills/ and ~/.aidf/skills/).
CLI Commands
Section titled “CLI Commands”List skills
Section titled “List skills”aidf skills listShows all discovered skills with their source (project/global/config), description, and tags.
Create a new skill
Section titled “Create a new skill”aidf skills init my-skill # creates .ai/skills/my-skill/SKILL.mdaidf skills init my-skill --global # creates ~/.aidf/skills/my-skill/SKILL.mdGenerates a SKILL.md template ready to edit.
Validate skills
Section titled “Validate skills”aidf skills validate # validate all discovered skillsaidf skills validate my-skill # validate a specific skill by nameChecks frontmatter fields, content structure, and reports errors.
Add an external skill
Section titled “Add an external skill”aidf skills add /path/to/skill-directoryCopies a skill into the project’s .ai/skills/ directory after validating it.
How Skills Are Injected
Section titled “How Skills Are Injected”During execution, skills are injected into the prompt as XML following the agentskills.io format:
<available_skills><skill name="my-skill"><description>A brief description</description><tags>tag1, tag2</tags><instructions># My Skill...full markdown content...</instructions></skill></available_skills>This XML block is placed in the prompt after the Implementation Plan section and before the Execution Instructions.
Built-in Skills
Section titled “Built-in Skills”AIDF ships with 6 built-in skills that mirror the built-in roles:
| Skill | Description |
|---|---|
aidf-architect | System design, patterns, trade-off analysis |
aidf-developer | Clean code implementation, pattern matching |
aidf-tester | Test coverage, edge cases, reliability |
aidf-reviewer | Code review, quality, constructive feedback |
aidf-documenter | Technical writing, API docs, guides |
aidf-task-templates | Structured task templates for all 6 task types |
aidf | Teaches any AI agent how to work with AIDF projects (structure, commands, conventions) |
The aidf skill is a portable meta-skill: it gives any compatible AI agent the knowledge to navigate and use AIDF projects without prior context. This is useful when onboarding new AI tools or sharing AIDF projects with collaborators who use different agents.
These are included in the templates/.ai/skills/ directory and are copied to your project when you run aidf init.
Examples
Section titled “Examples”Adding a custom skill
Section titled “Adding a custom skill”# Create the skillaidf skills init eslint-expert
# Edit the SKILL.md# Then validate itaidf skills validate eslint-expertSharing skills globally
Section titled “Sharing skills globally”# Create a global skill available in all projectsaidf skills init code-security --global
# It lives at ~/.aidf/skills/code-security/SKILL.mdUsing extra directories
Section titled “Using extra directories”If your team maintains a shared skills repository:
skills: directories: - ../shared-aidf-skillsDisabling skills for a run
Section titled “Disabling skills for a run”Skills are automatically loaded when available. To disable:
skills: enabled: false