infrastructure-as-code

infrastructure-as-code is a skill for Claude Code, Codex from arjunprabhulal/devops-skills. It costs 111 tokens per session (1,463 once invoked), scanned A, original, MIT.

A method for managing servers, cloud resources, and other infrastructure with version-controlled files instead of manual console changes or SSH commands. Terraform, CloudFormation, Pulumi, and Bicep are examples of tools used with this method.

In plain words
What is it for?
Use it to review Terraform plans, manage state, detect configuration drift, keep environments consistent, and add safeguards around irreversible infrastructure changes.
Why use it?
It makes the intended system visible, reviewable, and reproducible from the repository. It also helps reveal accidental changes, unsafe replacements, and differences between environments before they are applied.

Skill for Claude CodeCodex

Part of the devops-skills plugin — 56 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/arjunprabhulal/devops-skills/infrastructure-as-code
Any agent
npx skills add arjunprabhulal/devops-skills --skill infrastructure-as-code
Clone the repo
git clone --depth 1 https://github.com/arjunprabhulal/devops-skills

Made for: Claude Code, Codex.

Or install devops-skills, the plugin that ships this one along with the rest of its 56 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for infrastructure-as-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/arjunprabhulal/devops-skills/infrastructure-as-code.svg)](https://agentmods.dev/skills/arjunprabhulal/devops-skills/infrastructure-as-code)
Your own site
<a href="https://agentmods.dev/skills/arjunprabhulal/devops-skills/infrastructure-as-code"><img src="https://agentmods.dev/badge/skills/arjunprabhulal/devops-skills/infrastructure-as-code.svg" alt="Measured on agentmods" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,463 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00111 $0.01463
Opus 5 $0.00056 $0.00732
Sonnet 5 $0.00022 $0.00293
Haiku 4.5 $0.00011 $0.00146

Measured 3d ago against content hash 9b7fabf20f29, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

infrastructure-as-code scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/iac/infrastructure-as-code/SKILL.md · 123 lines

How it starts

The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Infrastructure as Code

The value of IaC isn't that it's faster than clicking through a console — it's that the configuration file is the single source of truth, and anyone can read it to know what the system actually is without logging into anything. The moment someone makes a change out of band, that promise breaks, and every plan after it lies a little.

Terraform is the default lens here because it's the common ground across clouds, but the discipline applies equally to CloudFormation, Pulumi, or Bicep.

If the state of the system can't be reconstructed by reading the repo, it isn't infrastructure as code — it's infrastructure with extra steps.

For Terraform specifics — plan symbols, state operations, backends, forced replacement, and drift detection — read references/terraform.md.

1. Read every plan before you apply it

terraform plan exists so nobody has to trust their own diff — read the actual output, every time, even for changes that feel trivial. The plan is the one place a typo becomes visible before it becomes an incident: a renamed resource that Terraform reads as destroy-then-create, a provider default that shifted, a variable that resolved to something unexpected.

  • Look for destroy and replace, not just create — those are the operations with a blast radius, and they hide easily in a long plan.
  • Treat "no changes" as a result to verify, not skip — if you expected a change and got none, something upstream is wrong.
  • Never apply a plan you didn't personally read, even in CI — a human or a policy gate (see policy-as-code) should see the diff before it lands.

Done when: the plan output for every production apply is attached to its approval record, so what was approved can be compared against what was applied.

2. Protect state like it's a production database, because it is

Terraform state is the map between your configuration and real-world resource IDs. Lose it, and you haven't lost a file — you've lost the ability to manage anything without manual reconciliation. Corrupt it with a concurrent write, and two applies can fight over the same resource.

Read the full file on GitHub · 123 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 123 lines · 111 tokens per session scan A 9b7fabf20f29

Subscribe to this mod's changes

infrastructure-as-code is a skill published in the GitHub repository arjunprabhulal/devops-skills (2 stars, last pushed 9d ago), licensed MIT. It adds 111 tokens to every session and 1,463 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

google-mobile-ads-android-migrate-to-next-gen

Migrates Android applications from the old, legacy Google Mobile Ads (GMA) SDK (com.google.android.gms:play-services-ads) to the new GMA Next-Gen SDK (com.google.android.libraries.ads.mobile.sdk:ads-mobile-sdk). Provides comprehensive mapping tables for imports, classes, and method signatures to help determine…

google/skills · 105 tokens

agent-platform-deploy

Deploy open models or custom weights from Model Garden to Agent Platform endpoints, check the status of an in-progress deployment operation, or clean up resources by undeploying models and deleting endpoints. Use when asked to actively deploy a model, list the Model Garden CATALOG of available models, check if a…

google/skills · 193 tokens

cloud-run-basics

Manages Cloud Run services, jobs, and worker pools. Use when you need to deploy applications responding to HTTP requests (services), run event-triggered or scheduled tasks (jobs), or handle always-on pull-based background processing (worker pools).

google/skills · 53 tokens

gcloud

Provides safety-critical validation, guardrails, and data reduction for gcloud CLI operations across Google Cloud Platform (GCP) services and infrastructure. Use when planning, generating, constructing, proposing, describing, or executing any gcloud CLI commands - including when answering questions about gcloud…

google/skills · 81 tokens

cloud-monitoring-list-time-series-request

Generates valid Cloud Monitoring ListTimeSeries requests and aggregation specifications from metric descriptors and resource parameters. Use when asked to create, generate, format, or build ListTimeSeries requests, JSON payloads, filter expressions, or aligner/reducer aggregations for Cloud Monitoring metrics and…

google/skills · 74 tokens

gemini-agents-api

Manages custom Agent resources on Gemini Enterprise Agent Platform. Use when the user wants to programmatically create, configure, list, update, or delete stateful, server-managed Agent resources (including mounting files, skills, and tools) before executing conversations.

google/skills · 56 tokens