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
About
- Publisher
- HashiCorp
- Tool
- Terraform
Install
- Run this to add it to Any client:
npx skills add hashicorp/agent-skills/plugins/terraform/skills/refactor-module
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Terraform | |
| Publisher | HashiCorp | source |
| Official status | Officialpublished in HashiCorp's own GitHub organisation; contributions restricted to HashiCorp-internal contributors | source |
| Status | active | source |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | MPL-2.0 | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 4, 2026925 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository |
Sources
- Skill file (SKILL.md)github.com/hashicorp/agent-skillsNov 10, 2026
- README (README.md)github.com/hashicorp/agent-skillsNov 12, 2026
- Licence file (LICENSE)github.com/hashicorp/agent-skills · Backs: LicenceNov 12, 2026
- GitHub repositorygithub.com/hashicorp/agent-skills · Backs: Official status, Publisher, Activity, LicenceNov 11, 2026
- Folder in the repository (refactor-module)github.com/hashicorp/agent-skills · Backs: Includes scriptsNov 10, 2026
- File in the repository (SKILLS.md)github.com/hashicorp/agent-skills · Backs: StatusNov 12, 2026