ops-infra-code

ops-infra-code is a skill for Claude Code from christopherlouet/claude-base. It costs 71 tokens per session (1,428 once invoked), scanned B, original, MIT.

A guide to managing infrastructure as code with Terraform or OpenTofu. Infrastructure as code means defining servers and cloud resources in versioned configuration files.

In plain words
What is it for?
Use it to create modules, configure state backends, set up infrastructure tests, structure environments, and connect changes to CI/CD.
Why use it?
It helps teams build repeatable environments, review infrastructure changes, and organise settings across development, staging, and production.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ln -s ~/dev/vendor-skills/terraform-skill/skills/terraform-skill ./.claude/skills/terraform-skill.

Good fit Use it to create modules, configure state backends, set up infrastructure tests, structure environments, and connect changes to CI/CD.

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/christopherlouet/claude-base
agentmods
npx agentmods add skills/christopherlouet/claude-base/ops-infra-code

Made for: Claude Code.

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 ops-infra-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/christopherlouet/claude-base/ops-infra-code/github.svg)](https://agentmods.dev/skills/christopherlouet/claude-base/ops-infra-code)
Your own site
<a href="https://agentmods.dev/skills/christopherlouet/claude-base/ops-infra-code"><img src="https://agentmods.dev/badge/skills/christopherlouet/claude-base/ops-infra-code/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ops-infra-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/christopherlouet/claude-base/ops-infra-code"><img src="https://agentmods.dev/badge/skills/christopherlouet/claude-base/ops-infra-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,428 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00071 $0.01428
Opus 5.5 $0.00028 $0.00571
Sonnet 5.5 $0.00014 $0.00286
Haiku 4.5 $0.00007 $0.00143

Measured 17d ago against content hash 6c4a6b2ecb33, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

ops-infra-code scanned grade B with 2 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 17d 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.

Downloads and executes remote codemediumSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

HashiCorp's skills are Terraform-only; for OpenTofu, rely on Babenko's. Its security reference installs Trivy with an unpinned `curl … | sh`: prefer a pinned release or a package manager. For Pulumi, see [`pulumi/agent-s

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

HashiCorp's skills are Terraform-only; for OpenTofu, rely on Babenko's. Its security reference installs Trivy with an unpinned `curl … | sh`: prefer a pinned release or a package manager. For Pulumi, see [`pulumi/agent-s
.claude/skills/ops-infra-code/SKILL.md · 63 lines

How it starts

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

Infrastructure as Code (pointer)

This skill used to be an excerpt of Anton Babenko's terraform-skill. The upstream is now a strict superset (state management, CI/CD workflows, terraform-ls, OpenTofu-specific guidance, a failure-mode diagnosis workflow), and HashiCorp publishes its own Terraform skills. Install them; this file keeps the foundation's discipline and the core patterns below.

Delegate to the vendor skills

Skill Publisher Covers Pin
antonbabenko/terraform-skill Anton Babenko (community, Apache-2.0) Terraform and OpenTofu: modules, testing strategy, state, CI/CD, security scans, version management v1.17.1
hashicorp/agent-skills terraform/* HashiCorp (MPL-2.0) Official style guide, terraform test, module refactoring, Stacks, search/import, policy; Packer image builders v1.0.0
# Babenko — the depth, Terraform and OpenTofu (pinned release)
git clone --depth 1 --branch v1.17.1 https://github.com/antonbabenko/terraform-skill ~/dev/vendor-skills/terraform-skill
ln -s ~/dev/vendor-skills/terraform-skill/skills/terraform-skill ./.claude/skills/terraform-skill

# HashiCorp — the skill folders you need, not the plugins (pinned release)
git clone --depth 1 --branch v1.0.0 https://github.com/hashicorp/agent-skills ~/dev/vendor-skills/hashicorp
ln -s ~/dev/vendor-skills/hashicorp/terraform/code-generation/skills/terraform-style-guide ./.claude/skills/terraform-style-guide
ln -s ~/dev/vendor-skills/hashicorp/terraform/code-generation/skills/terraform-test ./.claude/skills/terraform-test

HashiCorp's Claude plugins (terraform-code-generation, -module-generation, -policy-code) also register an MCP server that runs the unpinned hashicorp/terraform-mcp-server Docker image with your TFE_TOKEN: install the skill folders unless you want that server.

HashiCorp's skills are Terraform-only; for OpenTofu, rely on Babenko's. Its security reference installs Trivy with an unpinned curl … | sh: prefer a pinned release or a package manager. For Pulumi, see pulumi/agent-skills.

Read the full file on GitHub · 63 lines

Files

What ships with it

5 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. 17d ago Changed · -227 lines · +38 tokens per session scan A → B 6c4a6b2ecb33
  2. 23d ago Changed · -2 lines 51a2557ba7bf
  3. 24d ago Changed · -6 lines d067fe2680de
  4. 25d ago Changed · -1 lines 080867de991a
  5. 1mo ago First seen · 299 lines · 33 tokens per session scan A 4badbb75661a

Subscribe to this mod's changes

ops-infra-code is a skill published in the GitHub repository christopherlouet/claude-base (5 stars, last pushed 3d ago), licensed MIT. It adds 71 tokens to every session and 1,428 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 2 findings (downloads and executes remote code, makes network calls). 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

devops-cloud

DevOps, cloud infrastructure, and platform engineering. Use when working with AWS, GCP, Azure, Kubernetes, Terraform, CI/CD pipelines, or infrastructure as code.

travisjneuman/.claude · 38 tokens

agent-mobile-release-manager

Specialist subagent: App store submissions, mobile CI/CD, ASO, code signing, and beta distribution specialist. Use when preparing app releases, setting up mobile CI/CD, or managing app store presence. Trigger phrases: app store, Play Store, TestFlight, release, code signing, provisioning profile, Fastlane, ASO, beta…

travisjneuman/.claude · 83 tokens

mobile-cicd

Fastlane, GitHub Actions for mobile, code signing (iOS provisioning, Android keystores), beta distribution (TestFlight, Firebase App Distribution), and app store submissions. Use when setting up mobile build pipelines, automating releases, or managing signing.

travisjneuman/.claude · 57 tokens

agent-devsecops-engineer

Specialist subagent: CI/CD security, SAST/DAST pipelines, supply chain security, container scanning, and security automation specialist. Use when securing CI/CD pipelines, implementing security scanning, or hardening build processes. Trigger phrases: DevSecOps, SAST, DAST, supply chain security, container scanning…

travisjneuman/.claude · 89 tokens

ci-cd-pipeline-builder

Tier: POWERFUL Category: Engineering Domain: DevOps / Automation.

nariatrip191/my-claude-skills · 11 tokens

deployment-pipeline-design

Design multi-stage CI/CD pipelines with approval gates, security checks, and deployment orchestration. Use this skill when designing zero-downtime deployment pipelines, implementing canary rollout strategies, setting up multi-environment promotion workflows, or debugging failed deployment gates in CI/CD.

wshobson/agents · 58 tokens