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>,
}skills only.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 moreSource§impl Debug for SkillFrontmatter
impl Debug for SkillFrontmatter
Source§impl Default for SkillFrontmatter
impl Default for SkillFrontmatter
Source§fn default() -> SkillFrontmatter
fn default() -> SkillFrontmatter
Source§impl<'de> Deserialize<'de> for SkillFrontmatterwhere
SkillFrontmatter: Default,
impl<'de> Deserialize<'de> for SkillFrontmatterwhere
SkillFrontmatter: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SkillFrontmatter, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SkillFrontmatter, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for SkillFrontmatter
impl Serialize for SkillFrontmatter
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for SkillFrontmatter
impl RefUnwindSafe for SkillFrontmatter
impl Send for SkillFrontmatter
impl Sync for SkillFrontmatter
impl Unpin for SkillFrontmatter
impl UnsafeUnpin for SkillFrontmatter
impl UnwindSafe for SkillFrontmatter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request