pub fn format_skill_catalog(skills: &[SkillMetadata]) -> StringExpand description
Render the compact, always-injected skill catalog for prompt assembly.
Why: This is the entire token-efficiency payoff — a one-line-per-skill
listing instead of every skill’s full body.
What: Returns an empty string when skills is empty (callers treat an
empty section as “omit it”, matching assemble_system_prompt’s
empty-section-skipping convention). Otherwise a header line plus one
- name: description line per skill, in the given order (callers pass
already name-sorted Vecs from discover_skill_metadata).
Test: format_skill_catalog_empty_is_empty_string,
format_skill_catalog_lists_every_skill.