SkillFileParser#
Build extensions, choose hooks, and manage request-scoped state. See the guide.
- class zett_agent.extensions.skill.SkillFileParser[源代码]#
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
nameanddescription. Names use lowercase letters, digits, and single hyphens. The Markdown body must contain instructions. Unsupported or malformed files returnNoneso discovery can continue independently.- parse(path)[源代码]#
Return validated metadata, or None when the file is not a valid skill.
- 参数:
path (str | Path)
- 返回类型:
SkillDefinition | None