Create skill

http
POST /projects/{project_reference}/skills

Create a skill, a SKILL.md file an agent loads on demand, in the project source or a preview branch; returns the skill source document. Requires project.agents.write.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
source_target_kindquery
target_branch_idquery

Request body

FieldTypeRequiredDescription
namestringYesCanonical 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.
descriptionstringYesMax 1024 characters. Non-empty. Describes what the skill does and when to use it.
allowed_toolsarray
instructionsstringFull 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.
sourcestring

Responses

StatusDescription
201Created project skill document
400Bad request
401Unauthorized
403Forbidden
409Conflict