Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

opentofu-migration

Skill by sickn33

Guides a move from HashiCorp Terraform to the open-source OpenTofu fork. It covers state compatibility, provider registry setup and CI/CD pipeline updates for teams adopting OpenTofu.

  • Score 89
  • 50k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install opentofu-migration

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/opentofu-migration ~/.claude/skills/opentofu-migration

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install opentofu-migration in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is a docs-only guide for migrating infrastructure-as-code from Terraform to OpenTofu. It walks through installing the OpenTofu CLI, checking compatibility with existing state, and replacing terraform commands with tofu equivalents. It also covers provider lock file handling, state backend configuration, and OpenTofu-specific features such as native state encryption and early variable evaluation in backend config.

The skill includes GitHub Actions and GitLab CI examples for validate, plan and apply stages, plus a wrapper script for running both tools during a gradual migration. It notes that upstream scripts and templates are not bundled. The guide is aimed at platform and DevOps teams that run Terraform today and want to adopt OpenTofu, or that are evaluating a license-free IaC tool.

Written from the project's SKILL.md and checked against it.

What it can do

  • CLI command mappingMaps terraform init, plan, apply, destroy, fmt, validate, state, and import to their tofu equivalents.
  • State compatibility checkExplains that OpenTofu reads Terraform state files directly and shows how to verify with a plan and state list.
  • Provider lock and registry setupCovers preserving the provider lock file and declaring required providers in versions.tf.
  • State backend configurationShows an S3 backend example with DynamoDB locking and how to verify state access.
  • State encryptionShows OpenTofu native state and plan encryption using a pbkdf2 key provider and aes_gcm method.
  • GitHub Actions pipelineProvides a workflow with a plan job on pull requests and a protected apply job on main.
  • GitLab CI pipelineProvides validate, plan and manual apply stages using the official OpenTofu container image.
  • Coexistence wrapperOffers a shell wrapper and direnv approach to run tofu or terraform per project during migration.

What you need

  • Existing Terraform codebase (version 0.13 or later)
  • OpenTofu CLI installed
  • State backend access, such as S3, GCS or Azure Blob
  • Docker, if using the OpenTofu container image

Try asking

  • Help me plan a migration from my Terraform 1.x project to OpenTofu.
  • Replace the terraform commands in my CI pipeline with tofu equivalents.
  • Add OpenTofu state encryption with a pbkdf2 key provider to my backend.

Good to know

  • Docs-only: upstream scripts and templates are not bundled.
  • Infrastructure commands can disrupt services, so back up state before changes.
  • Plan and state files can contain secrets and must not be posted publicly.
  • CI snippets are incomplete without secure artifact handling, protected approval and a restricted apply role.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/opentofu-migration/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md9 KB

Alternatives to opentofu-migration

All alternatives →
deploy-release-testvercel
94

Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.

AAA Skill 144k
deepeval-tracingconfident-ai
94

Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.

AAA Skill 20k
azure-container-registry-cligithub
94

Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.

AAA Skill 42k
crabbox-appsopenclaw
94

Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.

AAA Skill 395k
gke-batch-hpcgoogle
94

Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.

AAA Skill 25k
gke-cost-analysisgoogle
94

Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

opentofu-migration: common questions

Do I need to convert my Terraform state to use OpenTofu?

The source says OpenTofu reads Terraform state files directly, so no state conversion is needed. It advises running a plan against existing state to confirm.

Which Terraform versions does this migration guide support?

The prerequisites list an existing Terraform codebase of version 0.13 or later. The guide also advises checking exact version compatibility before migrating.

Does Terraform have native state encryption like OpenTofu?

The guide labels OpenTofu state encryption as a feature not available in Terraform. It shows a configuration using a pbkdf2 key provider and aes_gcm method.

How do I install opentofu-migration?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is opentofu-migration free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is opentofu-migration safe to use?

It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to opentofu-migration?

Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.

opentofu-migration Install

Add to stack

Loading.