terraform-provider-stackgen

sg_skill_source (Resource)

⚠️ Experimental — This resource is part of the Guild platform and may change in future releases.

Manages a skill source — a Git repository from which agent skills are synced. Import using the skill source ID.

Example Usage

variable "git_credentials_secret_id" {
  type        = string
  description = "Vault secret UUID containing repo credentials (see sg_secret)."
}

resource "sg_skill_source" "example" {
  name            = "platform-skills"
  repo_url        = "https://github.com/exampleorg/agent-skills.git"
  source_provider = "github"
  secret_ref_id   = var.git_credentials_secret_id
  source_path     = "skills"
  source_ref      = "main"
}

Import

Import an existing sg_skill_source using its skill source UUID:

terraform import sg_skill_source.example '123e4567-e89b-12d3-a456-426614174000'

Schema

Required

Optional

Read-Only