Skip to main content

load_loop_skills

Function load_loop_skills 

Source
pub fn load_loop_skills(
    harness: &str,
    homes: &SkillHomes,
    cwd: &Path,
    extra_dirs: &[PathBuf],
) -> Vec<LoopSkill>
Expand description

Discover every SKILL.md package the loop will load, in PRECEDENCE order: the config’s own extra roots first (a root a config names is more specific than a discovered one), then the named harness’s own documented root table in its own order, then — for Claude Code — nested <subdir>/.claude/skills packages under cwd, qualified dir:skill.

De-duplicated by invocation NAME (first root wins, the collision rule every one of these harnesses states) and by location (one directory reachable through two roots is one skill).