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

tfaction

Skill by suzuki-shunsuke

Guides an assistant through tfaction, a GitHub Action for running Terraform or OpenTofu on GitHub Actions. It is for teams that want terraform plan on pull requests and terraform apply on merge.

  • Score 77
  • 410 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install tfaction

Built from the published package, never by AI.

git clone --depth 1 https://github.com/suzuki-shunsuke/tfaction /tmp/tfaction && mkdir -p ~/.claude/skills && cp -r /tmp/tfaction/skills/tfaction ~/.claude/skills/tfaction

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

Step-by-step: install tfaction in Claude Code

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

About

tfaction is a set of GitHub Actions for running Terraform or OpenTofu on GitHub Actions. It provides a GitHub Flow where terraform plan runs on pull requests and terraform apply runs when the pull request is merged. Since v2 it is a single JavaScript Action, and the feature is selected through the action input. It is configured by a repository-wide tfaction-root.yaml and a per-root-module tfaction.yaml.

This skill covers building workflows, editing those configuration files, and configuring features such as drift detection, plan files, follow-up pull requests, tfmigrate, secrets, AWS and Google Cloud authentication, and linting. It also helps troubleshoot failed workflow runs and upgrade from v1 to v2. It is for people who write or maintain Terraform workflows on GitHub.

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

What it can do

  • Workflow designBuilds GitHub Actions workflows that run plan on pull requests and apply on merge with tfaction.
  • Configuration filesEdits tfaction.yaml and tfaction-root.yaml and explains which setting takes priority.
  • Feature setupConfigures drift detection, plan files, follow-up PRs, scaffolding, tfmigrate, and target aliases.
  • Cloud authenticationExplains AWS and Google Cloud provider and backend setup, and secret handling.
  • LintingConfigures the test action for terraform fmt, terraform validate, tflint, and other linters.
  • TroubleshootingHelps diagnose failed applies, stale plan files, missing root modules, and label creation errors.
  • v2 upgradeGuides migration from tfaction v1 to v2 using the upgrade guide.

What you need

  • GitHub Actions
  • Terraform or OpenTofu
  • A GitHub App, as set up in the getting started guide
  • AWS account, for the AWS provider or S3 backend
  • Google Cloud account, for the Google Cloud provider or GCS backend

Try asking

  • Set up a tfaction workflow that runs plan on pull requests and apply on merge.
  • Explain which tfaction.yaml or tfaction-root.yaml setting overrides another.
  • Help me troubleshoot a stale plan file after a failed tfaction apply.

Good to know

  • v1 workflows that call separate actions do not work with v2 and must be migrated.
  • A stale plan file cannot be reused after a failed apply, so a new pull request is needed.
  • Drift detection is off by default and must be enabled per root module.
  • GitHub pull request labels are limited to 50 characters.

Security check

A

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

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

Alternatives to tfaction

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

tfaction: common questions

What does tfaction do?

tfaction is a set of GitHub Actions for running Terraform or OpenTofu on GitHub Actions. It runs terraform plan on pull requests and terraform apply when the pull request is merged.

Does tfaction support OpenTofu?

The source says tfaction runs Terraform or OpenTofu, and it has a guide for using OpenTofu or Terragrunt in place of the terraform command.

Is drift detection enabled by default in tfaction?

No. The source says drift detection is off by default and is enabled per root module.

How do I install tfaction?

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

Is tfaction free?

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

Is tfaction safe to use?

It scores 77 of 100. Grades: maintenance A, licence A, quality B. 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 tfaction?

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

tfaction Install

Add to stack

Loading.