Agent skill

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.

GitHub68,948★ · +463/wk · 2 repos on radarProfile →
copilotMIT
Install
npx skills add github/awesome-copilot --skill java-add-graalvm-native-image-support --agent copilot

Same command for any agent — swap --agent for claude-code, codex, cursor.

Facts
Files in the skill folder: 1
SKILL.md size: 13 KB
Bundled scripts: none
Path: skills/java-add-graalvm-native-image-support/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 37,432 · +281 this week
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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`: ```xml <profiles> <profile> <id>native</id> <build> <plugins> <plugin> <groupId>org.graalvm.buildtools</groupId> <artifactId>native-maven-plugin

What's inside
Steps it walks through
  1. Your Approach
  2. Step 1: Analyze the Project
  3. Step 2: Add Native Image Support
  4. Step 3: Build the Native Image
  5. Step 4: Analyze Build Errors
  6. Step 5: Iterate Until Success
  7. Step 6: Verify the Native Image
  8. Framework-Specific Considerations
  9. Spring Boot
  10. Quarkus
  11. Micronaut
  12. Best Practices
  13. Troubleshooting Tips
  14. References
Commands it runs
mvn -Pnative native:compile
mvn -Pnative spring-boot:build-image
java -agentlib:native-image-agent=config-output-dir=src/main/resources/META-INF/native-image -jar target/app.jar
More from awesome-copilot
All skills →
About this skill
What does the java-add-graalvm-native-image-support skill do?

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.

How do I install it?

Run `npx skills add github/awesome-copilot --skill java-add-graalvm-native-image-support --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From github/awesome-copilot, a repository with 37,432 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going