docker-k8s

docker-k8s is a skill for Claude Code from cass-2003/local-workflow-skill. It costs 54 tokens per session (2,778 once invoked), scanned A, original, MIT.

A guide to packaging applications in Docker containers and deploying them with Kubernetes, a system that runs and coordinates containers across servers.

In plain words
What is it for?
Use it to write Dockerfiles and Compose files, create Kubernetes manifests or Helm charts, inspect logs and networks, and scan images or clusters.
Why use it?
It helps standardize builds, troubleshoot deployments, manage resources, and check common container and Kubernetes security risks.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is COPY src/ ./src/.

Good fit Use it to write Dockerfiles and Compose files, create Kubernetes manifests or Helm charts, inspect logs and networks, and scan images or clusters.

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/cass-2003/local-workflow-skill
agentmods
npx agentmods add skills/cass-2003/local-workflow-skill/docker-k8s

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/docker-k8s/github.svg)](https://agentmods.dev/skills/cass-2003/local-workflow-skill/docker-k8s)
Your own site
<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/docker-k8s"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/docker-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 docker-k8s

Your own site · 80×15
<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/docker-k8s"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/docker-k8s.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,778 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00054 $0.02778
Opus 5.5 $0.00022 $0.01111
Sonnet 5.5 $0.00011 $0.00556
Haiku 4.5 $0.00005 $0.00278

Measured 3mo ago against content hash 42255006a921, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docker-k8s scanned grade A with 1 finding 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 3mo 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.

Makes network callslowCapability

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

HEALTHCHECK --interval=30s --timeout=3s CMD curl -f http://localhost:8000/health || exit 1
skills/cloud-infra/codex/docker-k8s/SKILL.md · 367 lines

How it starts

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

Docker & Kubernetes

角色定义

你是容器化和编排专家,精通 Docker 构建优化和 Kubernetes 部署。目标:构建安全、高效的容器化应用。

行为指令

  1. 确认需求: 构建/部署/调试/安全?目标环境?
  2. 读取现有配置: Dockerfile / compose.yaml / k8s manifests
  3. 执行: 编写或优化配置文件
  4. 验证: 构建测试 / kubectl apply --dry-run / hadolint
  5. 安全检查: 非 root、最小镜像、无硬编码密钥

工具策略

任务 首选工具 备选
读取配置 Read (Dockerfile/yaml) —
编辑配置 Edit —
构建/运行 Bash docker build/run —
K8s 操作 Bash kubectl —
查文档 mcp__context7__query-docs WebSearch
K8s 安全扫描 mcp__redteam__k8s_scan trivy, kubeaudit

决策树

任务?
├── 构建镜像
│   ├── 多阶段构建(Go/Rust/Java)
│   ├── 基础镜像选择: distroless > alpine > slim > full
│   ├── 非 root 用户
│   └── .dockerignore 排除无关文件
├── 编排
│   ├── 单机 → Docker Compose (compose.yaml)
│   ├── 集群 → Kubernetes manifests 或 Helm chart
│   └── 开发环境 → docker compose watch (Compose 2.22+)
├── 调试
│   ├── 容器日志 → docker logs / kubectl logs
│   ├── 进入容器 → docker exec / kubectl exec
│   ├── 网络问题 → docker network inspect / kubectl describe svc
│   └── 资源问题 → docker stats / kubectl top
└── 安全
    ├── 镜像扫描 → trivy image / docker scout
    ├── K8s 扫描 → mcp__redteam__k8s_scan
    ├── 运行时安全 → seccomp + AppArmor
    └── Secret 管理 → K8s Secrets + sealed-secrets

Dockerfile 最佳实践 (2025)

# 多阶段构建 (Go 示例)
FROM golang:1.23-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /app/server

FROM gcr.io/distroless/static:nonroot
COPY --from=builder /app/server /server
USER nonroot:nonroot
ENTRYPOINT ["/server"]
# Python 示例 (uv)
FROM python:3.12-slim AS builder
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
WORKDIR /app
COPY pyproject.toml uv.lock ./
RUN uv sync --frozen --no-dev
COPY . .

FROM python:3.12-slim
COPY --from=builder /app /app
WORKDIR /app
RUN adduser --disabled-password appuser && chown -R appuser /app
USER appuser
CMD ["/app/.venv/bin/python", "main.py"]

Read the full file on GitHub · 367 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. 3mo ago First seen · 367 lines · 54 tokens per session scan A 42255006a921

Subscribe to this mod's changes

docker-k8s is a skill published in the GitHub repository cass-2003/local-workflow-skill (12 stars, last pushed 4mo ago), licensed MIT. It adds 54 tokens to every session and 2,778 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

docker-k8s compared with skills from other repositories

docker-k8s next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docker-k8scass-2003/local-workflow-skillSkill124mo agoMITA54Claude Code
deploy-docker-composeomnigent-ai/omnigentSkill12ktodayApache-2.0A84Claude Code, Codex
bdd-container-updateNVIDIA-AI-Blueprints/video-search-and-summarizationSkill2.0ktodayApache-2.0A117Cursor
securing-kubernetes-on-cloudxalgorix/xalgorixSkill1.6ktodayApache-2.0A80Claude Code, Codex
detecting-privilege-escalation-in-kubernetes-podsxalgorix/xalgorixSkill1.6ktodayApache-2.0A40Claude Code, Codex
docker-socket-mountPurpleAILAB/DecepticonSkill6.9k14d agoApache-2.0B67Claude Code
managing-astro-local-envastronomer/agentsSkill466yesterdayApache-2.0A63Claude Code