Skip to content

Packs

Infrastructure as code

When to use it
Terraform you can hand to another team and plans you can trust before apply: reusable modules with secure defaults, and a plan review that catches destroys, data loss, access widening and drift.
Covers
Design the system (1), Run and recover the service (1)
Where you decide
No gated loop of its own; the skills run one at a time.
Size
7 skills · 0 loops
20 to 45 minutes a session
npx skilldrop-cli install --pack infra-as-code

Installs 7 skills, including core.

Other ways to install

The pack's loops too, each as an invokable skill:

npx skilldrop-cli install --loop --pack infra-as-code

In Claude Code, as a plugin (after /plugin marketplace add sananthanarayan/skilldrop):

/plugin install infra-as-code@skilldrop

Into Cursor, Kiro or another IDE:

npx skilldrop-cli install --pack infra-as-code --ide cursor

Start here: Write a module, then review its plan before the first apply

Paste this into your agent:

Write a Terraform module for an S3 bucket that stores our access logs for a year. Several teams will call it. Then, once I've run terraform plan on the example, review the plan before I apply.
Before you start
  • A Terraform project or a described piece of infrastructure
  • Terraform installed locally if you want to validate and plan the result
How to tell it worked
terraform-module writes versions.tf, variables.tf, main.tf, outputs.tf, a basic example and a README with inputs and outputs tables, with encryption on and public access off by default. terraform-plan-review returns SAFE TO APPLY, APPLY WITH CARE or DO NOT APPLY with every destroy and replace named.
If nothing happens
If terraform validate fails, paste the error back and ask terraform-module to fix that file. If terraform-plan-review does not activate, ask for it by name ("use terraform-plan-review") and give it the output of terraform show -json tfplan.

A typical session

When: You need new infrastructure as a reusable Terraform module, or you have a plan in front of you and want to know whether it is safe to apply. About 20 to 45 minutes.

You bring:

  1. You
    Describe the need, the cloud and the callers.
    You get
    A module with versions.tf, typed and validated variables, secure defaults, a tags variable, a basic example, a README, and the commands to check it.
  2. You
    Run terraform plan, save it with terraform show -json, and hand it over with the intent of the change.
    You get
    Counts, every destroy and replace with its cause, stateful and access changes, drift, out-of-scope changes and a verdict.
    You decide
    Apply, apply after the listed checks, or fix the code and re-plan.
  3. You
    Optionally, run it on the module README before you publish the module to other teams.
    You get
    Severity-tagged findings on gaps and unclear inputs, with a fix for each.

You end with: A reusable module with safe defaults, and a reviewed plan with a clear apply decision.

Compare Infrastructure as code with another pack

Skills in this pack (2)

Included from core (5)