Add Skill • AI Agent SDK
add_skill: Add a single skill from a directory path.
add_skill
Method
</div>
This is a method of the SkillManager class in the manager module.
Add a single skill from a directory path.
Signature
def add_skill(skill_path: str) -> Optional[LoadedSkill]Parameters
ParamField
strPath to skill directory
Returns
ResponseField
Optional[LoadedSkill]LoadedSkill if successful, None otherwise
Uses
load_metadata
Used By
Agent.skill_managerSkillManager.add_skill_by_nameSkillManager.create_skillSkillManager.restore_skill
Source
View on GitHubpraisonaiagents/skills/manager.py at line 368