Transform monolithic Terraform configurations into reusable, maintainable modules following HashiCorp's module design principles and community best practices.
Install with Tessl CLI
npx tessl i github:hashicorp/agent-skills --skill refactor-module80
Quality
41%
Does it follow best practices?
Impact
84%
1.05xAverage score across 10 eval scenarios
Optimize this skill with Tessl
npx tessl skill review --optimize ./terraform/module-generation/skills/refactor-module/SKILL.mdState migration with moved blocks
Uses moved blocks
100%
100%
Module-prefixed target addresses
100%
100%
For-each key mapping
100%
100%
Count-indexed mapping
100%
100%
Module directory structure and variable design
Module directory path
100%
100%
Separate variable file
100%
100%
Separate outputs file
100%
100%
Typed object variable
0%
0%
Validation block present
0%
0%
All variables have descriptions
100%
100%
Resource consolidation and parameterization patterns
for_each on subnets
0%
0%
Tag merge pattern
100%
100%
cidrsubnet for CIDRs
100%
100%
Conditional count on NAT
100%
100%
Composition patterns and encapsulation boundaries
Multiple focused modules
100%
100%
Inter-module wiring via root
100%
100%
Monitoring stays outside
100%
100%
try() on conditional output
0%
0%
Output map for collections
0%
100%
Module documentation and testing
README exists in module
100%
100%
README has Usage section with HCL
100%
100%
README has Inputs table
100%
100%
README has Outputs table
100%
100%
Test file uses .tftest.hcl
75%
100%
Test has run and assert blocks
100%
100%
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.