terraform-skill

Anton Babenko's terraform-skill takes a diagnose-first approach: it routes your question through a failure-mode table (identity c…

antonbabenko 2.2k ↓ 4k NOASSERTION updated 1mo ago
Claude Code
View source ↗

What it does

  • Descriptive resource names (awsinstance.webserver, not awsinstance.main)
  • Reserve this for genuine singleton resources only
  • Prefix variables with context (vpccidrblock, not cidr)
  • Standard files: main.tf, variables.tf, outputs.tf, versions.tf
  • command = plan — fast, for input-derived values only
  • command = apply — required for computed values (ARNs, generated names) and set-type nested blocks
  • Set-type blocks cannot be indexed with [0] — use for expressions or materialize via command = apply

Requirements & configuration

  • 3. Load only the matching reference file(s) — do not preload depth the task does not need.
  • | Provider-defined functions | 1.8+ | Provider-specific transformations (requires provider to declare functions) |
  • | Find definition / all references | terraform-ls goToDefinition / findReferences | Needs init + a position anchor |
  • ✅ Prereq: local terraform/tofu on PATH, terraform init run; cold start may need one retry.

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

Anton Babenko's terraform-skill takes a diagnose-first approach: it routes your question through a failure-mode table (identity churn,...

Source

Repository: https://github.com/antonbabenko/terraform-skill

terraform-skill FAQ

What does the terraform-skill skill do?

Use when writing, reviewing, or debugging Terraform/OpenTofu modules, tests, CI, scans, or state ops - diagnoses failure mode (identity churn, secrets, blast radius, CI drift, state corruption) with version-aware guards. Descriptive resource names (awsinstance.webserver, not awsinstance.main) Reserve this for genuine singleton resources only

What does terraform-skill require?

3. Load only the matching reference file(s) — do not preload depth the task does not need. | Provider-defined functions | 1.8+ | Provider-specific transformations (requires provider to declare functions) | | Find definition / all references | terraform-ls goToDefinition / findReferences | Needs init + a position anchor | ✅ Prereq: local terraform/tofu on PATH, terraform init run; cold start may need one retry.

How do I install terraform-skill?

Run: npx -y skills add https://github.com/antonbabenko/terraform-skill --skill terraform-skill --agent claude-code — the source lives at github.com/antonbabenko/terraform-skill.

Maintain terraform-skill?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

[terraform-skill on getagentictools](https://getagentictools.com/skills/antonbabenko-terraform-skill-terraform-skill?ref=badge)
npx agentictools info skills/antonbabenko-terraform-skill-terraform-skill

The second line is the CLI lookup for this page — handy in READMEs and docs.