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.
npx agentmods add skills/asgarovf/locusai/docker-essentialsnpx skills add asgarovf/locusai --skill docker-essentialsgit clone --depth 1 https://github.com/asgarovf/locusaiWrote 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/asgarovf/locusai/docker-essentials)<a href="https://agentmods.dev/skills/asgarovf/locusai/docker-essentials"><img src="https://agentmods.dev/badge/skills/asgarovf/locusai/docker-essentials.svg" alt="Measured on agentmods" 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 | $0.00035 | $0.01148 |
| Opus 5 | $0.00017 | $0.00574 |
| Sonnet 5 | $0.00007 | $0.00230 |
| Haiku 4.5 | $0.00003 | $0.00115 |
Grade A, and why
docker-essentials 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 3d 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.
test: ["CMD", "curl", "-f", "http://localhost:3000/health"] How it starts
The opening of the file, as written. The whole thing — 201 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Docker Essentials
When to use this skill
- Writing or optimizing a Dockerfile
- Creating docker-compose configurations
- Containerizing an application
- Setting up multi-container development environments
- Debugging container issues
- Optimizing Docker image size and build times
Dockerfile best practices
Multi-stage builds
# Stage 1: Build
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# Stage 2: Production
FROM node:20-alpine AS production
WORKDIR /app
RUN addgroup -g 1001 appgroup && adduser -u 1001 -G appgroup -s /bin/sh -D appuser
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package.json ./
USER appuser
EXPOSE 3000
CMD ["node", "dist/index.js"]
Layer optimization
# GOOD: Copy dependency files first for cache
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
# BAD: Busts cache on any source change
COPY . .
RUN npm install
Security
- Use specific image tags, not
latest - Run as non-root user
- Use
.dockerignoreto exclude secrets, node_modules, .git - Don't store secrets in ENV — use build secrets or runtime mounts
- Scan images:
docker scout cves <image>
.dockerignore
node_modules
.git
.env*
dist
*.log
.DS_Store
coverage
.nyc_output
Docker Compose
Development setup
services:
app:
build:
context: .
dockerfile: Dockerfile
target: development
ports:
- "3000:3000"
volumes:
- .:/app
- /app/node_modules
environment:
- NODE_ENV=development
- DATABASE_URL=postgres://user:pass@db:5432/mydb
depends_on:
db:
condition: service_healthy
db:
image: postgres:16-alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: mydb
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U user"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
pgdata:
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.
- 3d ago First seen · 201 lines · 35 tokens per session scan A fb96d5c3bbaf
docker-essentials is a skill published in the GitHub repository asgarovf/locusai (23 stars, last pushed 5mo ago), licensed MIT. It adds 35 tokens to every session and 1,148 once invoked, about $0.0002 per session on Opus 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-08-30.
Other skills, from other repositories
docker-docs
Comprehensive Docker 28.x reference covering all features: installation, Dockerfile instructions, multi-stage builds, Docker Compose, networking, volumes, CLI commands, image management, registries, security best practices, CI/CD integration, debugging, and Kubernetes migration. Use whenever the user mentions Docker…
docker-agent
Write optimized Dockerfiles, docker-compose configs, and debug container issues. Use when containerizing an app, fixing a broken container, or designing a multi-service local environment.
docker-management
Docker container lifecycle management, Dockerfile authoring, and debugging.
docker-wizard
Generate optimized Dockerfiles and docker-compose.yml with best practices and multi-stage builds.
xcloud-docker-deploy
Skill "xcloud-docker-deploy" from Asif2BD/xCloud-Docker-Deploy-Skill, covering xcloud docker deploy v1.4.1, start here, how xcloud works, current xcloud api + agent skills context and api token flow.
docker-expert
Build optimized, secure Docker images with multi-stage builds. Configure Docker Compose for full development and production stacks.