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§
- Agent
Skills - Adds AgentSkills.io skills to an agent (
AgentSkills). - Agent
Skills Config - Configuration for
AgentSkills(AgentSkillsConfig). - Agent
Skills Config Builder - 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
skillstool (Skill). - Skill
Config - Configuration for a
Skill(SkillConfig). - Skill
Config Builder - Use builder syntax to set the inputs and finish with
build(). - Skill
Load Options - Options for loading a skill (
{ strict }). - Skill
Load Options Builder - Use builder syntax to set the inputs and finish with
build().
Enums§
- Skill
Source - One skill source (
SkillSource): aSkill, a filesystem path (a skill directory, itsSKILL.md, or a parent directory of skill directories), or anhttps://URL of rawSKILL.mdcontent.