dockerfile-best-practice-reviewer
БесплатноБез исполняемых скриптовНе проверенReview a Dockerfile for layer hygiene, least-privilege users, pin practices, and clearer build structure. Use when drafting or cleaning up container builds.
от hmahmadcs376 установок в других каталогахОб этом скилле
Dockerfile Best Practice Reviewer
Purpose / Overview
Provide a structured review of a Dockerfile the user pastes: what is fine, what to change, and a suggested patch sketch — without claiming to run a build unless asked.
When to Use
- New service containerization
- Image size or build-time complaints
- Security review of build instructions
Usage / Instructions
- Ask for the Dockerfile contents (and base image constraints if any).
- Review in this order:
a. Base image choice and tags (
:latestrisk) b. Package installs (cleanup, combinedRUN, pinning) c. Multi-stage opportunities d.COPY/ADDscope and.dockerignorereminders e. Non-rootUSERf.HEALTHCHECK,EXPOSE, signal handling (STOPSIGNAL/ tini notes) g. Secrets in build args/ENV (flag strongly) - For each issue: severity (high/med/low), why, and a concrete rewrite snippet.
- Call out what already looks good so the review is balanced.
- Prefer minimal diffs over full rewrites unless the file is short.
- If multi-stage would clearly help, sketch builder vs runtime stages.
- Do not invent registry names or private base images.
- If the user asks to "make it production-ready," still keep changes explainable.
- Remind that runtime orchestration (readiness probes) may belong outside Docker.
- Offer a final checklist of 5 verification commands (
docker build, run as non-root, etc.) without executing them unless requested. - Keep answers structured with short headings so the user can skim.
- If information is missing, ask at most two clarifying questions before guessing.
- Prefer concrete commands or checklists the user can copy.
- Call out assumptions explicitly when the environment is unknown.
- Refuse to invent tool output you did not see; ask for a fresh paste instead.
- When offering optional follow-ups, keep them clearly optional.
- Stay within this skill's scope; suggest a different task type if the request drifts.
- End with a brief "done when" criterion so the user knows success.
Examples
Single-stage Python image as root with pip install and no cleanup
→ suggest multi-stage, non-root user, and apt/pip cleanup patterns.
Requirements / Dependencies
None for review. Docker CLI only if the user wants build commands run locally.
Limitations / Caveats
Cannot validate that a private base image exists. Distro package names vary.
Security / Permissions
Flag secrets in ENV/ARG. Do not ask for registry passwords. Text review only by default.
Description
Review a Dockerfile for layer hygiene, least-privilege users, pin practices, and clearer build structure.
License or terms
Research
Use case
For users and teams who want a concise assistant for: Review a Dockerfile for layer hygiene, least-privilege users, pin practices, and clearer build structure.
Risks and mitigations
References
- Dockerfile reference: https://docs.docker.com/reference/dockerfile/
Ethical considerations
This skill may not be used illegally. Violations of domestic or international law are unacceptable; The publisher will not be accountable for such use. Do not use it to plan physical harm, terror-related activity, or other violent crime. Do not use it to generate instructions for committing crimes.
Установить dockerfile-best-practice-reviewer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл dockerfile-best-practice-reviewer?
Review a Dockerfile for layer hygiene, least-privilege users, pin practices, and clearer build structure. Use when drafting or cleaning up container builds.
Как установить скилл dockerfile-best-practice-reviewer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dockerfile-best-practice-reviewer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic