Agent Skills
Skills are modular capabilities that extend DAIV's agent with specialized knowledge and workflows. Each skill is a directory containing a SKILL.md file with instructions the agent follows when the skill is triggered.
DAIV ships with built-in skills (/plan, /code-review, /security-audit, /init, /skill-creator). You can also create your own.
How skills work
Skills use a progressive disclosure pattern:
- At startup — DAIV reads the
nameanddescriptionfrom each skill's YAML frontmatter (~100 tokens per skill) - When triggered — DAIV reads the full
SKILL.mdcontent and follows its instructions - As needed — the agent accesses supporting files bundled with the skill (scripts, templates, configs)
This keeps context usage minimal until a skill is actually needed.
Directory structure
Skills can live in any of these directories at the repository root:
.agents/skills/.cursor/skills/.claude/skills/
DAIV scans all three and loads skills from each. If multiple directories contain a skill with the same name, the last one loaded wins.
| Text Only | |
|---|---|
Built-in skills are automatically copied to .agents/skills/ at agent startup with a .gitignore to prevent them from being committed. You can override any built-in skill by creating one with the same name and committing it to the repository.
Creating a skill
SKILL.md format
Every skill requires a SKILL.md file with YAML frontmatter:
| Markdown | |
|---|---|
Required fields
| Field | Constraints | Description |
|---|---|---|
name |
Max 64 chars, lowercase alphanumeric and hyphens, must match directory name | Unique identifier for the skill. This is what users type after /. |
description |
Max 1024 chars | What the skill does and when to use it. The agent matches user requests against this text, so include trigger phrases. |
Optional fields
| Field | Description |
|---|---|
license |
License name or reference to a bundled license file |
compatibility |
Environment requirements (max 500 chars) |
metadata |
Arbitrary key-value pairs for additional properties |
allowed-tools |
Space-delimited list of tool names the skill recommends using |
Writing a good description
The description field is how the agent decides whether to use your skill. Include specific trigger phrases:
| YAML | |
|---|---|
Authoring best practices
Be specific and actionable
Tell the agent exactly what steps to follow:
| Markdown | |
|---|---|
Bundle supporting files
Skills can include helper scripts, templates, and reference documents. Reference them using relative paths from the skill directory:
| Text Only | |
|---|---|
| Markdown | |
|---|---|
Use the skill-creator
DAIV includes a built-in /skill-creator skill that walks you through creating a new skill:
| Text Only | |
|---|---|
Example: changelog skill
Security considerations
Use skills from trusted sources only
Skills provide agents with instructions and access to scripts. Only use skills you created yourself or obtained from trusted sources.
- Audit all files in a skill before committing it to your repository
- Review scripts carefully — any executable code in a skill can be run by the agent
- Check external references — skills that fetch data from external URLs pose additional risk