infrastructure-as-code

infrastructure-as-code is a skill for Claude Code, Codex from fabioc-aloha/Alex_Skill_Mall. It costs 12 tokens per session (5,737 once invoked), scanned A, original, MIT.

A guide to defining and managing cloud infrastructure with code instead of configuring it manually in a cloud console. It covers tools such as Terraform, Bicep, Pulumi, and CloudFormation.

In plain words
What is it for?
Use it to design infrastructure modules, manage infrastructure state, test infrastructure code, and set up GitOps workflows.
Why use it?
It helps keep infrastructure repeatable, reviewable, versioned, and consistent across environments, reducing configuration drift and undocumented changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is source = "../../modules/app-service".

Good fit Use it to design infrastructure modules, manage infrastructure state, test infrastructure code, and set up GitOps workflows.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/fabioc-aloha/Alex_Skill_Mall
agentmods
npx agentmods add skills/fabioc-aloha/alex_skill_mall/infrastructure-as-code

Made for: Claude Code, Codex.

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/fabioc-aloha/alex_skill_mall/infrastructure-as-code.svg)](https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/infrastructure-as-code)
Your own site
<a href="https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/infrastructure-as-code"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/infrastructure-as-code.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,737 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00012 $0.05737
Opus 5 $0.00006 $0.02868
Sonnet 5 $0.00002 $0.01147
Haiku 4.5 $0.00001 $0.00574

Measured 4d ago against content hash d4a282066022, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 4d 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.

plugins/cloud-infrastructure/infrastructure-as-code/skills/infrastructure-as-code/SKILL.md · 851 lines

How it starts

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

Infrastructure as Code Skill

Domain: DevOps & Cloud Engineering Inheritance: inheritable Version: 1.0.0 Last Updated: 2026-02-01


Overview

Comprehensive patterns for defining, provisioning, and managing cloud infrastructure through declarative code. Covers major IaC tools (Terraform, Bicep, Pulumi, CloudFormation), best practices for modularity, state management, testing, and GitOps workflows.


IaC Fundamentals

Why Infrastructure as Code?

Manual Infrastructure          Infrastructure as Code
┌─────────────────────┐       ┌─────────────────────┐
│  Click in Console   │       │  Write Code         │
│  Document Steps     │       │  Version Control    │
│  Hope It's Repeated │       │  Review & Approve   │
│  Drift Over Time    │       │  Automated Deploy   │
│  Unclear State      │       │  Consistent State   │
└─────────────────────┘       └─────────────────────┘

Key Benefits

Benefit Description
Repeatability Same code = same infrastructure, every time
Version Control Track changes, rollback, audit history
Collaboration Code review, PRs, shared ownership
Documentation Code IS the documentation
Testing Validate before deploy
Speed Provision environments in minutes

Declarative vs Imperative

Approach Description Tools
Declarative Describe desired end state Terraform, Bicep, CloudFormation
Imperative Describe steps to reach state Scripts, Ansible, Pulumi (optional)

Prefer declarative — let the tool figure out how to reach the desired state.


Tool Comparison

Tool Provider Language State Best For
Terraform HashiCorp HCL Remote/Local Multi-cloud, mature ecosystem
OpenTofu Linux Foundation HCL Remote/Local OSS Terraform fork (BSL-free), drop-in replacement
Bicep Microsoft Bicep DSL Azure-managed Azure-native, simple syntax
Pulumi Pulumi TS/Python/Go/C# Managed/Self Developers who prefer real languages
CloudFormation AWS YAML/JSON AWS-managed AWS-only, deep integration
ARM Templates Microsoft JSON Azure-managed Legacy Azure (prefer Bicep)
CDK AWS TS/Python/Java AWS-managed Developers on AWS

Read the full file on GitHub · 851 lines

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. 4d ago First seen · 851 lines · 12 tokens per session scan A d4a282066022

Subscribe to this mod's changes

infrastructure-as-code is a skill published in the GitHub repository fabioc-aloha/Alex_Skill_Mall (4 stars, last pushed yesterday), licensed MIT. It adds 12 tokens to every session and 5,737 once invoked, about $0.0001 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-09-03.

Related

Other skills, from other repositories

azure-governance-discovery

ANALYSIS SKILL — Azure Policy discovery: effective assignments (incl. MG-inherited), definitions/exemptions, effect classification, emits governance-constraints JSON. WHEN: 'Azure policy discovery', 'effective policy assignments', 'governance constraints', '04g-Governance Phase 1', 'refresh governance JSON'. DO NOT…

jonathan-vella/apex-accelerator · 86 tokens

azure-defaults

UTILITY SKILL — Applies canonical Azure defaults through an IaC workflow covering governance precedence, CAF naming, AVM-first composition, unique suffixes, cost monitoring, VNet planning, and lifecycle checks. WHEN: "Azure naming convention", "CAF naming", "resource tags", "AVM module", "security baseline", "region…

jonathan-vella/apex-accelerator · 86 tokens

azure-storage

UTILITY SKILL — Azure Storage Services: Blob, File Shares, Queue, Table, and Data Lake. Object storage, SMB shares, async messaging, NoSQL key-value, big-data analytics. Access tiers + lifecycle management. WHEN: "blob storage", "file shares", "queue storage", "table storage", "data lake", "access tiers", "lifecycle…

jonathan-vella/apex-accelerator · 105 tokens

azure-rbac

ANALYSIS SKILL — Find the right Azure RBAC role for an identity with least-privilege access; generate CLI, Bicep, and Terraform code to assign it. WHEN: "what role should I assign", "least privilege role", "RBAC role for", "role for managed identity", "custom role definition", "assign role to identity". DO NOT USE…

jonathan-vella/apex-accelerator · 98 tokens

ai-infrastructure-litellm

LiteLLM proxy server setup, TypeScript client patterns via OpenAI SDK, model routing, fallbacks, load balancing, spend tracking, virtual keys, and production deployment.

agents-inc/skills · 41 tokens

desktop-packaging-tauri

Tauri 2.x bundling, code signing, auto-updater, platform installers, CI/CD.

agents-inc/skills · 26 tokens