opentofu

Manage cloud infrastructure as code with OpenTofu and Pulumi.

14|5|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/oakoss/agent-skills --skill opentofu-oakoss
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opentofu
Source: https://github.com/oakoss/agent-skills/tree/main/skills/opentofu
Command: npx skills add https://github.com/oakoss/agent-skills --skill opentofu-oakoss

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and tooling for managing cloud infrastructure as code (IaC) using both OpenTofu (a Terraform fork) and Pulumi, enabling declarative infrastructure management and automation.

Core Features & Use Cases

  • OpenTofu HCL Management: Covers syntax, providers, resources, modules, state management (including encryption), and workflow.
  • Pulumi SDK Usage: Demonstrates TypeScript and Python SDKs for IaC, including stack management, configuration, and automation.
  • CI/CD Integration: Provides examples for automating IaC deployments with GitHub Actions.
  • Use Case: You need to provision a new multi-environment cloud infrastructure. Use this Skill to define your infrastructure using OpenTofu HCL or Pulumi, set up remote state management with encryption, and integrate the deployment into a CI/CD pipeline.

Quick Start

Use the opentofu skill to initialize a new OpenTofu project in the 'infra' directory.

Frequently Asked Questions about opentofu

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

FAQPage Schema
How do I manage cloud infrastructure as code using OpenTofu and Pulumi?

Cloud infrastructure as code is managed using OpenTofu HCL syntax or Pulumi SDKs in TypeScript and Python. This approach covers providers, resources, modules, and state management for declarative provisioning and automation across cloud platforms.

How do I set up remote state management with encryption for OpenTofu?

Remote state management with encryption for OpenTofu is configured using built-in state encryption features. You define backend configurations in HCL to securely store and manage infrastructure state files across multi-environment deployments.

Can I use Pulumi with TypeScript and Python to define infrastructure?

Pulumi supports defining infrastructure using TypeScript and Python SDKs. You can manage stacks, configure deployment settings, and automate provisioning directly in your preferred programming language instead of using declarative configuration files.

What is the best way to integrate infrastructure as code into a CI/CD pipeline?

Integrating infrastructure as code into a CI/CD pipeline is best achieved using GitHub Actions. You automate the deployment workflows by running OpenTofu or Pulumi commands within the pipeline to provision multi-environment cloud infrastructure automatically.

Does OpenTofu support the same HCL syntax and providers as Terraform?

OpenTofu supports the same HCL syntax, providers, resources, and modules as Terraform. As a fork, it maintains compatibility for managing infrastructure as code while adding features like state encryption for secure deployments.