Skip to main content

Skills

Skills are pre-packaged bundles of tools and instructions that give agents domain expertise.

Quick Start

Skill Sources

Local Directory

A directory with a skill.json manifest and tool modules:

npm Package

Any npm package that exports tools:
The package must export getTools(), tools, or a default export returning tool definitions.

Remote URL

A hosted skill with a skill.json manifest:
The remote server must serve skill.json and the main module at the specified paths.

Creating a Skill Object

You can also pass pre-built Skill objects directly:

Lazy Loading

Skills are loaded on the first run() or connect() call, not at construction time. This avoids blocking agent creation with slow I/O operations.

Skill Instructions

If a skill has an instructions field, it’s automatically injected into the system prompt: