# Project Policies

{% hint style="info" %}
Project policies are similar to Safety Policy Files, but take precedence over policy files in cases where a codebase has been onboarded as a Safety Project.
{% endhint %}

## Creating a Project Policy

To create a policy for a project, visit <https://platform.safetycli.com> and complete these steps:

1. Select your project.
2. Click **Project Settings**.
3. Click **Policies**.
4. Select your policy and click **Edit**.
5. Build your policy using the guided policy builder, or alternatively click **Advanced Configuration** to build your policy using JSON.
6. Click **Save**.

## Migrating your Safety Policy File to a Project Policy

{% hint style="info" %}
We plan to introduce a feature that will automatically detect a local policy file during project creation and replicate this in the Project Policy. Until then, please follow these instructions.
{% endhint %}

To migrate a local policy file to a Project Policy, visit [https://platform.safetycli.com](https://platform.safetycli.com/) and complete these steps:

1. Click **Project Settings**.
2. Click **Policies**.
3. Select your policy and click **Edit**.
4. Scroll down and click **Advanced Configuration**.
5. Copy the contents of your local policy file.
6. Paste the policy file contents into the advanced configuration.
7. Click **Update Policy**.

## Modifying your Default Organization Policy

All Organizations in Safety Platform are initialized with a default Project Policy. When a new project is created, this organization policy is applied. You can modify your default organization policy by visiting [https://platform.safetycli.com](https://platform.safetycli.com/) and following these steps:<br>

1. From the top navigation items, click **Organization**.
2. From the left-hand navigation, click **Policies**.
3. Select your policy and click **Edit**.
4. Build your policy using the guided policy builder, or alternatively click **Advanced Configuration** to build your policy using JSON.
5. Click **Save**.<br>

Note that updated organization policies will not apply retrospectively to existing project policies, but instead will apply to any newly created projects.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.safetycli.com/safety-docs/administration/project-policies.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
