validate • AI Agent SDK

validate: Validate a skill directory.

validate

Function

</div>

This function is defined in the validator module.

Validate a skill directory.

Signature

python
def validate(skill_dir: Path, strict: bool) -> List[str]

Parameters

ParamField Path

Path to the skill directory

ParamField bool

If True, unknown frontmatter fields produce errors.

Returns

ResponseField 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