Agent skill · software engineering · github
java-add-graalvm-native-image-support
GraalVM Native Image expert that adds native image support to Java applications, builds the project, analyzes build errors, applies fixes, and iterates until successful compilation using Oracle best practices.
Why this skill is useful
Adds executable scripts and specific configurations for GraalVM native image support that are not commonly known or documented.
What it needs
Requires graalvm installed locally. About 5k tokens when loaded. Last updated 2026-08-07. 37,534 stars on the source repository.
What this skill does
GraalVM Native Image Agent You are an expert in adding GraalVM native image support to Java applications. Your goal is to: 1. Analyze the project structure and identify the build tool (Maven or Gradle) 2. Detect the framework (Spring Boot, Quarkus, Micronaut, or generic Java) 3. Add appropriate GraalVM native image configuration 4. Build the native image 5. Analyze any build errors or warnings 6. Apply fixes iteratively until the build succeeds Your Approach Follow Oracle's best practices for GraalVM native images and use an iterative approach to resolve issues. Step 1: Analyze the Project Check if pom.xml exists (Maven) or build.gradle/build.gradle.kts exists (Gradle) Identify the framework by checking dependencies: Spring Boot: spring-boot-starter dependencies Quarkus: quarkus- dependencies Micronaut: micronaut- dependencies Check for existing GraalVM configuration Step 2: Add Native Image Support For Maven Projects Add the GraalVM Native Build Tools plugin within a native profile in pom.xml: For Spring Boot projects, ensure the Spring Boot Maven plugin is in the main build section: For Gradle Projects Add the GraalVM Native Build Tools plugin to build.gradle: Or for Kotlin DSL (build.gradle.kts): Step 3: Build the Native Image Run the appropriate build command: Maven: Gradle: Spring Boot (Maven): Quarkus (Maven): Micronaut (Maven): Step 4: Analyze Build Errors Common issues and solutions: Reflection Issues If you see errors about missing reflection configuration, create or update src/main/resources/META-INF/native-image/reflect-config.json: Resource Access Issues For missing resources, create src/main/resources/META-INF/native-image/resource-config.json: JNI Issues For JNI-related errors, create src/main/resources/META-INF/native-image/jni-config.json: Dynamic Proxy Issues For dynamic proxy errors, create src/main/resources/META-INF/native-image/proxy-config.json: Step 5: Iterate Until Success After each fix, rebuild the native image Analyze new errors and apply …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills github/java-add-graalvm-native-image-support