Skip to main content

strands/vended_plugins/skills/
mod.rs

1//! [AgentSkills.io](https://agentskills.io) skills for agents.
2//!
3//! Skills disclose instructions progressively: [`AgentSkills`] lists each skill's name and
4//! description in the system prompt, and the agent loads a skill's full instructions on demand
5//! through the `skills` tool. A skill is a directory with a `SKILL.md` file (YAML frontmatter and
6//! markdown instructions), raw `SKILL.md` content, an `https://` URL of that content, or a
7//! [`Skill`] built in code.
8//!
9//! ```no_run
10//! use strands::Agent;
11//! use strands::vended_plugins::skills::{AgentSkills, AgentSkillsConfig};
12//!
13//! let skills = AgentSkills::new(
14//!     AgentSkillsConfig::builder()
15//!         .skills(["./skills/pdf-processing", "./skills/"])
16//!         .build(),
17//! );
18//! let agent = Agent::builder().plugins([skills]).build()?;
19//! # let _ = agent;
20//! # Ok::<(), strands::Error>(())
21//! ```
22
23mod agent_skills;
24mod skill;
25
26pub use agent_skills::{AgentSkills, AgentSkillsConfig, AgentSkillsConfigBuilder, SkillSource};
27pub use skill::{Skill, SkillConfig, SkillConfigBuilder, SkillLoadOptions, SkillLoadOptionsBuilder};