pub struct Frontmatter {
pub name: String,
pub description: String,
pub category: Category,
pub version: u32,
pub compatibility: Option<String>,
pub activation: Vec<String>,
pub tools: Vec<String>,
pub extra: BTreeMap<String, Value>,
}Expand description
Metadata extracted from the YAML frontmatter of a SKILL.md file.
Required fields are modelled as strongly-typed values; unknown fields
are preserved in Self::extra so agent-specific extensions (custom
activation rules, capability declarations, …) are not silently dropped.
Fields§
§name: StringSkill name. Must match the containing directory.
description: StringOne-line description used by devboy skills list.
category: CategoryCategory that drives filtering and the install-layout path.
version: u32Integer version bumped on every change.
compatibility: Option<String>Optional semver range against the tool bundle (e.g.
"devboy-tools >= 0.18").
activation: Vec<String>Optional list of trigger phrases for agents that support activation-based skill invocation.
tools: Vec<String>Optional list of tools the skill calls. Used by the future compatibility checker described in ADR-014.
extra: BTreeMap<String, Value>Any frontmatter fields we did not explicitly model. Preserved so agent-specific keys survive a round-trip.
Trait Implementations§
Source§impl Clone for Frontmatter
impl Clone for Frontmatter
Source§fn clone(&self) -> Frontmatter
fn clone(&self) -> Frontmatter
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more