Claude Skill
antonbabenko/terraform-skill
用于 Terraform 和 OpenTofu 项目的 Claude Skill。获取测试、模块开发、CI/CD 实施和生产基础设施模式方面的协助。
概览
仓库信息
安装这个 Skill
npx skills add https://github.com/antonbabenko/terraform-skillRegistry 信息
npx skills add https://github.com/antonbabenko/terraform-skillgit clone https://github.com/antonbabenko/terraform-skill.git ~/.cursor/skills/terraform-skillgit clone https://github.com/antonbabenko/terraform-skill.git ~/.copilot/skills/terraform-skillgit clone https://github.com/antonbabenko/terraform-skill.git ~/.agents/skills/terraform-skillgit clone https://github.com/antonbabenko/terraform-skill.git ~/.kiro/skills/terraform-skill
项目简介
一个专为 Terraform 和 OpenTofu 基础设施即代码项目设计的 Claude Skill。它提供测试方法、模块开发、CI/CD 流水线集成以及生产环境模式方面的专业知识。
The Claude Agent Skill for Terraform and OpenTofu - testing, modules, CI/CD, and production patterns
要点
- Terraform 和 OpenTofu 专业知识
- IaC 测试方法
- 模块开发指导
- CI/CD 流水线集成
- 生产环境模式
- 基础设施即代码最佳实践
使用场景
- 开发和测试 Terraform 模块
- 为基础设施变更实施 CI/CD
- 应用生产就绪的 IaC 模式
- 学习基础设施即代码最佳实践
- 迁移或处理 OpenTofu 项目
- 自动化基础设施部署工作流
README 摘要
# Terraform & OpenTofu Skill for AI Agents [](https://agentskills.io) [](https://www.terraform.io/) [](https://opentofu.org/) [](LICENSE) 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. ## What this skill provides **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** - Trivy and Checkov integration - Policy-as-code patterns - Compliance scanning workflows **Quick reference** - Decision flowcharts - Common patterns (DO vs DON'T) - Cheat sheets ## Installation Installed through one Claude Code marketplace, `antonbabenko/agent-plugins` (terraform-skill is listed there as an ext