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

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