Agent skill · software engineering · alirezarezvani

terraform-patterns

Use for any Terraform module, state backend, provider setup or IaC security review, before editing .tf files. Analyzes modules with tf_module_analyzer.py and scans for misconfigurations with tf_security_scanner.py.

Why this skill is useful

Adds executable scripts for Terraform code analysis and security scanning that are not available in public documentation.

What it needs

Requires python3 installed locally. About 6k tokens when loaded. Last updated 2026-08-05. 23,939 stars on the source repository.

What this skill does

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 Command What it does --------- ------------- /terraform-patterns review Analyze Terraform code for anti-patterns, security issues, and structure problems /terraform-patterns module Design or refactor a Terraform module with proper inputs, outputs, and composition /terraform-patterns security Audit Terraform code for security vulnerabilities, secrets exposure, and IAM misconfigurations --- When This Skill Activates Recognize these patterns from the user: "Review this Terraform code" "Design a Terraform module for..." "My Terraform state is..." "Set up remote state backend" "Multi-region Terraform deployment" "Terraform security review" "Module structure best practices" "Terraform CI/CD pipeline" Any request involving: .tf files, HCL, Terraform modules, state management, provider configuration, infrastructure-as-code If the user has .tf files or wants to provision infrastructure with Terraform → this skill applies. --- Workflow /terraform-patterns review — Terraform Code Review 1. Analyze current state Read all .tf files in the target directory Identify module structure (flat vs nested) Count resources, data sources, variables, outputs Check naming conventions 2. Apply review checklist 3. Generate report 4. Run security scan /terraform-patterns module — Module Design 1. Identify module scope Single responsibility: one module = one logical grouping Determine inputs (variables), outputs, and resource boundaries Decide: flat module (single directory) vs nested (calling child modules) 2. Apply module design checklist 3. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills alirezarezvani/terraform-patterns--55ef9d

View the source on GitHub

Browse the @skills marketplace