Skill validation framework — run checkers against SKILL.md files and aggregate findings by severity.
Finding
A single validation finding produced by a checker.
Fields
| Name | Type | Description |
|---|---|---|
severity | Severity | |
checker | String | |
message | String | |
detail | Option<String> |
Trait Implementations
DebugCloneSerialize
ValidationReport
Aggregated validation output for a single skill.
Fields
| Name | Type | Description |
|---|---|---|
findings | Vec<Finding> | |
error_count | usize | |
warning_count | usize | |
info_count | usize |
Methods
from_findings
pub fn from_findings(findings: Vec<Finding>) -> Self
Trait Implementations
DebugCloneSerialize
Severity
How severe a validation finding is.
Variants
InfoWarningError
Trait Implementations
DebugClonePartialEqEqHashSerializeDisplayOrdPartialOrd
run_all_checkers
pub fn run_all_checkers(skill_dir: &Path, meta: &SkillMetadata, body: &str) -> Vec<Finding>
Run every registered checker and return all findings sorted by severity descending (errors first).
validate_skill_dir
pub fn validate_skill_dir(skill_dir: &Path, meta: &SkillMetadata, body: &str) -> ValidationReport
Run validation and return an aggregated report with counts.
has_errors
pub fn has_errors(findings: &[Finding]) -> bool
Returns true if any finding has Severity::Error.
has_warnings
pub fn has_warnings(findings: &[Finding]) -> bool
Returns true if any finding has Severity::Warning.