CtrlK
BlogDocsLog inGet started
Tessl Logo

refactor-module

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

65

0.98x
Quality

63%

Does it follow best practices?

Impact

79%

0.98x

Average score across 2 eval scenarios

SecuritybySnyk

Passed

No known issues

Fix and improve this skill with Tessl

tessl review fix ./terraform/module-generation/skills/refactor-module/SKILL.md
SKILL.md
Quality
Evals
Security

Evaluation results

76%

-6%

Prepare Terraform State Migration and Root Module Composition

Terraform state migration with moved blocks and decoupled module composition

Criteria
Baseline
With context

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%

82%

4%

Refactor Legacy VPC Configuration into a Reusable Module

Refactor monolithic VPC config into reusable Terraform module

Criteria
Baseline
With context

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%

Repository
hashicorp/agent-skills
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

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.