> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 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

> This is a method of the [**SkillManager**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/SkillManager.md) class in the [**manager**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/manager.md) 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 theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def add_skill_by_name(name: str, skill_dirs: Optional[List[str]], include_defaults: bool) -> Optional[LoadedSkill]
```

## Parameters

**name** `str` *required*

No description available.

**skill\_dirs** `Optional`

No description available.

**include\_defaults** `bool` (default: True)

No description available.

### Returns

**Returns** `Optional[LoadedSkill]`

The result of the operation.

## Uses

* `discover_skills`
* `add_skill`

## Used By

* [`Agent.skill_manager`](../functions/Agent-skill_manager)

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/skills/manager.py#L383)
>
> `praisonaiagents/skills/manager.py` at line 383

***

## Related Documentation

> [card] [Skills Concept](https://praison.ai/docs/docs/concepts/skills)

> [card] [Skills Feature](https://praison.ai/docs/docs/features/skills)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.