Class: RubyLLM::Skills::FilesystemLoader
- Defined in:
- lib/ruby_llm/skills/filesystem_loader.rb
Overview
Loads skills from a filesystem directory.
Supports two formats:
- Directory skills: subdirectories containing SKILL.md files
- Single-file commands: .md files with frontmatter at the root level
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ FilesystemLoader
constructor
Initialize with a directory path.
-
#list ⇒ Array<Skill>
List all skills from the directory.
Methods inherited from Loader
#exists?, #find, #get, #reload!
Constructor Details
#initialize(path) ⇒ FilesystemLoader
Initialize with a directory path.
26 27 28 29 |
# File 'lib/ruby_llm/skills/filesystem_loader.rb', line 26 def initialize(path) super() @path = path.to_s end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
21 22 23 |
# File 'lib/ruby_llm/skills/filesystem_loader.rb', line 21 def path @path end |
Instance Method Details
#list ⇒ Array<Skill>
List all skills from the directory.
34 35 36 |
# File 'lib/ruby_llm/skills/filesystem_loader.rb', line 34 def list skills end |