loom-kustomize

loom-kustomize is a skill for Claude Code, Codex from cosmix/loom. It costs 15 tokens per session (6,401 once invoked), scanned A, original, MIT.

A guide to Kustomize, a Kubernetes tool for managing shared configuration and environment-specific changes without templates.

In plain words
What is it for?
It is for creating bases and overlays, patching Kubernetes resources, generating ConfigMaps and Secrets, changing images or replicas, and supporting GitOps deployments.
Why use it?
It helps keep configurations organized across environments while highlighting that rendered output should be compared after structural changes.

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/cosmix/loom/loom-kustomize
Any agent
npx skills add cosmix/loom --skill loom-kustomize
Clone the repo
git clone --depth 1 https://github.com/cosmix/loom

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 loom-kustomize

README.md
[![agentmods](https://agentmods.dev/badge/skills/cosmix/loom/loom-kustomize.svg)](https://agentmods.dev/skills/cosmix/loom/loom-kustomize)
Your own site
<a href="https://agentmods.dev/skills/cosmix/loom/loom-kustomize"><img src="https://agentmods.dev/badge/skills/cosmix/loom/loom-kustomize.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,401 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.00015 $0.06401
Opus 5 $0.00008 $0.03200
Sonnet 5 $0.00003 $0.01280
Haiku 4.5 $0.00002 $0.00640

Measured yesterday against content hash 239e9651ba55, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

loom-kustomize 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 yesterday.

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/loom-kustomize/SKILL.md · 469 lines

How it starts

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

Kustomize Skill

Overview

Template-free, declarative Kubernetes config management via merging. kubectl apply -k <dir> and kustomize build <dir> render an overlay. Failure modes here are overwhelmingly silent (wrong output, exit 0) — always diff the kustomize build output before/after any structural change.

Core Concepts

Term Meaning
Base Dir with kustomization.yaml + shared resources; never modified in place.
Overlay Dir referencing a base under resources:, applying env-specific patches/generators.
Patch Partial resource that modifies existing ones — strategic merge (default) or JSON 6902.
Component Reusable opt-in feature bundle (kind: Component); runs against the parent's accumulated set.
Generator Builds ConfigMaps/Secrets from literals/files/envs, appending a content-hash name suffix.
Transformer Cross-cutting mutation: namespace, namePrefix/nameSuffix, labels, images, replicas.
Replacement Copies a field value from a source resource into target field paths (successor to vars).

Directory Layout

k8s/
├── base/                    # shared, env-agnostic (kustomization.yaml + resources)
├── overlays/
│   ├── dev/                 # low resources, debug
│   ├── staging/             # + monitoring component
│   └── prod/                # HA, security, digest-pinned images
└── components/              # opt-in features: monitoring, ingress, debug-tools

Keep the hierarchy shallow (base → overlay, not base → overlay1 → overlay2). Paths in resources: are relative to the kustomization.yaml's own directory.

Quick Reference

Task Command
Build kustomize build k8s/overlays/prod
Preview diff kubectl diff -k k8s/overlays/prod
Apply kubectl apply -k k8s/overlays/prod
Validate kustomize build k8s/overlays/prod | kubectl apply --dry-run=client -f -
Migrate deprecated fields kustomize edit fix (idempotent; run per dir; see Idioms)
Set image tag kustomize edit set image myapp=registry/myapp:v1.2.3
Add ConfigMap kustomize edit add configmap app-config --from-literal=KEY=value

Read the full file on GitHub · 469 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. yesterday Changed · -38 tokens per session 239e9651ba55
  2. 5d ago First seen · 469 lines · 53 tokens per session scan A d491dc8549f4

Subscribe to this mod's changes

loom-kustomize is a skill published in the GitHub repository cosmix/loom (54 stars, last pushed today), licensed MIT. It adds 15 tokens to every session and 6,401 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-08-30.

Related

Other skills, from other repositories

wrangler

Cloudflare Workers CLI for deploying, developing, and managing Workers, KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and Secrets Store. Load before running wrangler commands to ensure correct syntax and best practices. Biases towards retrieval from Cloudflare docs over…

cloudflare/skills · 75 tokens

managing-astro-local-env

Manage local Airflow environment with Astro CLI (Docker and standalone modes). Use when the user wants to start, stop, or restart Airflow, view logs, query the Airflow API, troubleshoot, or fix environment issues. For project setup, see setting-up-astro-project.

astronomer/agents · 63 tokens

aws-cloudformation-ecs

Provides AWS CloudFormation patterns for ECS clusters, task definitions, services, container definitions, auto scaling, blue/green deployments, CodeDeploy integration, ALB integration, service discovery, monitoring, logging, template structure, parameters, outputs, and cross-stack references. Use when creating ECS…

giuseppe-trisciuoglio/developer-kit · 101 tokens

aws-cloudformation-task-ecs-deploy-gh

Provides patterns to deploy ECS tasks and services with GitHub Actions CI/CD. Use when building Docker images, pushing to ECR, updating ECS task definitions, deploying ECS services, integrating with CloudFormation stacks, configuring AWS OIDC authentication for GitHub Actions, and implementing production-ready…

giuseppe-trisciuoglio/developer-kit · 106 tokens

deploy-to-kubernetes

Deploy applications to Kubernetes clusters using kubectl manifests for Deployments, Services, ConfigMaps, Secrets, and Ingress resources. Implement health checks, resource limits, rolling updates, and Helm chart packaging for production deployments. Use when deploying new applications to EKS, GKE, AKS, or self-hosted…

pjt222/agent-almanac · 101 tokens

configure-log-aggregation

Set up centralized log aggregation with Loki and Promtail (or ELK stack), including log parsing, label extraction, retention policies, and integration with metrics for correlation. Use when consolidating logs from multiple services into a searchable system, replacing local log files with centralized queryable storage…

pjt222/agent-almanac · 86 tokens