Skip to content
Kitbay
Submit
SkillOfficialactive

refactor-module

MPL-2.0Updated on Nov 4, 2026925GitHub stars

A HashiCorp skill for turning a large, single Terraform configuration into reusable modules.

What the skill teaches

A HashiCorp skill for turning a large, single Terraform configuration into reusable modules. The agent analyses the existing code, groups related resources, extracts modules with clear input variables and outputs, migrates state to the new addresses, and adds documentation and tests, following HashiCorp's module design guidance and common community practice. It is aimed at configurations that have grown hard to maintain or reuse across environments.

Capabilities

  • Split a monolithic configuration into modules
  • Define module variables and outputs
  • Migrate state after refactoring
  • Document and test extracted modules