#601

Globales Ranking · von 601 Skills

docker AI Agent Skill

Quellcode ansehen: oakoss/agent-skills

Safe

Installation

npx skills add oakoss/agent-skills --skill docker

37

Installationen

Docker

Overview

Docker packages applications into isolated containers that run consistently across environments. A Dockerfile defines the image build steps, Compose orchestrates multi-container services, and production patterns ensure small, secure, performant images.

When to use: Containerizing applications, creating reproducible dev environments, orchestrating multi-service stacks, deploying to container platforms (ECS, Kubernetes, Fly.io, Railway, Coolify).

When NOT to use: Simple static sites with no backend (use CDN deploy), single-binary CLI tools (distribute the binary), or when the target platform has native buildpacks (Heroku, Vercel) and you don't need container control.

Quick Reference

Pattern Approach Key Points
Multi-stage build Separate builder and production stages 80%+ image size reduction, no dev deps in production
Layer caching Copy lockfile first, install, then copy source Dependency layer cached across builds
Non-root user RUN adduser + USER in final stage Never run production containers as root
Health check HEALTHCHECK CMD curl or node/python check Enables orchestrator restart on failure
.dockerignore Exclude node_modules, .git, .env Smaller build context, faster builds
Compose services compose.yaml with service definitions Dev environment in one command
Compose override compose.prod.yaml with production settings Environment-specific config without duplication
Named volumes volumes: in Compose for persistent data Survives container recreation
Build cache mount RUN --mount=type=cache,target=/root/.npm Persistent cache across builds
Secrets in build RUN --mount=type=secret,id=token Never bake secrets into image layers
Image pinning Pin to major.minor or digest Reproducible builds, avoid surprise breakage
Container networking Custom bridge networks with service discovery Containers resolve each other by service name
Compose watch develop.watch with sync/rebuild actions Live reload without volume mounts
Init process --init flag or tini entrypoint Proper signal handling and zombie reaping
Multi-platform docker buildx build --platform ARM (Apple Silicon, Graviton) + x86 in one image
Monorepo prune turbo prune app --docker Minimal build context from workspace dependencies
CI layer caching cache-from/cache-to with GHA or registry Avoid full rebuilds in CI pipelines
Debug containers docker exec, docker logs, dive Inspect running containers and image layers

Common Mistakes

Mistake Correct Pattern
Installing dev dependencies in production image Multi-stage build: install in builder, copy artifacts to runtime
Copying source before installing dependencies Copy lockfile first, npm ci, then copy source for cache reuse
Running as root in production Create non-root user, USER directive in final stage
Hardcoding secrets in Dockerfile or ENV Use build secrets (--mount=type=secret) or runtime env
Using latest tag for base images Pin to specific version (node:24-alpine)
No .dockerignore file Exclude node_modules, .git, .env, build artifacts
Using npm install instead of npm ci npm ci for deterministic, lockfile-based installs
HEALTHCHECK missing Add health check for orchestrator integration
Large base images (node:24) Use alpine variants (node:24-alpine) for smaller images
Ignoring .env file precedence in Compose environment: in Compose overrides .env file values
Building entire monorepo for one service Use turbo prune --docker for minimal build context
No layer caching in CI Use cache-from/cache-to with GHA or registry backend
Building only for x86 when deploying to ARM Use docker buildx with --platform linux/amd64,linux/arm64

Delegation

  • Dockerfile review: Use Task agent to audit Dockerfiles for size, security, and caching
  • Compose exploration: Use Explore agent to discover existing Docker configurations
  • Architecture decisions: Use Plan agent for container orchestration strategy

If the ci-cd-architecture skill is available, delegate CI/CD pipeline and deployment strategy to it.
If the application-security skill is available, delegate container security scanning and hardening review to it.

References

Installationen

Installationen 37
Globales Ranking #601 von 601

Sicherheitsprüfung

ath Safe
socket Safe
Warnungen: 0 Bewertung: 90
snyk Low
EU EU-Hosted Inference API

Power your AI Agents with the best open-source models.

Drop-in OpenAI-compatible API. No data leaves Europe.

Explore Inference API

GLM

GLM 5

$1.00 / $3.20

per M tokens

Kimi

Kimi K2.5

$0.60 / $2.80

per M tokens

MiniMax

MiniMax M2.5

$0.30 / $1.20

per M tokens

Qwen

Qwen3.5 122B

$0.40 / $3.00

per M tokens

So verwenden Sie diesen Skill

1

Install docker by running npx skills add oakoss/agent-skills --skill docker in your project directory. Führen Sie den obigen Installationsbefehl in Ihrem Projektverzeichnis aus. Die Skill-Datei wird von GitHub heruntergeladen und in Ihrem Projekt platziert.

2

Keine Konfiguration erforderlich. Ihr KI-Agent (Claude Code, Cursor, Windsurf usw.) erkennt installierte Skills automatisch und nutzt sie als Kontext bei der Code-Generierung.

3

Der Skill verbessert das Verständnis Ihres Agenten für docker, und hilft ihm, etablierte Muster zu befolgen, häufige Fehler zu vermeiden und produktionsreifen Code zu erzeugen.

Was Sie erhalten

Skills sind Klartext-Anweisungsdateien — kein ausführbarer Code. Sie kodieren Expertenwissen über Frameworks, Sprachen oder Tools, das Ihr KI-Agent liest, um seine Ausgabe zu verbessern. Das bedeutet null Laufzeit-Overhead, keine Abhängigkeitskonflikte und volle Transparenz: Sie können jede Anweisung vor der Installation lesen und prüfen.

Kompatibilität

Dieser Skill funktioniert mit jedem KI-Coding-Agenten, der das skills.sh-Format unterstützt, einschließlich Claude Code (Anthropic), Cursor, Windsurf, Cline, Aider und anderen Tools, die projektbezogene Kontextdateien lesen. Skills sind auf Transportebene framework-agnostisch — der Inhalt bestimmt, für welche Sprache oder welches Framework er gilt.

Data sourced from the skills.sh registry and GitHub. Install counts and security audits are updated regularly.

EU Made in Europe

Chat with 100+ AI Models in one App.

Use Claude, ChatGPT, Gemini alongside with EU-Hosted Models like Deepseek, GLM-5, Kimi K2.5 and many more.

Kundensupport