Skip to content

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.


Your AI agent only knows what's in AGENTS.md + role + task.
Adding new expertise means editing roles or writing longer task descriptions.
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

Every skill is a directory containing a SKILL.md file with YAML frontmatter and markdown content:

.ai/skills/
└── my-skill/
└── SKILL.md
---
name: my-skill
description: A brief description of what this skill does
version: 1.0.0
author: Your Name
tags: tag1, tag2, tag3
globs: 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 2
FieldRequiredDescription
nameYesUnique skill identifier
descriptionYesBrief description (shown in aidf skills list)
versionNoSemantic version
authorNoSkill author
tagsNoComma-separated tags for categorization
globsNoComma-separated file patterns the skill relates to

AIDF discovers skills from three locations, in order:

PriorityLocationSource labelDescription
1.ai/skills/projectProject-specific skills
2~/.aidf/skills/globalUser-wide skills shared across projects
3Config directoriesconfigExtra paths defined in config.yml

All discovered skills are loaded and injected into the execution prompt automatically.


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/skills

To disable skills entirely:

skills:
enabled: false

If the skills section is omitted, skills are enabled by default and AIDF will scan the standard directories (.ai/skills/ and ~/.aidf/skills/).


Terminal window
aidf skills list

Shows all discovered skills with their source (project/global/config), description, and tags.

Terminal window
aidf skills init my-skill # creates .ai/skills/my-skill/SKILL.md
aidf skills init my-skill --global # creates ~/.aidf/skills/my-skill/SKILL.md

Generates a SKILL.md template ready to edit.

Terminal window
aidf skills validate # validate all discovered skills
aidf skills validate my-skill # validate a specific skill by name

Checks frontmatter fields, content structure, and reports errors.

Terminal window
aidf skills add /path/to/skill-directory

Copies a skill into the project’s .ai/skills/ directory after validating it.


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.


AIDF ships with 6 built-in skills that mirror the built-in roles:

SkillDescription
aidf-architectSystem design, patterns, trade-off analysis
aidf-developerClean code implementation, pattern matching
aidf-testerTest coverage, edge cases, reliability
aidf-reviewerCode review, quality, constructive feedback
aidf-documenterTechnical writing, API docs, guides
aidf-task-templatesStructured task templates for all 6 task types
aidfTeaches 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.


Terminal window
# Create the skill
aidf skills init eslint-expert
# Edit the SKILL.md
# Then validate it
aidf skills validate eslint-expert
Terminal window
# Create a global skill available in all projects
aidf skills init code-security --global
# It lives at ~/.aidf/skills/code-security/SKILL.md

If your team maintains a shared skills repository:

.ai/config.yml
skills:
directories:
- ../shared-aidf-skills

Skills are automatically loaded when available. To disable:

.ai/config.yml
skills:
enabled: false