refactor-module
Refactors monolithic Terraform configurations into reusable modules with state migration and best practices.
Install
npx skills add https://github.com/hashicorp/agent-skills --skill refactor-moduleStats
| Total installs | 1,082 |
| Weekly installs | 1.1K |
| GitHub stars | 489 |
| First seen | Jan 26, 2026 |
| Source | @hashicorp/agent-skills |
Summary
- Analyzes existing code to identify refactoring candidates, groups resources by logical function, and assesses complexity before design
- Generates module interfaces with typed variables, validation rules, and descriptive outputs following HashiCorp best practices
- Provides state migration strategies using moved blocks (Terraform 1.1+) or manual terraform state mv commands to preserve existing state
- Includes testing frameworks, documentation templates, and common patterns for resource grouping, configuration layering, and module composition
- Identifies pitfalls like over-abstraction, tight coupling, and state migration errors with concrete examples and remediation guidance
Tags
Related skills
| Skill | Installs | vs refactor-module |
|---|---|---|
| senior-architect | 1,136 | +54 |
| deploy | 953 | -129 |
| monitoring-expert | 1,235 | +153 |
| asc-testflight-orchestration | 1,296 | +214 |
| sarif-parsing | 1,289 | +207 |
FAQ
- How many installs does refactor-module have?
- refactor-module has 1,082 total installs and 1.1K installs this week.
- Where is refactor-module hosted?
- refactor-module is published by @hashicorp/agent-skills at https://github.com/hashicorp/agent-skills.
- How many GitHub stars does refactor-module have?
- refactor-module has 489 GitHub stars.
- When was refactor-module first indexed?
- OrangeBot.AI first indexed refactor-module on Jan 26, 2026.
- How do I install refactor-module?
- Run: npx skills add https://github.com/hashicorp/agent-skills --skill refactor-module