# Read skill source

```http
GET /projects/{project_reference}/skills/{skill_id}/source
```

Read the editable source behind one skill before changing it; returns the skill with its instructions, source text, edit mode and the reasons it can only be edited as source. Requires project.agents.read.

## Parameters

| Name                    | In    | Required | Description                                                          |
| ----------------------- | ----- | -------- | -------------------------------------------------------------------- |
| `project_reference`     | path  | Yes      | Project slug, UUID, or domain that identifies the project.           |
| `skill_id`              | path  | Yes      |                                                                      |
| `runtime_target_kind`   | query |          | Used as the source target kind when source\_target\_kind is omitted. |
| `target_environment_id` | query |          | Not supported for source reads; a non-null value is rejected.        |
| `target_branch_id`      | query |          | Preview branch UUID, for a preview\_branch target.                   |
| `source_target_kind`    | query |          | Source target: project or preview\_branch. Defaults to project.      |

## Responses

| Status | Description            |
| ------ | ---------------------- |
| 200    | Project skill document |
| 400    | Bad request            |
| 401    | Unauthorized           |
| 403    | Forbidden              |
| 404    | Not found              |
