pub struct PromptCatalog { /* private fields */ }Expand description
A catalog of prompt artifacts discovered from .aether/skills/.
Implementations§
Source§impl PromptCatalog
impl PromptCatalog
Sourcepub fn from_dir(skills_dir: &Path) -> Result<Self, SettingsError>
pub fn from_dir(skills_dir: &Path) -> Result<Self, SettingsError>
Discover and validate all prompt artifacts under skills_dir/*/SKILL.md.
skills_dir is typically <project_root>/.aether/skills or <base_dir>/skills.
Sourcepub fn all(&self) -> &[PromptFile]
pub fn all(&self) -> &[PromptFile]
All prompt specs in catalog order.
Sourcepub fn slash_commands(&self) -> impl Iterator<Item = &PromptFile>
pub fn slash_commands(&self) -> impl Iterator<Item = &PromptFile>
Iterate over user-invocable prompts (slash commands).
Sourcepub fn skills(&self) -> impl Iterator<Item = &PromptFile>
pub fn skills(&self) -> impl Iterator<Item = &PromptFile>
Iterate over agent-invocable prompts (skills).
Sourcepub fn matching_rules(&self, relative_path: &str) -> Vec<&PromptFile>
pub fn matching_rules(&self, relative_path: &str) -> Vec<&PromptFile>
Find all prompt specs whose read triggers match the given project-relative path.
Trait Implementations§
Source§impl Clone for PromptCatalog
impl Clone for PromptCatalog
Source§fn clone(&self) -> PromptCatalog
fn clone(&self) -> PromptCatalog
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PromptCatalog
impl RefUnwindSafe for PromptCatalog
impl Send for PromptCatalog
impl Sync for PromptCatalog
impl Unpin for PromptCatalog
impl UnsafeUnpin for PromptCatalog
impl UnwindSafe for PromptCatalog
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