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

# Rollback Skill • AI Agent SDK

> rollback_skill: Roll a skill's SKILL.md back to its content before the last mutation.

# rollback\_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.

Roll a skill's SKILL.md back to its content before the last mutation.

Restores the snapshot saved by the most recent `edit_skill` or
`patch_skill` call, undoing a mutation that broke a previously
working skill.

Note: this is a *single-step* undo. Only the most recent mutation is
snapshotted; sequential `edit`/`patch` calls overwrite the prior
snapshot, so rollback cannot step back more than one mutation.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def rollback_skill(name: str) -> dict
```

## Parameters

<ParamField query="name" type="str" required={true}>
  Skill name to roll back
</ParamField>

### Returns

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

## Uses

* `get_skill`
* `backup_file.exists`
* `backup_file.read_text`
* `activate`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/skills/manager.py#L1009">
  `praisonaiagents/skills/manager.py` at line 1009
</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>
