by antonbabenko
Terraform & OpenTofu Skill for AI Agents - testing, modules, CI/CD, and production patterns
# Add to your Claude Code skills
git clone https://github.com/antonbabenko/terraform-skillGuides for using ai agents skills like terraform-skill.
Last scanned: 4/26/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-04-26T06:09:09.480Z",
"semgrepRan": false,
"npmAuditRan": true,
"pipAuditRan": true
}See how terraform-skill compares with popular alternatives.
terraform-skill is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by antonbabenko. Terraform & OpenTofu Skill for AI Agents - testing, modules, CI/CD, and production patterns. It has 2,483 GitHub stars.
Yes. terraform-skill passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/antonbabenko/terraform-skill" and add it to your Claude Code skills directory (see the Installation section above).
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh terraform-skill against similar tools.
No comments yet. Be the first to share your thoughts!
From $49 · 30 days · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Automated security scan — not a certification.
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
Module development
State management
CI/CD integration
Security and compliance
Quick reference
Installed through one Claude Code marketplace, antonbabenko/agent-plugins
(terraform-skill is listed there as an external plugin). Do not also add
antonbabenko/terraform-skill as a marketplace - both use the same marketplace
name and will clash.
Works with any Agent Skills-compatible tool:
npx skills add https://github.com/antonbabenko/terraform-skill
/plugin marketplace add antonbabenko/agent-plugins
/plugin install terraform-skill@antonbabenko
gemini skills install https://github.com/antonbabenko/terraform-skill --path skills/terraform-skill
Update by re-running the install command.
git clone https://github.com/antonbabenko/terraform-skill.git
mkdir -p ~/.cursor/skills
cp -R terraform-skill/skills/terraform-skill ~/.cursor/skills/
Cursor discovers ~/.cursor/skills/<name>/SKILL.md and .cursor/skills/<name>/SKILL.md, one level deep, and may not follow symlinks: copy the skill directory, not the repo root. Update: git pull in the clone, rm -rf ~/.cursor/skills/terraform-skill, then re-run the cp.
/plugin install https://github.com/antonbabenko/terraform-skill
# or
git clone https://github.com/antonbabenko/terraform-skill.git
mkdir -p ~/.copilot/skills
ln -s "$(pwd)/terraform-skill/skills/terraform-skill" ~/.copilot/skills/terraform-skill
Copilot discovers ~/.copilot/skills/<name>/SKILL.md (user) and .github/skills/, .agents/skills/, .claude/skills/ (project), one level deep: link the skill directory, not the repo root.
git clone https://github.com/antonbabenko/terraform-skill.git ~/.agents/skills/terraform-skill
OpenCode auto-discovers skills from .agents/skills/, .opencode/skills/, and .claude/skills/.
git clone https://github.com/antonbabenko/terraform-skill.git ~/.agents/skills/terraform-skill
Codex auto-discovers skills from ~/.agents/skills/ and .agents/skills/. Update with cd ~/.agents/skills/terraform-skill && git pull.
For a managed Codex plugin install, use the antonbabenko/agent-plugins
marketplace (codex plugin marketplace add antonbabenko/agent-plugins, then
install terraform-skill). Do not add antonbabenko/terraform-skill as a
separate marketplace - it clashes by name with agent-plugins.
Install the skill globally:
git clone https://github.com/antonbabenko/terraform-skill.git
mkdir -p ~/.autohand/skills
cp -R terraform-skill/skills/terraform-skill ~/.autohand/skills/
Or install it only for the current project:
git clone https://github.com/antonbabenko/terraform-skill.git
mkdir -p .autohand/skills
cp -R terraform-skill/skills/terraform-skill .autohand/skills/
Autohand Code discovers skills from ~/.autohand/skills/ and .autohand/skills/.
git clone https://github.com/antonbabenko/terraform-skill.git
mkdir -p ~/.kiro/skills
ln -s "$(pwd)/terraform-skill/skills/terraform-skill" ~/.kiro/skills/terraform-skill
Kiro discovers .kiro/skills/<name>/SKILL.md (workspace) and ~/.kiro/skills/<name>/SKILL.md (global), one level deep: link the skill directory, not the repo root.
git clone https://github.com/antonbabenko/terraform-skill.git
mkdir -p ~/.gemini/config/skills
cp -R terraform-skill/skills/terraform-skill ~/.gemini/config/skills/
Antigravity reads ~/.gemini/config/skills/<name>/ and <workspace>/.agents/skills/<name>/. It ignores symlinks that point outside the workspace, so copy the directory. Update: git pull in the clone, rm -rf ~/.gemini/config/skills/terraform-skill, then re-run the cp.
This repo is also a Kiro Power (root
POWER.md + optional mcp.json). In Kiro: Powers panel → "Add power from
GitHub", then paste:
https://github.com/antonbabenko/terraform-skill
Kiro activates the power on keyword match (e.g. "terraform", "opentofu",
"state", "modules"). Installing it also registers the optional read-only
HashiCorp terraform-mcp-server (from mcp.json) under the Powers section of
~/.kiro/settings/mcp.json — the guidance works without it. POWER.md is
generated from skills/terraform-skill/SKILL.md; the skill content is shared,
not duplicated.
git clone https://github.com/antonbabenko/terraform-skill
mkdir -p ~/.claude/skills
ln -s "$(pwd)/terraform-skill/skills/terraform-skill" ~/.claude/skills/terraform-skill
# or load the clone as a plugin for one session:
claude --plugin-dir ./terraform-skill
Claude Code discovers personal skills in ~/.claude/skills/<name>/SKILL.md. Edits to the clone are picked up live.
After installation, try:
"Create a Terraform module with testing for an S3 bucket"
Claude picks up the skill automatically when working with Terraform or OpenTofu code.
Install the code-intelligence plugin alongside this one:
/plugin marketplace add antonbabenko/agent-plugins
/plugin install code-intelligence@antonbabenko
It holds the general, any-language rules for navigating code (when to use a language server, plain text search, or fuzzy search; how to anchor a lookup to a position; what to do when a tool fails; saying so when one tool is swapped for another). terraform-skill is the Terraform-specific version of those rules. Why install it:
terraform-skill works on its own without it. The name code-intelligence is
not unique; if a code-intelligence skill is active, check it is the one from
antonbabenko/agent-plugins.
Create a module with tests (AWS / Azure / GCP):
"Create a Terraform module for an AWS VPC with native tests"
"Build an Azure module: VNet, subnets, and a PostgreSQL Flexible Server, with native tests"
"Write a GCP module for a VPC network, subnetwork, and Cloud SQL Postgres, with native tests"
Set up remote state:
"Configure an S3 backend with native
use_lockfilelocking and encryption for Terraform state""Choose and configure a remote state backend for AWS, Azure, or GCP (locking, encryption, versioning)"
Review existing code:
"Review this Terraform configuration following best practices"
Generate CI/CD workflow:
"Create a GitHub Actions workflow for Terraform with cost estimation"
Testing strategy:
"Help me choose between native tests and Terratest for my modules"
State management:
"How should I organize state files for a multi-team environment?"
These assume a recent Terraform/OpenTofu - use_lockfile is 1.10+, write_only is 1.11+.
"I'm building a new production service on AWS. Design reusable Terraform modules plus a prod/staging composition for a VPC with public/private subnets across 3 AZs, an ECS Fargate service behind an ALB, and an RDS Postgres instance. Include native
terraform testcoverage, variables with descriptions/types/validation, S3 remote state with encryption, bucket versioning,