docker-expert
Advanced Docker containerization expert for multi-stage builds, image optimization, security hardening, and Compose orchestration.
Skill by yacosta738
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/yacosta738-docker-expert
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops, security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/docker-expert
What's inside
- Skill name
docker-expert- Description
- Advanced Docker containerization expert for multi-stage builds, image optimization, security hardening, and Compose orchestration. Trigger: When working with `Dockerfile`, `docker-compose.yml`, containerization, multi-stage builds, or optimizing Docker images.
- License
- Apache-2.0
- Metadata
- author: yacosta738 · version: 1.0
- Instructions
- 135 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (2)
- SKILL.md
- .dockerignore · assets/
SKILL.md (first lines)
## When to Use
- Creating or optimizing a `Dockerfile` for any project.
- Setting up or reviewing `docker-compose.yml` for local development or production.
- Troubleshooting container security, large image sizes, or slow build times.
- Implementing multi-stage builds to separate dependencies from runtime.
## Critical Patterns
- **Security First (Non-Root):** NEVER run containers as `root`. Always create and switch to a
non-root user via the `USER` instruction.
- **Secrets over Env Vars:** Use Docker Secrets (`secrets:`) for sensitive data in
`docker-compose.yml` rather than plain environment variables.
- **Multi-Stage Builds:** Always separate the builder (compilation, dependency fetching) from the
final runtime image. Do not ship build tools to production.
- **Minimal Attack Surface:** Prefer `alpine`, `slim`, or `distroless` base images.
- **Supply Chain Integrity:** Pin base image versions down to the digest (e.g.,
`alpine:3.21@sha256:xyz...`).
- **Layer Caching:** Order instructions by frequency of change. Copy and install dependencies
*before* copying the rest of the source code.
- **One Layer Operations:** Chain `apt-get update` with `apt-get install` using `&&` and clear the
cache (`rm -rf /var/lib/apt/lists/*`) in the exact same `RUN` command.
## Code Examples
### Optimized Multi-Stage Dockerfile
```dockerfile
# Stage 1: Build & Dependencies
FROM node:18-alpine AS deps
WORKDIR /app
COPY package*.json ./
RUN --mount=type=cache,target=/root/.npm \
npm ci --only=production
# Stage 2: Build source
FROM node:18-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build && npm prune --production
# Stage 3: Runtime
FROM node:18-alpine AS runtime
# Create non-root user explicitly
RUN addgroup -g 1001 -S nodejs && adduser -S appuser -u 1001 -G nodejs
WORKDIR /app
# Copy only what is strictly necessary
COPY --from=deps --chown=appuser:nodejs /app/node_modules ./node_modules
COPY --from=build --chown=appuser:nodejs /app/dist ./dist
# Drop privileges
USER appuser
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:3000/health || exit 1
CMD ["node", "dist/index.js"]
```
### Production-Ready Compose Pattern
```yaml
version: '3.8'
services:
app:
build:
context: .
target: runtime
depends_on:
db:
condition: service_healthy
networks:
- frontend
- backend
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
db:
image: postgres:15-alpine
environment:
POSTGRES_DB_FILE: /run/secrets/db_name
POSTGRES_USER_FILE: /run/secrets/db_user
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
secrets:
- db_name
- db_user
- db_password
networks:
- backend
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
interval: 10s
timeout: 5s
retries: 5
networks:
frontend:
backend:
internal: true
secrets:
db_name:
external: true
db_user:
external: true
db_password:
external: true
```
## Commands
```bashFrom yacosta738/agent-harness, Apache-2.0.
More from yacosta738/agent-harness
- 0.606score
design-pattern
yacosta738
Evaluate, apply, review, or refactor code using classic Gang of Four (GoF) design patterns.
SkillAFreshness: A★ 4Claude Code +9 - 0.605score
diagram-design
yacosta738
Create branded architecture, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, loop/flywheel…
SkillAFreshness: A★ 4Claude Code +9 - 0.584score
impeccable
yacosta738
Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or…
SkillAFreshness: A★ 4Claude Code +9 - 0.569score
cloudflare
yacosta738
Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), networking (Tunnel, Spectrum)…
SkillBFreshness: B★ 4Claude Code +9 - 0.519score
android-emulator-qa
yacosta738
Use when validating Android feature flows in an emulator with adb-driven launch, input, UI-tree inspection, screenshots, and logcat capture.
SkillCFreshness: C★ 4Claude Code +9 - 0.510score
grafana-dashboards
yacosta738
Create and manage production Grafana dashboards for real-time visualization of system and application metrics.
SkillCFreshness: C★ 4Claude Code +9 - 0.494score
agents-sdk
yacosta738
Build AI agents on Cloudflare Workers using the Agents SDK.
SkillCFreshness: C★ 4Claude Code +9 - 0.454score
building-mcp-server-on-cloudflare
yacosta738
Builds remote MCP (Model Context Protocol) servers on Cloudflare Workers with tools, OAuth authentication, and production deployment.
SkillDFreshness: D★ 4Claude Code +9 - 0.454score
building-ai-agent-on-cloudflare
yacosta738
Builds AI agents on Cloudflare using the Agents SDK with state management, real-time WebSockets, scheduled tasks, tool integration, and chat capabilities.
SkillDFreshness: D★ 4Claude Code +9
Signals
- Stars
- 4
- Forks
- 1
- Open issues
- 1
- Last commit (this folder)
- Apr 18, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0
- License
- Apache-2.0
- Repository
- github.com/yacosta738/agent-harness
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from yacosta738
- 0.606score
design-pattern
yacosta738
Evaluate, apply, review, or refactor code using classic Gang of Four (GoF) design patterns.
SkillAFreshness: A★ 4Claude Code +9 - 0.605score
diagram-design
yacosta738
Create branded architecture, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, loop/flywheel…
SkillAFreshness: A★ 4Claude Code +9 - 0.584score
impeccable
yacosta738
Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or…
SkillAFreshness: A★ 4Claude Code +9 - 0.569score
cloudflare
yacosta738
Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), networking (Tunnel, Spectrum)…
SkillBFreshness: B★ 4Claude Code +9 - 0.519score
android-emulator-qa
yacosta738
Use when validating Android feature flows in an emulator with adb-driven launch, input, UI-tree inspection, screenshots, and logcat capture.
SkillCFreshness: C★ 4Claude Code +9 - 0.510score
grafana-dashboards
yacosta738
Create and manage production Grafana dashboards for real-time visualization of system and application metrics.
SkillCFreshness: C★ 4Claude Code +9
Cite this page
docker-expert skill. Agent Mart. https://agentmart.dev/skills/yacosta738-docker-expert (last updated 2026-10-24)