Loads a skill from a directory containing SKILL.yaml (metadata) and
optionally SKILL.md (system prompt extension).
Value
A Skill object
Details
The skill directory should contain:
SKILL.yaml (required):
name: my_skill
version: "1.0.0"
description: What this skill does
requires:
packages: [dplyr, ggplot2]
providers: [openai, anthropic]
tools:
- name: my_tool
file: tools.R
function: tool_my_toolSKILL.md (optional): Markdown content that will be appended to the agent's system prompt when this skill is loaded.
tools.R (optional): R file containing tool definitions referenced in SKILL.yaml.