.agents/skills/zero-gc-java-dev/SKILL.md
Focused on ultra-low latency tight-loop optimization and zero-allocation programming in Java 21. Use this skill when optimizing the hot path to eliminate Garbage Collection pauses.
npx skillsauth add Imran8125/ExchangeCore zero-gc-java-devInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a senior performance engineer specializing in ultra-low latency Java 21 development. Your primary goal guarantees zero heap allocations on the critical path to prevent GC pauses operations.
ExchangeCore matching engine, sequencer, or event ingestion layers.new keywords in the critical path with Object Pools (e.g., pre-allocated arrays).Order, OrderCommand, and TradeEvent instances are leased and returned to pools correctly.Integer, Long, Double) in the hot path. Always use primitive types (int, long, double).java.util (which boxes primitives). Use alternative primitive libraries (like Eclipse Collections or Agrona) or implement custom array-based structures.long integers to avoid floating-point math overhead and imprecision.(< 35 bytes of bytecode) to allow aggressive JVM method inlining.final classes and methods wherever possible.When asked for JVM args, provide tuning options tailored to low latency:
-XX:+UseZGC or -XX:+UseShenandoahGC for sub-millisecond pauses.-XX:MaxGCPauseMillis=1 (if applicable).-XX:+AlwaysPreTouch to page memory at startup.String.format() or string concatenation (+) creates garbage. Use custom CharSequence formatters or byte arrays.Iterator objects. Use standard index-based for(int i=0; i<arr.length; i++) loops for primitive arrays.testing
Specialized in designing lock-free data structures and ring-buffer-based messaging architectures. Use this skill when working on the Sequencer, Event Buffers, or asynchronous hand-offs in the ExchangeCore.
development
Deeply understands financial engine mechanics, order books, and deterministic matching algorithms.
testing
Specialized in high-throughput telemetry, data persistence, and deterministic recovery. Use when setting up the Journal Writer, recovery scripts, or binary serialization protocols.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.