Agent skill

Docker Deploy

by WrongStack in WrongStack/WrongStack

A skill your agent uses when writing or reviewing a Dockerfile, docker-compose setup, or container image build for a project, or when debugging a container that won't build, start, or stay healthy.

MITAuto-check: warningsDevOps & Cloud

Install Docker Deploy

The automated check flagged lines worth reading first. See the safety section below.

skills CLI
$ npx skills add WrongStack/WrongStack --skill docker-deploy -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install WrongStack/WrongStack docker-deploy --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/WrongStack/WrongStack.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/core/skills/docker-deploy .claude/skills/docker-deploy && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
docker-deploy
GitHub stars
370
Token cost
~1.3k tokens
SKILL.md length
467 words
Files
2
Skills in repo
38
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when writing or reviewing a Dockerfile, docker-compose setup, or container image build for a project, or when debugging a container that won't build, start, or stay healthy.

  • Works in 9 steps: Multi-stage builds: build with the… → Pin the base image to a specific version… → Order layers for caching: copy… → …
  • Reviewing a Dockerfile
  • SKILL.md covers Overview, Rules, Patterns and Debugging a container, plus 3 more sections
  • Calls docker, git and npm; needs POSTGRES_PASSWORD

What it does

Docker Deploy is an agent skill from WrongStack/WrongStack. Use this skill when writing or reviewing a Dockerfile, docker-compose setup, or container image build for a project, or when debugging a container that won't build, start, or stay healthy. Triggers: user says "docker", "Dockerfile", "container", "image", "docker compose", "containerize", "multi-stage", "distroless", "registry", "healthcheck", "image size".

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `SKILL.save.md`).

It sits in DevOps & Cloud, covering Containers. It works with Docker. The repository describes itself as: An AI coding agent that reads your code, edits files, runs commands, and reasons through bugs — across a terminal REPL, a full-screen TUI, and a browser UI, while you keep your… The licence is MIT.

When your agent uses it

  • Reviewing a Dockerfile
  • Docker-compose setup
  • Container image build for a project
  • Debugging a container that wont build

Example prompts

  • “t build, start, or stay healthy. Triggers: user says”
  • “Dockerfile”
  • “container”
  • “/docker-deploy”

Requirements

  • Python 3
  • Node.js
  • Docker

Workflow steps

9 steps, taken from the first numbered list in SKILL.md.

  1. Multi-stage builds: build with the toolchain and dev dependencies, ship a
  2. Pin the base image to a specific version tag (optionally a digest); never
  3. Order layers for caching: copy dependency manifests and the lockfile,
  4. Install from the lockfile (npm ci, pnpm install --frozen-lockfile,
  5. Run as a non-root user, and make only the paths the app writes to writable.
  6. No secrets in the image — no ARG/ENV for credentials, no copied .env.
  7. Use the exec form for ENTRYPOINT/CMD so signals reach the process, and
  8. Keep a .dockerignore that excludes .git, dependency folders, build output,
  9. Add a HEALTHCHECK for long-running services, pointing at a cheap readiness

What it can do on your machine

Read from SKILL.md and the folder at commit 57f6018. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • docker
    • git
    • npm
    • pnpm
    • pip
    • go

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use docker, git, npm, pnpm and pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • POSTGRES_PASSWORD

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Docker Deploy loads about 1.3k tokens when it runs. Until then it costs about 93 tokens; SKILL.md has 467 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~93
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: warnings

The automated check found patterns that need a careful read before installing.

  • NoteMentions a .env fileSKILL.md:32
    `ARG`/`ENV` for credentials, no copied `.env`.
  • WarningMentions a credentials file (SSH keys, cloud or package-manager tokens)SKILL.md:71
    mount=type=secret,id=npmrc,target=/root/.npmrc pnpm install --frozen-lockfile
  • WarningMentions a credentials file (SSH keys, cloud or package-manager tokens)SKILL.md:75
    ocker build --secret id=npmrc,src=$HOME/.npmrc -t app:$(git rev-parse --short HEAD) .
  • NoteMentions a .env fileSKILL.md:85
    env_file: .env

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from WrongStack/WrongStack at commit 57f6018, republished under its MIT licence (© WrongStack). 467 words, ~1,289 tokens.

Download SKILL.mdSave it as .claude/skills/docker-deploy/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
docker-deploy
description
Use this skill when writing or reviewing a Dockerfile, docker-compose setup, or container image build for a project, or when debugging a container that won't build, start, or stay healthy. Triggers: user says "docker", "Dockerfile", "container", "image", "docker compose", "containerize", "multi-stage", "distroless", "registry", "healthcheck", "image size".
version
2.0.0
required-capabilities
filesystem.read, filesystem.write, execution.shell

Docker Deploy

Overview

A good image is small, reproducible, runs as a non-root user, and rebuilds quickly because its layers are ordered by how often they change. Start from the project as it is: the language and package manager (lockfile), the build command, the start command, the port, and what the process needs at runtime (environment, volumes, writable paths).

Rules

  1. Multi-stage builds: build with the toolchain and dev dependencies, ship a runtime stage with only production artifacts.
  2. Pin the base image to a specific version tag (optionally a digest); never latest.
  3. Order layers for caching: copy dependency manifests and the lockfile, install, then copy the source.
  4. Install from the lockfile (npm ci, pnpm install --frozen-lockfile, pip install -r with hashes, go mod download).
  5. Run as a non-root user, and make only the paths the app writes to writable.
  6. No secrets in the image — no ARG/ENV for credentials, no copied .env. Pass them at runtime, or use BuildKit secret mounts for build-time access.
  7. Use the exec form for ENTRYPOINT/CMD so signals reach the process, and add an init (--init, or tini) when the app spawns children.
  8. Keep a .dockerignore that excludes .git, dependency folders, build output, local env files, and tests.
  9. Add a HEALTHCHECK for long-running services, pointing at a cheap readiness endpoint; one-shot jobs and CLIs don't need one.

Patterns

Node.js service with pnpm:

dockerfile
# syntax=docker/dockerfile:1
FROM node:22-bookworm-slim AS build
WORKDIR /app
RUN corepack enable
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY . .
RUN pnpm build && pnpm prune --prod

FROM node:22-bookworm-slim AS runtime
ENV NODE_ENV=production
WORKDIR /app
COPY --from=build --chown=node:node /app/node_modules ./node_modules
COPY --from=build --chown=node:node /app/dist ./dist
COPY --from=build --chown=node:node /app/package.json ./
USER node
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \
  CMD node -e "fetch('http://127.0.0.1:3000/healthz').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"
CMD ["node", "dist/server.js"]

Build-time secret without baking it into a layer:

dockerfile
RUN --mount=type=secret,id=npmrc,target=/root/.npmrc pnpm install --frozen-lockfile
bash
docker build --secret id=npmrc,src=$HOME/.npmrc -t app:$(git rev-parse --short HEAD) .

Compose for local development (the top-level version: key is obsolete):

yaml
services:
  app:
    build: .
    ports: ["3000:3000"]
    env_file: .env
    depends_on:
      db:
        condition: service_healthy
  db:
    image: postgres:17
    environment:
      POSTGRES_PASSWORD: dev-only
    volumes: [db-data:/var/lib/postgresql/data]
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres"]
      interval: 5s
      retries: 10
volumes:
  db-data:
Show full SKILL.md (216 more words)Show less

Debugging a container

SymptomCheck
Build cache never hitsSource copied before the dependency install; missing .dockerignore
Exits immediatelydocker logs <id>; the CMD path relative to WORKDIR; missing build output in the runtime stage
Works locally, fails in the imageMissing runtime env var, native module built for a different libc (alpine vs glibc), dev dependency needed at runtime
Permission deniedWriting to a path owned by root while running as non-root
Ctrl+C or stop takes 10 sShell-form CMD swallowing signals; no init process
UnhealthyRun the healthcheck command yourself inside the container

Anti-patterns

  • COPY . . before installing dependencies — every source change reinstalls everything.
  • Secrets in ARG/ENV — visible in image history to anyone who pulls it.
  • Running as root "because it works".
  • latest tags in anything deployed.
  • One giant stage that ships compilers and dev dependencies to production.

Before returning

  • Multi-stage; runtime stage holds only production artifacts
  • Base image pinned; dependencies installed from the lockfile
  • Layers ordered so source changes don't invalidate the install
  • Non-root user; no secrets in layers; .dockerignore present
  • Exec-form start command; healthcheck for services
  • Image built and the container started successfully, if the environment allows

Skills in scope

  • security-scanner — for image and configuration exposure review
  • observability — for logs and health endpoints in containers
  • tech-stack — for choosing and pinning base image versions

© WrongStack, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in packages/core/skills/docker-deploy of WrongStack/WrongStack.

  • SKILL.md
  • SKILL.save.md

Open the folder on GitHubat commit 57f6018

Compare with similar skills

Docker Deploy next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Docker Deploy compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Docker Deploy this skillWrongStack/WrongStack370—~1.3kAutomated safety check: WarnMIT
Iron Proxy Gateway for NanoClawnanocoai/nanoclaw31k—~4.6kAutomated safety check: NotesMIT
GreptimeDB Dev Docker ImageGreptimeTeam/greptimedb6.7k—~4kAutomated safety check: NotesApache-2.0
Senior DevOps Toolkitmaslennikov-ig/claude-code-orchestrator-kit2606 repos~1.1kAutomated safety check: NotesCustom licence
LangBot Deployment Guidelangbot-app/LangBot18k—~1.2kAutomated safety check: NotesApache-2.0
Build Openshell Mxc WindowsNVIDIA/OpenShell15k—~4.9kAutomated safety check: PassApache-2.0

Similar skills

  • Installs or refreshes Iron Proxy and its Iron Control web console for NanoClaw, with a local Docker setup, database, credentials and a human approval bridge.

    31k GitHub stars~4.6k tokensUpdated yesterday
    DevOps & CloudAuto-check: notes
  • GreptimeDB Dev Docker Image

    GreptimeTeam/greptimedb

    Packages a locally built GreptimeDB debug binary into a development-only Docker image for local-cluster testing, with an optional push to a dev registry.

    6.7k GitHub stars~4k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Senior DevOps Toolkit

    maslennikov-ig/claude-code-orchestrator-kit

    Comprehensive DevOps skill for CI/CD, infrastructure automation, containerization, and cloud platforms (AWS, GCP, Azure). Includes pipeline setup…

    260 GitHub starsUsed in 6 repos~1.1k tokens
    DevOps & CloudAuto-check: notes
  • LangBot Deployment Guide

    langbot-app/LangBot

    Deploys and configures a LangBot instance with Docker Compose or Kubernetes, covering config.yaml, the Box sandbox runtime, the plugin runtime and the global API key.

    18k GitHub stars~1.2k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Official

    Maintain and validate OpenShell's build-only Windows MSVC lane for x64 and ARM64.

    15k GitHub stars~4.9k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Omnigent Docker Compose Deploy

    omnigent-ai/omnigent

    Brings up the Omnigent server and Postgres as a Docker compose stack on any Docker host, and covers the Dockerfile's runtime and host build targets for extending it to a new platform.

    11k GitHub stars~1.3k tokensUpdated today
    DevOps & CloudAuto-check: notes

More from WrongStack/WrongStack

All 38 skills in this repo
  • Design Craft

    WrongStack/WrongStack

    Design or substantially improve user-facing interfaces with a product-specific visual direction, content hierarchy, and rendered critique.

    370 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Design Critique

    WrongStack/WrongStack

    A skill your agent uses to audit an interface that already exists and say precisely why it looks generated, templated, or unfinished — a scored rubric across composition, typography, color, states…

    370 GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Mailbox Bridge

    WrongStack/WrongStack

    A skill your agent uses when external coding agents (Claude Code, Aider, custom scripts) need to participate in the project's shared WrongStack mailbox, or when a user asks to "expose the mailbox"…

    370 GitHub stars~3.9k tokensUpdated today
    Auto-check passed
  • Multi Agent

    WrongStack/WrongStack

    A skill your agent uses whenever work can be split across multiple AI agents running in parallel, or when orchestrating leader/worker patterns in WrongStack.

    370 GitHub stars~3.6k tokensUpdated today
    Auto-check passed
  • Web Platform Baseline

    WrongStack/WrongStack

    Use this skill before asserting that a CSS, HTML or accessibility capability is available, unavailable, or the right tool — it carries dated, refreshable platform facts and refuses to let stale…

    370 GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Wrongstack Mailbox

    WrongStack/WrongStack

    A skill your agent uses when the user wants to communicate with WrongStack's shared project mailbox from outside WrongStack — read messages sent by WrongStack agents, send replies, broadcast to all…

    370 GitHub stars~3.5k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Docker Deploy

What does Docker Deploy do?

A skill your agent uses when writing or reviewing a Dockerfile, docker-compose setup, or container image build for a project, or when debugging a container that won't build, start, or stay healthy. Docker Deploy is an agent skill from WrongStack/WrongStack. Use this skill when writing or reviewing a Dockerfile, docker-compose setup, or container image build for a project, or when debugging a container that won't build, start, or stay healthy.

When should I use Docker Deploy?

Docker Deploy fits situations like: reviewing a Dockerfile; Docker-compose setup; container image build for a project; debugging a container that wont build.

How do I install Docker Deploy in Claude Code?

Run `npx skills add WrongStack/WrongStack --skill docker-deploy -a claude-code`. Or copy the skill folder (packages/core/skills/docker-deploy in WrongStack/WrongStack) into .claude/skills/docker-deploy in your project. Claude Code loads it when a task matches its description.

How do I install Docker Deploy in Codex?

Run `npx skills add WrongStack/WrongStack --skill docker-deploy -a codex`. Or copy the skill folder (packages/core/skills/docker-deploy in WrongStack/WrongStack) into .agents/skills/docker-deploy in your project. Codex loads it when a task matches its description.

Can I use Docker Deploy in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add WrongStack/WrongStack --skill docker-deploy -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/docker-deploy, .gemini/skills/docker-deploy, .github/skills/docker-deploy and .opencode/skills/docker-deploy in your project.

What does Docker Deploy need to run?

Going by SKILL.md and its folder, Docker Deploy needs the command-line tools its instructions call (docker, git, npm, pnpm, pip and go) and credentials named POSTGRES_PASSWORD. Our summary lists: Python 3; Node.js; Docker.

Does Docker Deploy access the network?

SKILL.md contains no URLs. Its commands use docker, git, npm and pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Docker Deploy safe to install?

Our automated static check of SKILL.md flagged 2 warning(s): mentions a credentials file (ssh keys, cloud or package-manager tokens). Read the flagged lines before installing; the check is not a guarantee either way.

What licence does Docker Deploy use?

Docker Deploy is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Docker Deploy use?

About 1.3k tokens (SKILL.md is roughly 5.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Docker Deploy?

Skills that share tags, products or a category with Docker Deploy: Iron Proxy Gateway for NanoClaw (nanocoai/nanoclaw, 31k stars), GreptimeDB Dev Docker Image (GreptimeTeam/greptimedb, 6.7k stars), Senior DevOps Toolkit (maslennikov-ig/claude-code-orchestrator-kit, 260 stars) and LangBot Deployment Guide (langbot-app/LangBot, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Docker Deploy?

WrongStack (a GitHub organization) maintains it in WrongStack/WrongStack, which has 370 GitHub stars. The repository holds 38 skills in this directory. The repository was last updated on October 7, 2026.

Source: WrongStack/WrongStack on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.