Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Analyses Dockerfiles and Compose files for security, image size, build cache and config problems, with CI-ready exit codes.
86% 95%+9 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 19 of 22 without it.
This test ran on v1. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
37 agent runs
The agent reviews Dockerfiles and Compose files the way a careful platform engineer would: security first (root user, secrets, privileged containers, floating tags), then image size and build-cache order, then operability (health checks, restart policies, resource limits). The two analyzers catch the mechanical issues so the review can focus on the design.
Before running the analysis, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
--file and which tool runs).--security-only/--check-ports).--format json and whether findings gate a pipeline).Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
dockerfile_analyzer.py and the Compose file with compose_validator.py.ENV/environment, root user, privileged mode, host port conflicts. Then floating tags, then layer and cache order, then health checks and limits.USER, dependency files copied before source.docker build and docker compose config to confirm the files still work. The analyzers read text; only a build proves the image.python3 scripts/dockerfile_analyzer.py --file examples/Dockerfile.sample # latest tag, ENV secret, root (exit 1)
python3 scripts/compose_validator.py --file examples/docker-compose.sample.yml # port clash, privileged, literal passwords (exit 1)
python3 scripts/compose_validator.py --file examples/docker-compose.sound.yml # clean (exit 0)
python3 scripts/compose_validator.py --file examples/docker-compose.sample.yml --check-ports # port check only
In CI, write one report per tool (two JSON documents in one file is not valid JSON) and gate on the exit codes:
python3 scripts/dockerfile_analyzer.py --file Dockerfile --format json > dockerfile-report.json
Next to this one in the catalogue, plus more from the same author.