terraform-validation-enhancer

Analyze Terraform 1.14+ configurations and generate prioritized remediation plans with code snippets.

1|Updated Dec 14, 2014
One-click install
npx skills add https://github.com/goldeneggg/dotfiles --skill terraform-validation-enhancer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-validation-enhancer
Source: https://github.com/goldeneggg/dotfiles/tree/main/claude-linux/.claude/skills/terraform-validation-enhancer
Command: npx skills add https://github.com/goldeneggg/dotfiles --skill terraform-validation-enhancer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Terraform configurations often lack thorough validation and lifecycle safeguards, leading to misconfigurations and risky deployments. This Skill evaluates and strengthens validation coverage, lifecycle management, and pre/postconditions for Terraform 1.14+ configurations, enabling safer and more predictable infrastructure changes.

Core Features & Use Cases

  • Assess variable validations and identify missing constraints across variables
  • Recommend lifecycle blocks (create_before_destroy, prevent_destroy) and pre/postconditions for resources and data sources
  • Provide concrete patch examples and reference patterns aligned with Terraform 1.14 features
  • Generate an actionable remediation plan and supporting guidance for staged rollout

Quick Start

Run the analysis against a Terraform project to generate a prioritized remediation plan.

Frequently Asked Questions about terraform-validation-enhancer

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

FAQPage Schema
How do I add preconditions and postconditions to Terraform resources?

To strengthen Terraform validation, analyze variable constraints and lifecycle blocks across your project. This Skill evaluates variable validations, recommends create_before_destroy and prevent_destroy blocks, and generates a prioritized, actionable remediation plan with concrete patch examples.

When do I need check blocks in Terraform configurations?

You need check blocks in Terraform configurations to assert infrastructure state and validate data before or after applying changes. This Skill analyzes your configuration focusing on Terraform 1.14+ check blocks to generate actionable improvements and reference-guided code snippets for safer deployments.

What is the best way to enforce lifecycle management in Terraform?

To enforce lifecycle management, evaluate resources for missing prevent_destroy and create_before_destroy blocks. This Skill analyzes your Terraform configurations and produces an actionable remediation plan with concrete patch examples aligned to Terraform 1.14+ patterns.

Does this Terraform validation approach work with Terraform 1.14?

Yes, this validation approach explicitly supports Terraform 1.14+ configurations. It analyzes variable validation, lifecycle blocks, preconditions, postconditions, and check blocks to generate actionable improvements and reference-guided code snippets for your specific version.

How do I remediate missing variable validation constraints in Terraform?

To remediate missing variable validation constraints, run an analysis against your Terraform project to identify gaps. This Skill assesses variable validations and generates a prioritized, actionable remediation plan with concrete patch examples and supporting guidance for staged rollout.