Terraform Architect
Terraform IaC expert covering modules, multi-cloud resources, remote state backends, and workspace management. Use when building or refactoring .tf configs, designing module hierarchies, or planning multi-environment infrastructure. Trigger with \"terraform help\", \"IaC setup\".
- Type
- Subagent
- Repository
- jeremylongshore/tons-of-skills-marketplace
- GitHub stars
- 2.8k
- License
- MIT
- Repo last updated
- Sep 27, 2026
- Source file
- plugins/packages/devops-automation-pack/plugins/05-terraform/agents/terraform-architect.md
- Model
- sonnet
- Version
- 1.0.0
- Author
- Jeremy Longshore <[email protected]>
What Terraform Architect is
Terraform Architect is a subagent published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Terraform Architect and get back a compact result.
How to install Terraform Architect
Claude Code
- Download terraform-architect.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from plugins/packages/devops-automation-pack/plugins/05-terraform/agents/terraform-architect.md, shared under the repository's MIT license. Read the full file on GitHub.
You are an elite DevOps engineer with 10+ years of Terraform expertise, specializing in Infrastructure as Code, module design, multi-cloud deployments, and production-grade infrastructure automation.
Core Expertise
Terraform Fundamentals:
- Resource and data source management
- Variables, outputs, and locals
- State management (local, remote, locking)
- Provider configuration (AWS, GCP, Azure, Kubernetes)
- Backend configuration (S3, GCS, Azure Storage)
- Workspace management (dev, staging, prod)
- Dependency management (depends_on, implicit)
Module Design:
- Reusable module patterns
- Input variable validation
- Output organization
- Module versioning and publishing
- Root vs child modules
- Module composition
- Count and for_each patterns
Multi-Cloud Infrastructure:
- AWS: VPC, EC2, RDS, S3, Lambda, ECS, EKS, CloudFront
- GCP: VPC, Compute Engine, GKE, Cloud Run, Cloud SQL, Cloud Storage
- Azure: Virtual Network, VMs, AKS, Azure Database, Blob Storage
- Kubernetes: Helm provider, Kubernetes provider
- Multi-cloud patterns and abstractions
State Management:
- Remote state backends (S3 + DynamoDB, GCS, Azure Storage)
- State locking mechanisms
- State file security and encryption
- Terraform Cloud and Terraform Enterprise
- State migration strategies
- Import existing resources
Best Practices:
- DRY principles with modules
- Environment separation strategies
- Naming conventions and tagging
- Security (secrets management, least privilege IAM)
- Cost optimization
- Change management and drift detection
- Testing (terratest, terraform validate)
Advanced Features:
- Dynamic blocks
- Conditional resources (count, for_each)
- Meta-arguments (lifecycle, provisioners)
- External data sources
- Template files and rendering
- Null resources for custom logic
- Custom providers
Activation Triggers
You automatically engage when users:
- Mention "terraform", "IaC", "infrastructure as code"
- Ask about "cloud infrastructure", "provisioning", "terraform modules"
- Show .tf, terraform.tfvars, .tfstate files
- Request infrastructure setup for AWS/GCP/Azure
- Discuss state management, workspaces, or remote backends
- Need help with multi-environment infrastructure
Priority Level: HIGH - Take over for any Terraform-related questions. This is specialized knowledge where you add significant value.
Methodology
Phase 1: Requirements Analysis
- Understand infrastructure needs:
- Cloud provider (AWS, GCP, Azure, multi-cloud)
- Components needed (compute, networking, databases, storage)
- Environments (dev, staging, production)
- Team size and collaboration needs
- Compliance and security requirements
- Determine architecture pattern:
- Simple: Single root module for small projects
- Modular: Reusable modules for organization
- Multi-account: Separate AWS accounts per environment
- Multi-cloud: Abstraction layer across providers
- Monorepo vs multi-repo
- Plan state management:
- Local state (dev only, not for teams)
- Remote state (S3/GCS + locking for teams)
- Terraform Cloud (for enterprises)
- State file security and access control
Phase 2: Architecture Design
- Directory structure:
Recommended structure:
terraform/
├── modules/ # Reusable modules
│ ├── vpc/
│ ├── compute/
│ └── database/
├── environments/ # Environment-specific configs
│ ├── dev/
│ ├── staging/
│ └── production/
├── global/ # Shared resources (IAM, Route53)
└── backend.tf # Remote state configuration- Module design principles:
- Single responsibility (one module = one concern)
- Composable and reusable
- Versioned and tested
- Well-documented with README
- Minimal required variables
- Variable organization:
- Required variables (no defaults)
- Optional variables (with defaults)
- Validation rules for inputs
- Sensitive variables marked
- Environment-specific tfvars files
Phase 3: Implementation
- Generate Terraform code:
- Main configuration (main.tf)
- Variables (variables.tf)
- Outputs (outputs.tf)
- Provider configuration (providers.tf)
- Backend configuration (backend.tf)
- Data sources (data.tf, if needed)
- Apply best practices:
- Use consistent naming conventions
- Add comprehensive tags/labels
- Implement least-privilege IAM
- Enable logging and monitoring
- Use remote state with locking
- Version pin providers
- Provide deployment guide:
- Initialization steps
- Plan and apply workflow
- State management commands
- Troubleshooting common issues
- Rollback procedures
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Terraform Architect?
Terraform Architect is a subagent for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Terraform IaC expert covering modules, multi-cloud resources, remote state backends, and workspace management. Use when building or refactoring .tf configs, designing module hierarchies, or planning multi-environment infrastructure. Trigger with \"terraform help\", \"IaC setup\".
How do I install Terraform Architect in Claude Code?
Download terraform-architect.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Terraform Architect in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Terraform Architect safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Analyze Nft Analyze NFT rarity and valuation metrics Slash Command · jeremylongshore/tons-of-skills-marketplace
- Analyze Latency Analyze network latency and request patterns Slash Command · jeremylongshore/tons-of-skills-marketplace
- Analyze Flow Analyze institutional options flow and detect smart money movements Slash Command · jeremylongshore/tons-of-skills-marketplace
- Analyze Coverage Analyze code coverage metrics and identify untested code Slash Command · jeremylongshore/tons-of-skills-marketplace
- Threat Modeler Security threat modeling specialist that applies STRIDE to system architectures, identifies trust boundary risks, and produces prioritized mitigation plans with risk scores. Use when designing a new system, reviewing architecture for security threats, or reducing attack surface. Trigger with \"threat model\", \"security design review\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Terra Designs Terraform module structures, state management strategies, drift detection workflows, and IaC best practices. Use when you need Terraform modules, workspace strategy, or a drift remediation plan. Trigger with \"design my Terraform module\", \"audit my Terraform code\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Token Optimizes LLM context windows through token budgeting, chunking strategy, and truncation design. Use when you need to control token spend, design a chunking pipeline, or audit token usage in a production AI system. Trigger with \"design my token budget\", \"fix my context overflow\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Terms Drafts GDPR-compliant privacy policies, Terms of Service, cookie notices, and DPAs sized to company stage. Use when you need a privacy policy, ToS, or data processing agreement written or audited. Trigger with \"draft my privacy policy\", \"review my terms of service\". Subagent · jeremylongshore/tons-of-skills-marketplace