pub fn discover_skills(roots: &[PathBuf]) -> Vec<Skill>Expand description
Walk the given roots and load skills from all supported formats:
- Format 1: directories with
SKILL.md(backward compatible) - Format 2: directories with multiple
.mdfiles (Claude Code style) - Format 3: standalone
.mdfiles directly in the root directory
Missing roots are silently skipped so users can keep a personal
~/.matrix/skills directory without the project-local one (or
vice versa). Skills with duplicate names: first one wins, later ones
are dropped with a stderr warning so precedence is predictable.