Skip to content

buildSkillPhaseSection()

PromptScript API


buildSkillPhaseSection(phase, sourceLabel): string

Defined in: core/src/skill-phase.ts:64

Render a composed skill phase with a portable source marker. Callers build the label with getSkillPhaseSourceLabel, so the marker never holds an absolute path. Full source paths remain in the resolver’s provenance metadata.

Parameters

phase

SkillPhaseContent

sourceLabel

string

Returns

string