terraform-style-guide

Enforces Terraform style, module boundaries, and IaC quality rules.

7|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/KentoShimizu/sw-agent-skills --skill terraform-style-guide-kentoshimizu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-style-guide
Source: https://github.com/KentoShimizu/sw-agent-skills/tree/main/skills/terraform-style-guide
Command: npx skills add https://github.com/KentoShimizu/sw-agent-skills --skill terraform-style-guide-kentoshimizu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill standardizes Terraform style, module boundaries, and IaC quality checks to reduce drift and unsafe configurations.

Core Features & Use Cases

  • Style and formatting checks: enforces consistent naming, locals usage, and formatting across Terraform code.
  • Quality gates and safety: validates module interfaces, remote state usage, and plan/apply discipline.
  • Use Case: When Terraform configurations are updated, automatically review for variable typing, state management, and policy compliance before merge.

Quick Start

Instruct the AI to audit a Terraform project for style conformance and safety rules, returning a prioritized list of fixes.

Frequently Asked Questions about terraform-style-guide

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

FAQPage Schema
How do I enforce consistent naming and formatting in Terraform code?

Terraform style checks enforce consistent naming, locals usage, and formatting across your codebase by validating .tf files against standardized rules, ensuring configurations remain clean and maintainable before merge.

What is the best way to validate Terraform module boundaries and remote state usage?

Validating Terraform module boundaries involves checking module interfaces, remote state usage, and variable typing to reduce configuration drift and ensure safe, deterministic infrastructure-as-code deployments.

How do I add Terraform quality gates to my CI pipeline for plan and apply discipline?

Terraform quality gates validate plan and apply discipline during code reviews or CI gates by checking .tf and .tfvars files for safety, state management, and policy compliance before allowing merges.

Can I automatically review Terraform configurations for variable typing and state management?

Yes, you can automatically review Terraform configurations for variable typing and state management by auditing the project against style and safety rules, returning a prioritized list of fixes for unsafe configurations.

What are common Terraform safety issues to check for during infrastructure-as-code reviews?

Common Terraform safety issues include improper variable typing, unsafe remote state usage, and poor plan and apply discipline, which quality rules identify to prevent drift and enforce safe state management.

Why does my Terraform configuration drift without standardized module boundaries?

Terraform configuration drifts without standardized module boundaries because inconsistent interfaces and unvalidated state management lead to unsafe configurations, which quality checks are designed to identify and resolve.