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 skills add magnus919/agent-skills --skill docker-composegit clone --depth 1 https://github.com/magnus919/agent-skillsWrote 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/magnus919/agent-skills/docker-compose)<a href="https://agentmods.dev/skills/magnus919/agent-skills/docker-compose"><img src="https://agentmods.dev/badge/skills/magnus919/agent-skills/docker-compose.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector pass
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.1 | $0.00061 | $0.01696 |
| Opus 5 | $0.00030 | $0.00848 |
| Sonnet 5 | $0.00012 | $0.00339 |
| Haiku 4.5 | $0.00006 | $0.00170 |
Grade A, and why
docker-compose scanned grade A with 0 findings 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 4d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Docker Compose
Use this skill for the whole Compose lifecycle: model the application, validate the resolved configuration, start or update services, inspect runtime state, and diagnose failures. Prefer the current Compose Specification. Do not add a top-level version key to new files: it is obsolete and does not select a schema.
Operating loop
- Discover the Compose file(s), project directory, env files, profiles, external resources, and whether the task is development, CI, staging, or production.
- Model the application with services, named volumes for durable state, explicit networks for isolation, secrets for sensitive files, and profiles for optional services.
- Resolve before running:
docker compose -f compose.yaml config --quiet docker compose -f compose.yaml config docker compose -f compose.yaml config --services - Operate with the narrowest command:
up -d SERVICE,restart SERVICE,run --rm SERVICE COMMAND, orexec SERVICE COMMAND. Avoiddown -vunless data deletion is intentional and confirmed. - Verify with
ps, health status, logs, an in-container check, and the externally published endpoint where applicable. - Diagnose in order: resolved model → container state → logs → healthcheck → network membership/DNS → mounts/permissions → image/build architecture → host resources.
Decision rules
depends_oncontrols creation order, not readiness. Use a realhealthcheckpluscondition: service_healthy; useservice_completed_successfullyfor migrations or jobs. Do not usesleepas readiness logic.- Containers reach sibling services by service name and container port (
db:5432), not host-published ports or container IPs. - Use the default network for simple projects. Use separate networks to isolate tiers,
internal: truefor a network with no external gateway, and an explicitly namedexternal: truenetwork only when it is created outside the project. - Use bind mounts for source/configuration during development, named volumes for state, and read-only mounts for immutable inputs. Treat host-path mounts as platform-sensitive.
- Put credentials in Compose secrets or an external secret manager, not in images, Git, or ordinary environment variables. Grant each secret only to services that need it. Compose secrets are mounted at
/run/secrets/<name>. - Use profiles for optional tools such as debugging, migrations, observability, or GPU workloads. Core services should have no profile.
- Resolve interpolation explicitly. Shell variables override
--env-file, which overrides the project.env; use${REQUIRED:?explain}for mandatory values and$$for a literal dollar sign. For example, writetest: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER}"]when the container shell, not Compose, must expand the variable. Check withdocker compose config --environment. - In multi-file merges, later files are applied to the base. Relative paths resolve from the first/base file. Inspect the result with
docker compose config; use!resetor!overridewhen ordinary merge behavior is not what you want. - Compose Watch is for services built from local source. Use
syncfor hot-reloadable source,sync+restartfor configuration, andrebuildfor dependency or image changes. The container user must be able to write to the target path. - Treat
deployfields as implementation-dependent. Verify what the target Compose implementation enforces; the specification explicitly allows partial support.
What ships with it
18 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- assets/project-review-checklist.md 1.1 KB
- evals/evals.json 7.6 KB
- README.md 1.8 KB
- references/00-source-index.md 2.2 KB
- references/01-model-and-file-design.md 1.8 KB
- references/02-lifecycle-and-health.md 1.7 KB
- references/03-networking-and-storage.md 1.7 KB
- references/04-configuration-and-overrides.md 1.8 KB
- references/05-development-and-production.md 1.9 KB
- references/06-security.md 1.6 KB
- references/07-troubleshooting.md 2.2 KB
- references/08-command-playbook.md 1.3 KB
- scripts/compose-doctor.sh 1.2 KB runs code
- templates/.env.example 162 B
- templates/compose.override.yaml 217 B
- templates/compose.prod.yaml 513 B
- templates/compose.yaml 1.2 KB
- templates/secret.example.txt 31 B
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.
- 4d ago Changed · +1 lines · +16 tokens per session fb6a8eb75fe8
- 8d ago First seen · 121 lines · 45 tokens per session scan A 70cd9ac12080
docker-compose is a skill published in the GitHub repository magnus919/agent-skills (74 stars, last pushed today), licensed MIT. It adds 61 tokens to every session and 1,696 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
deployment-patterns
Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications.
docker-patterns
Docker and Docker Compose patterns for local development, container security, networking, volume strategies, and multi-service orchestration.
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…