pub enum SkillError {
Io {
path: PathBuf,
source: Error,
},
MissingFrontmatter {
path: PathBuf,
},
InvalidFrontmatter {
path: PathBuf,
message: String,
},
MissingRequiredField {
path: PathBuf,
field: &'static str,
},
SkillTooLarge {
path: PathBuf,
bytes: usize,
limit: usize,
},
PathNotFound {
raw: String,
resolved: PathBuf,
},
BundledSkillInvalid {
name: &'static str,
message: String,
},
Manifest {
path: PathBuf,
message: String,
},
}Expand description
Errors surfaced during skill loading + resolution. Variants are kept distinct so downstream binaries (and the future skills-lint CLI) can report locations and surface fixes precisely.
Variants§
Io
Filesystem error reading the skill file.
MissingFrontmatter
Missing or malformed frontmatter delimiters.
InvalidFrontmatter
Frontmatter present but invalid YAML.
MissingRequiredField
Required frontmatter field missing (name or description).
SkillTooLarge
Skill body exceeds the hard size limit (16 KB by default).
PathNotFound
Path declared in the manifest’s skills: list doesn’t exist
or isn’t a directory.
BundledSkillInvalid
Compile-time bundled skill (added via add_bundled) failed to
parse. This is a framework-author or downstream-binary-author
bug — the bundled skill files should round-trip through their
own CI tests before shipping.
Manifest
Manifest YAML at path failed to load while resolving skills
from a manifest (e.g. via Registry::from_manifest).
Trait Implementations§
Source§impl Debug for SkillError
impl Debug for SkillError
Source§impl Display for SkillError
impl Display for SkillError
Source§impl Error for SkillError
impl Error for SkillError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()