glab-opentofu

Manage OpenTofu and Terraform state files within GitLab repositories.

Updated Mar 15, 2026
One-click install
npx skills add https://github.com/ProyectoG007/Skill.bat --skill glab-opentofu-proyectog007
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: glab-opentofu
Source: https://github.com/ProyectoG007/Skill.bat/tree/main/scripts/05_Dev_Tools/07.%20gitlab-cli-skills-1.11.0/glab-opentofu
Command: npx skills add https://github.com/ProyectoG007/Skill.bat --skill glab-opentofu-proyectog007

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the management of OpenTofu and Terraform state files directly within GitLab, streamlining infrastructure as code workflows.

Core Features & Use Cases

  • State Management: Initialize, download, list, lock, and delete OpenTofu/Terraform states.
  • Integration: Works seamlessly with GitLab repositories for state storage and versioning.
  • Use Case: When you need to initialize a new OpenTofu environment for a project hosted in GitLab, or download the current state to inspect it, this Skill provides the necessary commands.

Quick Start

Use the glab opentofu skill to list all available states for the current repository.

Frequently Asked Questions about glab-opentofu

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage OpenTofu state files stored in a GitLab repository?

To manage OpenTofu state files in GitLab, you can initialize the environment, list available states, and perform operations like download, delete, lock, and unlock directly within your repository using specific commands.

Can I use this to initialize a new OpenTofu environment for a project hosted in GitLab?

Yes, you can initialize a new OpenTofu environment for a GitLab-hosted project. The Skill provides the necessary commands to set up and prepare your infrastructure as code workflows seamlessly.

Does this work with both Terraform and OpenTofu state management in GitLab CI/CD?

Yes, it supports both Terraform and OpenTofu state management. It integrates directly with GitLab CI/CD to facilitate automated infrastructure operations and repository state versioning.

What is the best way to list all available OpenTofu states for my current GitLab repository?

The best way to list available OpenTofu states is to use the designated list command provided by the Skill, which retrieves all current state files associated with your selected GitLab repository.

How do I lock or unlock an OpenTofu state file to prevent concurrent modifications?

You can lock or unlock an OpenTofu state file by executing the specific lock and unlock state operations supported by the Skill, ensuring safe infrastructure management within GitLab.