ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 4/5

Terraform & Infrastructure as Code Production Engineering

Complete Terraform & IaC production methodology — project structure, module design, state management, multi-environment deployment, security hardening, testing, CI/CD pipelines, cost optimization, and drift management. Use when designing infrastructure, writing Terraform, reviewing IaC, or managing cloud environments.

Why use this skill?

Master production-grade Terraform with our comprehensive 14-phase IaC methodology. Optimize your infrastructure, security, and CI/CD pipelines today.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/1kalin/afrexai-terraform-production
Or

What This Skill Does

This skill provides a high-fidelity, production-grade framework for managing Infrastructure as Code (IaC) using Terraform. It encapsulates 14 phases of engineering excellence, ranging from foundational health checks to advanced CI/CD integration and drift management. The skill acts as a senior DevOps consultant, enforcing strict architectural rules such as state isolation, modularity, and immutable infrastructure practices. By using this, you ensure that your cloud environments are reproducible, secure, and easy to audit.

Installation

To integrate this skill into your agent, run the following command in your terminal or agent console: clawhub install openclaw/skills/skills/1kalin/afrexai-terraform-production. Ensure your environment has the necessary Terraform CLI installed to allow the agent to validate plans and configurations.

Use Cases

This skill is designed for:

  1. Greenfield Infrastructure: Scaffolding a new, scalable environment from scratch using the recommended multi-environment structure.
  2. Legacy Refactoring: Analyzing existing "spaghetti" Terraform code and proposing a migration path to a modular, directory-based layout.
  3. Security Hardening: Auditing existing environments against the 8-signal triage checklist to identify state exposure, missing encryption, or unpinned provider vulnerabilities.
  4. CI/CD Implementation: Designing professional deployment pipelines that incorporate mandatory plan reviews and scheduled drift detection.

Example Prompts

  1. "Perform a health check on my infrastructure. I have a main.tf and a variables.tf, but no clear separation between dev and prod environments. What should I change?"
  2. "I am struggling with cross-module dependencies. How can I structure my networking and compute modules so the compute module properly references VPC subnets without creating circular dependencies?"
  3. "Design a CI/CD pipeline strategy for my AWS infrastructure that ensures no manual apply happens without a peer review of the Terraform plan output."

Tips & Limitations

  • Tip: Always prioritize the Phase 1 Triage; if your state management is compromised, no amount of architectural cleanup will keep your infrastructure safe.
  • Tip: Treat modules like products; include a README and version documentation to ensure other team members can adopt them without friction.
  • Limitation: The skill provides architectural and code-generation guidance. It does not possess direct credentials to your cloud provider unless specifically configured via environment variables or agent secrets management. Always verify generated code in a sandbox environment before applying it to production.
  • Security: Never export secrets in variable outputs. Always use specialized secret stores like AWS Secrets Manager or HashiCorp Vault.

Metadata

Author@1kalin
Stars1524
Views0
Updated2026-02-26
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-1kalin-afrexai-terraform-production": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#terraform#devops#infrastructure-as-code#cloud-engineering
Safety Score: 4/5

Flags: file-read, code-execution