pub struct SkillFrontmatter {
pub name: String,
pub description: String,
pub version: Option<String>,
pub license: Option<String>,
pub compatibility: Option<String>,
pub tags: Vec<String>,
pub allowed_tools: Vec<String>,
pub references: Vec<String>,
pub trigger: Option<bool>,
pub hint: Option<String>,
pub metadata: HashMap<String, Value>,
pub triggers: Vec<String>,
}Expand description
Frontmatter metadata for a skill, following the agentskills.io specification.
Fields§
§name: StringA required short identifier (1-64 chars) containing only lowercase letters, numbers, and hyphens.
description: StringA required concise description of what the skill does and when an agent should use it.
version: Option<String>An optional version identifier for the skill (e.g., “1.0.0”).
license: Option<String>An optional license identifier or reference to a bundled license file.
compatibility: Option<String>Optional environment requirements (e.g., “Requires system packages, network access”).
A collection of categorizing labels for discovery and filtering.
allowed_tools: Vec<String>Experimental: A list of space-delimited pre-approved tools the skill may use.
references: Vec<String>Optional list of paths to supporting resources (e.g., “references/data.json”).
trigger: Option<bool>If true, the skill is only included when explicitly invoked by name.
hint: Option<String>Optional hint text displayed for slash command guided input.
metadata: HashMap<String, Value>Arbitrary key-value mapping for custom extension metadata.
triggers: Vec<String>File glob patterns that determine when this skill activates (e.g., ["*.rs", "Cargo.toml"]).
Trait Implementations§
Source§impl Clone for SkillFrontmatter
impl Clone for SkillFrontmatter
Source§fn clone(&self) -> SkillFrontmatter
fn clone(&self) -> SkillFrontmatter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more