> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# validate • AI Agent SDK

> validate: Validate a skill directory.

# validate

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**validator**](../modules/validator) module.

Validate a skill directory.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def validate(skill_dir: Path, strict: bool) -> List[str]
```

## Parameters

<ParamField query="skill_dir" type="Path" required={true}>
  Path to the skill directory
</ParamField>

<ParamField query="strict" type="bool" required={false} default="False">
  If True, unknown frontmatter fields produce errors.
</ParamField>

### Returns

<ResponseField name="Returns" type="List[str]">
  List of validation error messages. Empty list means valid.
</ResponseField>

## Uses

* `Path`
* `skill_dir.exists`
* `skill_dir.is_dir`
* `find_skill_md`
* `skill_md.read_text`
* `parse_frontmatter`
* `validate_metadata`

## Used By

* [`validate_tool`](../functions/validate_tool)
* [`tool`](../functions/tool)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/skills/validator.py#L171">
  `praisonaiagents/skills/validator.py` at line 171
</Card>
