SkillFileParser#

Build extensions, choose hooks, and manage request-scoped state. See the guide.

class zett_agent.extensions.skill.SkillFileParser[source]#

Validate and parse one Agent Skills-compatible SKILL.md file.

A valid file uses UTF-8, starts with closed YAML-style front matter, and declares name and description. Names use lowercase letters, digits, and single hyphens. The Markdown body must contain instructions. Unsupported or malformed files return None so discovery can continue independently.

parse(path)[source]#

Return validated metadata, or None when the file is not a valid skill.

Parameters:

path (str | Path)

Return type:

SkillDefinition | None