refactor-module

refactor-module

Popular

Transform monolithic Terraform configurations into reusable, maintainable modules following HashiCorp's module design principles and community best practices.

763estrelas
114forks
Atualizado 15/07/2026
A tradução solicitada ainda não está pronta. Exibindo o original (inglês).
SKILL.md
somente leitura
name
refactor-module
description

Transform monolithic Terraform configurations into reusable, maintainable modules following HashiCorp's module design principles and community best practices.

Skill: Refactor Module

Overview

This skill guides AI agents in transforming monolithic Terraform configurations into reusable, maintainable modules following HashiCorp's module design principles and community best practices.

Capability Statement

The agent will analyze existing Terraform code and systematically refactor it into well-structured modules with:

  • Clear interface contracts (variables and outputs)

  • Proper encapsulation and abstraction

  • Versioning and documentation

  • Testing frameworks

  • Migration path for existing state

Prerequisites

  • Existing Terraform configuration to refactor

  • Understanding of resource dependencies

  • Access to current state file (for migration planning)

  • Knowledge of module registry patterns