Skip to content

PromptScript API


Function: filterSkillsBlock()

filterSkillsBlock(program, options): Program

Defined in: resolver/src/imports.ts:499

Filter the

Parameters

program

Program

options

SkillFilterOptions

Returns

Program

Skills

block within a program based on includes/excludes criteria. Operates on the ObjectContent properties of the

Skills

block, filtering individual skills by name. Other blocks are left untouched.

Returns a new Program with a deep-cloned

Skills

block; does not mutate the input (important for cached ASTs).