# Update skill

```http
PUT /projects/{project_reference}/skills/{skill_id}
```

Change the description, allowed tools or instructions of a structured skill, where omitted tools and instructions keep their values; returns the updated skill source document. Requires project.agents.write.

## Parameters

| Name                 | In    | Required | Description                                                |
| -------------------- | ----- | -------- | ---------------------------------------------------------- |
| `project_reference`  | path  | Yes      | Project slug, UUID, or domain that identifies the project. |
| `skill_id`           | path  | Yes      |                                                            |
| `source_target_kind` | query |          |                                                            |
| `target_branch_id`   | query |          |                                                            |

## Request body

| Field           | Type   | Required | Description                                                                                                                                                                                                                                                                                                                                                                       |
| --------------- | ------ | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `name`          | string |          | Canonical skill name, also used as the skill directory name. For example "daily-changelog-flow", not "daily--changelog". A skill cannot be renamed. There is no display\_name field; put the human-readable label in description. Max 64 characters. Lowercase letters, numbers, and hyphens only. Must not start or end with a hyphen, and must not contain consecutive hyphens. |
| `description`   | string | Yes      | Max 1024 characters. Non-empty. Describes what the skill does and when to use it.                                                                                                                                                                                                                                                                                                 |
| `allowed_tools` | array  |          |                                                                                                                                                                                                                                                                                                                                                                                   |
| `instructions`  | string |          | Full markdown body of SKILL.md, meaning everything below the frontmatter, written verbatim with any markdown headings. Sending it replaces the whole body. The former sections object is rejected; put the whole skill here.                                                                                                                                                      |
| `source`        | string |          |                                                                                                                                                                                                                                                                                                                                                                                   |

## Responses

| Status | Description                    |
| ------ | ------------------------------ |
| 200    | Updated project skill document |
| 400    | Bad request                    |
| 401    | Unauthorized                   |
| 403    | Forbidden                      |
| 404    | Not found                      |
| 409    | Conflict                       |
