pub struct Skill {
pub name: CompactString,
pub description: String,
pub license: Option<CompactString>,
pub compatibility: Option<CompactString>,
pub metadata: BTreeMap<CompactString, String>,
pub allowed_tools: Vec<CompactString>,
pub body: String,
}Expand description
A named unit of agent behavior (agentskills.io format).
Pure data struct — parsing logic lives in the loader module.
Fields mirror the agentskills.io specification. Runtime-only concepts
like tier and priority live in the registry, not here.
Fields§
§name: CompactStringSkill identifier (lowercase, hyphens, 1-64 chars).
description: StringHuman-readable description (1-1024 chars).
license: Option<CompactString>SPDX license identifier.
compatibility: Option<CompactString>Compatibility constraints (e.g. “walrus>=0.1”).
metadata: BTreeMap<CompactString, String>Arbitrary key-value metadata map.
allowed_tools: Vec<CompactString>Tool names this skill is allowed to use.
body: StringSkill body (Markdown instructions).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Skill
impl RefUnwindSafe for Skill
impl Send for Skill
impl Sync for Skill
impl Unpin for Skill
impl UnsafeUnpin for Skill
impl UnwindSafe for Skill
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more