Skip to main content

validate

Function
This function is defined in the validator module.
Validate a skill directory.

Signature

Parameters

Path
required
Path to the skill directory
bool
default:"False"
If True, unknown frontmatter fields produce errors.

Returns

List[str]
List of validation error messages. Empty list means valid.

Uses

  • Path
  • skill_dir.exists
  • skill_dir.is_dir
  • find_skill_md
  • skill_md.read_text
  • parse_frontmatter
  • validate_metadata

Used By

Source

View on GitHub

praisonaiagents/skills/validator.py at line 171