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 soulcodex/agentic --skill write-dockerfilegit clone --depth 1 https://github.com/soulcodex/agenticWrote 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/soulcodex/agentic/write-dockerfile)<a href="https://agentmods.dev/skills/soulcodex/agentic/write-dockerfile"><img src="https://agentmods.dev/badge/skills/soulcodex/agentic/write-dockerfile/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/soulcodex/agentic/write-dockerfile"><img src="https://agentmods.dev/badge/skills/soulcodex/agentic/write-dockerfile.svg" alt="Reviewed on agentmods" width="80" 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.00712 |
| Opus 5.5 | $0.00024 | $0.00285 |
| Sonnet 5.5 | $0.00012 | $0.00142 |
| Haiku 4.5 | $0.00006 | $0.00071 |
Grade A, and why
write-dockerfile 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 3mo 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 — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Write Dockerfile Skill
Create a production-ready Dockerfile for the current project.
Scope boundary: Dockerfile and image concerns only. For local multi-service orchestration
(compose.yaml, service dependencies/readiness, env files, volumes, migrations/seeds),
use docker-compose-local-setup.
Step 1 — Detect Language and Framework
Read: package.json, go.mod, pyproject.toml, composer.json, or other manifest files.
Identify:
- Runtime and version (Node 22, Go 1.26, Python 3.12, PHP 8.3)
- Build process (compile, bundle, install dependencies)
- Entry point / start command
Step 2 — Apply Dockerfile Build and Runtime Best Practices
Multi-stage build: separate build stage from runtime stage to keep the final image small.
Layer caching: copy dependency manifests first, install, then copy source. This caches the dependency install layer and only invalidates it when dependencies change.
Non-root user: run the application as a non-root user in the final stage.
Minimal base image: use official slim/alpine variants for the runtime stage.
Health check: include a HEALTHCHECK instruction when the runtime supports it.
No secrets in the image: all secrets come from environment variables at runtime.
Step 3 — Write the Dockerfile
Structure:
# syntax=docker/dockerfile:1
# Stage 1: Build
FROM {build-image} AS builder
WORKDIR /app
# Copy manifests first (cache layer)
COPY {manifest-files} ./
RUN {install-dependencies}
# Copy source and build
COPY . .
RUN {build-command}
# Stage 2: Runtime
FROM {runtime-image}
WORKDIR /app
RUN addgroup --system app && adduser --system --ingroup app app
# Copy only what is needed to run
COPY --from=builder /app/{output} .
USER app
EXPOSE {port}
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
CMD {health-check-command}
CMD ["{start-command}"]
Step 4 — Write .dockerignore
Also create or update .dockerignore to exclude:
.git/node_modules/(for Node projects)- test files, coverage reports
.envfiles*.mddocumentation files
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.
- 3mo ago First seen · 97 lines · 61 tokens per session scan A 02743cc4d1f3
write-dockerfile is a skill published in the GitHub repository soulcodex/agentic (10 stars, last pushed 10d ago), licensed MIT. It adds 61 tokens to every session and 712 once invoked, about $0.0002 per session on Opus 5.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-31.
write-dockerfile compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| write-dockerfilesoulcodex/agentic | Skill | 10 | 10d ago | MIT | A | 61 | Claude Code, Codex |
| harborav/harbor | Skill | 3.3k | 19d ago | Apache-2.0 | A | 114 | Claude Code |
| agentbox-infomadarco/agentbox | Skill | 589 | today | MIT | A | 79 | Claude Code |
| deploymentericrisco/rsc-harness | Skill | 682 | 5d ago | MIT | B | 86 | Claude Code, Codex |
| dockerericrisco/rsc-harness | Skill | 682 | 5d ago | MIT | B | 86 | Claude Code, Codex |
| agentboxmadarco/agentbox | Skill | 589 | today | MIT | B | 30 | Claude Code |
| docker-expertseaworld008/Commonly-used-high-value-skills | Skill | 75 | yesterday | MIT | A | 42 | Claude Code, Codex |