pub struct SkillFrontmatter {
pub name: Option<String>,
pub description: Option<String>,
pub system_prompt: Option<String>,
pub tools: Vec<String>,
pub allowed_tools: Option<Vec<String>>,
pub denied_tools: Option<Vec<String>>,
pub extra: HashMap<String, Value>,
}Expand description
Frontmatter structure parsed from YAML.
Supports multiple naming conventions for compatibility with Claude Code, Cursor, Amp, and Codex skill formats.
Fields§
§name: Option<String>Skill name - supports name, id, or title.
description: Option<String>Skill description - supports description, desc, or summary.
system_prompt: Option<String>System prompt in frontmatter (Amp style). If present, overrides the markdown body.
tools: Vec<String>List of tools to enable (optional).
allowed_tools: Option<Vec<String>>Whitelist of allowed tools (optional).
Also supports enabled_tools alias.
denied_tools: Option<Vec<String>>Blacklist of denied tools (optional).
Also supports disabled_tools or blocked_tools alias.
extra: HashMap<String, Value>Additional metadata fields.
Trait Implementations§
Source§impl Debug for SkillFrontmatter
impl Debug for SkillFrontmatter
Source§impl<'de> Deserialize<'de> for SkillFrontmatter
impl<'de> Deserialize<'de> for SkillFrontmatter
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SkillFrontmatter
impl RefUnwindSafe for SkillFrontmatter
impl Send for SkillFrontmatter
impl Sync for SkillFrontmatter
impl Unpin 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