terraform-skill
Write and fix Terraform safely
- For people who code
- Needs: A coding agent such as Claude Code or Codex, in a Terraform project
What it does
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.
A best-practices skill for Terraform and OpenTofu, for AI coding agents (Claude Code, Cursor, Copilot, Gemini CLI, OpenCode, Codex, Kiro, and more). It helps the agent test code, structure modules, set up CI/CD, and write production infrastructure code.
AWS, Azure, and GCP are all first-class. AWS stays the default in examples, but the same backend, auth, security, and resource guidance applies to all three - ask for the Azure or GCP equivalent of any pattern and the skill maps it.
Testing frameworks
- Decision matrix for native tests vs Terratest
- Testing workflows (static, integration, E2E)
- Examples and patterns
Module development
- Structure and naming conventions
- Versioning strategies
- Public vs private module patterns
State management
- Remote backends (S3, Azure, GCS, Terraform Cloud)
- Locking and security
- Multi-team state isolation
- Migration and recovery procedures
CI/CD integration
- GitHub Actions workflows
- GitLab CI examples
- Cost optimization
- Compliance automation
Security and compliance
From README.md in antonbabenko/terraform-skill · a snapshot from Nov 24, 2026, so it may be a little out of date
Try it
- 1Add terraform-skill to your AI
- 2Ask for something like this
Review this Terraform module for risks
Why does this plan want to recreate my database?
Set up tests for this module
Example prompts written from the skill's instructions.
Safety
SafeDetails
All three scanners ran and found nothing that could steal your data or hijack your AI.
What it can do- Runs commands on your computer
- Goes online
- Reads keys or settings
- Asks for wide access to your files
- Scanners
- SkillSpector 2.12.0 · HoneyBadger 0.8.1 · agentscan 1.2.2
- Version scanned
f5a1959antonbabenko/terraform-skill/skills/terraform-skill- Scanned on
- Nov 22, 2026
- Raw reports
- full report skillspector honeybadger agentscan
- Secret scanNoticed
agentscan: secrets high references/code-patterns.md:626 Secret-like assignmentContains something that looks like a key or password. (LLM02 Sensitive Information Disclosure)agentscan: secrets high references/code-patterns.md:631 Secret-like assignmentContains something that looks like a key or password. (LLM02 Sensitive Information Disclosure)agentscan: secrets high references/code-patterns.md:948 Secret-like assignmentContains something that looks like a key or password. (LLM02 Sensitive Information Disclosure) - Dangerous commandsNoticed
agentscan: filesystem medium references/state-management.md:1209 rm -f (forced delete)Can delete or overwrite your files. (LLM06 Excessive Agency)agentscan: shell medium references/ci-cd-workflows.md:380 Invokes bashCan run commands on your computer. (LLM06 Excessive Agency)agentscan: shell medium references/quick-reference.md:692 Invokes shell backticksCan run commands on your computer. (LLM06 Excessive Agency) - Network callsNoticed
agentscan: exfil medium references/ci-cd-workflows.md:253 Environment variable in URLBuilds web addresses from your settings or commands. (LLM02 Sensitive Information Disclosure)agentscan: exfil medium references/ci-cd-workflows.md:292 Environment variable in URLBuilds web addresses from your settings or commands. (LLM02 Sensitive Information Disclosure)agentscan: network medium references/ci-cd-workflows.md:253 Network primitive: curlMentions web addresses. (LLM02 Sensitive Information Disclosure) - PermissionsNoticed
SkillSpector: EA2 MEDIUM references/ci-cd-workflows.md:628 Autonomous Decision MakingLets your AI decide big things on its own. (LLM06 Excessive Agency)SkillSpector: EA2 MEDIUM references/ci-cd-workflows.md:721 Autonomous Decision MakingLets your AI decide big things on its own. (LLM06 Excessive Agency)SkillSpector: EA2 MEDIUM references/code-patterns.md:1052 Autonomous Decision MakingLets your AI decide big things on its own. (LLM06 Excessive Agency) - Prompt injectionNoticed
SkillSpector: AE1 HIGH SKILL.md:193 Incomplete referenced artifact analysisSkillSpector: AE1 HIGH SKILL.md:201 Incomplete referenced artifact analysisSkillSpector: AE1 HIGH SKILL.md:215 Incomplete referenced artifact analysis - LicenseNot runGitHub API did not return the repository.
- MaintenanceNot runGitHub API did not return the repository.
No person has signed this one off yet.
Three open-source scanners (SkillSpector, HoneyBadger, agentscan) check this exact version. Heads up means it could steal your data or hijack your AI. What it can do is listed, not warned about. Scanners miss things.
How we check: only harm earns a Heads up, meaning prompt injection (OWASP LLM01) or data leaks (LLM02), in files the skill ships. Abilities like running commands (LLM06) are listed, not warned about. No AI is used for this step. OWASP
Details
- Stars
- 2.5kon GitHub
- Last updated
- Nov 19, 2026on GitHub
GitHub numbers are a snapshot from Nov 24, 2026, not live.
Community
Comments
How to add terraform-skill to Claude
Press Add to your AI at the top of this page and pick Claude, or do it yourself:
- Download the skill. Keep the .zip as it is.
- On Claude's skills page, click +, then Create skill, then Upload a skill.
- Pick the file you downloaded and switch the skill on.
Works on every Claude plan, Free included. Code execution and file creation need to be on in Claude's settings. How to add a skill to Claude, step by step.
In ChatGPT
Skills are on ChatGPT Business, Enterprise, Healthcare and Edu plans. Download the skill. Keep the .zip as it is. In ChatGPT, open Plugins in the sidebar, then the Skills tab, then Create, then Upload from your computer. Pick the file you downloaded. ChatGPT checks it, then it's ready. More on ChatGPT.
For AI apps and agents: the skill's instructions as plain text, at the version we scanned.