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
def validate(skill_dir: Path, strict: bool) -> List[str]Parameters
ParamField
PathPath to the skill directory
ParamField
boolIf True, unknown frontmatter fields produce errors.
Returns
ResponseField
List[str]List of validation error messages. Empty list means valid.
Uses
Pathskill_dir.existsskill_dir.is_dirfind_skill_mdskill_md.read_textparse_frontmattervalidate_metadata
Used By
Source
View on GitHubpraisonaiagents/skills/validator.py at line 171