Add Skill By Name • AI Agent SDK

add_skill_by_name: Add a single skill resolved by *name* (not path).

add_skill_by_name

Method

</div>

This is a method of the SkillManager class in the manager module.

Add a single skill resolved by name (not path).

Searches the given/default skill directories for a skill whose name matches and loads it. Used to materialise bundle members, which are referenced by name. Forgiving: returns None if no match is found.

Signature

python
def add_skill_by_name(name: str, skill_dirs: Optional[List[str]], include_defaults: bool) -> Optional[LoadedSkill]

Parameters

ParamField str

No description available.

ParamField Optional

No description available.

ParamField bool

No description available.

Returns

ResponseField Optional[LoadedSkill]

The result of the operation.

Uses

  • discover_skills
  • add_skill

Used By

Source

View on GitHub

praisonaiagents/skills/manager.py at line 383


Related Documentation