fix-missing-reachability-metadata
Installation
SKILL.md
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.
- Run
- 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.
- Locate any
- 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.
- Write to
- Add the missing
conditionfield: