Skip to content

PromptScript API


Function: resolveSkillComposition()

resolveSkillComposition(ast, options): Promise\<Program>

Defined in: resolver/src/skill-composition.ts:57

Resolve inline @use declarations inside @skills blocks.

For each inline @use, the referenced sub-skill is loaded through the full resolver pipeline, its skill definition and context blocks are extracted, and the result is flattened into the parent skill as a numbered phase section.

Parameters

ast

Program

Program AST that may contain

options

CompositionOptions

Composition resolution options

Returns

Promise\<Program>

Updated AST with inline uses resolved and consumed

Skills

blocks with inlineUses