Skip to main content

read_properties

Function
This function is defined in the parser module.
Read skill properties from SKILL.md frontmatter. This function parses the frontmatter and returns properties. It does NOT perform full validation. Use validate() for that.

Signature

Parameters

Path
required
Path to the skill directory

Returns

SkillProperties
SkillProperties with parsed metadata

Exceptions

If SKILL.md is missing or has invalid YAML
If required fields (name, description) are missing

Uses

  • Path
  • find_skill_md
  • ParseError
  • skill_md.read_text
  • parse_frontmatter
  • ValidationError
  • SkillProperties
  • SkillRequirements.from_frontmatter

Used By

Source

View on GitHub

praisonaiagents/skills/parser.py at line 81