Skip to main content

Function: loadSkillsFromDir()

loadSkillsFromDir(dir): Promise<SkillEntry[]>

Defined in: packages/agentos/src/cognition/skills/SkillLoader.ts:259

Load all skills from a directory. Each skill is a folder in it; an entry whose name starts with a dot, and one that is not a folder, is passed over, and a symbolic link is passed over with a warning.

Parameters​

dir​

string

Parent directory containing skill subdirectories. It may be a symbolic link.

Returns​

Promise<SkillEntry[]>

Array of SkillEntry objects