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

# Fetch Remote Skill Dirs • AI Agent SDK

> fetch_remote_skill_dirs: Fetch all remote skill sources and return validated cache directories.

# fetch\_remote\_skill\_dirs

Function

> This function is defined in the [**remote**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/remote.md) module.

Fetch all remote skill sources and return validated cache directories.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def fetch_remote_skill_dirs(sources: Any, cache_dir: Optional[Path]) -> List[Path]
```

## Parameters

**sources** `Any` *required*

Iterable of URL strings, `&#123;"url","ref"&#125;` dicts, or objects implementing `fetch(cache_dir)`.

**cache\_dir** `Optional[Path]`

Override cache root (defaults to the shared remote cache).

### Returns

**Returns** `List[Path]`

Existing local directories holding fetched skills. Directories with no
valid skill are dropped. Failures are logged and skipped, never raised.

## Uses

* `get_remote_cache_root`
* `root.mkdir`
* `impl.fetch`
* `Path`
* `p.exists`
* `p.is_dir`
* `logger.warning`

## Used By

* [`discover_skills`](../functions/discover_skills)

## Source

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

***

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