1 Resources skill
Forgejo Actions edited this page 2026-11-26 06:34:52 +00:00

openwebui_skill (Resource)

Manages a skill in Open WebUI. A skill is a Markdown document that models load as extra instructions.

Example Usage

# A skill is a Markdown document. Keep a long one in a file next to the
# configuration and load it, so the Markdown stays readable.
resource "openwebui_skill" "code_review" {
  skill_id    = "code-review"
  name        = "Code review"
  description = "House rules the assistant follows when it reviews a change"
  content     = file("${path.module}/skills/code-review.md")

  tags = ["engineering"]

  read_groups  = ["Support"]
  write_groups = ["Support"]
}

# A short skill reads well inline.
resource "openwebui_skill" "release_notes" {
  skill_id    = "release-notes"
  name        = "Release notes"
  description = "Format for the notes that ship with a release"

  content = <<-EOT
    # Release notes

    Write one line for each user-visible change. Name the setting or the
    command that changed, and say what it does now. Leave out refactors and
    dependency bumps.
  EOT

  public_read = true
}

Schema

Required

  • content (String) Markdown body of the skill.
  • name (String) Display name of the skill. Unique across the Open WebUI instance.
  • skill_id (String) Unique identifier for the skill, e.g. code-review. Must be lowercase and free of spaces, because Open WebUI rewrites anything else. Forces replacement.

Optional

  • description (String) Short description shown in the Open WebUI interface.
  • is_active (Boolean) Whether the skill is available to models. Defaults to true.
  • public_read (Boolean) Whether every signed-in user can read the skill. This is the sharing the web UI calls public.
  • public_write (Boolean) Whether every signed-in user can edit the skill.
  • read_groups (List of String) List of group names or IDs granted read access.
  • read_users (List of String) List of user email addresses or IDs granted read access.
  • tags (List of String) List of tags for categorising the skill.
  • write_groups (List of String) List of group names or IDs granted write access.
  • write_users (List of String) List of user email addresses or IDs granted write access. Name the same address in read_users as well.

Read-Only

  • created_at (Number) Unix timestamp of creation. Set by Open WebUI.
  • id (String) Identifier assigned by Open WebUI on create.
  • updated_at (Number) Unix timestamp of last update. Set by Open WebUI.
  • user_id (String) Owner user identifier. Set by Open WebUI.
  • write_access (Boolean) Whether the authenticated user has write access to this skill. Read-only; set by Open WebUI.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# A skill is imported by its skill_id.
terraform import openwebui_skill.code_review code-review