This specification defines the canonical directory structure, frontmatter metadata schema, trigger rules, and resolution order for Agent Skill packages.
An Agent Skill MUST be contained within a dedicated directory containing a mandatory SKILL.md file:
skills/<skill-name>/
├── SKILL.md # Mandatory main instruction file
├── scripts/ # Optional helper scripts and utilities
├── examples/ # Optional reference implementations
└── references/ # Optional deep technical documentation
Every SKILL.md file MUST begin with valid YAML frontmatter containing name and description:
---
name: kitwork-routing
description: Use when adding or changing Kitwork filesystem routes, router.kitwork.js, parameters, or views.
---| Field | Type | Required | Description |
|---|---|---|---|
name |
String | Yes | Unique hyphenated identifier (e.g. kitwork-routing) |
description |
String | Yes | Trigger condition describing when the agent should load this skill |
- The agent host maintains an in-memory index of available skill
nameanddescriptionpairs. - When evaluating a task, the agent compares the task intent against skill descriptions.
- Upon a trigger match, the agent reads
SKILL.mdcontent into context. - Body content MUST remain under 500 lines. Extended documentation MUST be stored in
references/subdirectories.