Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

OpenTofu Infrastructure Setup

Sets up OpenTofu infrastructure code with encrypted state, remote locking, tests and a clean move from Terraform.

Claude's review

7/10 Verified OpenTofu guide covering state encryption with a safe migration path, S3 native locking, lifecycle enabled, mocked tests and Terraform migration, with sound safety rules.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

OpenTofu is the open-source (MPL-2.0, Linux Foundation) fork of Terraform: it provisions cloud infrastructure from HCL files with the `tofu` command and reads existing Terraform configurations, providers and state. Use when someone asks to "set up OpenTofu", "migrate from Terraform to OpenTofu", "encrypt Terraform state", "write a tofu module", "add tests to my infrastructure code", or "store state in S3 with locking".

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: opentofu
description: >-
  OpenTofu is the open-source (MPL-2.0, Linux Foundation) fork of Terraform: it
  provisions cloud infrastructure from HCL files with the `tofu` command and
  reads existing Terraform configurations, providers and state. Use when
  someone asks to "set up OpenTofu", "migrate from Terraform to OpenTofu",
  "encrypt Terraform state", "write a tofu module", "add tests to my
  infrastructure code", or "store state in S3 with locking".
license: Apache-2.0
compatibility: 'OpenTofu 1.13 on Linux, macOS or Windows (64-bit); cloud credentials for the providers you use'
metadata:
  author: terminal-skills
  version: "1.1.0"
  category: devops
  repository: https://github.com/opentofu/opentofu
  tags: "opentofu, iac, terraform-alternative, infrastructure, state-encryption"
---

# OpenTofu

## Overview

OpenTofu (`tofu`) is a drop-in replacement for the Terraform CLI that stayed open source after HashiCorp moved Terraform to the BSL license. It reads the same `.tf` files and the same registry providers and modules. Migrating is mostly "run `tofu` instead of `terraform`". It also has features Terraform does not: client-side encryption of state and plan files, `lifecycle { enabled = ... }`, `for_each` on providers, and variables in `backend` and module `source` blocks. This skill covers install, project layout, state encryption, remote state, tests, migration and CI use. It was checked against OpenTofu 1.13.2.

## Instructions

### 1. Install

```bash
brew install opentofu                      # macOS, Linux (Homebrew)
sudo snap install --classic opentofu       # Linux with snap
tofu version                               # expect: OpenTofu v1.13.x
```

Other options (deb/rpm repositories, Windows winget, a standalone installer script) are listed at https://opentofu.org/docs/intro/install/. If you use the standalone script, download it to a file, read it, and run it from the file; do not pipe it into a shell. The script verifies its downloads with cosign or GnuPG, so one of them must be installed. For a manual install, download the release zip and `tofu_<version>_SHA256SUMS` from the GitHub release page and run `sha256sum -c` before unzipping.

### 2. Write and run a configuration

```hcl
...

From TerminalSkills's repository, Apache-2.0 licence.

Related skills

  • Checked

    Incident postmortem writer

    Writes blameless incident postmortems with fishbone and five whys analysis, so the team fixes root causes.

    by github 42k
    7/101 credit
  • Checked

    AWS Lambda web apps

    Builds and deploys Express, Fastify or Hono apps on AWS Lambda web functions, so your site runs serverless.

    by aws 3.7k
    7/101 credit
  • Checked

    Grafana synthetic checks

    Writes Grafana Cloud synthetic checks in k6 with assertions that really fail, so outages get caught early.

    by grafana 326
    8/101 credit
  • Checked

    Synthetic Monitoring Probes

    Sets up scheduled checks that test your live site's key journeys around the clock and alert only on real outages.

    by petrkindlmann 317
    7/101 credit
  • Checked

    Your Own Deploy Platform

    Turns a plain server into your own deploy platform with Dokku, including databases and certificates.

    by TerminalSkills 221
    8/101 credit
  • Checked

    Safe deploys and rollbacks

    Plans deploys, migrations and rollbacks by blast radius with kill switches, so a bad change can be undone.

    by rainmanjam 26
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added