terraform-workflow

Manage Terraform infrastructure as code with workflow rules and best practices.

1|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/iceflower/opencode-agents-and-skills --skill terraform-workflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-workflow
Source: https://github.com/iceflower/opencode-agents-and-skills/tree/main/skills/terraform-workflow
Command: npx skills add https://github.com/iceflower/opencode-agents-and-skills --skill terraform-workflow

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides comprehensive guidance and rules for safely and effectively managing infrastructure as code using Terraform, from writing code to applying changes and managing state.

Core Features & Use Cases

  • Code Analysis: Ensures Terraform code is readable, maintainable, and follows best practices.
  • Plan Interpretation: Guides users on how to understand and review terraform plan output to prevent unintended changes.
  • Resource Management: Details best practices for resource design, module changes, and state management.
  • Workflow Safety: Establishes protocols for applying changes, especially in production environments.
  • Use Case: A team is adopting Terraform for the first time. This Skill provides them with a clear set of rules and best practices to follow, ensuring consistency and reducing the risk of misconfigurations.

Quick Start

Follow the Terraform Workflow Rules to ensure your code is validated and formatted before committing.

Frequently Asked Questions about terraform-workflow

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

FAQPage Schema
How do I safely apply Terraform changes in production?

To safely apply Terraform changes in production, you should follow workflow protocols that include code validation, formatting, and thorough `terraform plan` interpretation to prevent unintended infrastructure modifications.

What is the best way to interpret a Terraform plan?

Interpreting a Terraform plan requires reviewing the execution output to identify resource creation, modification, or destruction, ensuring the proposed infrastructure changes match your intended state before applying.

How do I manage Terraform state when modifying modules?

Managing Terraform state during module changes involves analyzing the impact of modifications and following resource design best practices to maintain consistency and prevent state corruption.

How do I recover from a failed Terraform apply?

Recovering from a failed Terraform apply requires analyzing the error output, addressing the resource misconfiguration, and re-running the plan and apply workflow using established failure recovery protocols.

What are the best practices for Terraform resource design?

Terraform resource design best practices involve writing readable, maintainable infrastructure as code, following module change impact analysis, and managing state effectively to ensure consistent cloud automation.

How do I test and validate Terraform code before applying?

Testing and validating Terraform code involves running format and validation checks before committing, ensuring the infrastructure code meets version support requirements for Terraform and providers.