Turn monolithic Terraform into reusable modules.
infrastructure refactoring
Refactors existing Terraform configurations into reusable modules with tests and a state-migration path.
When to use it
Use when transforming a monolithic Terraform configuration into reusable, maintainable modules.
Give it an existing Terraform project, a module name, and a state-preservation choice; it refactors the configuration in the project.
What you provide
This skill
real infrastructure
Creates real test infrastructure
current Terraform state
Moves Terraform state addresses
The Terraform CLI must be available to inspect current state for migration planning.
The workflow directs the agent to use terraform-test for the testing step.