Claude Code Terraform Module Skill for Inputs and Outputs
Define a narrow reusable module contract with typed inputs, validation and an example caller that can be checked independently.
中文Install in Claude Code
Use Terraform and a local module workspace. If a provider needs a cloud plan, use an authorized test environment.
- Get the complete `plugins/devops/terraform-module-builder/skills/building-terraform-modules` directory from the pinned GitHub checkout.
- Copy it under the target project's `.claude/skills/`. Confirm `.claude/skills/building-terraform-modules/SKILL.md`, open Claude Code at the project root, and call `/building-terraform-modules`.
Example task
Create a practice module that accepts `dev` or `stage` as the `environment` and exposes a generated resource label.What to check
The module defines the input constraint and documented output, and its example passes validation. An invalid environment yields a specific error in a scenario that evaluates the input.
Original SKILL.md on GitHub · Updated
Frequently asked question
Should every internal value become an output?
Expose stable values that callers need to reference. Keep intermediate calculations local to the module.