Skip to main content

Module skills

Module skills 

Source
Expand description

AgentSkills.io skills for agents.

Skills disclose instructions progressively: AgentSkills lists each skill’s name and description in the system prompt, and the agent loads a skill’s full instructions on demand through the skills tool. A skill is a directory with a SKILL.md file (YAML frontmatter and markdown instructions), raw SKILL.md content, an https:// URL of that content, or a Skill built in code.

use strands::Agent;
use strands::vended_plugins::skills::{AgentSkills, AgentSkillsConfig};

let skills = AgentSkills::new(
    AgentSkillsConfig::builder()
        .skills(["./skills/pdf-processing", "./skills/"])
        .build(),
);
let agent = Agent::builder().plugins([skills]).build()?;

Structs§

AgentSkills
Adds AgentSkills.io skills to an agent (AgentSkills).
AgentSkillsConfig
Configuration for AgentSkills (AgentSkillsConfig).
AgentSkillsConfigBuilder
Use builder syntax to set the inputs and finish with build().
Skill
An agent skill: metadata shown in the system prompt up front, and instructions the agent loads on demand through the skills tool (Skill).
SkillConfig
Configuration for a Skill (SkillConfig).
SkillConfigBuilder
Use builder syntax to set the inputs and finish with build().
SkillLoadOptions
Options for loading a skill ({ strict }).
SkillLoadOptionsBuilder
Use builder syntax to set the inputs and finish with build().

Enums§

SkillSource
One skill source (SkillSource): a Skill, a filesystem path (a skill directory, its SKILL.md, or a parent directory of skill directories), or an https:// URL of raw SKILL.md content.