Skip to main content

remove_skill_file

Method
This is a method of the SkillManager class in the manager module.
Remove a file from a skill’s directory.

Signature

Parameters

str
required
Skill name
str
required
Relative path within skill to remove
Optional[bool]
If True, stage the removal for human approval instead of removing from disk. Defaults to the manager’s write_approval policy. Pass propose=False to remove directly.

Returns

dict
Dict with success status

Uses

  • get_skill
  • target_file.exists
  • relative_to
  • target_file.resolve
  • resolve
  • target_file.unlink

Used By

Source

View on GitHub

praisonaiagents/skills/manager.py at line 1108

Skills Concept

Skills Feature