Claude Platform Docs

技能

创建技能
BetaSkill Beta.Skills.Create(parameters, cancellationToken = default)
POST/v1/skills
列出技能
SkillListPage Beta.Skills.List(parameters, cancellationToken = default)
GET/v1/skills
获取技能
BetaSkill Beta.Skills.Retrieve(parameters, cancellationToken = default)
GET/v1/skills/{skill_id}
删除技能
BetaDeletedSkill Beta.Skills.Delete(parameters, cancellationToken = default)
DELETE/v1/skills/{skill_id}
Models
class BetaDeletedSkill { Type = "skill_deleted"; ID; }
JsonElement Type = "skill_deleted"

Deleted object type.

For Skills, this is always "skill_deleted".

required string ID

Unique identifier for the skill.

The format and length of IDs may change over time.

class BetaSkill { Type = "skill"; ID; CreatedAt; /* 4 more */ }
JsonElement Type = "skill"

Object type.

For Skills, this is always "skill".

required string ID

Unique identifier for the skill.

The format and length of IDs may change over time.

required DateTimeOffset CreatedAt

ISO 8601 timestamp of when the skill was created.

formatdate-time
required string DisplayName

Human-readable, single-line label for the Skill. Maximum 255 characters. Always set: derived from the SKILL.md frontmatter name when omitted at creation. Not unique.

required string LatestVersionID

ID of the newest Skill Version — what latest references resolve to. Always set: a Skill holds at least one version.

required BetaSkillSource Source

Where the Skill comes from.

Possible values:

  • "custom": authored by the platform user; private to their workspace
  • "anthropic": published by Anthropic; shared and read-only
  • "anthropic_example": Anthropic-published sample Skill
  • "plugin": resolved from an installed plugin
required Type Type

Where the Skill comes from.

Possible values:

  • "custom": authored by the platform user; private to their workspace
  • "anthropic": published by Anthropic; shared and read-only
  • "anthropic_example": Anthropic-published sample Skill
  • "plugin": resolved from an installed plugin
One of the following:
Custom("custom")
Anthropic("anthropic")
AnthropicExample("anthropic_example")
Plugin("plugin")
required DateTimeOffset UpdatedAt

ISO 8601 timestamp of when the skill was last updated.

formatdate-time
class BetaSkillSource { Type; }
required Type Type

Where the Skill comes from.

Possible values:

  • "custom": authored by the platform user; private to their workspace
  • "anthropic": published by Anthropic; shared and read-only
  • "anthropic_example": Anthropic-published sample Skill
  • "plugin": resolved from an installed plugin
One of the following:
Custom("custom")
Anthropic("anthropic")
AnthropicExample("anthropic_example")
Plugin("plugin")

技能版本

创建技能版本
BetaSkillVersion Beta.Skills.Versions.Create(parameters, cancellationToken = default)
POST/v1/skills/{skill_id}/versions
列出技能版本
VersionListPage Beta.Skills.Versions.List(parameters, cancellationToken = default)
GET/v1/skills/{skill_id}/versions
下载技能版本内容
HttpResponse Beta.Skills.Versions.Download(parameters, cancellationToken = default)
GET/v1/skills/{skill_id}/versions/{version}/content

以 zip 压缩包形式下载技能版本的内容。

获取技能版本
BetaSkillVersion Beta.Skills.Versions.Retrieve(parameters, cancellationToken = default)
GET/v1/skills/{skill_id}/versions/{version}
删除技能版本
BetaDeletedSkillVersion Beta.Skills.Versions.Delete(parameters, cancellationToken = default)
DELETE/v1/skills/{skill_id}/versions/{version}