Skills
Skills are pluggable capabilities that add tools to your agent. Import a skill class,
instantiate it with optional configuration, and pass the instance to
addSkill(). Each skill registers
one or more SWAIG functions automatically and injects prompt sections, hints, and
global data.
Skills Summary
Configuration
All skills accept configuration via a config object passed to the skill constructor.
A skill that falls back to an environment variable for a parameter says so on its
page. The env_var entry in a parameter schema is a hint for tools that read the
schema; the SDK doesn’t read it.
SWAIG Field Overrides
Override SWAIG function metadata for any skill by including a swaig_fields key:
Multi-Instance Skills
Skills that support multiple instances (SUPPORTS_MULTIPLE_INSTANCES = true)
can be added to the same agent more than once with different tool_name values:
Base Parameters
Every skill inherits these parameters from SkillBase:
swaig_fields
Additional SWAIG fields to merge into each tool definition provided by this skill
(e.g., fillers, secure). A tool’s own fields win over these. Setting
secure: false lets the skill’s tools run without a per-call token.
skip_prompt
When true, suppress all prompt sections from this skill.
Extending SkillBase
Create custom skills by extending SkillBase and registering
them with the SkillRegistry.
Defining a Custom Skill
Registering with SkillRegistry
Using a Custom Skill
For more details on the skill base class, see SkillBase.