Skip to main content
Skills are loaded using the Skills class with one or more SkillLoader instances set as loaders. Currently, LocalSkills is available for loading skills from the filesystem.

Basic Usage

LocalSkills Loader

The LocalSkills loader reads skills from the local filesystem.

Loading from a Directory of Skills

If you have multiple skills in subdirectories:

Loading a Single Skill

If you want to load just one skill:

Multiple Loaders

You can combine multiple loaders to load skills from different locations:
If skills from different loaders have the same name, the later loader’s skill will overwrite the earlier one.

Agent Tools

When you add skills to an agent, it automatically gets access to these tools:

Example: Using Skill Tools

System Prompt Integration

Skills metadata is automatically added to the agent’s system prompt. The agent sees:
  • Skill names and descriptions
  • Available scripts and references
  • Instructions on how to load full skill details
This allows the agent to discover and use skills without loading everything upfront.

Reloading Skills

If your skills change at runtime, you can reload them:

Error Handling

Skills are validated when loaded. If validation fails, a SkillValidationError is raised:

Complete Example