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
def edit_skill(name: str, content: str, propose: Optional[bool]) -> dictParameters
ParamField
strSkill name to edit
ParamField
strNew 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
dictDict with success status
Uses
get_skillskill_file.existsf.readremoveprefixactivate
Used By
Source
View on GitHubpraisonaiagents/skills/manager.py at line 732