terraform-skill  by antonbabenko

IaC agent skill for Terraform and OpenTofu

Created 1 month ago
1,156 stars

Top 33.2% on SourcePulse

GitHubView on GitHub
Project Summary

This AI skill provides comprehensive guidance for Terraform and OpenTofu users within the Claude Code environment, addressing testing strategies, module development, CI/CD integration, and production-ready patterns. It benefits engineers and power users by offering instant, expert-level advice and decision-making frameworks for infrastructure as code.

How It Works

The skill acts as an intelligent assistant, leveraging a curated knowledge base derived from production experience, community-tested approaches (e.g., terraform-aws-modules), and expert insights. It synthesizes best practices into actionable advice, decision flowcharts, and concrete examples, including ✅ DO vs ❌ DON'T comparisons, to guide users through complex IaC challenges. Its approach is advantageous by providing context-aware, version-specific recommendations for Terraform 1.0+ and OpenTofu 1.6+.

Quick Start & Requirements

  • Primary install: Use /plugin marketplace add antonbabenko/terraform-skill within Claude Code. Manual installation involves cloning the repository to ~/.claude/skills/terraform-skill.
  • Prerequisites: Claude Code environment, Terraform 1.0+ or OpenTofu 1.6+. An MCP Terraform server is optional for enhanced registry integration.
  • Links: Installation and usage examples are provided directly in the README.

Highlighted Details

  • Testing Frameworks: Offers decision matrices for choosing between native Terraform tests and Terratest, alongside multi-environment testing strategies.
  • Module Development: Covers structure, naming conventions, versioning strategies, and public vs. private module patterns.
  • CI/CD Integration: Provides examples for GitHub Actions and GitLab CI, including integration with Atlantis, cost estimation tools (Infracost), and security scanners (Trivy, Checkov).
  • Security & Compliance: Details policy-as-code patterns, compliance scanning workflows, and secrets management best practices.

Maintenance & Community

Releases are automated based on conventional commits. Feedback and contributions are managed via GitHub Issues. Notable expertise stems from AWS Hero contributions and established best practice resources.

Licensing & Compatibility

Licensed under Apache 2.0. Derivative works require attribution to "terraform-skill by Anton Babenko". Compatible with commercial use under the terms of the Apache 2.0 license.

Limitations & Caveats

This skill functions primarily as an AI assistant's knowledge base within Claude Code and requires the specified Terraform/OpenTofu versions. It guides decision-making rather than executing code directly.

Health Check
Last Commit

3 weeks ago

Responsiveness

Inactive

Pull Requests (30d)
2
Issues (30d)
1
Star History
449 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.