Terraform Module Refactorer
Transforms monolithic Terraform configurations into reusable, maintainable modules following HashiCorp's design principles and community best practices.
This skill empowers Claude to systematically analyze and decompose large, complex Terraform files into a clean, modular architecture. It guides the agent through the entire refactoring lifecycle: identifying resource groupings, defining strict input/output contracts with validation, and implementing encapsulation strategies. Beyond code transformation, it handles the critical task of state management by generating migration plans using modern moved blocks or state commands, ensuring infrastructure stability while improving code reusability and maintainability.
Características Principales
01Integrated documentation generation following registry standards
02329 GitHub stars
03Support for modern Terraform testing frameworks and mock providers
04State migration planning using Terraform 1.1+ 'moved' blocks
05Standardized HCL module generation with typed variables and outputs
06Automated analysis of resource dependencies and configuration coupling
Casos de Uso
01Converting a single-file 'main.tf' into a multi-tier, environment-ready module library
02Reducing technical debt in legacy Terraform codebases without losing existing state
03Standardizing infrastructure patterns to prepare code for a Private Module Registry