CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

refactor-module

tessl i github:hashicorp/agent-skills --skill refactor-module

Transform monolithic Terraform configurations into reusable, maintainable modules following HashiCorp's module design principles and community best practices.

68%

Average

Evaluation84%

1.05x

Agent success when using this skill

SKILL.md
Review
Evals

Assessment results

0%

State migration with moved blocks

Criteria
Without context
With context

Uses moved blocks

100%

100%

Module-prefixed target addresses

100%

100%

For-each key mapping

100%

100%

Count-indexed mapping

100%

100%

0%

Module directory structure and variable design

Criteria
Without context
With context

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%

0%

Resource consolidation and parameterization patterns

Criteria
Without context
With context

for_each on subnets

0%

0%

Tag merge pattern

100%

100%

cidrsubnet for CIDRs

100%

100%

Conditional count on NAT

100%

100%

15%

Composition patterns and encapsulation boundaries

Criteria
Without context
With context

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%

5%

Module documentation and testing

Criteria
Without context
With context

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%

Is this your skill?

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.