create-terraform-module

create-terraform-module is a skill for Claude Code, Codex from soulcodex/agentic. It costs 47 tokens per session (639 once invoked), scanned A, original, MIT.

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

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; mentions OpenCode.

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/soulcodex/agentic/create-terraform-module
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.

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.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for create-terraform-module

README.md
[![agentmods](https://agentmods.dev/badge/skills/soulcodex/agentic/create-terraform-module/github.svg)](https://agentmods.dev/skills/soulcodex/agentic/create-terraform-module)
Your own site
<a href="https://agentmods.dev/skills/soulcodex/agentic/create-terraform-module"><img src="https://agentmods.dev/badge/skills/soulcodex/agentic/create-terraform-module/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for create-terraform-module

Your own site · 80×15
<a href="https://agentmods.dev/skills/soulcodex/agentic/create-terraform-module"><img src="https://agentmods.dev/badge/skills/soulcodex/agentic/create-terraform-module.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00047 $0.00639
Opus 5.5 $0.00019 $0.00256
Sonnet 5.5 $0.00009 $0.00128
Haiku 4.5 $0.00005 $0.00064

Measured 1mo ago against content hash 82263fc731d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 1mo ago), licensed MIT. It adds 47 tokens to every session and 639 once invoked, about $0.0002 per session on Opus 5.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

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

aws-essentials

Use when standing up the core AWS surface a small product needs: hardening a fresh account, a private S3 bucket, encrypted RDS Postgres, ECS Fargate vs EC2, CloudFront + OAC, or scoping an IAM policy to least privilege. NOT the CI pipeline that ships the container (that is deployment), NOT app-code access-control…

ericrisco/rsc-harness · 89 tokens

aws-architecture-diagram

AWS architecture diagrams — generate visual network topology diagrams from live AWS infrastructure. Use when drawing AWS network diagrams, visualizing VPCs, mapping Transit Gateway topology, or generating architecture documentation.

automateyournetwork/netclaw · 43 tokens

aws-architecture-diagram

Always use when user asks to create, generate, or build an AWS architecture diagram, cloud infrastructure diagram, or system diagram with AWS services. Also activates for draw.io diagrams mentioning AWS services like Lambda, DynamoDB, S3, API Gateway, etc.

vidanov/aws-architecture-diagram-skill · 57 tokens