
Dockerfile Validator
This validator runs hadolint and Checkov against your Dockerfiles and classifies findings into Critical, High, Medium, and Low buckets. It skips reference docs if everything passes, which is a nice touch. The skill follows a strict execution order and includes fallback branches for when you're in a locked-down environment without Python or Docker. You get severity-based reporting that maps issues to specific reference files (security checklist, optimization guide, best practices). The deterministic flow and explicit fallback handling make it reliable in CI pipelines where tool availability varies. If you're reviewing Dockerfiles before merge or hardening images for production, this gives you structured output without the usual tool-chaining guesswork.
- skills.sh installs
- 786
- GitHub stars
- 337
- last updated
- Aug 21, 2026
Install
$ npx -y skills add akin-ozer/cc-devops-skills --skill dockerfile-validator --agent claude-codeInstalls into .claude/skills of the current project.
Files
Dockerfile Validator
Validate Dockerfiles with deterministic stages, clear severity reporting, and explicit fallbacks when tools or network access are constrained.
Trigger Phrases
Use this skill when the user asks for tasks like:
- "validate this Dockerfile"
- "lint/check my Dockerfile"
- "security scan Dockerfile"
- "optimize Docker image size/build time"
- "review Dockerfile before merge"
- "find issues in Dockerfile.prod/Dockerfile.dev"
Use / Do Not Use
Use this skill for:
- Syntax and lint validation
- Security and secrets checks
- Best-practice and performance review
- Dockerfile hardening before CI/CD or production
Do not use this skill for:
- Generating a new Dockerfile from scratch (use
dockerfile-generator) - Running containers, debugging runtime behavior, or image registry operations
Local Files In This Skill
- Validator script:
scripts/dockerfile-validate.sh - References:
references/security_checklist.mdreferences/optimization_guide.mdreferences/docker_best_practices.md
- Example Dockerfiles:
examples/*.Dockerfile
Deterministic Execution Flow (Required)
Sponsors
Details
- Repository
- github.com/akin-ozer/cc-devops-skills
- Categories
- Security, DevOps & CI/CD, Code Review & Quality
- First seen
- Jun 3, 2026
More from akin-ozer/cc-devops-skills
All 31- Dockerfile Generator741
- Bash Script Validator734
- Gitlab Ci Validator725
- K8s Yaml Validator715
- Helm Validator712
- Bash Script Generator710
- Jenkinsfile Validator706
- Terragrunt Validator703
- K8s Yaml Generator694
- Azure Pipelines Generator692
- Github Actions Validator686
- Gitlab Ci Generator686
- Github Actions Generator684
- Terraform Validator681
- Azure Pipelines Validator680
- Terraform Generator680
- Helm Generator674
- Makefile Validator671
- Makefile Generator659
- Promql Generator656
- Promql Validator646
- Fluentbit Generator640
- Logql Generator640
- Fluentbit Validator637