> ## 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

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**SkillManager**](../classes/SkillManager) class in the [**manager**](../modules/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 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

<ParamField query="name" type="str" required={true}>
  No description available.
</ParamField>

<ParamField query="skill_dirs" type="Optional" required={false}>
  No description available.
</ParamField>

<ParamField query="include_defaults" type="bool" required={false} default="True">
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Optional[LoadedSkill]">
  The result of the operation.
</ResponseField>

## Uses

* `discover_skills`
* `add_skill`

## Used By

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

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/skills/manager.py#L383">
  `praisonaiagents/skills/manager.py` at line 383
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Skills Concept" icon="wand-magic-sparkles" href="/docs/docs/concepts/skills" />

  <Card title="Skills Feature" icon="star" href="/docs/docs/features/skills" />
</CardGroup>
