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

# Restore Skill • AI Agent SDK

> restore_skill: Restore a previously archived skill back to active use.

# restore\_skill

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

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

Restore a previously archived skill back to active use.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def restore_skill(name: str, skill_dir: Optional[str]) -> dict
```

## Parameters

<ParamField query="name" type="str" required={true}>
  Archived skill name
</ParamField>

<ParamField query="skill_dir" type="Optional[str]" required={false}>
  Optional destination directory (defaults to the first default skill dir)
</ParamField>

### Returns

<ResponseField name="Returns" type="dict">
  Dict with success status
</ResponseField>

## Uses

* `src.exists`
* `src.is_dir`
* `expanduser`
* `Path`
* `get_default_skill_dirs`
* `base_path.mkdir`
* `dest.exists`
* `shutil.move`
* `add_skill`

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Skills Concept" icon="wand-magic-sparkles" href="/docs/docs/concepts/skills" />

  <Card title="Skills Feature" icon="star" href="/docs/docs/features/skills" />
</CardGroup>
