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

# load • AI Agent SDK

> load: Convenience method to load a skill.

# load

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

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

Convenience method to load a skill.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def load(skill_path: str, activate: bool) -> Optional[LoadedSkill]
```

## Parameters

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

<ParamField query="activate" type="bool" required={false} default="False">
  Whether to also load instructions
</ParamField>

### Returns

<ResponseField name="Returns" type="Optional[LoadedSkill]">
  LoadedSkill or None if invalid
</ResponseField>

## Uses

* `cls`
* `loader.load_metadata`
* `loader.activate`

## Used By

* [`PermissionAllowlist.load`](../functions/PermissionAllowlist-load)
* [`FileTracker.load`](../functions/FileTracker-load)
* [`Knowledge.index`](../functions/Knowledge-index)
* [`ToolRegistry.discover_plugins`](../functions/ToolRegistry-discover_plugins)

## Source

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