Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/khalilbenaz/claude-skills-collectionnpx agentmods add skills/khalilbenaz/claude-skills-collection/docker-composerWrote 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/khalilbenaz/claude-skills-collection/docker-composer)<a href="https://agentmods.dev/skills/khalilbenaz/claude-skills-collection/docker-composer"><img src="https://agentmods.dev/badge/skills/khalilbenaz/claude-skills-collection/docker-composer/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/khalilbenaz/claude-skills-collection/docker-composer"><img src="https://agentmods.dev/badge/skills/khalilbenaz/claude-skills-collection/docker-composer.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00077 | $0.02193 |
| Opus 5.5 | $0.00031 | $0.00877 |
| Sonnet 5.5 | $0.00015 | $0.00439 |
| Haiku 4.5 | $0.00008 | $0.00219 |
Grade C, and why
docker-composer scanned grade C with 2 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 2mo 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
- **`RUN apt-get install ...` en plusieurs layers** : combineer en une seule instruction `RUN && && && rm -rf /var/lib/apt/lists/*`. Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
CMD wget -qO- http://localhost:3000/health || exit 1 How it starts
The opening of the file, as written. The whole thing — 243 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Docker Composer
Workflow en étapes
1. Analyser le contexte
Identifier avant d'écrire une seule ligne :
- Runtime : Node 22 / Python 3.12 / Java 21 / Go 1.22 / .NET 9 ?
- Services : DB (Postgres, Redis, MongoDB ?), broker (RabbitMQ, Kafka ?), reverse proxy ?
- Usage cible : dev local avec hot-reload / CI / image de prod déployée ?
- Contraintes : taille d'image, rootless obligatoire, registry cible ?
2. Choisir la base image
| Besoin | Base recommandée | Remarque |
|---|---|---|
| Prod légère | node:22-alpine / python:3.12-slim |
~50–80 Mo |
| Prod ultra-sécurisée | gcr.io/distroless/nodejs22-debian12 |
Pas de shell |
| Build seulement | node:22-bookworm / maven:3.9-eclipse-temurin-21 |
Jamais en prod |
| Go / Rust | scratch ou distroless/static |
Binaire statique |
Règle : jamais utiliser latest en prod. Épingler le digest ou le tag mineur.
3. Rédiger le Dockerfile (multi-stage)
Pattern canonique Node.js :
# ── Build stage ──────────────────────────────────────────
FROM node:22-alpine AS builder
WORKDIR /app
# Copier UNIQUEMENT les manifestes avant le code → cache layer npm install
COPY package*.json ./
RUN npm ci --omit=dev
COPY . .
RUN npm run build
# ── Runtime stage ─────────────────────────────────────────
FROM node:22-alpine AS runtime
ENV NODE_ENV=production
WORKDIR /app
# User non-root AVANT de copier les fichiers
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
COPY --from=builder --chown=appuser:appgroup /app/dist ./dist
COPY --from=builder --chown=appuser:appgroup /app/node_modules ./node_modules
USER appuser
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
CMD wget -qO- http://localhost:3000/health || exit 1
CMD ["node", "dist/index.js"]
Pattern Java (Maven → JRE slim) :
FROM maven:3.9-eclipse-temurin-21 AS build
WORKDIR /build
COPY pom.xml .
RUN mvn dependency:go-offline -q
COPY src ./src
RUN mvn package -DskipTests -q
FROM eclipse-temurin:21-jre-alpine AS runtime
RUN addgroup -S app && adduser -S app -G app
WORKDIR /app
COPY --from=build --chown=app:app /build/target/*.jar app.jar
USER app
EXPOSE 8080
HEALTHCHECK CMD wget -qO- http://localhost:8080/actuator/health || exit 1
ENTRYPOINT ["java", "-XX:MaxRAMPercentage=75.0", "-jar", "app.jar"]
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.
- 2mo ago First seen · 243 lines · 77 tokens per session scan C 61da03438a8f
docker-composer is a skill published in the GitHub repository khalilbenaz/claude-skills-collection (27 stars, last pushed 3mo ago), licensed MIT. It adds 77 tokens to every session and 2,193 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
docker-composer compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| docker-composerkhalilbenaz/claude-skills-collection | Skill | 27 | 3mo ago | MIT | C | 77 | Claude Code, Codex |
| docker-devopssoftspark/ai-toolkit | Skill | 180 | 13d ago | Apache-2.0 | A | 43 | Claude Code |
| healthsoftspark/ai-toolkit | Skill | 180 | 13d ago | Apache-2.0 | A | 37 | Claude Code |
| frappe-ops-deploymentImpertio-Studio/Frappe_Claude_Skill_Package | Skill | 212 | 2mo ago | none | A | 124 | Claude Code, Codex |
| dockersordi-ai/skill-everything | Skill | 21 | 6mo ago | MIT | A | 35 | Claude Code, Codex |
| docker-kubernetesmedy-gribkov/arcana | Skill | 1 | 4mo ago | Apache-2.0 | A | 75 | Claude Code, Codex |
| ofeliaLu1sDV/skillsmd | Skill | 2 | yesterday | none | A | 62 | Claude Code, Codex |