pub struct SkillMetadata {Show 16 fields
pub name: String,
pub description: String,
pub display_name: Option<String>,
pub version: Option<String>,
pub allowed_tools: Option<Vec<String>>,
pub argument_hint: Option<String>,
pub arg_names: Option<Vec<String>>,
pub when_to_use: Option<String>,
pub user_invocable: Option<bool>,
pub paths: Option<Vec<String>>,
pub hooks: Option<HooksSettings>,
pub effort: Option<EffortValue>,
pub model: Option<String>,
pub context: Option<SkillContext>,
pub agent: Option<String>,
pub shell: Option<String>,
}Expand description
Skill metadata parsed from SKILL.md frontmatter
Fields§
§name: String§description: String§display_name: Option<String>Display name parsed from frontmatter name field (TS: displayName)
version: Option<String>Version parsed from frontmatter version field
allowed_tools: Option<Vec<String>>§argument_hint: Option<String>§arg_names: Option<Vec<String>>§when_to_use: Option<String>§user_invocable: Option<bool>§paths: Option<Vec<String>>Conditional paths - skill is activated when these paths are touched
hooks: Option<HooksSettings>Hooks for this skill
effort: Option<EffortValue>Effort level
model: Option<String>Model to use for this skill
context: Option<SkillContext>Execution context (inline or fork)
agent: Option<String>Agent to use for this skill
shell: Option<String>Shell for embedded command execution (bash or powershell)
Trait Implementations§
Source§impl Clone for SkillMetadata
impl Clone for SkillMetadata
Source§fn clone(&self) -> SkillMetadata
fn clone(&self) -> SkillMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 SkillMetadata
impl RefUnwindSafe for SkillMetadata
impl Send for SkillMetadata
impl Sync for SkillMetadata
impl Unpin for SkillMetadata
impl UnsafeUnpin for SkillMetadata
impl UnwindSafe for SkillMetadata
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