Skip to main content
Back to registry

refactor-module

hashicorp/agent-skills

This skill guides AI agents in transforming monolithic Terraform configurations into reusable, maintainable modules following HashiCorp's module design principles and community best practices.

Installs812
Install command
npx skills add https://github.com/hashicorp/agent-skills --skill refactor-module
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
This skill guides AI agents in transforming monolithic Terraform configurations into reusable, maintainable modules following HashiCorp's module design principles and community best practices. The agent will analyze existing Terraform code and systematically refactor it into well-structured modules with: Use skill terraform-test Test File : A .tftest.hcl or .tftest.json file containing test configuration and run blocks that validate your Terraform configuration. Test Block : Optional configuration block that defines test-wide settings (available since Terraform 1.6.0). Run Block : Defines a single test scenario with optional variables, provider configurations, and assertions. Each test file requires at least one run block. Assert Block : Contains conditions that must evaluate to true for the test to pass. Failed assertions cause the test to fail. Mock Provider : Simulates provider behavior without creating real infrastructure (available since Terraform 1.7.0).

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does refactor-module do?

This skill guides AI agents in transforming monolithic Terraform configurations into reusable, maintainable modules following HashiCorp's module design principles and community best practices.

Is refactor-module good?

refactor-module does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does refactor-module work with?

refactor-module currently lists compatibility with codex, gemini-cli, opencode, kimi-cli, amp, github-copilot.

What are alternatives to refactor-module?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install refactor-module?

npx skills add https://github.com/hashicorp/agent-skills --skill refactor-module

Related skills

More from hashicorp/agent-skills

Related skills

Alternatives in Software Engineering