forge-lang-terraform

Enforce plan-before-apply Terraform workflows with init, validate, fmt, and plan steps.

1|Updated Dec 20, 2025
One-click install
npx skills add https://github.com/martimramos/claude-forge --skill forge-lang-terraform
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: forge-lang-terraform
Source: https://github.com/martimramos/claude-forge/tree/main/skills/languages/terraform
Command: npx skills add https://github.com/martimramos/claude-forge --skill forge-lang-terraform

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires terraform, tflint, and includes scripts (resource) components.

What problem does it solve?

Terraform infrastructure code often risks unaudited changes and unsafe applies. This Skill enforces a plan-before-apply workflow and consolidates pre-flight checks to catch misconfigurations early.

Core Features & Use Cases

  • Pre-flight validations: init, validate, and fmt checks run automatically before planning.
  • Plan-driven changes: generates and presents a tfplan for explicit review prior to apply.
  • Linting & governance: integrates tflint and Checkov-style checks to uphold coding standards in Terraform projects.
  • Use Case: In a CI/CD pipeline, this Skill guarantees that every Terraform change is planned, reviewed, and only applied after approval.

Quick Start

Run the plan-check.sh script in your Terraform project to validate and generate a plan for review.

Frequently Asked Questions about forge-lang-terraform

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

FAQPage Schema
How do I enforce a plan-before-apply workflow in Terraform CI/CD pipelines?

A plan-before-apply workflow in Terraform enforces pre-flight checks like init, validate, and fmt before generating a plan for explicit review. This guarantees infrastructure changes are audited and only applied after approval.

What is the best way to run Terraform pre-flight validations before applying changes?

Terraform pre-flight validations run automated init, fmt, and validate steps to catch misconfigurations early. By consolidating these checks, you ensure code formatting and syntax issues are resolved before generating an execution plan.

Does this plan-before-apply workflow require tflint to check Terraform code?

Terraform plan workflows do not strictly require tflint but integrate it optionally to uphold coding standards. The core requirement is the Terraform CLI, which handles the mandatory init, plan, and apply lifecycle steps.

How do I generate a Terraform plan for explicit review prior to apply?

Generating a Terraform plan for review executes a plan generation step after validation checks pass. The resulting tfplan is presented for explicit user approval, ensuring no unaudited infrastructure changes are applied automatically.

Can I use tflint with Terraform to catch misconfigurations before planning?

Yes, tflint integrates with Terraform workflows to provide linting and governance checks before planning. Running tflint alongside standard validate checks catches provider misconfigurations and upholds coding standards early.