Claude Platform Docs

Список навыков

client.skills.list(params?, options?): PageCursor<Skill>
GET/v1/skills

Список навыков

Parameters
params: SkillListParams { limit; page; source; workspace_id }
limit?: number⁠Query parameter

Number of results to return per page.

Ranges from 1 to 1000. Defaults to 20.

minimum1
maximum1000
page?: string | null⁠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?: string | null⁠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?: string⁠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
interface Skill { type: "skill"; id; created_at; /* 4 more */ }
Список навыков
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  apiKey: process.env["ANTHROPIC_API_KEY"] // This is the default and can be omitted
});

// Automatically fetches more pages as needed.
for await (const skill of client.skills.list()) {
  console.log(skill.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"
}