Skip to content

PromptScript API


Interface: SkillDefinition

Defined in: core/src/types/ast.ts:366

Typed representation of a skill in the

Skills

block.

Currently skills are stored as Record in ObjectContent. This interface provides typed access for skill-specific properties.

Properties

agent?

optional agent: string

Defined in: core/src/types/ast.ts:384

Agent to use


allowedTools?

optional allowedTools: string[]

Defined in: core/src/types/ast.ts:378

Allowed tools


content?

optional content: string | TextContent

Defined in: core/src/types/ast.ts:370

Skill content/instructions


context?

optional context: string

Defined in: core/src/types/ast.ts:382

Context mode


description

description: string

Defined in: core/src/types/ast.ts:368

Skill description (required)


disableModelInvocation?

optional disableModelInvocation: boolean

Defined in: core/src/types/ast.ts:380

Disable model invocation


inputs?

optional inputs: Record\<string, SkillContractField>

Defined in: core/src/types/ast.ts:388

Runtime inputs the skill expects


outputs?

optional outputs: Record\<string, SkillContractField>

Defined in: core/src/types/ast.ts:390

Outputs the skill produces


params?

optional params: ParamDefinition[]

Defined in: core/src/types/ast.ts:372

Template parameters for parameterization


requires?

optional requires: string[]

Defined in: core/src/types/ast.ts:386

Skills that must exist for this skill to work


trigger?

optional trigger: string

Defined in: core/src/types/ast.ts:374

Trigger phrases


userInvocable?

optional userInvocable: boolean

Defined in: core/src/types/ast.ts:376

Whether user can invoke directly