Write Skill File • AI Agent SDK
write_skill_file: Write a file within a skill's directory.
write_skill_file
Method
</div>
This is a method of the SkillManager class in the manager module.
Write a file within a skill’s directory.
Signature
def write_skill_file(name: str, file_path: str, file_content: str, propose: Optional[bool]) -> dictParameters
ParamField
strSkill name
ParamField
strRelative path within skill (must be under allowed subdirs)
ParamField
strFile content to write
ParamField
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
ResponseField
dictDict with success status
Uses
get_skillPathrelative_path.is_absoluteresolvetarget_file.relative_tomkdir
Used By
Source
View on GitHubpraisonaiagents/skills/manager.py at line 1051