# load_trusted_skill_dirs

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/skills/trust/load_trusted_skill_dirs)

Return verified trusted skill directories as canonical `Path` objects.

Used to extend the containment allowlist passed to `load_skill_content`.

Stored entries are the exact canonical directory the user approved (already
resolved at trust time). Each entry is re-verified here rather than blindly
re-resolved: if a stored path no longer resolves to itself — because it, or
a parent component, was replaced with a symlink after approval — the current
resolution would point somewhere the user never approved. Such entries are
dropped (and logged) instead of silently allowlisting the swapped target, so
a post-approval symlink swap re-prompts rather than granting access.

## Signature

```python
load_trusted_skill_dirs(
    *,
    store_path: Path | None = None,
) -> list[Path]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `store_path` | `Path \| None` | No | Path to the trust store file. Defaults to `~/.deepagents/.state/skill_trust.json`. (default: `None`) |

## Returns

`list[Path]`

Canonical directory paths that still resolve to themselves; empty when
nothing is trusted.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/7794b61a6e76230e8c7a49bdce808b3728305914/libs/code/deepagents_code/skills/trust.py#L497)