pub struct Skill {
pub name: String,
pub description: String,
pub body: String,
pub dir: PathBuf,
pub network: bool,
pub packages: Vec<String>,
pub meta: BTreeMap<String, String>,
}Expand description
Instructions for one kind of task.
Fields§
§name: String[a-z0-9][a-z0-9-]{0,63}; what the user types after /.
description: String§body: StringThe Markdown steps, frontmatter removed.
dir: PathBufThe folder holding SKILL.md (scripts, templates sit next to it).
network: boolIts scripts may use the internet (network: true).
packages: Vec<String>PyPI packages its scripts need, e.g. yfinance==0.2.54.
meta: BTreeMap<String, String>Other frontmatter keys (license, allowed-tools, …), kept as text.
Trait Implementations§
impl Eq for Skill
impl StructuralPartialEq for Skill
Auto Trait Implementations§
impl Forget for Skill
impl Freeze for Skillwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
impl Move for Skill
impl RefUnwindSafe for Skill
impl Send for Skill
impl Sync for Skill
impl Unpin for Skill
impl UnsafeUnpin for Skillwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.