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.5 | $0.00022 | $0.01111 |
| Sonnet 5.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 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 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.
- 3mo 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 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.
docker-k8s compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| docker-k8scass-2003/local-workflow-skill | Skill | 12 | 4mo ago | MIT | A | 54 | Claude Code |
| deploy-docker-composeomnigent-ai/omnigent | Skill | 12k | today | Apache-2.0 | A | 84 | Claude Code, Codex |
| bdd-container-updateNVIDIA-AI-Blueprints/video-search-and-summarization | Skill | 2.0k | today | Apache-2.0 | A | 117 | Cursor |
| securing-kubernetes-on-cloudxalgorix/xalgorix | Skill | 1.6k | today | Apache-2.0 | A | 80 | Claude Code, Codex |
| detecting-privilege-escalation-in-kubernetes-podsxalgorix/xalgorix | Skill | 1.6k | today | Apache-2.0 | A | 40 | Claude Code, Codex |
| docker-socket-mountPurpleAILAB/Decepticon | Skill | 6.9k | 14d ago | Apache-2.0 | B | 67 | Claude Code |
| managing-astro-local-envastronomer/agents | Skill | 466 | yesterday | Apache-2.0 | A | 63 | Claude Code |