Archive Skill • AI Agent SDK
archive_skill: Archive a skill (recoverable, never hard-deleted).
archive_skill
Method
</div>
This is a method of the SkillManager class in the manager module.
Archive a skill (recoverable, never hard-deleted).
Moves the skill directory into the archive store and drops it from the active in-memory index. Use :meth:restore_skill to recover it. Lifecycle curator plugins call this for agent-created skills that have gone stale.
Signature
def archive_skill(name: str) -> dictParameters
ParamField
strSkill name to archive
Returns
ResponseField
dictDict with success status and archive path
Uses
get_skillarchive_dir.mkdirdest.existsstrftimedatetime.nowshutil.move
Used By
Source
View on GitHubpraisonaiagents/skills/manager.py at line 914