Skip to main content

Overview

Methods

getSkills()

Get all skills with optional filtering.
Example:
Search skills using TF-IDF text matching.
Example:

loadSkill()

Load skill content by ID/name with tool validation.
Example:

listSkills()

List skills with pagination support.
Example:

count()

Get total skill count.

findByName()

Find a skill by its base name.

findByQualifiedName()

Find a skill by its fully qualified name.

getInlineSkills()

Get skills defined inline (local only).

validateAllTools()

Validate all skills’ tool references against the ToolRegistry.
Example:

subscribe()

Subscribe to skill change events.
Returns: Unsubscribe function.

getCapabilities()

Get MCP capabilities for skills.

hasAny()

Check if any skills exist.

adoptFromChild()

Adopt skills from a child registry.

External Storage

Skills can be synced to external storage for persistence:

setExternalProvider()

Configure an external storage provider.

syncToExternal()

Sync local skills to external storage.
Example:

hasExternalProvider()

Check if external provider is configured.

getExternalProvider()

Get the configured external provider.

Change Events

SkillEntry Accessors

Each skill in the registry is a SkillEntry with these accessor methods:

Skill Visibility

Skills can have different visibility modes:

Tool Validation

Skills can reference tools that must exist in the registry:
Validation modes:
  • strict: Fail if any tool is missing
  • warn: Log warning for missing tools
  • ignore: Skip validation