For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
GuidesReference
GuidesReference
    • Core
      • Overview
    • Agents
      • Overview
      • AgentBase
      • AgentServer
      • Configuration
      • ContextBuilder
      • DataMap
      • FunctionResult
      • Helper Functions & Utilities
      • LiveWire
      • PomBuilder
      • Prefabs
      • SkillBase
      • SkillManager
      • SkillRegistry
        • addSearchPath
        • clear
        • create
        • discoverAll
        • discoverFromDirectory
        • getAllSkillsSchema
        • getInstance
        • getSearchPaths
        • getSkillClass
        • getSkillSchema
        • has
        • listAllSkillSources
        • listRegistered
        • listSkills
        • lock
        • register
        • resetInstance
        • unregister
      • Skills
      • SwaigFunction
      • SwmlBuilder
      • SWMLService
    • RELAY
      • Overview
      • Actions
      • Call
      • Constants
      • Events
      • Message
      • RelayClient
      • RelayError
    • REST Client
      • Overview
      • Addresses
      • Calling
      • ChatResource
      • Compat
      • Datasphere
      • Fabric
      • ImportedNumbersResource
      • Logs
      • LookupResource
      • MFA
      • Number Groups
      • Phone Numbers
      • Project
      • PubSubResource
      • Queues
      • Recordings
      • Registry
      • RestClient
      • RestError
      • Short Codes
      • SIP Profile
      • Verified Callers
      • Video
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • Parameters
  • SkillClass
  • Returns
  • Throws
  • Example
AgentsSkillRegistry

register

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

resetInstance

Next
Built with

Register a skill class. The skill name is read from the class’s static SKILL_NAME. The registry validates that SKILL_NAME is non-empty and that getParameterSchema() returns a non-empty object before registering.

Parameters

SkillClass
typeof SkillBaseRequired

A concrete subclass of SkillBase with a non-empty static SKILL_NAME and a non-empty getParameterSchema() return value.

Returns

void

Throws

  • Error if the class has no SKILL_NAME.
  • Error if getParameterSchema() throws or returns an empty object.

Locked skill names (see lock) are skipped with a warning rather than throwing.

Example

1import { SkillRegistry, SkillBase } from '@signalwire/sdk';
2
3class MySkill extends SkillBase {
4 static override SKILL_NAME = 'my-skill';
5 // ...
6}
7
8SkillRegistry.getInstance().register(MySkill);