Skip to main content

versions

Creates, updates, deletes, gets or lists a versions resource.

Overview​

Nameversions
TypeResource
Idanthropic.skills.versions

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringUnique identifier for this Skill Version. The id addresses the version in
paths and pins it in references.
namestringThe Skill's immutable kebab-case slug, set at creation from the first
upload's SKILL.md frontmatter `name` (or its enclosing directory). Every
later upload must resolve to the same value. Also the top-level directory
of the Skill's mounted files and the base name of a downloaded archive.
skill_idstringUnique identifier for the skill.

The format and length of IDs may change over time.
created_atstring (date-time)ISO 8601 timestamp of when the skill was created.
descriptionstringDescription of the skill version.

This is extracted from the SKILL.md file in the skill upload.
typestringObject type.

For Skill Versions, this is always `"skill_version"`. (skill_version)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectskill_id, versionanthropic-workspace-id
listselectskill_idanthropic-workspace-id
deletedeleteskill_id, versionanthropic-workspace-id
createexecskill_id, filesanthropic-workspace-id
downloadexecskill_id, versionanthropic-workspace-idDownload a skill version's content as a zip archive.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
skill_idstringUnique identifier for the skill. The format and length of IDs may change over time.
versionstringIdentifies the skill version by its version ID. Requests carrying the skills-2025-10-02 beta header address versions by their Unix epoch timestamp instead (e.g., "1759178010641129").
anthropic-workspace-idstringOptional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy). Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace. (example: wrkspc_011CZkZaBF1tNoB5wlCeusgy)

SELECT examples​

Successful Response

SELECT
id,
name,
skill_id,
created_at,
description,
type
FROM anthropic.skills.versions
WHERE skill_id = '{{ skill_id }}' -- required
AND version = '{{ version }}' -- required
AND "anthropic-workspace-id" = '{{ anthropic-workspace-id }}'
;

DELETE examples​

No description available.

DELETE FROM anthropic.skills.versions
WHERE skill_id = '{{ skill_id }}' --required
AND version = '{{ version }}' --required
AND "anthropic-workspace-id" = '{{ anthropic-workspace-id }}'
;

Lifecycle Methods​

Successful Response

EXEC anthropic.skills.versions.create
@skill_id='{{ skill_id }}' --required,
@anthropic-workspace-id='{{ anthropic-workspace-id }}'
@@json=
'{
"files": "{{ files }}"
}'
;