⚠️ 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.
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 an existing sg_skill_source using its skill source UUID:
terraform import sg_skill_source.example '123e4567-e89b-12d3-a456-426614174000'
name (String) Human-readable source name. Changing forces replacement.repo_url (String) Repository URL to sync skills from.secret_ref_id (String) UUID of the Vault secret used for repository authentication.source_provider (String) Source provider (e.g. github or gitlab or bitbucket).source_path (String) Path within the repo to sync skills from.source_ref (String) Git ref to sync (branch or tag). Defaults to main.id (String) Server-assigned source identifier.sync_status (String) Current synchronization status.