Create Skill Version
beta.skills.versions.create(skill_id, **kwargs) -> VersionCreateResponse { id, created_at, description, 5 more }
/v1/skills/{skill_id}/versions?beta=true
Create Skill Version
Parameters
skill_id: String
Unique identifier for the skill.
The format and length of IDs may change over time.
files: Array[String]
Files to upload for the skill.
All files must be in the same top-level directory and must include a SKILL.md file at the root of that directory.
Returns
Create Skill Version
Ruby
require "anthropic"
anthropic = Anthropic::Client.new(api_key: "my-anthropic-api-key")
version = anthropic.beta.skills.versions.create("skill_id")
puts(version){
"id": "skillver_01JAbcdefghijklmnopqrstuvw",
"created_at": "2024-10-30T23:58:27.427722Z",
"description": "A custom skill for doing something useful",
"directory": "my-skill",
"name": "my-skill",
"skill_id": "skill_01JAbcdefghijklmnopqrstuvw",
"type": "type",
"version": "1759178010641129"
}Returns Examples
{
"id": "skillver_01JAbcdefghijklmnopqrstuvw",
"created_at": "2024-10-30T23:58:27.427722Z",
"description": "A custom skill for doing something useful",
"directory": "my-skill",
"name": "my-skill",
"skill_id": "skill_01JAbcdefghijklmnopqrstuvw",
"type": "type",
"version": "1759178010641129"
}