pub struct SkillRegistry { /* private fields */ }Expand description
Registry that discovers skills from multiple search paths.
Implementations§
Source§impl SkillRegistry
impl SkillRegistry
pub fn new() -> Self
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Create a registry pre-populated with the default search paths.
Sourcepub fn add_default_paths(&mut self)
pub fn add_default_paths(&mut self)
Add the standard search paths (project-local + user-global).
Sourcepub fn add_search_path(&mut self, path: PathBuf)
pub fn add_search_path(&mut self, path: PathBuf)
Add an extra search path for skills.
Sourcepub fn discovered(&self) -> &[SkillMeta]
pub fn discovered(&self) -> &[SkillMeta]
Return all discovered skill metadata.
Sourcepub fn load(&mut self, name: &str) -> Option<&Skill>
pub fn load(&mut self, name: &str) -> Option<&Skill>
Load (activate) a skill by name — reads the full SKILL.md body.
Sourcepub fn skills_summary_prompt(&self) -> String
pub fn skills_summary_prompt(&self) -> String
Generate a system prompt fragment listing discovered skills.
Only name + description are included (the full instructions are injected when a skill is activated).
Sourcepub fn loaded_skills_prompt(&self) -> String
pub fn loaded_skills_prompt(&self) -> String
Generate a prompt fragment with the full instructions of all loaded skills.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SkillRegistry
impl RefUnwindSafe for SkillRegistry
impl Send for SkillRegistry
impl Sync for SkillRegistry
impl Unpin for SkillRegistry
impl UnsafeUnpin for SkillRegistry
impl UnwindSafe for SkillRegistry
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