Skip to main content

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_skill
  • Path
  • relative_path.is_absolute
  • resolve
  • target_file.relative_to
  • target_file.exists
  • f.read
  • activate

Used By

Source

View on GitHub

praisonaiagents/skills/manager.py at line 793

Skills Concept

Skills Feature