container-native-deployment

container-native-deployment is a skill for Claude Code, Codex from rrezartprebreza/spring-boot-skills. It costs 46 tokens per session (664 once invoked), scanned A, original, MIT.

A guide for packaging a Spring Boot 3 application as a container image or a GraalVM native executable. A container image bundles an application for deployment, while a native executable is compiled to start without a traditional Java virtual machine.

In plain words
What is it for?
Use it when creating OCI images, configuring buildpacks and image layers, setting container probes and resource limits, or adding the runtime hints needed for a native build.
Why use it?
It helps make builds repeatable and deployments safer, while addressing startup time, memory limits, health checks, secrets, permissions, and native-image configuration.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the spring-boot-3-skills plugin — 33 skills shipped together

Good fit Use it when creating OCI images, configuring buildpacks and image layers, setting container probes and resource limits, or adding the runtime hints needed for a native build.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rrezartprebreza/spring-boot-skills/container-native-deployment
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add rrezartprebreza/spring-boot-skills --skill container-native-deployment
Clone the repo
git clone --depth 1 https://github.com/rrezartprebreza/spring-boot-skills

Made for: Claude Code, Codex.

Or install spring-boot-3-skills, the plugin that ships this one along with the rest of its 33 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for container-native-deployment

README.md
[![agentmods](https://agentmods.dev/badge/skills/rrezartprebreza/spring-boot-skills/container-native-deployment/github.svg)](https://agentmods.dev/skills/rrezartprebreza/spring-boot-skills/container-native-deployment)
Your own site
<a href="https://agentmods.dev/skills/rrezartprebreza/spring-boot-skills/container-native-deployment"><img src="https://agentmods.dev/badge/skills/rrezartprebreza/spring-boot-skills/container-native-deployment/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for container-native-deployment

Your own site · 80×15
<a href="https://agentmods.dev/skills/rrezartprebreza/spring-boot-skills/container-native-deployment"><img src="https://agentmods.dev/badge/skills/rrezartprebreza/spring-boot-skills/container-native-deployment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 664 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00664
Opus 5.5 $0.00018 $0.00266
Sonnet 5.5 $0.00009 $0.00133
Haiku 4.5 $0.00005 $0.00066

Measured 2mo ago against content hash f0500c493e37, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

container-native-deployment scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/spring-boot-3/container-native-deployment/SKILL.md · 63 lines

How it starts

The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Container and Native Deployment

Choose JVM or native from measured startup, memory, throughput, and build constraints.

Container image

  • Prefer the Spring Boot build-image task with Cloud Native Buildpacks for standard services.
  • Keep dependency and application layers separate to maximize cache reuse.
  • Pin builder and run-image families in reproducible release pipelines.
  • Run as a non-root user on a read-only filesystem where the application permits it.
  • Supply secrets at runtime; never bake credentials or environment files into an image.
  • Configure graceful shutdown and align platform termination grace with application timeouts.

Runtime behavior

  • Set memory and CPU limits, then verify JVM ergonomics inside those limits.
  • Expose dedicated readiness and liveness probes through Actuator.
  • Keep startup probes for slow initialization instead of weakening liveness.
  • Write temporary files only under an explicit writable location.

Native image

  • Use Spring AOT and the supported GraalVM native build tools.
  • Add RuntimeHints for reflection, resources, serialization, or proxies that analysis cannot infer.
  • Avoid runtime bean-shape changes and other closed-world violations.
  • Run native integration tests; a successful JVM test suite is not sufficient.

Supply chain

  • Generate an SBOM, scan the final image, and patch builder/run images regularly.
  • Use immutable image digests for promotion between environments.

Examples

  • See examples/good-dockerfile and examples/bad-dockerfile.

The good example targets Boot 3.3+ and uses jarmode=tools extraction in a builder stage. For Boot 3.0-3.2, use the older -Djarmode=layertools ... extract command. A normal Maven package does not create target/dependencies/ or target/application/ directories by itself.

Official sources

Read the full file on GitHub · 63 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 63 lines · 46 tokens per session scan A f0500c493e37

Subscribe to this mod's changes

container-native-deployment is a skill published in the GitHub repository rrezartprebreza/spring-boot-skills (328 stars, last pushed 7d ago), licensed MIT. It adds 46 tokens to every session and 664 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

java-install-skill

A Java installation helper that installs a chosen JDK version on a server using a package manager or Docker. It checks the operating system and skips installation when the requested version is already present.

jiushiwon/wg-skills · 49 tokens

scan-local-target

Check local MCP ZAP scanner readiness before a requested crawl or scan in Codex, Cursor or Claude Code. Use for scanning a local Docker scanner target, including guided crawl-to-report requests and recovery after Docker or scanner changes. Preserve the selected client settings and require approval for recovery actions.

dtkmn/mcp-zap-server · 61 tokens

graalvm-native-image

Provides expert guidance for building GraalVM Native Image executables from Java applications. Use when converting JVM applications to native binaries, optimizing cold start times, reducing memory footprint, configuring native build tools for Maven or Gradle, resolving reflection and resource issues in native builds…

giuseppe-trisciuoglio/developer-kit · 124 tokens

mainframe-modernization-cobol2java

Reverse engineer IBM mainframe applications and guide COBOL/JCL/CICS/VSAM/DB2 modernization into Java Spring Boot microservices, HTML/CSS/JS frontend, tests, Docker, and Kubernetes. Use when Codex is asked to analyze legacy COBOL, JCL, CICS, copybooks, assembler utilities, mainframe batch/online entry points, or to…

binrogithub/1-3-Cloud-Adoption-Skills · 97 tokens

chainguard-libraries-java

Configure a Java/Maven or Gradle project to use Chainguard Libraries for hardened Java dependencies. Use when the user wants to set up Chainguard Libraries for Maven or Gradle, or asks about hardened Java packages.

chainguard-dev/chainguard-cursor-plugin · 52 tokens

java-spring-ai

Use when the user asks to add AI features, integrate Spring AI or LangChain4J, build a chatbot, implement RAG (retrieval-augmented generation), use vector stores, stream LLM responses, or call AI tools/functions in a Spring Boot project.

ducpm2303/claude-java-plugins · 59 tokens