pub struct SkillSpec<'a> {
pub name: &'a str,
pub source: &'a str,
pub title: &'a str,
pub marker_slug: &'a str,
}Expand description
Identity of the skill being managed and the tool that manages it.
name is both the skill directory name and the name: front-matter field. source is the
bundled SKILL.md (typically include_str!). title is a human label for error messages.
marker_slug seeds the managed-skill marker and the Generated by <slug> skill install
comment, and is referenced in hints (e.g. afwidget).
Fields§
§name: &'a strSkill directory name and front-matter name (e.g. agent-first-widget).
source: &'a strBundled SKILL.md contents.
title: &'a strHuman-readable skill title for error messages (e.g. Agent-First Widget).
marker_slug: &'a strShort tool slug used in the managed marker, generated-by comment, and hints (e.g. afwidget).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SkillSpec<'a>
impl<'a> RefUnwindSafe for SkillSpec<'a>
impl<'a> Send for SkillSpec<'a>
impl<'a> Sync for SkillSpec<'a>
impl<'a> Unpin for SkillSpec<'a>
impl<'a> UnsafeUnpin for SkillSpec<'a>
impl<'a> UnwindSafe for SkillSpec<'a>
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