pub struct Skill {
pub name: &'static str,
pub description: &'static str,
pub content: &'static str,
pub references: &'static [(&'static str, &'static str)],
}Expand description
A named piece of agent-facing guidance, plus any files it references.
All fields are &'static str because every known instance is compiled in
via include_str! — there is no owned-String constructor because a
dynamically-built Skill has no crate that would outlive the borrow.
Fields§
§name: &'static strShort identifier, e.g. "workflow".
description: &'static strOne-line summary of when this skill applies.
content: &'static strThe skill body (markdown). No required frontmatter — consumers that need YAML frontmatter (name/triggers/tags) wrap this content rather than expecting it embedded here.
references: &'static [(&'static str, &'static str)]Bundled reference files as (relative_path, content) pairs, e.g.
("references/examples.md", "..."). Empty for skills with no
supporting files.
Trait Implementations§
impl Copy for Skill
impl Eq for Skill
impl StructuralPartialEq for Skill
Auto Trait Implementations§
impl Freeze for Skill
impl RefUnwindSafe for Skill
impl Send for Skill
impl Sync for Skill
impl Unpin for Skill
impl UnsafeUnpin for Skill
impl UnwindSafe for Skill
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