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 $0.00023 $0.00332
Sonnet 5 $0.00009 $0.00133
Haiku 4.5 $0.00005 $0.00066

Measured 10d ago against content hash f0500c493e37, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 10d 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. 10d 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 (260 stars, last pushed 2d ago), licensed MIT. It adds 46 tokens to every session and 664 once invoked, about $0.0002 per session on Opus 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

design-patterns

Common design patterns with Java examples (Factory, Builder, Strategy, Observer, Decorator, etc.). Use when user asks "implement pattern", "use factory", "strategy pattern", or when designing extensible components.

decebals/claude-code-java · 47 tokens

solid-principles

SOLID principles checklist with Java examples. Use when a class has too many responsibilities, an abstraction leaks, or a dependency points the wrong way, and when the user asks about Single Responsibility, Open/Closed, Liskov, Interface Segregation or Dependency Inversion. For naming, duplication and method length…

decebals/claude-code-java · 73 tokens

java-migration

Guide for upgrading Java projects between major versions (8→11→17→21→25). Use when user says "upgrade Java", "migrate to Java 25", "update Java version", or when modernizing legacy projects.

decebals/claude-code-java · 51 tokens

jpa-patterns

JPA/Hibernate patterns and common pitfalls (N+1, lazy loading, transactions, queries). Use when user has JPA performance issues, LazyInitializationException, or asks about entity relationships and fetching strategies.

decebals/claude-code-java · 47 tokens

spring-boot-patterns

Spring Boot best practices and patterns. Use when creating controllers, services or repositories, or when the user asks about Spring Boot layering, wiring, configuration or exception handling. For JPA and Hibernate behaviour, use jpa-patterns instead.

decebals/claude-code-java · 53 tokens

test-quality

Write high-quality JUnit 5 tests with AssertJ assertions. Use when user says "add tests", "write tests", "improve test coverage", or when reviewing/creating test classes for Java code.

decebals/claude-code-java · 45 tokens