# NewFileSystemSource

class NewFileSystemSource(skillsBaseDir: String) : SkillSource

JVM implementation of SkillSource using standard File I/O.

## Constructors

NewFileSystemSource
Link copied to clipboard
constructor(skillsBaseDir: String)

## Functions

listFrontmatters
Link copied to clipboard
open suspend override fun listFrontmatters(): Result<List<Frontmatter>>

Returns the frontmatter for all available skills.

listResources
Link copied to clipboard
open suspend override fun listResources(skillName: String, resourceDirectoryPath: String): Result<List<String>>

Returns a list of resource paths within a specific directory for a given skill.

loadFrontmatter
Link copied to clipboard
open suspend override fun loadFrontmatter(skillName: String): Result<Frontmatter>

Loads the frontmatter for a single skill by name.

loadInstructions
Link copied to clipboard
open suspend override fun loadInstructions(skillName: String): Result<String>

Loads the instruction body for a single skill by name.

loadResource
Link copied to clipboard
open suspend override fun loadResource(skillName: String, resourcePath: String): Result<ByteArray>

Loads a specific resource file for a given skill.