Skip to content

PromptScript API


Function: stripFrontmatterMarkerLines()

stripFrontmatterMarkerLines(frontmatter): string

Defined in: core/src/utils/markers.ts:56

Remove PromptScript YAML marker lines from raw YAML frontmatter.

Generated files carry the marker as the first frontmatter line. When such a file is re-ingested as a skill source, the stale marker must not be passed through to the next compilation output.

Parameters

frontmatter

string

Raw frontmatter block (without the --- delimiters)

Returns

string

Frontmatter without PromptScript marker lines