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

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
skill_idpathYes
runtime_target_kindqueryUsed as the source target kind when source_target_kind is omitted.
target_environment_idqueryNot supported for source reads; a non-null value is rejected.
target_branch_idqueryPreview branch UUID, for a preview_branch target.
source_target_kindquerySource target: project or preview_branch. Defaults to project.

Responses

StatusDescription
200Project skill document
400Bad request
401Unauthorized
403Forbidden
404Not found