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

Quality

Content

77%

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The content is highly actionable with a clear, validated workflow and strong executable examples, but it is long and monolithic with some redundant explanation and no progressive disclosure into reference files. It is a solid, above-average skill body.

Suggestions

Move the full module documentation template and the Testing reference into separate reference files (e.g. MODULE-DOCS.md, TESTING.md) and link to them from the body to improve progressive disclosure.

Trim the Testing definitions (Test File, Run Block, Assert Block, Mock Provider) and the repeated Overview/Capability Statement to reduce token overhead.

DimensionReasoningScore

Conciseness

The ~530-line body is mostly actionable, but the 'Overview'/'Capability Statement' repeat the description and the Testing section defines Test File, Run Block, Assert Block, and Mock Provider concepts Claude already knows; it could be tightened.

2 / 3

Actionability

It provides extensive executable HCL with before/after examples, concrete variables/outputs, moved blocks, and copy-paste 'terraform state mv' commands, all of which are directly executable.

3 / 3

Workflow Clarity

The six numbered phases (Analysis, Module Design, Code Transformation, State Migration, Documentation, Testing) are clearly sequenced, and the destructive state-migration step includes an explicit validation checkpoint ('terraform plan' to verify no changes before applying).

3 / 3

Progressive Disclosure

There are no bundle files and the body is a single ~530-line document; it is well sectioned, but full module examples, the testing reference, and documentation templates that could live in separate files are inlined.

2 / 3

Total

10

/

12

Passed

Description

50%

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description is specific to a clear niche and uses appropriate third-person voice, but it describes only one action and omits any 'Use when...' trigger guidance. It is adequate but not exemplary.

Suggestions

Add an explicit trigger clause, e.g. 'Use when refactoring monolithic Terraform configs into reusable modules, or when the user mentions modularizing Terraform.'

List multiple concrete actions (e.g. 'analyze dependencies, extract modules, migrate state, add validation and tests') to lift specificity.

Include natural user phrasings like 'refactor Terraform' and 'modularize' to improve trigger-term coverage.

DimensionReasoningScore

Specificity

The phrase 'Transform monolithic Terraform configurations into reusable, maintainable modules' names the domain and one concrete action, but it does not list multiple specific actions, so it is not comprehensive.

2 / 3

Completeness

It clearly states what the skill does but provides no 'Use when...' clause or equivalent trigger guidance, so 'when' is missing and completeness is capped at 2.

2 / 3

Trigger Term Quality

'Terraform', 'modules', and 'configurations' are relevant keywords a user might say, but common variations such as 'refactor' or 'modularize' are missing and 'monolithic' is somewhat technical.

2 / 3

Distinctiveness Conflict Risk

The Terraform-module-refactoring niche is fairly specific, but it could overlap with related Terraform code-generation or module-spec skills, and there are no distinct explicit triggers.

2 / 3

Total

8

/

12

Passed

Validation

87%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation14 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

SKILL.md is long (539 lines); consider splitting into references/ and linking

Warning

relative_links

Relative link issues: 1 missing

Warning

Total

14

/

16

Passed

Repository
hashicorp/agent-skills
Reviewed

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.