oracle/graalvm-reachability-metadata/fix-missing-reachability-metadata
Claude Code and agent skill by oracle/graalvm-reachability-metadata
- community
Checking that the SKILL.md file is still in the repository.
Fix missing GraalVM reachability metadata for a specific library. Use when the user asks to fix or add metadata because required metadata is missing and tests or native-image runs fail with missing metadata errors.
Install
npx vskill@latest install oracle/graalvm-reachability-metadata/fix-missing-reachability-metadataSKILL.md
The same SKILL.md was published earlier as oracle/graalvm-reachability-metadata/fix-missing-reachability-metadata.
Fix missing reachability metadata entries in the reachability-metadata.json
Overview
Run a reproduce-fix-verify loop for missing metadata errors. Keep running the target test until it passes with no new missing metadata entries.
Library coordinates should be provided in the prompt in the format group:artifact:version. If you are not sure what the coordinates are, ask the user.
Workflow
- Reproduce the failure:
- Run
./gradlew test -Pcoordinates=<coordinates>from repository root.
- Classify the failure:
- If the failure is a
Missing*RegistrationErroror GraalVM reports matching metadata that is inactive because its condition was not satisfied, continue with metadata repair.
- Capture the missing metadata from the error message:
- Locate any
Missing*RegistrationError(e.g.MissingReflectionRegistrationError,MissingResourceRegistrationError, or any other variant). - Copy the suggested JSON entry for the missing type into the corresponding section of the reachability-metadata.
- Choose the target file and insert the entry:
- Write to
metadata/<library-specific-metadata-directory>/reachability-metadata.json. - Keep valid JSON and avoid duplicating an existing equivalent entry. If the type already exists but a method or field is missing, add only that method or field.
- Add the missing
conditionfield:
- Infer it from the error stack trace.
- Set the
conditionfield to{ "typeReached": "<class>" }, where<class>is the first class on the stack trace whose package shares the leading namespace with the tested library's package. - Package overlap can be partial, full package equality is not required.
- Example: tested library's group
org.hibernate.orm...and the class from a stack traceorg.hibernate.resource...is a valid match.
- Verify and iterate:
- Run
./gradlew test -Pcoordinates=<coordinates>again. - If another missing entry appears, repeat from step 2.
- Finish only when the test run succeeds.
Error Patterns
Use this reference when deriving the missing entry and condition.
Missing Registration Entry Pattern
Example error shape:
Condition Inference
For missing type org.hibernate.id.enhanced.SequenceStyleGenerator, a valid condition class is:
org.hibernate.boot.model.internal.GeneratorBinder
Reason: both share the leading namespace org.hibernate, which is sufficient for this workflow.
Inactive Condition (metadata present but too late)
If GraalVM reports that metadata for an access was found but is inactive because its runtime condition was not satisfied, treat the existing condition as too late for that access. Read the access stack and move or duplicate the matching entry under the narrowest library type that is reached before the access occurs. Do not reuse an unsatisfied condition merely because it relates to the same library feature.
Environment Troubleshooting
- If failures look unrelated or tooling looks inconsistent, verify both
JAVA_HOMEandGRAALVM_HOMEpoint to a compatible GraalVM JDK distribution. - If they are not set to GraalVM, ask the user to provide the correct GraalVM distribution path and retry.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/fix-missing-reachability-metadata/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/oracle/graalvm-reachability-metadata/fix-missing-reachability-metadata)