removeSkillByName

View as MarkdownOpen in Claude

Remove the first loaded skill whose name matches skillName. Provides name-based removal for parity with Python’s remove_skill(skill_name). Use removeSkill() when you need to remove a specific instance by its instanceId.

Parameters

skillName
stringRequired

Skill name to match. Only the first matching instance is removed.

Returns

Promise<boolean>true if a matching skill was found and removed, false otherwise.

Example

1import { AgentBase, DateTimeSkill, MathSkill } from '@signalwire/sdk';
2
3const agent = new AgentBase({ name: 'assistant', route: '/assistant' });
4await agent.addSkill(new DateTimeSkill());
5await agent.addSkill(new MathSkill());
6await agent.removeSkillByName('math');
7console.log(agent.listSkills().map((s) => s.name)); // ["datetime"]