# trust_skill_dir

> **Function** in `deepagents_code`

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

Persist trust for a resolved skill directory.

## Signature

```python
trust_skill_dir(
    target_dir: Path | str,
    *,
    store_path: Path | None = None,
) -> bool
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `target_dir` | `Path \| str` | Yes | Canonical directory to trust. This is expected to be the already-resolved path shown to the user, and is not resolved again before storing so a post-approval symlink swap cannot change what gets persisted. |
| `store_path` | `Path \| None` | No | Path to the trust store file. Defaults to `~/.deepagents/.state/skill_trust.json`. (default: `None`) |

## Returns

`bool`

`True` if the entry was saved successfully.

---

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