readSkillFiles
@a16njs/models / readSkillFiles
Function: readSkillFiles()
readSkillFiles(
skillDir,resources):Promise<Record<string,string>>
Defined in: agentskills-io.ts:117
Read resource files from a skill directory.
Parameters
skillDir
string
Absolute path to the skill directory
resources
string[]
Array of resource file paths (relative to skillDir)
Returns
Promise<Record<string, string>>
Map of relative path to file content
Example
readSkillFiles('/path/to/skill', ['checklist.md', 'config.json'])
// { 'checklist.md': '...', 'config.json': '...' }