patch_skill
Method
This is a method of the SkillManager class in the manager module.Apply a patch to a skill using fuzzy find-and-replace.
Signature
Parameters
str
required
Skill name to patch
str
required
String to find and replace
str
required
Replacement string
str
Optional relative path within skill (defaults to SKILL.md)
bool
default:"False"
Replace all occurrences
Optional[bool]
If True, stage the mutation for human approval instead of writing to disk. Defaults to the manager’s
write_approval policy. Pass propose=False to apply directly.Returns
dict
Dict with success status
Uses
get_skillPathrelative_path.is_absoluteresolvetarget_file.relative_totarget_file.existsf.readactivate
Used By
Source
View on GitHub
praisonaiagents/skills/manager.py at line 793
