infrastructure-as-code

infrastructure-as-code is a skill for Claude Code, Codex from williamzujkowski/standards. It costs 8 tokens per session (2,460 once invoked), scanned A, a copy of graphql-api-design, MIT.

A guide to managing infrastructure as code with Terraform, a tool that describes servers and cloud resources in version-controlled configuration files. It covers planning, validation, formatting, modules, and remote state.

In plain words
What is it for?
Use it to provision and update resources, validate and format Terraform files, reuse modules, manage state, and apply or destroy planned changes.
Why use it?
It makes infrastructure changes repeatable and reviewable instead of requiring manual setup, while letting you preview changes before applying them.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is 0 2 * * * terraform cd /opt/terraform/infrastructure && ./scripts/detect-drift.sh prod.

Good fit Use it to provision and update resources, validate and format Terraform files, reuse modules, manage state, and apply or destroy planned changes.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/williamzujkowski/standards
agentmods
npx agentmods add skills/williamzujkowski/standards/infrastructure-as-code

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 infrastructure-as-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/williamzujkowski/standards/infrastructure-as-code/github.svg)](https://agentmods.dev/skills/williamzujkowski/standards/infrastructure-as-code)
Your own site
<a href="https://agentmods.dev/skills/williamzujkowski/standards/infrastructure-as-code"><img src="https://agentmods.dev/badge/skills/williamzujkowski/standards/infrastructure-as-code/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 infrastructure-as-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/williamzujkowski/standards/infrastructure-as-code"><img src="https://agentmods.dev/badge/skills/williamzujkowski/standards/infrastructure-as-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,460 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 84% copy Near-identical to another mod 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.00008 $0.02460
Opus 5.5 $0.00003 $0.00984
Sonnet 5.5 $0.00002 $0.00492
Haiku 4.5 $0.00001 $0.00246

Measured yesterday against content hash a14a3128e334, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-30, from the pricing page.

Security

Grade A, and why

infrastructure-as-code 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 yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/terraform-ci.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Origin

This is a copy

84% identical to graphql-api-design — 546 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/devops/infrastructure-as-code/SKILL.md · 475 lines

How it starts

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

Infrastructure as Code (IaC)

Automate infrastructure provisioning and management using declarative configuration with Terraform, enabling version-controlled, repeatable, and scalable infrastructure deployment.

Level 1: Quick Reference

Core Workflow

# Initialize Terraform
terraform init

# Preview changes
terraform plan -out=tfplan

# Apply changes
terraform apply tfplan

# Destroy infrastructure
terraform destroy

# Validate configuration
terraform validate

# Format code
terraform fmt -recursive

Essential Patterns

Basic Resource:

resource "aws_instance" "web" {
  ami           = var.ami_id
  instance_type = var.instance_type

  tags = {
    Name        = "${var.environment}-web"
    Environment = var.environment
  }
}

Module Usage:

module "vpc" {
  source  = "terraform-aws-modules/vpc/aws"
  version = "~> 5.0"

  name = "${var.environment}-vpc"
  cidr = var.vpc_cidr

  azs             = var.availability_zones
  private_subnets = var.private_subnet_cidrs
  public_subnets  = var.public_subnet_cidrs

  enable_nat_gateway = true
  enable_vpn_gateway = false
}

Remote State:

terraform {
  backend "s3" {
    bucket         = "terraform-state-prod"
    key            = "networking/vpc/terraform.tfstate"
    region         = "us-east-1"
    encrypt        = true
    dynamodb_table = "terraform-locks"
  }
}

Critical Checklist

  • Pin provider versions (version = "~> 5.0")
  • Enable remote state with locking
  • Use workspaces for environments
  • Implement .gitignore for secrets
  • Run terraform validate before commit
  • Review plan output before apply
  • Tag all resources consistently
  • Use variables for all environment-specific values
  • Document module inputs/outputs
  • Enable state encryption

Common Commands

# Workspace management
terraform workspace new dev
terraform workspace select prod
terraform workspace list

# State management
terraform state list
terraform state show aws_instance.web
terraform state mv aws_instance.old aws_instance.new
terraform state rm aws_instance.deprecated

# Import existing resources
terraform import aws_instance.web i-1234567890abcdef0

# Output values
terraform output
terraform output -json vpc_id

Read the full file on GitHub · 475 lines

Files

What ships with it

7 files 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. yesterday First seen · 475 lines · 8 tokens per session scan A a14a3128e334

Subscribe to this mod's changes

infrastructure-as-code is a skill published in the GitHub repository williamzujkowski/standards (18 stars, last pushed 1mo ago), licensed MIT. It adds 8 tokens to every session and 2,460 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 84% identical to graphql-api-design, differing in 546 lines, and is treated as a copy.

Related

Other skills, from other repositories

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

Terraform infrastructure-as-code workflow patterns: state and environments, module design, safe plan/apply, drift control, and CI guardrails.

bobmatnyc/claude-mpm-skills · 28 tokens

IaC Patterns

Authoring patterns for Terraform and Bicep — remote state, module structure, naming, tagging, and plan review — so infrastructure stays reviewable and reproducible.

niels-emmer/myace · 37 tokens

terraform

A guide to Terraform, a tool that describes and manages cloud infrastructure from configuration files. It covers initialization, formatting, validation, planning, applying changes, state inspection, outputs, and HCL syntax.

chaterm/terminal-skills · 8 tokens

infrastructure-as-code-guardian

Universal Infrastructure as Code (IaC) agent skill for authoring, securing, and managing cloud infrastructure across Terraform, Pulumi, CloudFormation, Ansible, and Bicep. Provides cross-tool security hardening, state management best practices, cost optimization, drift detection, and CI/CD integration. Covers AWS…

JPeetz/agent-skills · 254 tokens

terraform-iac

Terraform and OpenTofu infrastructure as code best practices - generate HCL configurations, module patterns, state management, CI/CD workflows, and cloud provider templates for AWS, GCP, Azure.

chainlesschain/chainlesschain · 41 tokens