pub struct SkillDiscovery { /* private fields */ }Expand description
Discovers skills from configured directories.
Implementations§
Source§impl SkillDiscovery
impl SkillDiscovery
Sourcepub fn new() -> SkillDiscovery
pub fn new() -> SkillDiscovery
Create a new skill discovery instance with default search paths.
Default paths:
$PWD/.skills/- Project-local skills~/.agent-core/skills/- User skills
Sourcepub fn empty() -> SkillDiscovery
pub fn empty() -> SkillDiscovery
Create an empty skill discovery instance with no default paths.
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more