Restore Skill • AI Agent SDK
restore_skill: Restore a previously archived skill back to active use.
restore_skill
Method
</div>
This is a method of the SkillManager class in the manager module.
Restore a previously archived skill back to active use.
Signature
def restore_skill(name: str, skill_dir: Optional[str]) -> dictParameters
ParamField
strArchived skill name
ParamField
Optional[str]Optional destination directory (defaults to the first default skill dir)
Returns
ResponseField
dictDict with success status
Uses
src.existssrc.is_direxpanduserPathget_default_skill_dirsbase_path.mkdirdest.existsshutil.moveadd_skill
Source
View on GitHubpraisonaiagents/skills/manager.py at line 956