terraform-infrastructure
它能做什么
这个工具可以借助特定代码,帮你整理和创建云端的计算基础设施(比如服务器和网络)。它让你更轻松、更安全地管理这些基础设施,尤其是在需要多个版本或多套环境的时候。
适用场景
- ✓当你需要在云端创建服务器和网络时。
- ✓当你想创建可复用的基础设施“组件”时。
- ✓当你需要管理基础设施的不同版本(例如测试环境和生产环境)时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/terraform-infrastructure/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“用 Terraform 为一个新网站搭建基础设施。”
每周 5 个新技能,1 分钟读完。
工作原理
你编写代码,描述基础设施应该是什么样子。工具读取这些代码,然后创建或更新云资源,使其与你的描述保持一致。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Terraform Infrastructure Workflow
Overview
Specialized workflow for infrastructure as code using Terraform including resource provisioning, module creation, state management, and multi-environment deployments.
When to Use This Workflow
Use this workflow when:
- Provisioning cloud infrastructure
- Creating Terraform modules
- Managing multi-environment infra
- Implementing IaC best practices
- Setting up Terraform workflows
Workflow Phases
Phase 1: Terraform Setup
Skills to Invoke
terraform-skill- Terraform basicsterraform-specialist- Advanced Terraform
Actions
- Initialize Terraform
- Configure backend
- Set up providers
- Configure variables
- Create outputs
Copy-Paste Prompts
Use @terraform-skill to set up Terraform project
Phase 2: Resource Provisioning
Skills to Invoke
terraform-module-library- Terraform modulescloud-architect- Cloud architecture
Actions
- Design infrastructure
- Create resource definitions
- Configure networking
- Set up compute
- Add storage
Copy-Paste Prompts
Use @terraform-module-library to provision cloud resources
Phase 3: Module Creation
Skills to Invoke
terraform-module-library- Module creation
Actions
- Design module interface
- Create module structure
- Define variables/outputs
- Add documentation
- Test module
Copy-Paste Prompts
Use @terraform-module-library to create reusable Terraform module
Phase 4: State Management
Skills to Invoke
terraform-specialist- State management
Actions
- Configure remote backend
- Set up state locking
- Implement workspaces
- Configure state access
- Set up backup
Copy-Paste Prompts
Use @terraform-specialist to configure Terraform state
Phase 5: Multi-Environment
Skills to Invoke
terraform-specialist- Multi-environment
Actions
- Design environment structure
- Create environment configs
- Set up variable files
- Configure isolation
- Test deployments
Copy-Paste Prompts
Use @terraform-specialist to set up multi-environment Terraform
Phase 6: CI/CD Integration
Skills to Invoke
cicd-automation-workflow-automate- CI/CDgithub-actions-templates- GitHub Actions
Actions
- Create CI pipeline
- Configure plan/apply
- Set up approvals
- Add validation
- Test pipeline
Copy-Paste Prompts
Use @cicd-automation-workflow-automate to create Terraform CI/CD
Phase 7: Security
Skills to Invoke
secrets-management- Secrets managementterraform-specialist- Security
Actions
- Configure secrets
- Set up encryption
- Implement policies
- Add compliance
- Audit access
Copy-Paste Prompts
Use @secrets-management to secure Terraform secrets
Quality Gates
- Resources provisioned
- Modules working
- State configured
- Multi-env tested
- CI/CD working
- Security verified
Related Workflow Bundles
cloud-devops- Cloud/DevOpskubernetes-deployment- Kubernetesaws-infrastructure- AWS specific
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
常见问题
什么是“基础设施即代码”?
这是一种通过机器可读的定义文件来管理和配置 IT 基础设施的做法,而不是手动配置或使用交互式工具。
什么是 Terraform?
Terraform 是一款流行的“基础设施即代码”工具,让你能够安全、高效地描述并部署云端基础设施。
什么是“模块”?
模块是可在不同项目或环境中复用的 Terraform 资源集合,有助于保持一致性并减少代码重复。
详情
作者的原始描述
Terraform infrastructure as code workflow for provisioning cloud resources, creating reusable modules, and managing infrastructure at scale.
热度
- GitHub 星标
- 48k
- 排名
- #5963
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。