agentleFS
Ghost7802Ghost7802/awesome-api-skills/skills/docker/SKILL.md

docker

Skill13 starsChanged 26 days agoMITView on GitHub

OS-level virtualization to deliver software in packages called containers. Deploys To: kubernetes

61 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use de-sloppify, instinct-system and 9 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.
  • ResgridSkill

    de-sloppify

    Systematic code cleanup pipeline for .NET projects. Runs 7 ordered steps: formatting, unused usings, analyzer warnings, dead code removal, TODO resolution, sealed class audit, and CancellationToken propagation. Each step is verified independently with tests between phases. Load this skill when: "clean up", "de-sloppify", "tidy up", "remove dead code", "code cleanup", "housekeeping", "tech debt", "fix warnings", "seal classes", "add CancellationToken", "unused usings", "format code".

    Also in 3 projects that use this

  • ResgridSkill

    instinct-system

    Confidence-scored instinct system for learning project-specific patterns through an observe-hypothesize-confirm cycle. Instincts start as low-confidence hypotheses and graduate to permanent rules in MEMORY.md once confirmed. Stored per-project in .Codex/instincts.md. Load this skill when you notice a recurring pattern, want to track a project convention, encounter "learn this", "I think they always", "notice a pattern", "instinct", "hypothesis", "confidence", or when starting a session (to load existing instincts).

    Also in 3 projects that use this

  • getcompanion-aiSkill

    ml-training-recipe

    Find implementable ML training recipes from papers, datasets, docs, and code. Use when the user wants to fine-tune, train, reproduce, or choose a practical ML method, dataset, hyperparameter setup, or benchmark recipe.

    Also in 3 projects that use this

  • getcompanion-aiSkill

    replication

    Plan a replication of a paper, claim, or benchmark, and execute only after an explicit environment choice. Use when the user asks to replicate results, reproduce an experiment, verify a claim empirically, or build a replication package.

    Also in 3 projects that use this

  • brainbytes-devSkill

    alpha-research

    Also in 3 projects that use this

  • JaimeParkerSkill

    paper-code-audit

    Perform three-way cross-validation of a research paper by comparing the original paper text (via Zotero), official code implementation (via Git), and personal Obsidian notes. Use this skill whenever the user wants to "audit a paper", "verify paper claims against code", "cross-check notes with implementation", "triangulate paper + code + notes", "find discrepancies between paper and code", or mentions wanting a deep, structured comparison of a paper's claims against its implementation and their own notes. Also trigger when the user asks to "analyze this paper thoroughly" with code available, or when they want to systematically reconcile what the paper says, what the code does, and what their notes claim.

    Also in 3 projects that use this

  • +2 more from Resgrid
  • +1 more from getcompanion-ai

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 53 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Never ship build tools (like compilers or dev dependencies) in your final production image.

    line 24
  2. Very specific:

    Use a process manager like PM2 or tini as PID 1 inside your container to properly handle OS signals (SIGTERM/SIGINT) and reap zombie …

    line 31
  3. Very specific:

    Never run your container as the root user.

    line 34
  4. Distinctive:

    Use this when your agent works with docker — structured patterns beat pasted docs and prevent common hallucinations.

    line 45

“Common” is measured: kept by at least 6 in 10 of the 53 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

OS-level virtualization to deliver software in packages called containers.

Ecosystem Graph

graph LR
  docker["Docker"]
  docker -- "deploys to" --> kubernetes
  docker -- "integrates with" --> github-actions

Quick Start

Docker packages your application and its dependencies into an immutable image, ensuring 'it works on my machine' scales to production.

docker build -t my-app .
docker run -p 8080:8080 my-app

Production Patterns

Multi-Stage Builds

Never ship build tools (like compilers or dev dependencies) in your final production image. Use a build stage to compile your code, then copy only the compiled artifacts into a distroless or alpine base image for the final stage.

Architecture & Scaling

Image Caching

Docker builds images in layers. Order your Dockerfile from least frequently changed (OS dependencies, package managers) to most frequently changed (source code). This ensures Docker caches the heavy steps and dramatically speeds up CI pipelines.

Error Recovery

Use a process manager like PM2 or tini as PID 1 inside your container to properly handle OS signals (SIGTERM/SIGINT) and reap zombie processes, allowing graceful shutdowns.

Security Notes

Never run your container as the root user. Explicitly create and switch to a non-root USER at the end of your Dockerfile. Scan your images using tools like Trivy or Docker Scout to catch CVEs before deployment.

Relationships

Works Well With: github-actions

Deploys To: kubernetes

References

Why use this skill

Use this when your agent works with docker — structured patterns beat pasted docs and prevent common hallucinations.

AI pitfalls

  • Referencing CLI flags or config keys that do not exist
  • Using outdated major versions of tools
  • Skipping lockfile or version pinning in examples

Production checklist

  • Secrets in environment variables, not source code
  • Error handling and logging in place
  • Rate limits and timeouts configured

Related skills

  • kubernetes — deploys to
  • github-actions — integrates with

Last Verified: 2026-07-02

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.