706-technologies-containers-docker — скилл для Claude Code
Скилл 706-technologies-containers-docker помогает проверять и настраивать Docker-образы Java-проектов: от Dockerfile и jlink до безопасности и воспроизводимости сборки.
Apache-2.0 225 установок ★ 465 обновлён 2026-10-21
npx skills add jabrena/plinth --skill 706-technologies-containers-docker -a claude-codeЧто делает 706-technologies-containers-docker
Скилл разбирает контейнеризацию Java на уровне Dockerfile, сборки образа и среды запуска. Он помогает настроить многоэтапную сборку Maven, кэширование зависимостей, .dockerignore и пользовательскую среду Java через jlink. Рекомендации не привязаны к Spring Boot, Quarkus или Micronaut.
При проверке учитываются запуск без root, права файлов, секреты в слоях образа, параметры JVM и ограничения контейнера по памяти и CPU. Скилл также рассматривает метки образа, проверки уязвимостей, SBOM и воспроизводимость сборки. Для изменений Java или Maven сначала требуется запустить ./mvnw compile либо mvn compile; перед продвижением изменений — ./mvnw clean verify либо mvn clean verify.
Перед правками нужно выяснить версию Java, инструмент сборки и ограничения платформы развёртывания, если они влияют на решение. Настройка поведения Spring Boot, Quarkus и Micronaut, а также тестов на Testcontainers выходит за рамки этого скилла: для них предлагается обратиться к профильным скиллам.
Какие задачи решает
- проверить Dockerfile Java-проекта
- собрать многоэтапный образ с Maven
- добавить пользовательскую среду Java через
jlink - убрать запуск контейнера от root
- проверить воспроизводимость сборки образа
Примеры запросов агенту
- Проверь Dockerfile моего Java-проекта и предложи правки для безопасного запуска контейнера.
- Добавь
jlinkв сборку образа и проверь, подходит ли модульный граф приложения. - Оцени воспроизводимость Docker-сборки и учти ограничения контейнера по памяти.
Как установить 706-technologies-containers-docker
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 706-technologies-containers-docker -a claude-code2Вручную: положить файлы
~/.claude/skills/706-technologies-containers-docker/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/706-technologies-containers-docker/
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 706-technologies-containers-docker -a codex2Вручную: положить файлы
.agents/skills/706-technologies-containers-docker/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 706-technologies-containers-docker -a cursor2Вручную: положить файлы
.cursor/skills/706-technologies-containers-docker/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install jabrena/plinth skills/706-technologies-containers-docker2Вручную: положить файлы
.github/skills/706-technologies-containers-docker/SKILL.md1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 706-technologies-containers-docker -a gemini-cli2Командой платформы
gemini skills install https://github.com/jabrena/plinth --path skills/706-technologies-containers-dockerВручную: положить файлы
.devin/skills/706-technologies-containers-docker/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 706-technologies-containers-docker -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о 706-technologies-containers-docker
Как установить 706-technologies-containers-docker в Claude Code?
Выполните npx skills add jabrena/plinth --skill 706-technologies-containers-docker -a claude-code. Файл скилла находится по пути ~/.claude/skills/706-technologies-containers-docker/SKILL.md.
Что делает 706-technologies-containers-docker?
Скилл помогает проектировать и проверять Docker-образы Java: Dockerfile, сборку Maven, настройки JVM и меры безопасности контейнера.
Нужно ли запускать проверку Maven перед изменениями?
Перед предложением изменений Java или Maven в том же наборе правок требуется выполнить ./mvnw compile либо mvn compile. Перед продвижением изменений скилл предписывает запустить ./mvnw clean verify либо mvn clean verify.
Исходный текст
SKILL.md · Apache-2.0
--- name: 706-technologies-containers-docker description: Use when you need framework-agnostic Docker and container image guidance for Java projects - Dockerfile design, multi-stage Maven builds, jlink custom runtimes, micro runtime distributions such as Alpaquita, JVM container ergonomics, non-root execution, image metadata, .dockerignore, reproducible builds, vulnerability scanning, SBOM awareness, and production-safe container defaults. This should trigger for requests such as Review Java Dockerfile; Improve Docker image security; Add jlink runtime to a Java container; Add containerization to a Java project; Optimize Java container image size; Review Docker build reproducibility. Part of Plinth Toolkit license: Apache-2.0 metadata: author: Juan Antonio Breña Moral version: 0.19.0 --- # Java container image best practices with Docker Help teams build secure, reproducible, and maintainable **Docker container images** for Java applications without coupling the guidance to Spring Boot, Quarkus, or Micronaut. **What is covered in this Skill?** - Dockerfile structure for Java applications: multi-stage builds, Maven dependency caching, deterministic artifact copies, `jlink` custom runtimes, and `.dockerignore` - Runtime image selection: micro distributions such as Alpaquita, minimal JRE images, pinned versions or digests where appropriate, image labels, and explicit entrypoints - JVM container ergonomics: memory percentage flags, startup behavior, graceful shutdown signals, time zones, and predictable runtime options - Security defaults: non-root users, least privilege, no secrets in layers, reduced package managers, vulnerability scanning, SBOM awareness, and avoiding privileged containers - Operational readiness: health checks when suitable, stdout/stderr logging, port declaration, image size control, build reproducibility, and CI verification **Scope:** Framework-agnostic Docker and container-image quality for Java projects. For framework runtime wiring, defer to the matching Spring Boot, Quarkus, or Micronaut skill. For Testcontainers-based tests, defer to the relevant testing skill. ## Constraints Keep recommendations at the Dockerfile, image-build, and runtime-container layer unless the user explicitly asks for framework-specific configuration. After editing this repository's XML sources, regenerate skills and verify the build. - **MANDATORY**: Run `./mvnw compile` or `mvn compile` before proposing Java or Maven changes in the same change set - **SECRETS**: Never bake credentials, tokens, private keys, Maven settings with secrets, or environment-specific secrets into image layers, labels, arguments, or logs - **SECURITY**: Prefer non-root execution, least-privilege filesystem permissions, micro runtime images, and explicit container capabilities over privileged defaults - **JLINK**: Prefer `jlink` custom runtimes for production images when the module graph is known, validated at runtime, and compatible with the application's dependencies - **REPRODUCIBILITY**: Pin base image versions intentionally, document digest trade-offs, keep build inputs explicit, and avoid network-dependent runtime startup steps - **JVM**: Account for container memory and CPU limits with JVM flags, graceful shutdown behavior, and observable startup failures before claiming production readiness - **BOUNDARIES**: Defer Spring Boot runtime behavior to `@301-frameworks-spring-boot-core`, Quarkus runtime behavior to `@401-frameworks-quarkus-core`, Micronaut runtime behavior to `@501-frameworks-micronaut-core`, and Testcontainers setup to the matching testing skill - **VERIFY**: Run `./mvnw clean verify` or `mvn clean verify` before promoting changes - **EDGE CASE**: If the target Java version, build tool, deployment platform, base-image policy, registry policy, or security scanner is missing and affects the recommendation, ask a clarifying question before editing container artifacts - **EDGE CASE**: If requested changes conflict with security policy, image provenance, air-gapped builds, or runtime platform constraints, explain the trade-off and ask for confirmation ## When to use this skill - Review Java Dockerfile - Improve Docker image security - Add jlink runtime to a Java container - Add containerization to a Java project - Optimize Java container image size - Review Docker build reproducibility ## Workflow 1. **Read reference and assess container context** Read `references/706-technologies-containers-docker.md` and inspect current Dockerfiles, `.dockerignore`, Maven build inputs, image build scripts, CI jobs, registry policy, and deployment constraints before proposing changes. 2. **Identify runtime and supply-chain constraints** Confirm Java version, build tool, `jlink` module requirements, micro distro compatibility, target platform, base-image policy, registry requirements, vulnerability scanner, SBOM expectations, memory limits, exposed ports, and operational readiness needs. 3. **Apply container-aligned changes** Implement or refactor Docker and container build artifacts following the reference patterns and project conventions, keeping framework-specific runtime behavior out of scope unless explicitly requested. 4. **Run verification and report results** Execute appropriate build, image build, scan, smoke-test, and generator checks; summarize what changed, what was verified, and any remaining container risks. ## Reference For detailed guidance, examples, and constraints, see [references/706-technologies-containers-docker.md](references/706-technologies-containers-docker.md).
© Juan Antonio Breña Moral · Apache-2.0 · jabrena/plinth