Skip to content

PromptScript API


Function: validateSkillFrontmatter()

validateSkillFrontmatter(rawContent, options?): SkillValidationResult

Defined in: resolver/src/skill-validation.ts:59

Validate a SKILL.md frontmatter and body against the Agent Skills specification (see https://agentskills.io/specification) and PromptScript's additional quality recommendations.

Errors mirror what skills-ref validate rejects (name format, description presence, directory match, …). Warnings cover quality smells the spec recommends but does not strictly enforce (short description, oversized body, missing license, unpinned version, …).

Parameters

rawContent

string

options?

SkillValidationOptions = {}

Returns

SkillValidationResult