AGENT SKILL

data-sources

Retrieves a Skill by ID.

License 许可
MPL-2.0
最近更新
2026-11-15
Stars
★ 19
Forks
11

01 前言 Front Matter

page_title
anthropic_skill Data Source - anthropic
description
Retrieves a Skill by ID.
subcategory
Skills

02 资源文件 48

03 SKILL.md 正文

anthropic_skill (Data Source)

Retrieves a Skill by ID.

API: GET /v1/skills/{id} (Skills API). Auth: Standard API key (api_key / ANTHROPIC_API_KEY). Beta header: anthropic-beta: skills-2025-10-02. Cost: Free.

Example Usage

resource "anthropic_skill" "example" {
  display_title = "Example Skill (data source)"
  files         = ["${path.module}/SKILL.md"]
  force_destroy = true
}

data "anthropic_skill" "example" {
  skill_id = anthropic_skill.example.id
}

output "skill" {
  description = "Information about the retrieved Anthropic skill."
  value       = data.anthropic_skill.example
}

<!-- schema generated by tfplugindocs -->

Schema

Required

  • skill_id (String) The ID of the skill to retrieve.

Read-Only

  • created_at (String) ISO 8601 timestamp of when the skill was created.
  • display_title (String) Human-readable display title for the skill.
  • id (String) Unique skill identifier assigned by the API.
  • latest_version (String) The latest version identifier for the skill.
  • source (String) Source of the skill: "custom" (user-created) or "anthropic" (Anthropic-created).
  • type (String) Object type. For Skills, this is always "skill".
  • updated_at (String) ISO 8601 timestamp of when the skill was last updated.

04 同仓库更多 Skills