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.

1import { 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

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