Skip to main content

Basic Usage

Signature

Configuration Options

Required Properties

Optional Properties

Agent Skills Spec Properties

These properties align with the Anthropic Agent Skills specification:

Instruction Sources

Inline String

File Reference

URL Reference

Tool References

By Name

By Class

With Purpose

With Class and Purpose

Parameters

Define input parameters for skills:

Examples

Provide usage examples:

Function-Based Alternative

Skill Content Output

Skills build to SkillContent:

Skill Validation

Skills are validated on server startup:
  • strict: Fail if skill references missing tools
  • warn: Log warnings but continue
  • ignore: Skip validation

Skill Sessions

Skills can be loaded into sessions for focused tool access:

Full Example

SKILL.md Files

Load skills from SKILL.md files with YAML frontmatter (per Agent Skills spec):

Loading SKILL.md Files

Skill Directories

Load entire skill directories with the skillDir() helper:
Expected directory structure:

Agent Skills Spec Example

A fully spec-compliant skill:

SkillContext

Context class details

SkillRegistry

Skill registry API

@Tool

Define tools

Skills Overview

Skills documentation