Edit Skill • AI Agent SDK

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

edit_skill

Method

</div>

This is a method of the SkillManager class in the manager module.

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

Signature

python
def edit_skill(name: str, content: str, propose: Optional[bool]) -> dict

Parameters

ParamField str

Skill name to edit

ParamField str

New skill content

ParamField Optional[bool]

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.

Returns

ResponseField dict

Dict with success status

Uses

  • get_skill
  • skill_file.exists
  • f.read
  • removeprefix
  • activate

Used By

Source

View on GitHub

praisonaiagents/skills/manager.py at line 732


Related Documentation