deploy-docker-skill

deploy-docker-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 85 tokens per session (1,779 once invoked), scanned A, original, Apache-2.0.

A Docker deployment helper that reads a project description file and creates a Dockerfile and a Docker Compose file. Docker packages an application into a repeatable environment, while Compose describes an application and its related services together.

In plain words
What is it for?
Use it to containerize a project, create multi-stage builds, add health checks and non-root execution, and prepare commands for starting the application with its supporting services.
Why use it?
It removes the need to hand-write container build and service configuration for the application, database, and cache. It generates files for review rather than building or starting them automatically.

Skill for Claude CodeCodex

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

Good fit Use it to containerize a project, create multi-stage builds, add health checks and non-root execution, and prepare commands for starting the application with its supporting services.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiushiwon/wg-skills/deploy-docker-skill
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 jiushiwon/wg-skills --skill deploy-docker-skill
Clone the repo
git clone --depth 1 https://github.com/jiushiwon/wg-skills

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 deploy-docker-skill

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/deploy-docker-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/deploy-docker-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,779 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.00085 $0.01779
Opus 5.5 $0.00034 $0.00712
Sonnet 5.5 $0.00017 $0.00356
Haiku 4.5 $0.00009 $0.00178

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

Security

Grade A, and why

deploy-docker-skill 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 2mo 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.

super-deploy-skills/deploy-docker-skill/SKILL.md · 219 lines

How it starts

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

Deploy Docker Skill

Overview

本 skill 把项目容器化部署规范化。它读取 deploy-profile.md,生成对应语言的 Dockerfile(多阶段构建、镜像瘦身),以及包含项目服务 + 数据库 + 缓存的 docker-compose.yml。如服务器无 Docker,生成安装命令。

默认行为:生成文件到项目目录,不自动 docker build / up;用户审查后手动执行。

When to Use

触发词:

  • Docker 部署
  • deploy docker
  • 生成 Dockerfile
  • 生成 docker-compose
  • 帮我把项目容器化

前置依赖:建议先运行 deploy-detect-skill。如服务器无 Docker,本 skill 会调用 server-setup-skill 的安装命令模板生成 Docker 安装步骤。

Workflow Summary

Phase 1: 读取 deploy-profile.md
  → 语言/框架 → 决定 base image 与构建方式
  → 数据库/缓存 → 决定 compose 中的依赖服务
  → 前端产物 → 决定是否需要 Nginx 容器或静态托管

Phase 2: 检测 Docker 是否安装
  → docker -v / docker compose version
  → 缺失则按 OS 生成安装命令(调用 server-setup-skill 模板)

Phase 3: 生成 Dockerfile
  → 多阶段构建(deps → build → runtime)
  → 运行时镜像瘦身(alpine / slim / distroless)
  → 非 root 用户运行
  → HEALTHCHECK 指令

Phase 4: 生成 docker-compose.yml
  → app 服务(build + ports + env_file + depends_on)
  → 数据库服务(image + volumes + 初始化变量)
  → 缓存/消息服务(按需)
  → healthcheck + restart 策略

Phase 5: 输出部署命令
  → docker compose build
  → docker compose up -d
  → docker compose logs -f
  → docker compose restart

Phase 1: 读取 deploy-profile.md

画像字段 决定
语言 Dockerfile base image 与构建命令
Web 框架 启动命令(CMD)
数据库 compose 中增加对应 db 服务 + volume
缓存/消息 compose 中增加 redis / kafka 服务
前端产物 增加 Nginx 容器托管静态,或合并到 app 镜像

Phase 2: 检测 Docker 是否安装

docker -v                  # Docker version 24.x
docker compose version     # Docker Compose version v2.x

缺失时,按 server-setup-skill/references/install-commands.md 的 Docker 段生成安装命令。如已安装,跳过。

Phase 3: 生成 Dockerfile

按 references/dockerfile-spec.md 生成多阶段 Dockerfile。Node.js 示例:

# ---- deps ----
FROM node:22-alpine AS deps
WORKDIR /app
COPY package*.json ./
RUN npm ci --production

# ---- build ----
FROM node:22-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build

# ---- runtime ----
FROM node:22-alpine AS runtime
WORKDIR /app
ENV NODE_ENV=production
RUN addgroup -S app && adduser -S app -G app
COPY --from=deps /app/node_modules ./node_modules
COPY --from=build /app/dist ./dist
COPY package*.json ./
USER app
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
  CMD node -e "require('http').get('http://127.0.0.1:8080/health', r => process.exit(r.statusCode===200?0:1)).on('error',()=>process.exit(1))"
CMD ["node", "dist/server.js"]

Read the full file on GitHub · 219 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 219 lines · 85 tokens per session scan A f2cd0c73000d

Subscribe to this mod's changes

deploy-docker-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 7d ago), licensed Apache-2.0. It adds 85 tokens to every session and 1,779 once invoked, about $0.0003 per session on Opus 5.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-30.

Related

deploy-docker-skill compared with skills from other repositories

deploy-docker-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
deploy-docker-skilljiushiwon/wg-skillsSkill1547d agoApache-2.0A85Claude Code, Codex
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.5k2d agoApache-2.0A80Claude Code, Codex
detecting-privilege-escalation-in-kubernetes-podsxalgorix/xalgorixSkill1.5k2d agoApache-2.0A40Claude Code, Codex
docker-socket-mountPurpleAILAB/DecepticonSkill6.9k11d agoApache-2.0B67Claude Code
managing-astro-local-envastronomer/agentsSkill465todayApache-2.0A63Claude Code