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

# Edit Skill • AI Agent SDK

> edit_skill: Edit an existing skill's content (full rewrite).

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

Edit an existing skill's content (full rewrite).

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def edit_skill(name: str, content: str, propose: Optional[bool]) -> dict
```

## Parameters

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

<ParamField query="content" type="str" required={true}>
  New skill content
</ParamField>

<ParamField query="propose" type="Optional[bool]" required={false}>
  If True, stage the mutation for human approval instead of writing to disk. Defaults to the manager's `write_approval` policy. Pass `propose=False` to write directly.
</ParamField>

### Returns

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

## Uses

* `get_skill`
* `skill_file.exists`
* `f.read`
* `removeprefix`
* `activate`

## Used By

* [`SkillManager.edit`](../functions/SkillManager-edit)

## Source

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