Skip to content
Back to skills

Terraform Modules

ASecurity

Design reusable Terraform modules with strict input/output contracts, version constraints, and native tests

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 30, 2026
ai-agentsterraformrefactoringdatabase

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add AdityaaaTiwari/ANVIL --skill terraform-modules --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Terraform Modules?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Terraform Modules
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adityaaatiwari-terraform-modules-anvil/badge)](https://www.skillsdirectory.com/skills/adityaaatiwari-terraform-modules-anvil)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: terraform-modules
description: Design reusable Terraform modules with strict input/output contracts, version constraints, and native tests
---

<!-- Generated by `anvil plugin build` from catalog/. Edit the catalog, not this file. -->

# Terraform modules

Use when authoring or refactoring reusable Terraform or OpenTofu modules.

## Interface design
- Pin `required_version` and `required_providers` with explicit minimum constraints inside every module without embedding `provider {}` blocks inside child modules.
- Document every `variable` and `output` with clear `description`, strict `type` constraints, `validation` rules, and `sensitive = true` for credentials.
- Avoid boolean explosion flags; model optional features clearly with nullable objects or explicit resource counts.

## Composition and compatibility
- Keep modules focused on one cohesive capability (for example a VPC or database tier), composing larger stacks at the root module.
- Use `moved {}` blocks when renaming resources or refactoring `count` to `for_each` so downstream callers do not suffer destructive replacement.
- Include a minimal `examples/` configuration and pin module source refs (`?ref=vX.Y.Z` or registry constraint) in callers.

## Verify
Run `terraform fmt -check`, `terraform validate`, and `terraform test` against mocked or ephemeral inputs.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.