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

python
def archive_skill(name: str) -> dict

Parameters

ParamField str

Skill name to archive

Returns

ResponseField dict

Dict with success status and archive path

Uses

  • get_skill
  • archive_dir.mkdir
  • dest.exists
  • strftime
  • datetime.now
  • shutil.move

Used By

Source

View on GitHub

praisonaiagents/skills/manager.py at line 914


Related Documentation