agentleFS
greedychipmunkgreedychipmunk/agent-skills/terraform/SKILL.md

terraform

Skill19 starsChanged 6 months agoMITView on GitHub

Plan, apply, and manage infrastructure with Terraform. Use when tasks mention terraform commands, HCL configuration, provider setup, state management, or workspace operations.

18 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use kubernetes, github-actions and 3 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.
  • mjunaidcaSkill

    kubernetes

    Production-grade Kubernetes manifests and debugging for containerized applications. This skill should be used when users ask to deploy to Kubernetes, create K8s manifests, containerize for K8s, set up Deployments/Services/Jobs/StatefulSets/CronJobs, create namespaces with resource quotas, set up multi-team isolation, configure ResourceQuota/ LimitRange, secure with RBAC (ServiceAccount, Role, RoleBinding), configure init containers (model download, db wait, migrations), set up sidecars (logging, metrics), or debug pods (CrashLoopBackOff, logs, exec, describe, events). Auto-detects from Dockerfile/code, generates hardened manifests with educational comments. CKAD-aligned.

    Also in 3 projects that use this

  • thomashartmSkill

    github-actions

    Manage GitHub Actions workflows. Use when the user wants to list workflows, view run history, check running workflows, trigger workflow_dispatch, view logs, or cancel runs. Auto-detects repository from git remote. Triggers on phrases like "list workflows", "workflow runs", "trigger workflow", "start deploy", "github actions", "view logs", "cancel run", "running workflows".

    Also in 4 projects that use this

  • VercelSkill

    react

    React renderer for json-render that turns JSON specs into React components. Use when working with @json-render/react, building React UIs from JSON, creating component catalogs, or rendering AI-generated specs.

    Also in 4 projects that use this

  • OpenAISkill

    nextjs

    Next.js App Router expert guidance. Use when building, debugging, or architecting Next.js applications — routing, Server Components, Server Actions, Cache Components, layouts, middleware/proxy, data fetching, rendering strategies, and deployment on Vercel.

    Also in 3 projects that use this

  • VercelSkill

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 0 are distinctive, and 9 are very specific to this project.

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Always run terraform plan before terraform apply — review the diff carefully.

    line 48
  2. Very specific:

    Never commit terraform.tfstate or .tfvars files containing secrets to version control.

    line 50
  3. Very specific:

    Use -target sparingly; it can leave state inconsistent.

    line 51
  4. Very specific:

    Write or edit .tf configuration files.

    line 62
  5. Very specific:

    Run terraform fmt to normalize formatting.

    line 63
  6. Very specific:

    Run terraform validate to catch syntax errors.

    line 64
  7. Very specific:

    Run terraform plan and review the proposed changes.

    line 65
  8. Very specific:

    Run terraform apply only after reviewing the plan.

    line 66
  9. Very specific:

    Commit updated terraform.lock.hcl but never terraform.tfstate.

    line 67

“Common” is measured: kept by at least 6 in 10 of the 16 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Terraform

Intent Router

RequestReferenceLoad When
Install tool, first-time setup, tfenvresources/install-and-setup.mdUser needs to install Terraform or manage versions
Provider config, variables, backendsresources/configuration.mdUser needs provider blocks, variable files, or backend setup
CLI commands, workflowsresources/command-cookbook.mdUser needs init/plan/apply/destroy patterns or state commands
State management, remote backendsresources/state-and-backends.mdUser asks about state files, locking, or remote backends

Quick Start

# 1. Initialize working directory (downloads providers)
terraform init

# 2. Preview changes (always run before apply)
terraform plan

# 3. Apply changes (requires confirmation)
terraform apply

# 4. Destroy infrastructure (DANGEROUS — requires confirmation)
terraform destroy

Core Command Tracks

  • Initialize: terraform init — downloads providers, sets up backend
  • Validate & format: terraform validate, terraform fmt -recursive
  • Preview: terraform plan [-out=tfplan] — no changes made
  • Apply: terraform apply [tfplan] — creates/updates resources
  • Inspect state: terraform state list, terraform state show <resource>
  • Workspaces: terraform workspace list, terraform workspace select <name>

Safety Guardrails

  • Always run terraform plan before terraform apply — review the diff carefully.
  • terraform destroy is irreversible — confirm resource list before proceeding.
  • Never commit terraform.tfstate or .tfvars files containing secrets to version control.
  • Use -target sparingly; it can leave state inconsistent.
  • Enable state locking on remote backends to prevent concurrent modifications.
# Inspect managed resources in state before making changes
terraform state list
terraform state show aws_instance.web

Workflow

  1. Write or edit .tf configuration files.
  2. Run terraform fmt to normalize formatting.
  3. Run terraform validate to catch syntax errors.
  4. Run terraform plan and review the proposed changes.
  5. Run terraform apply only after reviewing the plan.
  6. Commit updated terraform.lock.hcl but never terraform.tfstate.

Related Skills

  • pulumi — IaC using general-purpose languages (TypeScript, Python, Go, C#)
  • ansible — configuration management and agentless automation

References

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.