Skip to main content

parse_description

Function parse_description 

Source
fn parse_description(md: &str) -> String
Expand description

Pull description from a CAPABILITY.md YAML frontmatter block.

The package-level frontmatter is a leading ------ fence with a single description: <one line> key (see the CAPABILITY.md format spec). The provider kind is deliberately NOT read here — it comes from atlas’s authoritative CapabilityProvider.kind (set at registration via Primitive/Service/Skill), so the hand-written markdown can never drift from it. Returns an empty string when there is no frontmatter or no description: key, which is non-fatal: the provider still appears in the index, just without a one-line description until its CAPABILITY.md is updated.