SkillRegistry
SkillRegistry is a global singleton for registering, discovering, and
instantiating skills by class reference. Skills can be registered
programmatically by passing the class itself (the registry reads metadata from
static class properties like SKILL_NAME), or auto-discovered from
directories via the SIGNALWIRE_SKILL_PATHS environment variable.
Methods
Get the global singleton instance.
Register a skill class.
Create a skill instance from the registry.
Check if a skill name is registered.
Remove a skill registration.
Lock skill names to prevent overwriting.
List all registered skill names.
Add a directory for skill discovery.
Get all skill search paths.
Discover skills from a directory.
Discover skills from all search paths.
Get a skill’s parameter schema.
Get schemas for all registered skills.
List skills grouped by source.
Remove all registrations.
Look up a registered skill class by name.
List all registered skills with full metadata.
Reset the global singleton (test helper).
Properties
size
The number of currently registered skills (getter).