SkillManager

View as MarkdownOpen in Claude

SkillManager handles loading, unloading, validation, and aggregation of skill tools, hints, global data, and prompt sections. You rarely interact with SkillManager directly — AgentBase delegates to it internally. Import it when you need direct control over skill lifecycle outside an agent.

import { SkillManager } from '@signalwire/sdk';

Most users should use AgentBase.addSkill(), AgentBase.removeSkill(), and AgentBase.listSkills() instead of interacting with SkillManager directly.

Properties

size
number

The number of currently loaded skill instances (getter).

Methods

Example

import { SkillManager, DateTimeSkill, MathSkill } from '@signalwire/sdk';
const manager = new SkillManager();
await manager.addSkill(new DateTimeSkill());
await manager.addSkill(new MathSkill());
console.log(`${manager.size} skills loaded`);
console.log(manager.listSkills());