pub struct Skill {
pub name: String,
pub description: String,
pub path: PathBuf,
pub mode: SkillMode,
pub triggers: Vec<String>,
pub hint: String,
pub depends_on: Vec<String>,
pub refs: Vec<SkillRef>,
pub params: Vec<SkillParam>,
pub scripts: Vec<SkillScript>,
pub sections: Vec<SkillSection>,
pub globs: Option<Vec<String>>,
}Expand description
A discovered skill with metadata.
Fields§
§name: StringHuman-readable name, e.g., “rust-traits”.
description: StringBrief description for the skill index.
path: PathBufAbsolute path to the SKILL.md file.
mode: SkillModeInjection mode.
triggers: Vec<String>Trigger words (only relevant when mode == Trigger).
hint: StringHint string for trigger-mode skills (short description for injection). Auto-generated from description if absent for trigger mode.
depends_on: Vec<String>Skills that should be auto-loaded before this one.
refs: Vec<SkillRef>Reference documents found in <skill_dir>/refs/
params: Vec<SkillParam>Parameters declared in frontmatter.
scripts: Vec<SkillScript>Executable scripts found in <skill_dir>/scripts/
sections: Vec<SkillSection>Named sections within the skill body (parsed from ## headings).
globs: Option<Vec<String>>Glob patterns for mode: globs (Goal 318).
E.g. ["src/tools/**", "src/runtime.rs"].
None when mode is not Globs (or globs list is empty/absent).
Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.