pub struct SkillDiscovery { /* private fields */ }Expand description
Discovers skills from configured directories.
Implementations§
Source§impl SkillDiscovery
impl SkillDiscovery
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new skill discovery instance with default search paths.
Default paths:
$PWD/.skills/- Project-local skills~/.agent-core/skills/- User skills
Sourcepub fn search_paths(&self) -> &[PathBuf]
pub fn search_paths(&self) -> &[PathBuf]
Get the configured search paths.
Sourcepub fn discover(&self) -> Vec<Result<Skill, SkillDiscoveryError>>
pub fn discover(&self) -> Vec<Result<Skill, SkillDiscoveryError>>
Discover all skills from configured directories.
Returns a vector of results, one for each skill found or error encountered. Each immediate subdirectory containing a SKILL.md file is treated as a skill.
Sourcepub fn discover_valid(&self) -> Vec<Skill>
pub fn discover_valid(&self) -> Vec<Skill>
Discover skills and collect only the successful ones.
Errors are silently ignored. Use discover() if you need error information.
Trait Implementations§
Source§impl Debug for SkillDiscovery
impl Debug for SkillDiscovery
Source§impl Default for SkillDiscovery
impl Default for SkillDiscovery
Source§fn default() -> SkillDiscovery
fn default() -> SkillDiscovery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SkillDiscovery
impl RefUnwindSafe for SkillDiscovery
impl Send for SkillDiscovery
impl Sync for SkillDiscovery
impl Unpin for SkillDiscovery
impl UnwindSafe for SkillDiscovery
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