terraform
Skill15 starsChanged 42 days agoMITView on GitHub
Expert HashiCorp Terraform assistance covering HCL, providers, modules, state locking, workspaces, and plan/apply workflows. Use when provisioning and managing cloud infrastructure declaratively.
23 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- iliaal/ai-skillstheir own version, first seen Nov 7, 2026
- cloudfleetai/cloudfleet-plugin-claudetheir own version, first seen Nov 1, 2026
- maroffo/claude-forgetheir own version, first seen Oct 25, 2026
- iuliandita/skillstheir own version, first seen Oct 14, 2026
- DongDuong2001/pudo-code-systemtheir own version, first seen Oct 13, 2026
- nimadorostkar/Claude-Skills-collectiontheir own version, first seen Oct 13, 2026
Used with
Projects with it also use codex-cli, github-cli and 2 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
garri333Skillcodex-cli
OpenAI Codex CLI mastery skill for installation, authentication, terminal commands, code generation from natural language, file editing, project scaffolding, and IDE integrations. Covers GPT-5.2 Instant/Thinking tiers and shell/container execution modes.
Also in 3 projects that use this
rogue-dev-studioSkillgithub-cli
GitHub CLI authentication and workflow configuration. Use when the project needs this capability or the user / team manifest asks for it. Use for specialized `github-cli` work when listed in TEAM.yaml or explicitly requested.
Also in 3 projects that use this
nilecuiSkillmermaid
Guide for creating mermaid diagrams. This skill should be used when users want to create a mermaid diagram (or update an existing diagram).
Also in 3 projects that use this
OpenAISkillobservability
Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.
Also in 3 projects that use this
Other versions23 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- ffsshhttiikk/opencode-agents-skills★ 212% same
- ihiteshgupta/ClaudeSkills★ 011% same
Wrote their own version · 21
- Mindrally/skills★ 275same name
- magnus919/agent-skills★ 172same name
- nitinjain999/platform-skills★ 71same name
- iliaal/ai-skills★ 45same name
- nimadorostkar/Claude-Skills-collection★ 33same name
- georgekhananaev/claude-skills-vault★ 28same name
- greedychipmunk/agent-skills★ 24same name
- maroffo/claude-forge★ 17same name
- iuliandita/skills★ 11same name
- benjaminwestern/google-engineer-skills★ 5same name
11 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository350 other files it gives its agents.
- airflowSkill
- catboostSkill
- claudeSkill
- comfyuiSkill
- cursor-aiSkill
- dalleSkill
- daskSkill
- dbtSkill
- deepseekSkill
- fastaiSkill
- geminiSkill
- github-copilotSkill
- huggingfaceSkill
- jaxSkill
- jupyterSkill
- kerasSkill
- langchainSkill
- lightgbmSkill
- llamaindexSkill
- llamaSkill
- matplotlibSkill
- midjourneySkill
- mistralSkill
- mlflowSkill
- nltkSkill
- numpySkill
- ollamaSkill
- openai-gptSkill
- opencvSkill
- pandasSkill
- perplexitySkill
- plotlySkill
- polarsSkill
- pytorchSkill
- raySkill
- scikit-learnSkill
- seabornSkill
- spacySkill
- sparkSkill
- stable-diffusionSkill
- tensorflowSkill
- vaexSkill
- weights-biasesSkill
- whisperSkill
- xgboostSkill
- api-gatewaySkill
- clean-architectureSkill
- cqrsSkill
- domain-driven-designSkill
- event-drivenSkill
- event-sourcingSkill
- graphqlSkill
- grpcSkill
- hexagonalSkill
- microservicesSkill
- modular-monolithSkill
- monolithSkill
- rest-apiSkill
- sagaSkill
- serverlessSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.
0
Common
Most of the 21 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 156
Always store Terraform state in a remote backend (S3/GCS) with encryption and state locking (DynamoDB).
- Very specific: line 157
Always generate an execution plan (terraform plan -out=tfplan) and apply the saved plan file in CI.
- Very specific: line 158
Use default_tags at the provider level to ensure consistent tagging across all cloud resources.
- Very specific: line 163
Commit .tfstate files or files containing secrets to version control.
- Very specific: line 164
Use terraform apply --auto-approve in production without review and approval gates.
“Common” is measured: kept by at least 6 in 10 of the 21 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Terraform
HashiCorp Terraform is an Infrastructure as Code (IaC) engine allowing declarative provisioning and lifecycle management of cloud resources across multi-cloud environments using HCL.
When to Use
- Multi-Cloud Declarative Infrastructure as Code (IaC): Provisioning and managing resources across AWS, Azure, GCP, and Kubernetes.
- State Management & Team Collaboration: Tracking real-world cloud resources via remote state backends with locking.
- Modular Infrastructure Architecture: Writing reusable, version-controlled modules for standard cloud topologies.
- Pre-Deployment Execution Planning: Auditing infrastructure changes with
terraform planbefore applying.
Quick Start
# main.tf
provider "aws" {
region = "us-west-2"
}
resource "aws_s3_bucket" "b" {
bucket = "my-tf-test-bucket"
tags = {
Name = "My bucket"
}
}Core Concepts
Modular Architecture with Remote State & Locking
Configuring S3 remote backend with DynamoDB state locking:
# versions.tf
terraform {
required_version = ">= 1.9.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.50"
}
}
backend "s3" {
bucket = "corp-terraform-state-prod"
key = "platform/network/terraform.tfstate"
region = "us-east-1"
dynamodb_table = "terraform-state-lock"
encrypt = true
}
}
provider "aws" {
region = var.aws_region
default_tags {
tags = {
Environment = var.environment
ManagedBy = "Terraform"
Project = "CoreInfrastructure"
}
}
}Reusable VPC Module with Inputs & Outputs
Encapsulating network resources:
# modules/vpc/main.tf
resource "aws_vpc" "main" {
cidr_block = var.cidr_block
enable_dns_hostnames = true
enable_dns_support = true
tags = {
Name = "${var.environment}-vpc"
}
}
resource "aws_subnet" "public" {
count = length(var.public_subnet_cidrs)
vpc_id = aws_vpc.main.id
cidr_block = var.public_subnet_cidrs[count.index]
availability_zone = var.availability_zones[count.index]
map_public_ip_on_launch = true
tags = {
Name = "${var.environment}-public-${count.index + 1}"
}
}
output "vpc_id" {
description = "The ID of the provisioned VPC"
value = aws_vpc.main.id
}Terraform CLI Workflow
Planning and applying changes safely:
# Initialize providers and remote backend
terraform init
# Validate configuration syntax and variables
terraform validate
# Generate and save execution plan
terraform plan -out=tfplan.binary
# Apply verified plan atomically
terraform apply tfplan.binaryCommon Patterns
S3 Backend with DynamoDB State Locking
Problem: Concurrent terraform apply executions from CI pipelines corrupting state files.
Solution: Configure remote backend with distributed state locking:
terraform {
required_version = ">= 1.6.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
backend "s3" {
bucket = "my-terraform-state-bucket"
key = "production/terraform.tfstate"
region = "us-east-1"
dynamodb_table = "terraform-locks"
encrypt = true
}
}Best Practices
Do:
- Always store Terraform state in a remote backend (S3/GCS) with encryption and state locking (DynamoDB).
- Always generate an execution plan (
terraform plan -out=tfplan) and apply the saved plan file in CI. - Use
default_tagsat the provider level to ensure consistent tagging across all cloud resources. - Isolate environments using separate state files or directories (
environments/prod,environments/stage), not workspaces.
Don't:
- Commit
.tfstatefiles or files containing secrets to version control. - Use
terraform apply --auto-approvein production without review and approval gates. - Modify cloud resources manually via web consoles; out-of-band changes cause state drift.
Troubleshooting
| Error | Cause | Solution |
Error: Error acquiring the state lock | Previous apply was interrupted, leaving lock active in DynamoDB. | Unlock after verifying no process is running: terraform force-unlock <LOCK-ID>. |
Error: Resource already managed by Terraform | Importing resource without configuration block or duplicate resource address. | Ensure unique resource label and run terraform import <addr> <id>. |
Provider configuration not present | Module using provider configuration not inherited from parent root. | Pass providers explicitly: providers = { aws = aws.west }. |
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

