Skip to main content

skill_id_resolves

Function skill_id_resolves 

Source
pub fn skill_id_resolves(skill_id: &str, search_paths: &[PathBuf]) -> bool
Expand description

Returns true if skill_id resolves to a directory containing SKILL.md under any of the supplied search paths.

Resolution accepts two layouts:

  • Flat: <search-path>/<skill-id>/SKILL.md (used by .claude/skills/, .opencode/skills/, etc.).
  • Grouped: <search-path>/<group>/<skill-id>/SKILL.md (used by .agents/skills/<group>/<skill-id>/SKILL.md — e.g. the ByteRover hub skills mirrored under .agents/skills/byterover/).