Skip to main content

archive_skill

Method
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

Parameters

str
required
Skill name to archive

Returns

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

Skills Concept

Skills Feature