terraform-provider-stackgen

sg_skill (Data Source)

⚠️ Experimental — Looks up a Guild manual skill by name (exact match, provider=manual) or by id. Use when referencing a skill created elsewhere without managing it in this root.

Example Usage

# When to use: Look up a manual Guild skill by name (exact match) before wiring
# it onto an agent that does not manage the skill in the same root.
data "sg_skill" "kubectl" {
  name = "kubectl-readonly"
}

# Or look up by UUID when you already have the id:
# data "sg_skill" "by_id" {
#   id = "00000000-0000-4000-8000-000000000030"
# }

output "skill_name" {
  value = data.sg_skill.kubectl.name
}

output "skill_id" {
  value = data.sg_skill.kubectl.id
}

Schema

Optional

Read-Only