terraform-module

Create or review Terraform modules with documented variables, outputs, and remote state.

6|1|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/wesleyosantos91/multi-agents --skill terraform-module
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-module
Source: https://github.com/wesleyosantos91/multi-agents/tree/main/devin/.devin/skills/terraform-module
Command: npx skills add https://github.com/wesleyosantos91/multi-agents --skill terraform-module

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you create or review Terraform modules that are consistent, secure, and production-ready by enforcing required structure, documentation, naming, state, and IAM/security guardrails.

Core Features & Use Cases

  • Module structure & documentation: Ensures modules follow a predictable layout (main/variables/outputs/versions/optional locals-data + README) so they’re easy to reuse across services.
  • Hardened inputs & outputs: Requires every variable to include description and type, supports sensitive variables, and mandates well-described outputs suitable for composition.
  • Operational safety & governance: Enforces sane naming, required tags, remote state with encryption + DynamoDB locking, and security practices like least-privilege IAM and encryption-at-rest.

Quick Start

Ask the AI to review your Terraform module and update it to include fully documented variables and outputs, correct versions.tf constraints, required tagging and naming, and remote state with encryption and locking.

Frequently Asked Questions about terraform-module

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

FAQPage Schema
How do I enforce best practices for Terraform module design?

Terraform module design best practices are enforced by validating a predictable file layout, requiring documented variables and outputs, and checking provider and version constraints across environments to ensure production readiness.

What's the best way to secure remote state in Terraform?

Secure remote state in Terraform is achieved by enforcing encrypted state storage with DynamoDB locking, applying least-privilege IAM controls, and ensuring no hardcoded secrets exist within the module.

How do I review a Terraform module for production readiness?

Reviewing a Terraform module for production readiness involves checking required variable descriptions, sensitive typing, safe naming conventions, mandatory tagging, and correct version constraints to guarantee safe infrastructure composition.

Does this approach work for packaging reusable Terraform modules across services?

Packaging reusable Terraform modules across services works by enforcing a predictable structure with main, variables, outputs, versions, and optional locals-data files alongside a README for consistent infrastructure reuse.

Why do my Terraform modules fail security and governance checks?

Terraform modules fail governance checks when they lack mandatory tags, miss encrypted remote state with locking, or contain hardcoded secrets instead of least-privilege IAM configurations and sensitive variable declarations.