Skip to main content

parse_file

Function parse_file 

Source
pub fn parse_file(path: &Path) -> Result<Option<Skill>>
Expand description

Parse a single SKILL.md. Returns None when the file yields no usable skill for any reason — unreadable file as well as missing/placeholder frontmatter — so a caller holding a possibly-stale path (e.g. the reranker’s doc-text read) degrades gracefully. Use discover_all when the skip reason matters; the Result wrapper is kept for signature compatibility.