terraform-procedures

Standardize Terraform and OpenTofu plan, apply, and state-surgery workflows.

2|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/alex-voloshin-dev/ai-skills --skill terraform-procedures
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-procedures
Source: https://github.com/alex-voloshin-dev/ai-skills/tree/main/plugin/skills/terraform-procedures
Command: npx skills add https://github.com/alex-voloshin-dev/ai-skills --skill terraform-procedures

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates manual errors and inconsistency in infrastructure management by providing a standardized, safe, and repeatable framework for Terraform and OpenTofu lifecycle operations.

Core Features & Use Cases

  • Lifecycle Management: Automates the plan, validate, and apply sequence with built-in safety checks like detailed exit codes and pre-plan validation.
  • State Safety: Provides rigorous procedures for state surgery, refactoring, and workspace management to prevent drift and data loss.
  • Fork Compatibility: Automatically detects OpenTofu environments and adjusts command execution accordingly.

Quick Start

Use the terraform-procedures skill to validate the current configuration and generate a plan for the infrastructure changes.

Frequently Asked Questions about terraform-procedures

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

FAQPage Schema
How do I standardize Terraform lifecycle operations across multiple cloud environments?

Standardizing Terraform lifecycle operations requires enforcing consistent plan, apply, and state-surgery protocols. This framework applies safety guardrails and policy-as-code validation gates to cloud resource provisioning and module refactoring across environments to prevent manual errors.

What is the safest way to perform Terraform state surgery and refactoring?

The safest way to perform Terraform state surgery is by following rigorous procedures for state management and workspace handling. Enforcing defined safety guardrails during module refactoring prevents configuration drift and state data loss.

Does this Terraform automation approach work with OpenTofu environments?

Yes, this Terraform automation approach works with OpenTofu environments. It automatically detects OpenTofu configurations and adjusts command execution accordingly to maintain fork compatibility during cloud infrastructure provisioning.

How do I automate Terraform plan and apply sequences with built-in safety checks?

Automating Terraform plan and apply sequences requires a framework enforcing detailed exit codes and pre-plan validation. This validates the current configuration and generates safe plans for infrastructure changes before execution.

Why do I need policy-as-code validation gates for infrastructure provisioning?

Policy-as-code validation gates are needed for infrastructure provisioning to eliminate manual errors and inconsistency. They enforce defined safety guardrails during state operations and ensure repeatable cloud resource lifecycle management.