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 KhaledSaeed18/node-express-boilerplate --skill multi-stage-dockerfilegit clone --depth 1 https://github.com/KhaledSaeed18/node-express-boilerplateWrote 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/khaledsaeed18/node-express-boilerplate/multi-stage-dockerfile)<a href="https://agentmods.dev/skills/khaledsaeed18/node-express-boilerplate/multi-stage-dockerfile"><img src="https://agentmods.dev/badge/skills/khaledsaeed18/node-express-boilerplate/multi-stage-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/khaledsaeed18/node-express-boilerplate/multi-stage-dockerfile"><img src="https://agentmods.dev/badge/skills/khaledsaeed18/node-express-boilerplate/multi-stage-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.00017 | $0.00441 |
| Opus 5.5 | $0.00007 | $0.00176 |
| Sonnet 5.5 | $0.00003 | $0.00088 |
| Haiku 4.5 | $0.00002 | $0.00044 |
Grade A, and why
multi-stage-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.
Copies of this mod
2 near-identical copies found in the catalogue:
- multi-stage-dockerfile — 100% identical, 0 lines differ
- multi-stage-dockerfile — 97% identical, 3 lines differ
How it starts
The opening of the file, as written. The whole thing — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Your goal is to help me create efficient multi-stage Dockerfiles that follow best practices, resulting in smaller, more secure container images.
Multi-Stage Structure
- Use a builder stage for compilation, dependency installation, and other build-time operations
- Use a separate runtime stage that only includes what's needed to run the application
- Copy only the necessary artifacts from the builder stage to the runtime stage
- Use meaningful stage names with the
ASkeyword (e.g.,FROM node:18 AS builder) - Place stages in logical order: dependencies → build → test → runtime
Base Images
- Start with official, minimal base images when possible
- Specify exact version tags to ensure reproducible builds (e.g.,
python:3.11-slimnot justpython) - Consider distroless images for runtime stages where appropriate
- Use Alpine-based images for smaller footprints when compatible with your application
- Ensure the runtime image has the minimal necessary dependencies
Layer Optimization
- Organize commands to maximize layer caching
- Place commands that change frequently (like code changes) after commands that change less frequently (like dependency installation)
- Use
.dockerignoreto prevent unnecessary files from being included in the build context - Combine related RUN commands with
&&to reduce layer count - Consider using COPY --chown to set permissions in one step
Security Practices
- Avoid running containers as root - use
USERinstruction to specify a non-root user - Remove build tools and unnecessary packages from the final image
- Scan the final image for vulnerabilities
- Set restrictive file permissions
- Use multi-stage builds to avoid including build secrets in the final image
Performance Considerations
- Use build arguments for configuration that might change between environments
- Leverage build cache efficiently by ordering layers from least to most frequently changing
- Consider parallelization in build steps when possible
- Set appropriate environment variables like NODE_ENV=production to optimize runtime behavior
- Use appropriate healthchecks for the application type with the HEALTHCHECK instruction
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 · 47 lines · 17 tokens per session scan A 7dfea7d31f37
multi-stage-dockerfile is a skill published in the GitHub repository KhaledSaeed18/node-express-boilerplate (36 stars, last pushed 7d ago), licensed MIT. It adds 17 tokens to every session and 441 once invoked, about $0.0001 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-30.
multi-stage-dockerfile compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| multi-stage-dockerfileKhaledSaeed18/node-express-boilerplate | Skill | 36 | 7d ago | MIT | A | 17 | Claude Code, Codex |
| backendmiles990/claude-software-skills | Skill | 26 | 10mo ago | MIT | A | 16 | Claude Code, Codex |
| expressjs-developmentmanutej/luxor-claude-marketplace | Skill | 64 | 5mo ago | none | A | 29 | Claude Code |
| api-integration-architectsickn33/agentic-awesome-skills | Skill | 51k | yesterday | MIT | A | 33 | Claude Code |
| authentication-portal-apigreenpau/caddy-security | Skill | 2.3k | 13d ago | Apache-2.0 | A | 44 | Codex |
| coding-directivesgreenpau/caddy-security | Skill | 2.3k | 13d ago | Apache-2.0 | A | 45 | Codex |
| configuration-http-integrationsgreenpau/caddy-security | Skill | 2.3k | 13d ago | Apache-2.0 | A | 43 | Codex |