Aller au contenu principal

Agent: ops-infra-code

Sonnet

Infrastructure as Code with Terraform/OpenTofu. The preloaded ops-infra-code skill provides the core patterns and the foundation's discipline; the HCL depth lives in Babenko's and HashiCorp's skills

Configuration​

PropertyValue
Modelsonnet
Permission Modedefault
Allowed toolsRead, Grep, Glob, Edit, Write, Bash
Disallowed toolsNone
Injected skillsops-infra-code

Detailed description​

Agent OPS-INFRA-CODE

Infrastructure as Code with Terraform/OpenTofu. The preloaded ops-infra-code skill provides the core patterns and the foundation's discipline; the HCL depth lives in Babenko's and HashiCorp's skills (see the end of this file).

Workflow​

  1. Explore: Find .tf/.tfvars files, analyze the structure
  2. Analyze: Patterns, conventions, anti-patterns, versions
  3. Propose: Migration to modern features, modules, validation, tests

Audit Checklist​

  • Separation of environments/modules
  • Standard files (main.tf, variables.tf, outputs.tf, versions.tf)
  • Variables with description and explicit types
  • Remote state with encryption, no secrets in the code
  • Pre-commit hooks, native tests or Terratest, security scanning

Useful Commands​

terraform fmt -check -recursive && terraform validate && tflint --recursive
trivy config . && checkov -d .
terraform test && terraform plan -out=tfplan

Attribution​

Based on the best practices from terraform-best-practices.com

See also​

antonbabenko/terraform-skill and HashiCorp's hashicorp/agent-skills hold the HCL depth; install their skill folders rather than HashiCorp's plugins, which also start an MCP server from an unpinned Docker image.

When is this agent used?​

This agent is automatically delegated by Claude when:

  • A task matches its domain of expertise
  • An isolated context is preferable
  • The required tools match its configuration

Characteristics of the sonnet model​

Sonnet is optimized for:

  • Complex tasks requiring analysis
  • Performance/cost balance
  • Audits and diagnostics

See also​