class

Autobot::Agent::SkillsLoader

Inherits Reference < Object

Loader for agent skills.

Skills are markdown files (SKILL.md) that teach the agent how to use specific tools or perform certain tasks. They live in directories under skills/ in the workspace or builtin skills directory.

Constants

BUILTIN_SKILLS_DIR = Path["/tmp/tmp.nkGhFJ/src/src/autobot/agent"].parent.parent / "skills"

Constructors

new(workspace : Path, builtin_skills_dir : Path | Nil = nil)
Source

Instance methods

always_skills

Get skills marked as always=true that meet requirements.

Source
build_skills_summary

Build an XML summary of all skills for progressive loading.

Source
get_skill_metadata(name : String) : SkillMetadata

Parse frontmatter metadata from a SKILL.md file.

Source
list_skills(filter_unavailable : Bool = true) : Array(SkillInfo)

List all available skills.

Source
load_skill(name : String) : String | Nil

Load a skill's content by name.

Source
load_skills_for_context(skill_names : Array(String)) : String

Load specific skills for inclusion in agent context.

Source
tool_skills(tool_names : Array(String)) : Array(String)

Get skills linked to specific tools via the tool frontmatter field. Results are cached after the first scan since skills don't change at runtime.

Source