> ## 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.

# From Frontmatter • AI Agent SDK

> from_frontmatter: Parse requirements from skill frontmatter.

# from\_frontmatter

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**SkillRequirements**](../classes/SkillRequirements) class in the [**models**](../modules/models) module.

Parse requirements from skill frontmatter.

Normalizes various naming conventions:

* requires\_servers, requires\_tools (Hermes/OpenClaw style)
* allowed-tools (existing PraisonAI convention)
* openclaw (OpenClaw-specific hints)

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def from_frontmatter(metadata: dict) -> 'SkillRequirements'
```

## Parameters

<ParamField query="metadata" type="dict" required={true}>
  Raw frontmatter dict
</ParamField>

### Returns

<ResponseField name="Returns" type="'SkillRequirements'">
  SkillRequirements instance
</ResponseField>

## Uses

* `cls`

## Used By

* [`read_properties`](../functions/read_properties)

## Source

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