Transform monolithic Terraform configurations into reusable, maintainable modules following HashiCorp's module design principles and community best practices.
65
63%
Does it follow best practices?
Impact
79%
0.98xAverage score across 2 eval scenarios
Passed
No known issues
Fix and improve this skill with Tessl
tessl review fix ./terraform/module-generation/skills/refactor-module/SKILL.mdTerraform state migration with moved blocks and decoupled module composition
moved blocks present
100%
100%
VPC resource mapped
100%
100%
IGW resource mapped
100%
100%
Security groups mapped
100%
100%
Subnet resources mapped
100%
100%
No terraform state mv
100%
100%
Module sources versioned
0%
0%
No direct module coupling
100%
100%
VPC module single responsibility
100%
100%
Plan step in migration plan
100%
50%
Show/verify step
85%
57%
Non-production first
0%
0%
No-changes condition
100%
100%
Refactor monolithic VPC config into reusable Terraform module
for_each with toset()
0%
0%
count conditional gateway
100%
100%
try() for IGW output
50%
100%
merge() for tags
100%
100%
Typed object variables
100%
100%
Variable descriptions
100%
100%
CIDR validation rule
0%
0%
Output descriptions
100%
100%
README usage example
100%
100%
README inputs table
100%
100%
README outputs table
100%
100%
README requirements
100%
100%
Single responsibility
100%
100%
No map(map(any))
100%
100%
8c6573a
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.