# load_namespaced_skills

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/plugins/adapters/skills_middleware/load_namespaced_skills)

Load and namespace every skill found under a plugin source.

Reads each discovered skill directory's `SKILL.md` directly, since the SDK
loader only scans one level below a source and would not read a leaf
directory's own `SKILL.md`. Nested directories become `:`-joined namespace
segments (e.g. `plugin:foo:bar:review`).

## Signature

```python
load_namespaced_skills(
    backend: BackendProtocol,
    source_path: str,
    namespace: SkillNamespace,
) -> list[sdk_skills.SkillMetadata]
```

## Returns

`list[sdk_skills.SkillMetadata]`

Namespace-qualified skill metadata for the source.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/e4c1ffe9ee63d7854147de490ca27495ef157a7b/libs/code/deepagents_code/plugins/adapters/skills_middleware.py#L174)