# list_trusted_skill_dirs

> **Function** in `deepagents_code`

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

Return the sorted list of trusted skill directory paths.

## Signature

```python
list_trusted_skill_dirs(
    *,
    store_path: Path | None = None,
    strict: bool = False,
) -> list[str]
```

## 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`) |
| `strict` | `bool` | No | When `True`, an existing-but-unreadable store re-raises instead of degrading to an empty list. The audit command (`skills trust list`) passes `strict=True` so it can report an error rather than falsely printing "No trusted skill directories" while entries the user cannot then see or revoke sit in an unreadable file. (default: `False`) |

## Returns

`list[str]`

Sorted absolute directory paths previously trusted.

---

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