What is a Skill?
Skills are designed for AI agents, not human documentation readers. They store:- Agent instructions - how to route and execute tasks
- Reference documentation - API guides, architecture docs, code patterns
- Scripts and code samples - runnable examples and utilities
- Assets - diagrams, config templates, etc.
SKILL.md content and associated resource files.
SKILL.md Format
Each skill begins with aSKILL.md file containing:
- YAML frontmatter - structured metadata
- Markdown body - agent instructions and routing logic
Example: Real Skill from Better Skills
The example above uses escaped mentions (
\[[resource:new:...]]) for documentation purposes. In actual skill files, you use unescaped mentions to create real links.Skill Properties
Database Fields
| Field | Type | Description |
|---|---|---|
id | UUID | Primary key |
owner_vault_id | UUID | Vault that owns this skill |
slug | text | URL-safe identifier (unique per vault) |
name | text | Display name |
description | text | Summary text |
skill_markdown | text | Full SKILL.md content |
frontmatter | JSONB | Parsed YAML metadata from SKILL.md |
metadata | JSONB | Application-managed data (search index, hashes) |
is_default | boolean | True for system-provided template skills |
source_url | text | Optional origin URL |
source_identifier | text | Optional external ID |
created_at | timestamp | Creation time |
updated_at | timestamp | Last modification time |
Frontmatter vs Metadata
Frontmatter
Author-defined structured data parsed from the YAML header in
SKILL.md.Examples:name,descriptionmetadata.version- Custom tags or categories
Metadata
Application-owned enrichment data managed by Better Skills.Examples:
- Search indexes
- Content hashes
- Diagnostic flags
- Ranking scores
isDefault Skills
Skills marked withis_default: true are canonical templates provided by Better Skills:
- Stored in the shared
system_defaultvault - Read-only for normal users
- Seeded from
resources/default-skills/ - Synced via
bun run sync-default-skills - Include examples like
better-skills,turborepo,next-best-practices
Vault Ownership
Every skill belongs to exactly one vault viaowner_vault_id:
- Personal vaults: Private skills, writable by owner
- Enterprise vaults: Shared team skills, writable by owner/admin
- System default vault: Read-only template skills
acme/my-skill and personal/my-skill can coexist.
The legacy
owner_user_id field exists for backward compatibility but vault ownership is canonical.Resources
Skills contain multiple resource files:references/- markdown documentation filesscripts/- code samples and utilitiesassets/- images, configs, templates
Next Steps
Vaults
Learn about vault types and permissions
Skill Graph
Understand the graph data model
Mentions
Link skills and resources with markdown mentions