# adiscover_skill_dirs

> **Function** in `deepagents_code`

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

Async counterpart of `discover_skill_dirs`.

## Signature

```python
adiscover_skill_dirs(
    backend: BackendProtocol,
    source_path: str,
    *,
    errors: list[str] | None = None,
) -> list[tuple[str, tuple[str, ...]]]
```

## Returns

`list[tuple[str, tuple[str, ...]]]`

Skill directories paired with their intermediate subfolder segments.

---

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