Skip to content

PromptScript API


Function: resolveNativeSkills()

resolveNativeSkills(ast, registryPath, sourceFile): Promise\<Program>

Defined in: resolver/src/skills.ts:95

Resolve native SKILL.md files for skills defined in the AST.

For each skill in the

Parameters

ast

Program

The resolved AST

registryPath

string

Path to the registry

sourceFile

string

The source file path (to determine relative skill location)

Returns

Promise\<Program>

Updated AST with native skill content

Skills

block, checks if a corresponding SKILL.md file exists in the registry at @skills//SKILL.md. If found, the skill's content is replaced with the native file content.