Java container and kubernetes readiness

From VincentChuWaiChow/vanguard-frontier-agentic · View interactive version

Java container and kubernetes readiness is an AI agent skill from the GitHub repository VincentChuWaiChow/vanguard-frontier-agentic. Use this skill when statically reviewing whether a JVM is correctly sized and configured for the container it runs in — UseContainerSupport and cgroup v1/v2 detection, -XX:MaxRAMPercentage or a fixed -Xmx sized to leave off-heap headroom (metaspace, thread stacks, direct/NIO buffers, code cache) und

How to use this skill

Skill file

java-container-and-kubernetes-readiness

Purpose

This skill statically reviews the JVM-in-container fit that a generic Kubernetes pod-spec review does not: whether the JVM actually detects and honors the container's memory and CPU limits, whether heap sizing leaves the off-heap components (metaspace, thread stacks, direct/NIO buffers, code cache) enough headroom under that limit to avoid a cgroup OOMKill, whether CPU-driven pool sizing (GC threads, ForkJoinPool.commonPool) matches the CPU limit rather than the host's core count, and whether GC pause behavior fits inside the liveness probe's failure budget so a healthy-but-paused JVM is not killed and restart-looped. It also checks for a startupProbe on slow-starting JVMs. The review is JVM-specific correctness layered on top of the pod spec, not a restatement of general resource-sizing advice.

Trigger conditions

When not to use

Lean operating rules

References

Load these only when needed:

Response minimum

Return, at minimum:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.