Sponsor Suno AI Music arrow_forward
Subagent

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
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026
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

  1. Download terraform-architect.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. 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

  1. 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.
  2. 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

  1. 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
  1. 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
  1. 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

  1. 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
  1. Module design principles:
  • Single responsibility (one module = one concern)
  • Composable and reusable
  • Versioned and tested
  • Well-documented with README
  • Minimal required variables
  1. Variable organization:
  • Required variables (no defaults)
  • Optional variables (with defaults)
  • Validation rules for inputs
  • Sensitive variables marked
  • Environment-specific tfvars files

Phase 3: Implementation

  1. 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)
  1. 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
  1. 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

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.