infrastructure-as-code

infrastructure-as-code is a skill for Claude Code, Codex from ashermahonin/agentic-skills. It costs 55 tokens per session (456 once invoked), scanned A, original, MIT.

Um método para conhecer um projeto de programação antes de começar a alterá-lo ou migrá-lo.

In plain words
What is it for?
Serve para identificar a tecnologia usada, encontrar os comandos de teste e compilação, entender a estrutura do projeto e definir o próximo passo.
Why use it?
Evita decisões baseadas em suposições sobre linguagens, ferramentas, testes, implantação e documentação do projeto.

Skill for Claude CodeCodex

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/ashermahonin/agentic-skills/infrastructure-as-code
Any agent
npx skills add ashermahonin/agentic-skills --skill infrastructure-as-code
Clone the repo
git clone --depth 1 https://github.com/ashermahonin/agentic-skills

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/ashermahonin/agentic-skills/infrastructure-as-code.svg)](https://agentmods.dev/skills/ashermahonin/agentic-skills/infrastructure-as-code)
Your own site
<a href="https://agentmods.dev/skills/ashermahonin/agentic-skills/infrastructure-as-code"><img src="https://agentmods.dev/badge/skills/ashermahonin/agentic-skills/infrastructure-as-code.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 456 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.00055 $0.00456
Opus 5 $0.00028 $0.00228
Sonnet 5 $0.00011 $0.00091
Haiku 4.5 $0.00006 $0.00046

Measured 4d ago against content hash 27044fb85e14, 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 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.

agentic/skills/infrastructure-as-code/SKILL.md · 49 lines

What it actually says

Infrastructure As Code

Purpose

You change infrastructure through code with respect for state, drift, blast radius, and human review. The plan matters as much as the code.

Operational context

  1. Read references/workflow.md.
  2. Identify tool/version, providers, backend, locking, environment model, existing state, import/migration context, and policy constraints.
  3. Verify current provider/resource/module/backend documentation before writing IaC.

Safe change sequence

  1. Classify the change: new resource, modification, import, migration, refactor, drift correction, or policy update.
  2. Identify state impact, dependency impact, recreation risk, and destructive changes.
  3. Design module boundaries, variables, outputs, provider aliases, naming, tagging, and state separation.
  4. Implement with version constraints, minimal abstractions, safe lifecycle usage, and migration notes.
  5. Validate with format, validate, plan, policy checks, and explicit review of destructive actions.

Safety rules

  • Use Context7 MCP for current cloud, Kubernetes, IaC, CI/CD, container, observability, security, network, API, CLI, provider, and configuration documentation whenever the task depends on external technology behavior.

Change record

Provide IaC context, documentation validation status, resource/module changes, validation commands, plan review notes, risks, rollback/state notes, and assumptions.

Verification

  • Do not hide destructive diffs.
  • Do not use IaC without a state and locking strategy.
  • Pin providers and explain version constraints.
  • Keep sensitive outputs minimal.
  • Prefer for_each over count when stable identity matters.

Handoff

For cloud-specific resources, add cloud-operations. For Kubernetes resources managed by IaC, add kubernetes-operations. For secrets, IAM, or policy, add security-secrets.

References

  • references/workflow.md for IaC design, implementation, and validation checklist.
Files

What ships with it

2 files 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. 4d ago First seen · 49 lines · 55 tokens per session scan A 27044fb85e14

Subscribe to this mod's changes

infrastructure-as-code is a skill published in the GitHub repository ashermahonin/agentic-skills (10 stars, last pushed 11d ago), licensed MIT. It adds 55 tokens to every session and 456 once invoked, about $0.0003 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

agent-platform-tuning

Agent Platform Model Tuning. Use when you need to fine-tune open models or Gemini models using Agent Platform infrastructure. Don't use for model training outside Agent Platform, model deployment to endpoints (use agent-platform-deploy), or managing serving endpoints (use agent-platform-endpoint-management).

google/skills · 64 tokens

application-design-center-design-deploy

Processes GCP infrastructure design and deployment workflows within Application Design Center (ADC). Use when: - Designing GCP infrastructure with Terraform. - Validating local HCL. - Performing best-practice plan scans. - Importing templates to Application Design Center (ADC). - Deploying templates. - Troubleshooting…

google/skills · 94 tokens

interactive-login

How to complete browser/interactive logins (aws / gh / glab / gcloud). The platform backgrounds the login poller so it survives the human's browser round-trip — and when that does NOT work.

yc-software/qm · 46 tokens

azure-mgmt-botservice-dotnet

Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".

microsoft/skills · 78 tokens

yandex-cloud

Read Yandex Cloud through its REST API. Applies to any question about VMs, metrics, logs, audit events, Kubernetes, managed databases, serverless, networking or any other Yandex Cloud resource. Never shell out to the yc CLI — it is not how this agent reaches Yandex Cloud and is usually not installed.

Tracer-Cloud/opensre · 71 tokens

cloud-architect

Designs cloud architectures, creates migration plans, generates cost optimization recommendations, and produces disaster recovery strategies across AWS, Azure, and GCP. Use when designing cloud architectures, planning migrations, or optimizing multi-cloud deployments. Invoke for Well-Architected Framework, cost…

Jeffallan/claude-skills · 71 tokens