One-click install
npx skills add https://github.com/kaiohenricunha/dotbabel --skill terraform-specialist-kaiohenricunha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-specialist
Source: https://github.com/kaiohenricunha/dotbabel/tree/main/plugins/dotbabel/templates/claude/skills/terraform-specialist
Command: npx skills add https://github.com/kaiohenricunha/dotbabel --skill terraform-specialist-kaiohenricunha

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill eliminates the risk of unstructured Terraform troubleshooting, inconsistent module design, unmanaged state drift, and unsafe migration workflows that can lead to infrastructure outages, data loss, or costly deployment rollbacks.

Core Features & Use Cases

  • Structured 5-phase investigation: Systematically gather context, diagnose root causes, design fixes, prioritize recommendations, and verify changes for Terraform workspaces, modules, and state.
  • Module design optimization: Identify coupling issues, enforce best practices for variable/output surfaces, and resolve common count vs for_each bugs.
  • State management & migration: Fix state drift, handle safe resource imports, and execute state moves for module refactors without destroying live infrastructure.
  • Use Case: Use this when your Terraform plan shows unexpected resource replacements, you need to audit a module's public API for a team, or you are migrating existing cloud infrastructure into Terraform management without downtime.

Quick Start

Use the terraform-specialist skill to audit the Terraform module at ./infra/network and resolve any state drift issues in the default workspace.

Frequently Asked Questions about terraform-specialist

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix unexpected resource replacements in a Terraform plan?

Fix unexpected Terraform plan replacements by diagnosing state drift or module coupling issues through a structured investigation that gathers context, identifies root causes, and applies safe state remediation without destroying live infrastructure.

What is the best way to import existing cloud infrastructure into Terraform without downtime?

Importing existing cloud infrastructure into Terraform without downtime requires safe resource import workflows and state move operations that map live resources into state files, avoiding data loss or costly deployment rollbacks during migration.

How do I resolve state drift in a Terraform workspace?

Resolving Terraform state drift involves auditing the workspace, diagnosing root causes of configuration divergence, and executing state migration or drift remediation to align state with infrastructure without triggering resource destruction.

Why does my Terraform module have count vs for_each bugs?

Terraform module count vs for_each bugs stem from improper iteration design and module coupling, requiring module design optimization to enforce best practices for variable and output surfaces to prevent deployment failures.

Can I use Terraform to audit a module's public API for my team?

Auditing a Terraform module's public API for a team involves applying structured investigation to analyze module coupling, enforce variable and output surface best practices, and prioritize recommendations for architecture improvements.

How do I resolve provider version conflicts in Terraform?

Resolving Terraform provider version conflicts requires diagnosing dependency issues through a structured investigation that verifies changes and prioritizes recommendations to ensure infrastructure deployments succeed without rollback.