terraform-style-guide

Enforces Hashicorp's official style conventions and best practices for Terraform HCL code.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/spallempati/AI-Studio --skill terraform-style-guide-spallempati
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-style-guide
Source: https://github.com/spallempati/AI-Studio/tree/main/skills/terraform/terraform-style-guide
Command: npx skills add https://github.com/spallempati/AI-Studio --skill terraform-style-guide-spallempati

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures your Terraform HCL code adheres to HashiCorp's official style conventions and best practices, leading to more maintainable and readable infrastructure as code.

Core Features & Use Cases

  • Code Generation: Generates Terraform HCL code following established style guides.
  • Code Review: Provides a checklist and guidelines for reviewing Terraform configurations.
  • Best Practices Enforcement: Enforces naming conventions, variable usage, output definitions, and security best practices.
  • Use Case: When writing a new Terraform module for an AWS VPC, use this Skill to ensure the code is well-formatted, variables are clearly defined, and security best practices are followed.

Quick Start

Use the terraform-style-guide skill to generate a basic Terraform configuration for an AWS S3 bucket following best practices.

Frequently Asked Questions about terraform-style-guide

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

FAQPage Schema
What are the best practices for writing Terraform HCL code?

Terraform HCL best practices involve following HashiCorp's official style conventions for naming, variable usage, and output definitions to ensure infrastructure as code is readable, maintainable, and secure.

How do I enforce naming conventions and security hardening in Terraform configurations?

You can enforce naming conventions and security hardening in Terraform configurations by applying checklist guidelines during code generation and review to validate variable definitions and security compliance.

Can I use a style guide to review existing infrastructure as code modules?

Yes, you can use a Terraform style guide to review existing infrastructure as code modules by evaluating them against established best practice checklists for formatting and security.

How do I generate a Terraform module for an AWS VPC that follows style conventions?

To generate a compliant Terraform module, apply established style guidelines during creation to ensure clear variable definitions, proper formatting, and security hardening for the VPC configuration.

Does this style guide cover security and output definitions for HCL code?

Yes, the style guide covers security and output definitions by enforcing requirements for code readability, maintainability, and security hardening throughout the HCL configurations.

What is the best way to maintain clean Terraform configurations across a project?

The best way to maintain clean Terraform configurations is to consistently enforce official style conventions during both code generation and review to satisfy infrastructure as code readability standards.