Works with the AI Agents you already use
Dockerfile & Container Build Sanity Gate
The Dockerfile & Container Build Sanity Gate is an adversarial reviewer for Dockerfiles and container build files.
$14
Dockerfile & Container Build Sanity Gate
Example session with this skill installed
Review this Dockerfile: FROM node:latest
COPY . .
RUN npm install && npm run build
ENV API_TOKEN=sk-live-abc123
CMD ["node", "server.js"]
- Read your context and instructions
- Compiled the dockerfile & container
VERDICT: BLOCK
PRIVILEGE: risk - no USER directive, so the container runs as root.
SIZE: bloated - single stage leaves npm and build tools in the final image.
LAYERS: fragile - FROM node:latest is unpinned; COPY . . before install busts the cache on every code change.
SECRETS: API_TOKEN in ENV is baked into a layer and visible to anyone who pulls the image - highest risk.
HARDENING: no .dockerignore, no HEALTHCHECK, packages not minimized.
TOP 3 FIXES: remove API_TOKEN from ENV and pass it at runtime; pin the base image and move COPY after dependency install; add a non-root USER plus a multi-stage build.
Connects securely to your tools. The creator never sees your data.
About this skill
The Dockerfile & Container Build Sanity Gate is an adversarial reviewer for Dockerfiles and container build files. You paste a Dockerfile and it reads it the way a security-minded platform engineer would in code review — then returns a structured verdict. It does not rewrite your Dockerfile or generate one.
It runs five passes — privilege and user, image size and bloat, layer order and pinning, secret and data leakage, and hardening best practices — and returns a structured PASS / FIX / BLOCK verdict with the highest-impact fixes first. It is built to be the last read before an image is built or pushed, when the author is too close to the file to spot a root process, a baked-in token, or a cache-busting layer.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.
It reasons over the text of the Dockerfile you provide, so it cannot inspect the actual built image, scan installed packages for CVEs, or detect issues that only appear at runtime. It is not a replacement for dedicated image scanners, signing tools, or a full security audit. Its flags are heuristics based on common container pitfalls, not guarantees. It does not rewrite or build your Dockerfile, and it only sees the files you paste.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
2 uses
Times used to date
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 months ago
Permissions
File Scopes
Read-only is all this skill needs. It reads the Dockerfile (and any .dockerignore or compose snippet) you provide and reasons over it to produce a verdict. It does not write files, build or run images, edit your Dockerfile, make network or cloud calls, or run any commands. Nothing leaves your machine.