Claude Platform Docs

Listar skills

skills.list(**kwargs) -> SyncPageCursor[Skill]
GET/v1/skills

Listar skills

Parameters
limit: Optional[int]⁠Query parameter

Number of results to return per page.

Ranges from 1 to 1000. Defaults to 20.

default20
minimum1
maximum1000
page: Optional[str]⁠Query parameter

Pagination token for fetching a specific page of results.

Pass the value from a previous response's next_page field to get the next page of results.

source: Optional[str]⁠Query parameter

Filter skills by source.

If provided, only skills from the specified source will be returned:

  • "custom": only return user-created skills
  • "anthropic": only return Anthropic-created skills
workspace_id: Optional[str]⁠Header parameter

Optional 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.

Returns
class Skill: type: "skill"; id; created_at; ... # 4 more
Listar skills
import os
from anthropic import Anthropic

client = Anthropic(
    api_key=os.environ.get(
        "ANTHROPIC_API_KEY"
    ),  # This is the default and can be omitted
)
page = client.skills.list()
page = page.data[0]
print(page.id)
Returns Examples
Response 200
{
  "data": [
    {
      "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"
    }
  ],
  "next_page": "next_page"
}