The Claude Agent Skill for Terraform and OpenTofu - testing, modules, CI/CD, and production patterns
npx skills add https://github.com/antonbabenko/terraform-skill --skill terraform-skillInstall this skill with the CLI and start using the SKILL.md workflow in your workspace.
Comprehensive Terraform and OpenTofu best practices skill for Claude Code. Get instant guidance on testing strategies, module patterns, CI/CD workflows, and production-ready infrastructure code.
๐งช Testing Frameworks
๐ฆ Module Development
๐ CI/CD Integration
๐ Security & Compliance
๐ Quick Reference
This plugin is distributed via Claude Code marketplace using .claude-plugin/marketplace.json.
/plugin marketplace add antonbabenko/terraform-skill
/plugin install terraform-skill@antonbabenko
# Clone to Claude skills directory
git clone https://github.com/antonbabenko/terraform-skill ~/.claude/skills/terraform-skill
While the repository is private, you can test locally:
git clone [email protected]:antonbabenko/terraform-skill.git ~/.claude/skills/terraform-skill
# Claude Code will load it from the local filesystem
After installation, try:
"Create a Terraform module with testing for an S3 bucket"
Claude will automatically use the skill when working with Terraform/OpenTofu code.
Create a module with tests:
"Create a Terraform module for AWS VPC with native tests"
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"
Decision matrices for:
terraform-<PROVIDER>-<NAME>)Side-by-side โ DO vs โ DON'T examples for:
Based on Production Experience:
Version-Specific Guidance:
Decision Frameworks:
Not just "what to do" but "when and why" - helping you make informed architecture decisions.
See CLAUDE.md for:
Issues & Feedback:
GitHub Issues
Releases are automated based on conventional commits in commit messages:
| Commit Type | Version Bump | Example |
|---|---|---|
feat!: or BREAKING CHANGE: |
Major | 1.2.3 โ 2.0.0 |
feat: |
Minor | 1.2.3 โ 1.3.0 |
fix: |
Patch | 1.2.3 โ 1.2.4 |
| Other commits | Patch (default) | 1.2.3 โ 1.2.4 |
Releases are created automatically when changes are pushed to master.
License: Apache 2.0 - see LICENSE
If you create derivative works or skills based on this skill, please include:
Based on terraform-skill by Anton Babenko
https://github.com/antonbabenko/terraform-skill
terraform-best-practices.com | Compliance.tf