Skip to main content

load_skills_for_agent

Function load_skills_for_agent 

Source
pub fn load_skills_for_agent(
    workspace_dir: &Path,
    config: &Config,
    agent_alias: &str,
) -> Vec<Skill>
Expand description

Per-agent skill discovery. Walks [agents.<agent_alias>].skill_bundles, resolves each bundle’s directory via the shared zeroclaw_config::skill_bundles::resolve_directory helper, and unions the skills under each bundle with whatever load_skills_with_config would return for the install (workspace skills, open-skills, plugin skills). Empty skill_bundles falls back to the install-wide set — keeps freshly-migrated agents working until the operator assigns a bundle.