docker-build-deploy

docker-build-deploy is a skill for Claude Code, Codex from wu529778790/shenzjd-skills. It costs 44 tokens per session (1,132 once invoked), scanned A, original, MIT.

A workflow for containerizing a Node.js application and using GitHub Actions to build, publish, and deploy its Docker image. GHCR is GitHub's container registry.

In plain words
What is it for?
Creating a multi-stage Dockerfile, adding health checks, publishing images to GHCR, and setting up SSH-based deployment through GitHub Actions.
Why use it?
It gives a repeatable setup for turning code into a Docker image and deploying it to a remote server over SSH.

Skill for Claude CodeCodex

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

Good fit Creating a multi-stage Dockerfile, adding health checks, publishing images to GHCR, and setting up SSH-based deployment through GitHub Actions.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/wu529778790/shenzjd-skills/docker-build-deploy"><img src="https://agentmods.dev/badge/skills/wu529778790/shenzjd-skills/docker-build-deploy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,132 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. Third-party audits
  • Socket pass 13 Aug 2026
  • Snyk fail 13 Aug 2026
How audits are shown
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.00044 $0.01132
Opus 5 $0.00022 $0.00566
Sonnet 5 $0.00009 $0.00226
Haiku 4.5 $0.00004 $0.00113

Measured 11d ago against content hash 37cd828a301a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

docker-build-deploy 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 11d 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.

docker-build-deploy/SKILL.md · 86 lines

How it starts

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

Docker Build & Deploy

一键生成 Docker 构建 + 推送到 GHCR + 部署到服务器的 GitHub Actions 工作流。

Overview

自动生成完整的 Docker CI/CD 工作流:构建镜像 → 推送到 GHCR → SSH 部署到服务器。包含优化的 Dockerfile(多阶段构建、非 root、健康检查)和 GitHub Actions 工作流模板。

When to Use

  • User wants to containerize a project and deploy it
  • User needs GitHub Actions to automatically build Docker images
  • User mentions Docker, GHCR, container deployment, or CI/CD
  • User inputs /docker-build-deploy
  • User wants to set up continuous deployment pipeline
  • User wants to push images to a container registry
  • User wants to automate deployment to a remote server via SSH
  • User wants to optimize existing Dockerfile with multi-stage builds
  • User wants to add health checks to container deployment

When NOT to Use:

  • User only wants to write a Dockerfile
  • User deploys with Kubernetes (different workflow - consider kubectl or Helm)
  • User doesn't use GitHub Actions (consider GitLab CI, CircleCI, etc.)
  • User wants to deploy to AWS ECS/EKS, Google Cloud Run, or Azure Container Instances (different workflows)

Core Pattern

Step 1: 收集信息

交互式询问:port(容器内端口,默认 3000)、host_port(对外暴露端口,默认同 port)、env_file(服务器 env 路径,可选)。

智能检测:有 package.json → Node.js(当前唯一支持的项目类型)。已有 Dockerfile 则跳过生成。

Step 2: 生成 Dockerfile(如需要)

生成优化的 Node.js Dockerfile:多阶段构建、非 root 用户、健康检查。模板见 templates/Dockerfile.nodejs

Step 3: 生成 Workflow

templates/docker-deploy.yml 生成工作流,替换 {{PORT}}(容器端口)、{{HOST_PORT}}(对外端口)和 {{ENV_FILE}} 变量。

build-and-push job: 登录 GHCR → Buildx 构建 → 推送(tag: latest + sha)→ GHA 缓存

deploy job: SSH 连接 → 拉取镜像 → 停旧容器 → 启新容器(支持 env 文件)→ 清理旧镜像

Step 4: 提示配置 Secrets

告知用户需在 GitHub Settings → Secrets 配置:DEPLOY_HOSTDEPLOY_USERDEPLOY_SSH_KEY(服务器私钥)。

安全性:使用 SSH key 而非密码(密码登录有爆破风险,且明文存于 CI)。若服务器只支持密码,可改用 password: ${{ secrets.DEPLOY_PASSWORD }},但不推荐。

Quick Reference

/docker-build-deploy
/docker-build-deploy --port 8080
/docker-build-deploy --port 8080 --env-file /opt/app/.env
参数 说明 默认值
--port 容器内应用端口 3000
--host-port 服务器对外暴露端口 --port
--env-file 服务器 env 文件路径

Read the full file on GitHub · 86 lines

Files

What ships with it

3 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. 11d ago First seen · 86 lines · 44 tokens per session scan A 37cd828a301a

Subscribe to this mod's changes

docker-build-deploy is a skill published in the GitHub repository wu529778790/shenzjd-skills (0 stars, last pushed 3d ago), licensed MIT. It adds 44 tokens to every session and 1,132 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

docker-devops

Create optimized Docker configurations, docker-compose setups, Kubernetes manifests, and CI/CD pipelines. Use when containerizing applications, setting up deployment infrastructure, or automating builds. Triggers on: Docker, Dockerfile, container, docker-compose, Kubernetes, k8s, CI/CD, GitHub Actions, deployment.

parisgroup-ai/imersao-ia-setup · 66 tokens

DevOps Pipeline Builder

Design and implement CI/CD pipelines, Docker configurations, deployment strategies, and infrastructure automation with production-ready patterns.

demo112/yunqu-ai-skills · 26 tokens

scanning-docker-images-with-trivy

Trivy is a comprehensive open-source vulnerability scanner by Aqua Security that detects vulnerabilities in OS packages, language-specific dependencies, misconfigurations, secrets, and license violati.

xalgorix/xalgorix · 42 tokens

performing-container-security-scanning-with-trivy

Scan container images, filesystems, and Kubernetes manifests for vulnerabilities, misconfigurations, exposed secrets, and license compliance issues using Aqua Security Trivy with SBOM generation and CI/CD integration.

xalgorix/xalgorix · 48 tokens

devops-deployment

Use when setting up CI/CD pipelines, containerizing applications, deploying to Kubernetes, or writing infrastructure as code. DevOps & Deployment covers GitHub Actions, Docker, Helm, and Terraform patterns.

yonatangross/orchestkit · 44 tokens

implementing-aqua-security-for-container-scanning

Deploy Aqua Security's Trivy scanner to detect vulnerabilities, misconfigurations, secrets, and license issues in container images across CI/CD pipelines and registries.

adriannoes/awesome-agentic-ai · 41 tokens