# ensure_project_skills_dir

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/_paths/ensure_project_skills_dir)

Create the project-level dcode skills directory.

## Signature

```python
ensure_project_skills_dir(
    project_root: Path | None,
) -> Path | None
```

## Returns

`Path | None`

Path to the project skills directory, or `None` outside a project.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/caaa7e7c12d214afa5cf0a1afed8eb6232aa6f7b/libs/code/deepagents_code/_paths.py#L330)