/selamy-skills:terraform-module-layoutfrom selamy-skills
Use when creating, reviewing, or restructuring Terraform or OpenTofu modules. Enforces Google-recommended module file layout and cohesion-based module boundaries.
Ships in selamy-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Modules follow Google's canonical file layout. The structure keeps modules navigable, reviewable, and reusable; deviations are caught by automated lint.
| File | Purpose |
|---|---|
main.tf | Primary resources, data sources, and module calls |
variables.tf | Input variable declarations |
outputs.tf | Output declarations |
versions.tf | required_providers and required_version constraints |
README.md | Module documentation: purpose, inputs, outputs, and usage |
In accordance with Google's Terraform style guide, modules may split complex resource
configurations into logically grouped .tf files named [a-z0-9_]+\.tf:
network.tf, firewall.tf, iam.tf, dns.tf, storage.tf, compute.tflocals.tf for local value expressionsdata.tf for data source queries| File | Purpose |
|---|---|
providers.tf | Provider configuration blocks |
backend.tf | Backend configuration |
Reusable child modules never configure providers or backends directly. They declare
provider requirements in versions.tf and receive provider instances from the caller.
envs/, environments/)*.tfvars, *.tfvars.json)*.tfstate, *.tfstate.backup)Every module ships with:
README.md documenting purpose, inputs, outputs, and usage.examples/ with at least a minimal and a complete example (these double as
test fixtures).tests/ with *.tftest.hcl files exercising the module.Split into submodules based on subsystem cohesion (own lifecycle, independently reusable, clean interface), never on line count alone. Module boundaries cost plumbing, moved blocks, and state surgery. A cohesive 350-line module beats three anemic submodules. The layout constraint creates natural pressure to keep modules focused; the cohesion test decides when to cut.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub selamy-labs/agent-skills --plugin selamy-skills111 skills in this plugin
/adaptive-estimationUse when tracking a slowly-varying latent quantity from noisy measurements with quantifiable uncertainty — a drifting metric, capacity, latency trend, or confidence. Prefer a Kalman-style adaptive estimator over fixed moving averages or static thresholds./adaptive-loop-budgetingUse when an autonomous loop needs explicit limits on attempts, time, cost, tool calls, verification depth, or risk, and a clear stop, continue, yield, or escalate decision./adopt-and-deleteUse when adopting a shared module, library, chart, or service, or doing any consolidation, migration, or refactor that supersedes existing code. The change that adds the replacement must REMOVE what it replaced, in the same atomic change./adversarial-reviewUse before claiming a high-stakes artifact done, verified, or merged. Have an independent grader adversarially review it — prompted to refute and find reasons not to ship, not to bless — and iterate to an explicit ship-or-revise verdict./agent-drives-uiUse when an agent operates a UI on the user's behalf through conversation, navigating, filling forms, updating live views, with real-time bi-directional state sync. Activates on conversational app control, agent drives the front end, agentic UX, or choosing an agent-to-app protocol./agentic-coding-loopUse when implementing code from a spec through a bounded build-test-fix loop with explicit acceptance criteria, automated checks, live verification when needed, and clear stop conditions.