agentleFS
ahilarionahilarion/oh-my-forge/skills/docker/SKILL.md

docker

Skill2 starsChanged 8 months agoMITView on GitHub

Production-grade Docker configurations (Dockerfile, Compose, best practices)

47 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ansible, kubernetes and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • KubementatSkill

    ansible

    Ansible automation reference for playbooks, roles, inventory, variables, and modules. Includes Proxmox VE and Docker integration via community.general and community.docker collections. Use when writing playbooks, troubleshooting Ansible runs, or designing automation workflows. Triggers: ansible, playbook, inventory, role, task, handler, vars, jinja2, galaxy, proxmox_kvm, proxmox_lxc, docker_container, docker_compose.

    Also in 3 projects that use this

  • mjunaidcaSkill

    kubernetes

    Production-grade Kubernetes manifests and debugging for containerized applications. This skill should be used when users ask to deploy to Kubernetes, create K8s manifests, containerize for K8s, set up Deployments/Services/Jobs/StatefulSets/CronJobs, create namespaces with resource quotas, set up multi-team isolation, configure ResourceQuota/ LimitRange, secure with RBAC (ServiceAccount, Role, RoleBinding), configure init containers (model download, db wait, migrations), set up sidecars (logging, metrics), or debug pods (CrashLoopBackOff, logs, exec, describe, events). Auto-detects from Dockerfile/code, generates hardened manifests with educational comments. CKAD-aligned.

    Also in 6 projects that use this

  • mjunaidcaSkill

    helm

    Production-grade Helm 4 chart development, release management, and debugging. This skill should be used when users ask to create Helm charts, deploy with Helm, manage releases (install/upgrade/rollback), push charts to OCI registries, debug failed deployments, configure chart dependencies, create umbrella charts, set up GitOps with ArgoCD/Flux, or troubleshoot Helm issues. Auto-detects from Dockerfile/code, generates production-hardened charts with library patterns. Complements kubernetes skill.

    Also in 3 projects that use this

  • LangChainSkill

    langchain

    Build agents with a prebuilt architecture and integrations for any model or tool. Use when creating tool-calling agents, switching model providers, or adding structured output.

    Also in 3 projects that use this

  • diego-tobalinaSkill

    logging

    Logging best practices for Java (SLF4J/Logback) and Node.js (Winston/Pino). Use for structured logging, log levels, and avoiding sensitive data exposure.

    Also in 4 projects that use this

  • ihiteshguptaSkill

    terraform

    Expert in Infrastructure as Code with Terraform. Use for creating, managing, and versioning infrastructure across cloud providers.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 42 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when user explicitly requests Docker configurations.

    line 10
  2. Distinctive:

    No secrets in image

    line 47

“Common” is measured: kept by at least 6 in 10 of the 42 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Docker Skill

Use this skill when user explicitly requests Docker configurations.

When to Use

  • User says: "dockerize", "add docker", "create a Dockerfile", "docker-compose"
  • User wants to containerize an application
  • User asks about Docker best practices

Trigger: docker: prefix or explicit Docker request

What This Skill Provides

Based on Docker Official Best Practices.

Files to Create

FileWhen
DockerfileApplication containerization
.dockerignoreExclude unnecessary files
docker-compose.ymlMulti-container orchestration
docker-compose.override.ymlDev-specific overrides
compose.yamlCompose v2 format

Common Deliverables

  1. Multi-stage Dockerfile with build/production stages
  2. .dockerignore to reduce image size
  3. docker-compose.yml with:
    • Health checks
    • Resource limits
    • Named volumes
    • Networks
    • Secrets (for sensitive data)
  4. Security best practices:
    • Non-root user
    • Minimal base images
    • No secrets in image

Steps

  1. Analyze Requirements
    • Language/runtime of the application
    • Dependencies and ports
    • Environment variables needed
    • Persistent data requirements
    • Health check endpoint available?
  2. Create Dockerfile
    • Choose appropriate base image
    • Multi-stage build pattern
    • Non-root user
    • Healthcheck directive
    • Labels for metadata
  3. Create .dockerignore
    • Dependencies (node_modules, etc.)
    • Build outputs
    • Git and IDE files
    • Environment files
  4. Create docker-compose.yml
    • Service definitions
    • Volume mounts
    • Network configuration
    • Resource limits
    • Health checks
  5. Verify
    • docker build succeeds
    • docker compose up works
    • Health checks pass
    • No security warnings

Examples

<Good> User: "dockerize this Node.js API" Why good: Clear request with specific tech stack </Good><Good> User: "add Docker support for the frontend app" Why good: Explicit Docker request </Good><Bad> User: "fix the login bug" Why bad: No Docker involved </Bad><Bad> User: "build me a web app" (without Docker mention) Why bad: Docker not explicitly requested </Bad>

Related Skills

SkillUse When
@deploy-engineerFull deployment with Docker
@infra-plannerInfrastructure design
@dep-auditorCheck for vulnerabilities

Documentation

See skills/docker/DOCKERFILE.md for:

  • Complete Dockerfile patterns
  • Docker Compose best practices
  • Security checklist
  • Multi-stage build examples
  • Commands reference

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.