Tooluck logoTooluck
SKILL.md

terraform-module-library

Agent skill fromwshobson/agents

Build reusable Terraform modules for AWS, Azure, GCP, and OCI infrastructure following infrastructure-as-code best practices. Use when creating infrastructure modules, standardizing cloud provisioning, or implementing reusable IaC components.

How to install terraform-module-library

install terraform-module-library
# install the agents pack with the skills CLI
npx skills add wshobson/agents

# or add only this skill to Claude Code: copy the folder

plugins/cloud-infrastructure/skills/terraform-module-library/

# into

~/.claude/skills/terraform-module-library/ (all projects)

.claude/skills/terraform-module-library/ (one project)

plugins/cloud-infrastructure/skills/terraform-module-library/SKILL.md

MITFull file
1# Terraform Module Library
2
3Production-ready Terraform module patterns for AWS, Azure, GCP, and OCI infrastructure.
4
5## Purpose
6
7Create reusable, well-tested Terraform modules for common cloud infrastructure patterns across multiple cloud providers.
8
9## When to Use
10
11- Build reusable infrastructure components
12- Standardize cloud resource provisioning
13- Implement infrastructure as code best practices
14- Create multi-cloud compatible modules
15- Establish organizational Terraform standards
16
17## Module Structure
18
19```
20terraform-modules/
21├── aws/
22│ ├── vpc/
23│ ├── eks/
24│ ├── rds/
25│ └── s3/
26├── azure/
27│ ├── vnet/
28│ ├── aks/
29│ └── storage/
30├── gcp/
31│ ├── vpc/
32│ ├── gke/
33│ └── cloud-sql/
34└── oci/
35 ├── vcn/
36 ├── oke/
37 └── object-storage/
38```
39
40## Standard Module Pattern
41
42```
43module-name/
44├── main.tf # Main resources
45├── variables.tf # Input variables
46├── outputs.tf # Output values
47├── versions.tf # Provider versions
48├── README.md # Documentation
49├── examples/ # Usage examples
50│ └── complete/
51│ ├── main.tf
52│ └── variables.tf
53└── tests/ # Terratest files
54 └── module_test.go
55```
56
57## AWS VPC Module Example
58
59**main.tf:**
60
61```hcl
62resource "aws_vpc" "main" {
63 cidr_block = var.cidr_block
64 enable_dns_hostnames = var.enable_dns_hostnames
65 enable_dns_support = var.enable_dns_support
66
67 tags = merge(
68 {
69 Name = var.name
70 },
71 var.tags
72 )
73}
74
75resource "aws_subnet" "private" {
76…

Excerpt shown under the repository's MIT license.

More skills in agents

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates