Skip to main content

patch

Method
This is a method of the SkillMutatorProtocol class in the protocols module.
Patch an existing skill using find-replace.

Signature

Parameters

str
required
Skill name to modify
str
required
Text to find and replace
str
required
Replacement text
Optional[str]
Optional specific file within skill (defaults to SKILL.md)
bool
default:"False"
Replace all occurrences vs first only
bool
default:"True"
If True, stage for approval; if False, apply directly

Returns

str
Status message describing the action taken

Source

View on GitHub

praisonaiagents/skills/protocols.py at line 89