pub struct Skills {
pub skills: Vec<Skill>,
}Expand description
The set of discovered skills.
Fields§
§skills: Vec<Skill>Implementations§
Source§impl Skills
impl Skills
pub fn empty() -> Self
Sourcepub fn discover(cwd: &Path) -> Self
pub fn discover(cwd: &Path) -> Self
Discover skills in <cwd>/.claude/skills (project) and
~/.claude/skills (user). Project skills shadow user skills of the same
name. Returns an empty registry if neither directory exists.
Sourcepub fn discover_from_roots(roots: &[(PathBuf, SkillSource)]) -> Self
pub fn discover_from_roots(roots: &[(PathBuf, SkillSource)]) -> Self
Discovery over an explicit list of (root, source), earlier roots
shadowing later ones. Separated out so tests can supply synthetic roots
(including a fake “user” dir) without touching the real home directory.
pub fn find(&self, name: &str) -> Option<&Skill>
pub fn names(&self) -> Vec<&str>
Trait Implementations§
Auto Trait Implementations§
impl Forget for Skills
impl Freeze for Skills
impl Move for Skills
impl RefUnwindSafe for Skills
impl Send for Skills
impl Sync for Skills
impl Unpin for Skills
impl UnsafeUnpin for Skills
impl UnwindSafe for Skills
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