Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Terraform Module Design Review

    by Saizul Amin

    1

    This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice.

    $8

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Terraform Module Design Review

    Terraform Module Design Review

    Example session with this skill installed

    Run the Terraform Module Design Review skill on my project and give me a prioritised list of what to fix, with exact changes.

    • Read your context and instructions
    • Compiled the terraform module design

    Here is what the Terraform Module Design Review skill produced.

    Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.

    Output

    HIGH     -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/module-bad/main.tf:1: backend/cloud block in a reusable module: only root modules configure state  [module.backend]
    HIGH     -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/module-bad/main.tf:9: provider "aws" configured inside a reusable module: callers cannot use count/for_each/depends_on on it and cannot remove it cleanly; declare configuration_aliases in required_providers and let the root module pass providers  [module.provider_block]
    MEDIUM   -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/module-bad: no README.md: document purpose, usage example, inputs and outputs (terraform-docs can generate them)  [docs.readme]
    MEDIUM   -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/module-bad/main.tf:18: aws_s3_bucket.assets: bucket is a literal; two instances of the module will collide. Derive it from a variable (e.g. "${var.name}-...")  [module.hardcoded_name]
    MEDIUM   -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/module-bad/main.tf:29: availability_zone = "eu-west-1a" is hard-coded: take it from a variable or the provider  [module.hardcoded_region]
    MEDIUM   -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/module-bad/main.tf:30: iam_instance_profile: hard-coded AWS account id; use data.aws_caller_identity or a variable  [hardcoded_account_id]
    MEDIUM   -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/module-bad/main.tf:33: output web_ip uses aws_instance.web[0], which fails when count = 0; use one(aws_instance.web[*].<attr>) or try()  [output.count_index]
    LOW      -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/module-bad: no variables.tf: keep the standard file layout  [layout.file]
    LOW      -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/module-bad: no outputs.tf: keep the standard file layout  [layout.file]
    LOW      -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/module-bad: no versions.tf (terraform block with required_providers)  [layout.versions]
    LOW      -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/module-bad: no CHANGELOG.md: callers need to see breaking changes before bumping the version  [docs.changelog]
    LOW      -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/module-bad: no examples/ directory with a runnable example  [layout.examples]
    LOW      -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/module-bad/terraform.tfvars: tfvars file in a reusable module: callers never read it; put defaults in variables  [module.tfvars]
    INFO     -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/module-bad: no tests/*.tftest.hcl: add `terraform test` cases (plan-only runs are cheap)  [tests.missing]
    INFO     -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/terraform-iac-skills/tests/fixtures/tf/module-bad/main.tf:20: aws_s3_bucket.assets: prevent_destroy cannot be overridden by callers (lifecycle arguments must be literals)  [module.prevent_destroy]
    
    15 finding(s)
    

    What you do next

    1. Fix the highest-severity items first.
    2. Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
    3. Keep the skill installed and re-run it whenever the project changes.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Design, refactor, document and version reusable Terraform/OpenTofu modules - when to make a module (and when not), boundaries and composition, the standard layout (main.tf, variables.tf, outputs.tf, versions.tf, README, examples/, tests/*.tftest.hcl), providers passed from the root instead of configured inside, for_each over count, safe naming so a module can be used twice, semantic versioning with tags, CHANGELOG and moved blocks for non-breaking refactors, and terraform test. Includes an audit script that flags provider or backend blocks inside modules, hard-coded names, regions and account IDs, [0] on count resources in outputs, missing README/inputs/outputs docs, examples, tests and changelog.

    Who it's for

    Use when the user asks to create or review a Terraform module, split a large root module, "should this be a module?", publish a module to a registry or git, version modules, or write module tests.

    What's inside

    • Tested, offline Python script(s): module_audit.py (deterministic results, standard library only unless noted)
    • Reference guides: versioning.md, testing.md, design.md, layout.md
    • Step-by-step agent instructions in SKILL.md covering: When to use; When not to use; Workflow

    Why it's worth it

    Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.

    Works with every major AI agent

    Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.

    Requirements

    • Python 3.8+ for the bundled scripts
    • No API keys, no account, runs locally

    Open source: saizul/terraform-iac-skills on GitHub (MIT licence, by Saizul Amin).

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    Design, refactor, document and version reusable Terraform/OpenTofu modules - when to make a module (and when not), boundaries and composition, the standard layout (main.tf, variables.tf, outputs.tf, versions.tf, README, examples/, tests/*.tftest.hcl), providers passed from the root instead of con...

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use Terraform Module Design Review on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.