Claude Platform Docs

Get Skill

skills.retrieve(skill_id) -> Skill
GET/v1/skills/{skill_id}

Get Skill

Parameters
skill_id: String

Unique identifier for the skill.

The format and length of IDs may change over time.

Returns
class Skill { id, created_at, display_name, 4 more }

Get Skill

require "anthropic"

anthropic = Anthropic::Client.new(api_key: "my-anthropic-api-key")

skill = anthropic.skills.retrieve("skill_id")

puts(skill)
{
  "id": "skill_01JAbcdefghijklmnopqrstuvw",
  "created_at": "2024-10-30T23:58:27.427722Z",
  "display_name": "display_name",
  "latest_version_id": "latest_version_id",
  "source": {
    "type": "custom"
  },
  "type": "skill",
  "updated_at": "2024-10-30T23:58:27.427722Z"
}
Returns Examples
{
  "id": "skill_01JAbcdefghijklmnopqrstuvw",
  "created_at": "2024-10-30T23:58:27.427722Z",
  "display_name": "display_name",
  "latest_version_id": "latest_version_id",
  "source": {
    "type": "custom"
  },
  "type": "skill",
  "updated_at": "2024-10-30T23:58:27.427722Z"
}