create-terraform-module

A scaffolding and design guide for reusable Terraform modules that create and manage AWS infrastructure. Terraform is a tool that describes infrastructure in files so it can be created and changed consistently.

In plain words
What is it for?
Use it to create or revise an AWS Terraform module, including its standard files, variables, outputs, provider constraints, tags, and composition patterns. It is intended for infrastructure modules that other configurations will call.
Why use it?
It provides a defined interface for module inputs and outputs and keeps reusable infrastructure separate from environment-specific settings. It also highlights safeguards for secrets, version compatibility, resource identity, and potentially unsafe changes.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/soulcodex/agentic/create-terraform-module
Any agent
npx skills add soulcodex/agentic --skill create-terraform-module
Clone the repo
git clone --depth 1 https://github.com/soulcodex/agentic

Made for: Claude Code, Codex.

Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 639 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00047 $0.00639
Opus 5 $0.00023 $0.00319
Sonnet 5 $0.00009 $0.00128
Haiku 4.5 $0.00005 $0.00064

Measured 2d ago against content hash 82263fc731d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

create-terraform-module scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/devops/create-terraform-module/SKILL.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Create Terraform Module Skill

Create or revise Terraform module implementation details for AWS workloads.

Always pair this skill with terraform-risk-playbook. That skill is authoritative for the response contract, risk category, version/runtime floor, validation expectations, and rollback notes.

Authoritative precedence: when this skill and terraform-infrastructure are both active, this skill is authoritative for module layout, file set, and module interface details.

Step 1 - Define Module Contract

Define module inputs/outputs first:

  • required vs optional variables
  • typed structures (object, list(object)) where appropriate
  • sensitive inputs marked with sensitive = true
  • outputs scoped to consumer needs only
  • do not treat sensitive = true as state protection; avoid module interfaces that require raw secret values when a reference/ARN can be passed instead

Step 2 - Create Module Structure

Use module-skeleton.md as the required baseline layout.

Rules:

  • include README.md, versions.tf, providers.tf, main.tf, variables.tf, outputs.tf
  • keep environment-specific values outside reusable modules
  • avoid hidden dependencies on caller-side locals/naming
  • child modules must not configure provider credentials/regions directly; define required_providers and let the root module pass provider instances/aliases

Step 3 - Implement AWS Resources Safely

Apply consistent tagging and naming conventions.

Implementation guardrails:

  • explicit required_providers and Terraform version constraints
  • lifecycle usage only when justified and documented
  • stable resource addressing to reduce churn in plans
  • prefer for_each over count when item identity must survive reordering or selective removal
  • when refactoring addresses, emit moved blocks or explicit migration notes instead of rename-only changes
  • verify runtime floor before suggesting import, moved, optional(), mock providers, or write_only patterns
  • no plaintext secrets in code or defaults

Read the full file on GitHub · 86 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 86 lines · 47 tokens per session scan A 82263fc731d1

Subscribe to this mod's changes

create-terraform-module is a skill published in the GitHub repository soulcodex/agentic (10 stars, last pushed 2d ago), licensed MIT. It adds 47 tokens to every session and 639 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

frontend-architecture

Component architecture, design patterns, state management strategies, module systems, build tools, and scalable application structure.

manutej/luxor-claude-marketplace · 24 tokens

aws-cloud-architecture

Comprehensive guide to AWS cloud architecture covering compute, storage, databases, networking, security, serverless, and cost optimization with production-ready patterns.

manutej/luxor-claude-marketplace · 33 tokens

terraform-infrastructure-as-code

Comprehensive Terraform Infrastructure as Code skill covering resources, modules, state management, workspaces, providers, and advanced patterns for cloud-agnostic infrastructure deployment.

manutej/luxor-claude-marketplace · 36 tokens

Terraform Infrastructure as Code

Production-grade Terraform development with HCL best practices, module design, state management, multi-cloud patterns, and AI-enhanced infrastructure as code for scalable cloud deployments.

bobmatnyc/mcp-skillset · 36 tokens

survey-design

Design unbiased survey instruments — question wording, scales, and sampling — to measure attitudes at scale. Use when you need quantitative breadth. For behavioural experiments, use a-b-test-design (prototyping-testing).

Owl-Listener/designer-skills · 47 tokens

design-negotiation

Advocate for design quality, scope, and timeline with partners and leadership using evidence and shared goals. Use in the conversation itself. For the commercial vocabulary behind it, use business-design (ux-strategy).

Owl-Listener/designer-skills · 48 tokens