Skip to main content

create_skill

Method
This is a method of the SkillManager class in the manager module.
Create a new skill with the given content.

Signature

Parameters

str
required
Skill name (must be valid identifier)
str
required
Skill instructions/content for SKILL.md
str
Optional skill category
bool
default:"True"
Provenance flag marking the skill as agent-authored. Defaults to True since skills created via this API originate from the agent’s self-improvement loop. Lifecycle curator plugins only ever touch agent-created skills.
Optional[bool]
If True, stage the mutation for human approval instead of writing to disk. Defaults to the manager’s write_approval policy (safe-by-default). Pass propose=False to write directly in trusted/local contexts.
Optional[str]
Internal override for the destination skills directory. Used when applying an approved proposal so the skill lands in the directory it was staged from, independent of the approving process’s cwd. When None, the destination is resolved via :meth:_skills_base_dir.

Returns

dict
Dict with success status and skill info

Uses

  • expanduser
  • Path
  • base_path.mkdir
  • skill_path.mkdir
  • add_skill
  • logger.info

Used By

Source

View on GitHub

praisonaiagents/skills/manager.py at line 635

Skills Concept

Skills Feature