Skip to main content
Validate and preserve a programmatic skill definition.

Type Parameters

T

T extends SkillDefinition

Parameters

def

T Skill name, description, content and optional runtime constraints.

Returns

T The same definition with inferred literal types.

Throws

Invalid required fields or model/tool policy.

Example