Skip to content

Terraform skill that reviews module design, state backends, provider setup, and IaC security before .tf edits.

CCM score
64 of 100
skills.sh installs
753
GitHub stars
30.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers three slash-command workflows: review for anti-pattern and structure checks, module for scaffolding, and security for audits
  • Includes tf_module_analyzer.py for resource counts and variable/output quality, and tf_security_scanner.py for secrets, IAM wildcards, open ports, and encryption gaps
  • Enforces a checklist covering remote state with locking and encryption, pessimistic provider version constraints, and sensitive = true on secret variables
  • Designed for engineers writing or reviewing Terraform modules, state backends, and multi-region deployments

Install

$ npx -y skills add alirezarezvani/claude-skills --skill terraform-patterns -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Terraform Patterns

Predictable infrastructure. Secure state. Modules that compose. No drift.

Opinionated Terraform workflow that turns sprawling HCL into well-structured, secure, production-grade infrastructure code. Covers module design, state management, provider patterns, security hardening, and CI/CD integration.

Not a Terraform tutorial — a set of concrete decisions about how to write infrastructure code that doesn't break at 3 AM.


Slash Commands

CommandWhat it does
/terraform-patterns reviewAnalyze Terraform code for anti-patterns, security issues, and structure problems
/terraform-patterns moduleDesign or refactor a Terraform module with proper inputs, outputs, and composition
/terraform-patterns securityAudit Terraform code for security vulnerabilities, secrets exposure, and IAM misconfigurations

When This Skill Activates

Recognize these patterns from the user:

Details

Repository
github.com/alirezarezvani/claude-skills
Categories
DevOps & Cloud, Security
First seen
Jun 3, 2026

Questions

What does the terraform-patterns skill do?

terraform-patterns is an agent skill for Terraform infrastructure-as-code that covers module design, state management, provider configuration, security hardening, policy-as-code with Sentinel or OPA, and CI/CD plan and apply workflows. It runs the tf_module_analyzer.py and tf_security_scanner.py scripts to review .tf files for misconfigurations and anti-patterns.

When should I use the terraform-patterns skill?

Use terraform-patterns when you want to design Terraform modules, manage remote state backends, review Terraform code for security issues, or plan multi-region deployments. The skill applies whenever a project contains .tf files or HCL that provisions infrastructure.

How do I install the terraform-patterns skill?

Run npx -y skills add alirezarezvani/claude-skills --skill terraform-patterns -y inside your project. Once installed, terraform-patterns gives your agent the module, state and security workflows for reviewing and writing Terraform code.

Where does terraform-patterns stand in the DevOps & Cloud category?

terraform-patterns sits in the DevOps & Cloud category on Claude Marketplaces, next to Azure skills such as azure-diagnostics and azure-prepare. Its focus is Terraform itself, covering HCL module structure, state locking and encryption, and IAM and security group checks, rather than a single cloud provider's deployment tooling.

More from alirezarezvani/claude-skills

All 259

Similar to Terraform Patterns

More DevOps & Cloud