terraform-k8s

terraform-k8s is a skill for Claude Code, Codex from kouroshez/coding-os. It costs 202 tokens per session (2,309 once invoked), scanned A, original, Apache-2.0.

A guide for managing cloud infrastructure and Kubernetes workloads as configuration files. Kubernetes is a system for running and managing containers across computers.

In plain words
What is it for?
Use it to write Terraform or OpenTofu modules, manage infrastructure state, create Kubernetes resources, configure health checks and scaling, and handle settings, secrets, and access rules.
Why use it?
It helps keep infrastructure changes in version control and reduces unsafe or unclear changes to shared environments.

Skill for Claude CodeCodex

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

Good fit Use it to write Terraform or OpenTofu modules, manage infrastructure state, create Kubernetes resources, configure health checks and scaling, and handle settings, secrets, and access rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kouroshez/coding-os/terraform-k8s
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.

Any agent
npx skills add kouroshez/coding-os --skill terraform-k8s
Clone the repo
git clone --depth 1 https://github.com/kouroshez/coding-os

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 terraform-k8s

README.md
[![agentmods](https://agentmods.dev/badge/skills/kouroshez/coding-os/terraform-k8s/github.svg)](https://agentmods.dev/skills/kouroshez/coding-os/terraform-k8s)
Your own site
<a href="https://agentmods.dev/skills/kouroshez/coding-os/terraform-k8s"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/terraform-k8s/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 terraform-k8s

Your own site · 80×15
<a href="https://agentmods.dev/skills/kouroshez/coding-os/terraform-k8s"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/terraform-k8s.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 202 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,309 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.00202 $0.02309
Opus 5 $0.00101 $0.01154
Sonnet 5 $0.00040 $0.00462
Haiku 4.5 $0.00020 $0.00231

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

Security

Grade A, and why

terraform-k8s 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 6d 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.

src/core/skills/terraform-k8s/SKILL.md · 134 lines

How it starts

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

Terraform & Kubernetes — The Declarative Substrate

A practical guide to provisioning cloud infrastructure with Terraform/OpenTofu and defining workloads as Kubernetes objects, such that the system state lives in version control and a fresh environment is one apply away. Stack-agnostic across cloud providers; recipes target AWS/GCP/Azure providers and vanilla K8s + Helm/Kustomize.

When to Use This Skill

  • Writing or reviewing a Terraform/OpenTofu module — inputs, outputs, resource graph.
  • Structuring remote state, workspaces/environments, and state locking before a team touches it.
  • Reading a terraform plan that wants to destroy/recreate something and deciding if that is safe.
  • Authoring K8s manifests (Deployment, Service, Ingress) or a Helm chart / Kustomize overlay.
  • Sizing resource requests/limits, wiring liveness/readiness/startup probes, configuring an HPA.
  • Managing config and secrets (ConfigMap, Secret, external secret operators) and RBAC.

Skip when: the question is how releases ship (pipeline stages, rollout strategy, versioning, rollback) — that is deployment-cicd. This skill is the infrastructure those releases land on.

Terraform — State Is the Whole Game

Terraform's model: a .tf description of desired state, a state file recording what actually exists, and plan/apply reconciling the two. Everything hard about Terraform is about state.

  • Remote, locked state from day one. Never a local terraform.tfstate for shared infra — two applys race and corrupt it. Use an S3/GCS backend with DynamoDB/native locking. The state file contains secrets in plaintext → encrypt at rest, restrict access.
  • plan before every apply, read every line. Especially -/+ destroy and then create: that recreates a resource (new DB, new IP, downtime). A force-new on an attribute you thought was mutable is the classic 2 a.m. outage.
  • Never edit the state file by hand. Use terraform state mv / import / rm. Hand-editing JSON state desyncs it from reality.
  • Pin provider and module versions. ~> 5.0, not unconstrained — an unpinned provider upgrades mid-apply and changes resource behavior under you.
  • Drift is real. Someone clicks in the console; plan now wants to "fix" it. Detect drift in CI (plan on a schedule, alert on non-empty diff); decide console-vs-code ownership per resource.

Read the full file on GitHub · 134 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. 6d ago First seen · 134 lines · 202 tokens per session scan A adbe9ee424f5

Subscribe to this mod's changes

terraform-k8s is a skill published in the GitHub repository kouroshez/coding-os (6 stars, last pushed 2d ago), licensed Apache-2.0. It adds 202 tokens to every session and 2,309 once invoked, about $0.0010 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

deploy-gen

Generate deployment configurations (Docker, Kubernetes) for the current project.

jmagly/aiwg · 15 tokens

kubernetes

Deploy, manage, and debug Kubernetes in production — Deployments, Services, Gateway API, Service Mesh (Istio/Linkerd/Cilium), eBPF observability (Cilium Hubble), security hardening (Pod Security Standards, OPA/Kyverno, seccomp, runtime security with Falco/Tetragon), Helm, HPA, PDB, topology spread, and debugging. Use…

EliasOulkadi/shokunin · 144 tokens

ring:creating-helm-charts

Creating Helm charts to Lerian conventions via ring:helm: standardized chart structure, full env-var coverage from .env.example, security defaults (runAsNonRoot, readOnlyRootFilesystem), ClusterIP-only services, and health probes; validates helm lint and template render. Use when creating, modifying, or reviewing a…

LerianStudio/ring · 92 tokens

troubleshoot-ssi

Diagnose and fix Single Step Instrumentation (SSI) issues on Kubernetes — SSI automatically instruments applications for APM without code changes. Only use if the agent and SSI are already configured but traces are missing or instrumentation is not working.

neverinfamous/mysql-mcp · 52 tokens

infrastructure-validation

Use when working with Terraform (.tf, .tfvars), Ansible (playbooks, roles, inventory), Docker (Dockerfile, docker-compose.yml), Kubernetes (manifests, Helm charts), CloudFormation, or any infrastructure-as-code files. Also use when running terraform plan/apply, building Docker images, writing Helm templates, or when…

lgbarn/shipyard · 98 tokens

staging-deploy

Build, push, migrate, and deploy to staging environment with health check verification. Use when deploying a completed phase to staging.

srnichols/plan-forge · 30 tokens