Skills
A Skill is method guidance loaded into model context on demand. Its effect depends on the model following it rather than runtime enforcement. Skills are suitable for reusable workflows, rules, and supporting resources, but are not permission policy.
Create a Skill
Section titled “Create a Skill”Minimal structure
Section titled “Minimal structure”<workspace>/skills/pdf-processing/└── SKILL.mdSKILL.md content:
---name: pdf-processingdescription: Use when reading or modifying PDF documents.---
# PDF workflow
Read the relevant files before changing them.name must match the directory name; description states when to trigger, which is how the agent matches tasks against the startup context.
frontmatter fields
Section titled “frontmatter fields”| Field | Required | Meaning |
|---|---|---|
name |
yes | lowercase letters/digits/hyphens, 1–64 chars |
description |
yes | non-empty, ≤1024 chars |
license |
no | license information |
compatibility |
no | compatibility statement |
metadata |
no | arbitrary object |
allowed-tools |
no | tool allowlist |
Progressive-disclosure guidance
Section titled “Progressive-disclosure guidance”- Expand the body as needed: start with a minimal workflow and keep details in
references/,scripts/, etc., which the agent reads with ordinary tools after activation. - Prefer explicit steps and rules over background prose.
- Resource files travel with the skill directory; paths are relative to the skill root (returned by
activate_skill). - The repository-bundled
skills/coden-tool-plugin-development/is a reusable template.
Placement in a repository
Section titled “Placement in a repository”| Directory | Purpose |
|---|---|
<workspace>/skills/<name>/ |
bundled with the repository, distributed with it |
<workspace>/.agents/skills/<name>/ |
locally installed, not distributed |
~/.agents/skills/<name>/ |
user-global |
Related references
Section titled “Related references”Install and Debug
Section titled “Install and Debug”Installation
Section titled “Installation”| Target | How |
|---|---|
| user-global | place at ~/.agents/skills/<name>/SKILL.md |
| project-local | place at <workspace>/.agents/skills/<name>/SKILL.md |
| repository-bundled | place at <workspace>/skills/<name>/SKILL.md and commit |
| install a skill from a repository | npx skills add TwinklerG/CodeN --skill coden-tool-plugin-development |
Verification
Section titled “Verification”coden --verboseAfter startup, run /skills to list active skills (name, description, project/user scope). --verbose prints the reason for each skipped entry:
ignored project skill <path>: <reason>Common failure reasons
Section titled “Common failure reasons”| Symptom | Cause |
|---|---|
| skill not listed | directory name differs from frontmatter name; or it sits in a non-scanned location |
invalid description |
empty or longer than 1024 characters |
| YAML parse failure | malformed frontmatter (must start and end with ---) |
| directory skipped | missing SKILL.md, not a regular file, larger than 1MB, or a symlink escaping the scan root |
| changes not effective | skills are discovered at startup only; restart required |
Debug order
Section titled “Debug order”- Start with
coden --verboseand inspectignored ... skilllines. - Confirm the name and scope with
/skills. - Check the directory name, frontmatter, file size, and real path (
realpath). - Activation test:
coden -p "use the <name> skill for the task"and watch for aactivate_skillcall.