pub struct SkillFrontmatter {
pub name: String,
pub description: String,
pub allowed_tools: Option<Vec<String>>,
}Expand description
YAML frontmatter prepended to SKILL.md. description is the field
harnesses use to decide when to activate the skill.
Fields§
§name: StringSkill identifier surfaced in tooling (typically matches the directory name).
description: StringSentence (or short paragraph) explaining when the skill should activate. Required by both Claude and Antigravity; the activation model matches against this string.
allowed_tools: Option<Vec<String>>Optional allowed-tools list (Claude). When None, the field is
omitted from the frontmatter.
Trait Implementations§
Source§impl Clone for SkillFrontmatter
impl Clone for SkillFrontmatter
Source§fn clone(&self) -> SkillFrontmatter
fn clone(&self) -> SkillFrontmatter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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
Mutably borrows from an owned value. Read more