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.
git clone --depth 1 https://github.com/cass-2003/local-workflow-skillnpx agentmods add skills/cass-2003/local-workflow-skill/docker-k8sWrote 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.
[](https://agentmods.dev/skills/cass-2003/local-workflow-skill/docker-k8s)<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.
<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>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00054 | $0.02778 |
| Opus 5 | $0.00027 | $0.01389 |
| Sonnet 5 | $0.00011 | $0.00556 |
| Haiku 4.5 | $0.00005 | $0.00278 |
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 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.
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 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 部署。目标:构建安全、高效的容器化应用。
行为指令
- 确认需求: 构建/部署/调试/安全?目标环境?
- 读取现有配置: Dockerfile / compose.yaml / k8s manifests
- 执行: 编写或优化配置文件
- 验证: 构建测试 / kubectl apply --dry-run / hadolint
- 安全检查: 非 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"]
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.
- 6d ago First seen · 367 lines · 54 tokens per session scan A 42255006a921
docker-k8s is a skill published in the GitHub repository cass-2003/local-workflow-skill (12 stars, last pushed 2mo ago), licensed MIT. It adds 54 tokens to every session and 2,778 once invoked, about $0.0003 per session on Opus 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.
Other skills, from other repositories
deploy-docker-compose
Run the Omnigent server as a Docker compose stack (server + Postgres) on any Docker host — your laptop, a VPS, EC2 by hand, or as the base layer of any container-platform deploy. Invoke when the user wants to build the image, bring up the compose stack, debug the stack on a host they already have, or extend the stack…
compute-env-setup
Set up a reproducible Feynman compute environment for research jobs. Use when a task needs Python/R packages, GPU libraries, containers, Modal, SSH, caches, or managed model runtime setup.
securing-kubernetes-on-cloud
This skill covers hardening managed Kubernetes clusters on EKS, AKS, and GKE by implementing Pod Security Standards, network policies, workload identity, RBAC scoping, image admission controls, and runtime security monitoring. It addresses cloud-specific security features including IRSA for EKS, Workload Identity for…
detecting-privilege-escalation-in-kubernetes-pods
Detect and prevent privilege escalation in Kubernetes pods by monitoring security contexts, capabilities, and syscall patterns with Falco and OPA policies.
implementing-rbac-hardening-for-kubernetes
Harden Kubernetes Role-Based Access Control by implementing least-privilege policies, auditing role bindings, eliminating cluster-admin sprawl, and integrating external identity providers.
docker-socket-mount
Docker / containerd socket mounted into a container → host RCE. Common in CI runners, GitOps controllers (ArgoCD, Flux), and 'Docker-in-Docker' setups. Single-command escape via docker run --rm --privileged -v /:/host alpine chroot /host.