Skip to main content

validateSkillInput

@forge/monorepo


@forge/monorepo / backend/src / validateSkillInput

Function: validateSkillInput()

validateSkillInput(skill): SkillVersion

Defined in: backend/src/skills/resolver.ts:25

Validate a tenant-authored skill against the same limits as workspace_agent_skills, so a ported skill cannot violate them on the way in. Returns the value; throws invalid_input on any breach. There is no executable field to validate — a skill body is always plain instructions.

Parameters

skill

SkillVersion

Returns

SkillVersion