Skip to main content

write_skill_file

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

Signature

Parameters

str
required
Skill name
str
required
Relative path within skill (must be under allowed subdirs)
str
required
File content to write
Optional[bool]
If True, stage the write for human approval instead of writing to disk. Defaults to the manager’s write_approval policy. Pass propose=False to write directly.

Returns

dict
Dict with success status

Uses

  • get_skill
  • Path
  • relative_path.is_absolute
  • resolve
  • target_file.relative_to
  • mkdir

Used By

Source

View on GitHub

praisonaiagents/skills/manager.py at line 1051

Skills Concept

Skills Feature