TE

terraform-style-guide

Enforces HashiCorp official style and structure for Terraform configurations.

Install

mkdir -p .claude/skills/terraform-style-guide && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/5158" && unzip -o skill.zip -d .claude/skills/terraform-style-guide && rm skill.zip

Installs to .claude/skills/terraform-style-guide

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Generate Terraform HCL code following HashiCorp's official style conventions and best practices. Use when writing, reviewing, or generating Terraform configurations.
165 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Generate Terraform HCL code following HashiCorp style
  • Organize Terraform files into standard structures
  • Apply consistent indentation and alignment
  • Enforce naming conventions for resources and variables
  • Include type and description for all variables and outputs
  • Prefer `for_each` for dynamic resource creation

How it works

The skill generates and formats Terraform HCL code by applying HashiCorp's official style conventions, including file organization, naming, and formatting rules.

Inputs & outputs

You give it
Terraform HCL code or a request to generate new Terraform configurations
You get back
Terraform HCL code formatted and structured according to HashiCorp's style guide

When to use terraform-style-guide

  • Format Terraform configuration files
  • Generate new Terraform module structure
  • Review HCL code against official standards

About terraform-style-guide

Applies official HashiCorp style conventions for Terraform files. It organizes resources, variables, and outputs into standard files like main.tf and variables.tf while maintaining correct dependency ordering.

Generate Terraform HCL code following HashiCorp's official style conventions and best practices. Use when writing, reviewing, or generating Terraform configurations.

When not to use it

  • When committing `terraform.tfstate` or `terraform.tfstate.backup` files
  • When committing the `.terraform/` directory
  • When committing `.tfvars` files containing sensitive data

Limitations

  • The skill does not commit `terraform.tfstate` files
  • The skill does not commit `.terraform/` directories
  • The skill does not commit `.tfvars` files with sensitive data

How it compares

This skill automates the application of HashiCorp's specific style guide to Terraform code, ensuring consistency beyond basic formatting tools.

Compared to similar skills

terraform-style-guide side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
terraform-style-guide (this skill)13moReviewIntermediate
cloud-architect01moReviewAdvanced
aws-solution-architect203moReviewAdvanced
terraform-module-library74moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

cloud-architect

Harmitx7

Production AWS cloud architecture mastery. Service selection (ECS Fargate vs Lambda vs EC2, RDS vs Aurora vs DynamoDB), Terraform IaC patterns with HCL examples, VPC networking design, IAM least privilege, Secrets Manager, CloudWatch observability, cost optimization, and multi-environment AWS Organi

00

aws-solution-architect

alirezarezvani

Design AWS architectures for startups using serverless patterns and IaC templates. Use when asked to design serverless architecture, create CloudFormation templates, optimize AWS costs, set up CI/CD pipelines, or migrate to AWS. Covers Lambda, API Gateway, DynamoDB, ECS, Aurora, and cost optimization.

2047

terraform-module-library

wshobson

Build reusable Terraform modules for AWS, Azure, and GCP infrastructure following infrastructure-as-code best practices. Use when creating infrastructure modules, standardizing cloud provisioning, or implementing reusable IaC components.

759

azure-deployment-preflight

github

Performs comprehensive preflight validation of Bicep deployments to Azure, including template syntax validation, what-if analysis, and permission checks. Use this skill before any deployment to Azure to preview changes, identify potential issues, and ensure the deployment will succeed. Activate when users mention deploying to Azure, validating Bicep files, checking deployment permissions, previewing infrastructure changes, running what-if, or preparing for azd provision.

746

terraform-azurerm-set-diff-analyzer

github

Analyze Terraform plan JSON output for AzureRM Provider to distinguish between false-positive diffs (order-only changes in Set-type attributes) and actual resource changes. Use when reviewing terraform plan output for Azure resources like Application Gateway, Load Balancer, Firewall, Front Door, NSG, and other resources with Set-type attributes that cause spurious diffs due to internal ordering changes.

534

terraform-skill

sickn33

Terraform infrastructure as code best practices

829

Search skills

Search the agent skills registry