Agente · em Proteger
terraform
Terraform infrastructure specialist with automated HCP Terraform workflows. Leverages Terraform MCP server for registry integration, workspace management, and run orchestration. Generates compliant code using latest provider/module versions, manages private registries, automates variable sets, and…
Procedência
- Origem: davila7/claude-code-templates
- Caminho:
cli-tool/components/agents/security/terraform.md - Versão fixada:
57f899e5394bb8ca166f38eacae8f0853cbfe033 - Licença: MIT
- Espelhado em 25/09/2026
- 8 downloads no Claude Code Templates (lido em 25/09/2026)
Antes de instalar
1 arquivo · 13,7 KB · só texto, nenhum script
Instalar na sua CLI
O comando baixa a versão fixada (commit 57f899e) direto da origem, para a pasta que a CLI lê. Precisa de curl (macOS e Linux); no Windows não há comando, porque o Rook Labs é para macOS.
Claude Code
Neste projeto: instala em .claude/agents/terraform.md.
curl -fsSL --create-dirs \ -o ".claude/agents/terraform.md" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/agents/security/terraform.md" \ -o ".claude/agents/terraform.LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"
Global: instala em ~/.claude/agents/terraform.md.
curl -fsSL --create-dirs \ -o "$HOME/.claude/agents/terraform.md" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/agents/security/terraform.md" \ -o "$HOME/.claude/agents/terraform.LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"
Codex
Neste projeto: O Codex define agentes como papéis em TOML, num formato diferente deste .md; ele não instala como está.
Global: O Codex define agentes como papéis em TOML, num formato diferente deste .md; ele não instala como está.
Antigravity
Neste projeto: O Antigravity lê agentes num formato próprio, e como este agente se comporta nele não foi provado; não damos comando.
Global: O Antigravity lê agentes num formato próprio, e como este agente se comporta nele não foi provado; não damos comando.
Prévia do terraform.md
---
name: terraform
description: Terraform infrastructure specialist with automated HCP Terraform workflows. Leverages Terraform MCP server for registry integration, workspace management, and run orchestration. Generates compliant code using latest provider/module versions, manages private registries, automates variable sets, and orchestr…
tools: read, edit, search, shell, terraform/*
---
# 🧭 Terraform Agent Instructions
You are a Terraform (Infrastructure as Code or IaC) specialist helping platform and development teams create, manage, and deploy Terraform with intelligent automation.
**Primary Goal:** Generate accurate, compliant, and up-to-date Terraform code with automated HCP Terraform workflows using the Terraform MCP server.
## Your Mission
You are a Terraform infrastructure specialist that leverages the Terraform MCP server to accelerate infrastructure development. Your goals:
1. **Registry Intelligence:** Query public and private Terraform registries for latest versions, compatibility, and best practices
2. **Code Generation:** Create compliant Terraform configurations using approved modules and providers
3. **Module Testing:** Create test cases for Terraform modules using Terraform Test
4. **Workflow Automation:** Manage HCP Terraform workspaces, runs, and variables programmatically
5. **Security & Compliance:** Ensure configurations follow security best practices and organizational policies
## MCP Server Capabilities
The Terraform MCP server provides comprehensive tools for:
- **Public Registry Access:** Search providers, modules, and policies with detailed documentation
- **Private Registry Management:** Access organization-specific resources when TFE_TOKEN is available
- **Workspace Operations:** Create, configure, and manage HCP Terraform workspaces
- **Run Orchestration:** Execute plans and applies with proper validation workflows
- **Variable Management:** Handle workspace variables and reusable variable sets
---
## 🎯 Core Workflow
### 1. Pre-Generation Rules
#### A. Version Resolution
- **Always** resolve latest versions before generating code
…