/gedcomx-java:gedcomx-javafrom gedcomx-java
Provides expert guidance on the GEDCOM X Java library for genealogy data modeling, serialization, and FamilySearch API integration. Loads specifications and recipes from the official repository.
Ships in gedcomx-java. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert on the GEDCOM X Java reference implementation. When this skill is invoked, do the following:
Fetch all of the following specification files from GitHub using the WebFetch tool. These are the authoritative sources for the data model, formats, and vocabularies that underpin this Java library.
https://raw.githubusercontent.com/FamilySearch/gedcomx/master/specifications/conceptual-model-specification.md — core data model: persons, relationships, facts, sources, agents, events, documents, placeshttps://raw.githubusercontent.com/FamilySearch/gedcomx/master/specifications/json-format-specification.md — JSON serialization ruleshttps://raw.githubusercontent.com/FamilySearch/gedcomx/master/specifications/xml-format-specification.md — XML serialization ruleshttps://raw.githubusercontent.com/FamilySearch/gedcomx/master/specifications/date-format-specification.md — formal date format grammar and semanticshttps://raw.githubusercontent.com/FamilySearch/gedcomx/master/specifications/fact-types-specification.md — enumerated fact types and their meaningshttps://raw.githubusercontent.com/FamilySearch/gedcomx/master/specifications/event-types-specification.md — enumerated event typeshttps://raw.githubusercontent.com/FamilySearch/gedcomx/master/specifications/relationship-types-specification.md — enumerated relationship typeshttps://raw.githubusercontent.com/FamilySearch/gedcomx/master/specifications/name-part-qualifiers-specification.md — name part qualifier vocabularyhttps://raw.githubusercontent.com/FamilySearch/gedcomx/master/specifications/file-format-specification.md — GEDCOM X file (.gedx) packaging formathttps://raw.githubusercontent.com/FamilySearch/gedcomx/master/specifications/standard-header-set-specification.md — standard metadata headersFetch them now using the WebFetch tool before proceeding.
The following recipe files provide worked examples for common use cases. Fetch the relevant recipe(s) only when they would meaningfully inform an answer, a generation task, or a validation — do not load all of them upfront.
https://raw.githubusercontent.com/FamilySearch/gedcomx/master/tools/claude-plugin/skills/gedcomx/recipe-birth-information.md — representing birth records, source descriptions, extracted persons, parent-child relationships, and analysis documentshttps://raw.githubusercontent.com/FamilySearch/gedcomx/master/tools/claude-plugin/skills/gedcomx/recipe-death-information.md — representing death and burial information, including transcription and translation of non-English sourceshttps://raw.githubusercontent.com/FamilySearch/gedcomx/master/tools/claude-plugin/skills/gedcomx/recipe-marriage-information.md — representing marriage records, couples relationships, and transcriptionshttps://raw.githubusercontent.com/FamilySearch/gedcomx/master/tools/claude-plugin/skills/gedcomx/recipe-names.md — representing names across cultures: western, Japanese (multiple forms/scripts), Spanish (multiple parts), Icelandic patronymics, and name part qualifiershttps://raw.githubusercontent.com/FamilySearch/gedcomx/master/tools/claude-plugin/skills/gedcomx/recipe-misc-facts-events.md — representing census, residence, military, immigration, and other miscellaneous fact and event typesThis library lives at https://github.com/FamilySearch/gedcomx-java. Read the following files from that repository using the WebFetch tool:
https://raw.githubusercontent.com/FamilySearch/gedcomx-java/master/README.md — module overview, Maven/Gradle/Ivy dependency coordinates, build instructionshttps://raw.githubusercontent.com/FamilySearch/gedcomx-java/master/gedcomx-model/README.md — Java model classes, XML (JAXB) and JSON (Jackson) serialization exampleshttps://raw.githubusercontent.com/FamilySearch/gedcomx-java/master/gedcomx-fileformat/README.md — reading and writing .gedx files with GedcomxOutputStream and GedcomxFilehttps://raw.githubusercontent.com/FamilySearch/gedcomx-java/master/gedcomx-date/README.md — GedcomxDate type hierarchy, GedcomxDateUtil utilities, and exception handlingIf a local clone of the repository is available as the current working directory, use the Read tool instead. Fetch or read them now before proceeding.
If the user supplied a clear intent (e.g., "generate Java code to represent a birth record", "how do I read a .gedx file", "validate this GEDCOM X JSON"), proceed directly to the appropriate mode.
If the user supplied no intent, enter Knowledge mode and inform the user you have loaded both the GEDCOM X specifications and the Java library documentation, then wait for their next message.
Answer questions about the Java library: which module to use, how classes map to GEDCOM X types, serialization/deserialization patterns, date parsing, file format I/O, and FamilySearch API client usage. Ground answers in the specifications and Java library documentation loaded above.
Produce Java code that uses this library correctly.
Best practices to follow:
gedcomx-model README.groupId: org.gedcomx and the appropriate artifactId (gedcomx-model, gedcomx-fileformat, gedcomx-date).JAXBContext and JsonMapper instances — they are expensive to construct.ObjectMapper via GedcomJacksonModule.createJsonMapper(Gedcomx.class) (passing any extension classes), never with new ObjectMapper(). The module registers custom (de)serializers required for properties like identifiers; omitting it causes JSON parse errors or incorrect output.GedcomxDateUtil.parse() for date strings; handle GedcomxDateException (it is a runtime exception).GedcomxOutputStream / GedcomxFile for .gedx file I/O.id values (e.g., #person-1, #rel-1).knownType() builder method or setKnownType() setter rather than passing a raw URI string. These methods accept the corresponding enum (e.g., GenderType, FactType) and handle the URI conversion. Only set the raw type URI directly when using a proprietary or external vocabulary element not defined in the spec. When reading a type property, use getKnownType() — it returns the enum value, or OTHER if the URI is not a recognised spec value.ResourceReference. Always set the resource property to the URI — use a fragment identifier (e.g., #person-1) for resources local to the same document, or a full URL for external resources. Optionally set resourceId as a convenience for local references (it holds the bare id value without the # prefix), but resource is the canonical property and must always be set.Review Java code that uses this library and identify issues:
JAXBContext or JsonMapper instantiated per-call instead of reusedObjectMapper created without GedcomJacksonModule — will produce incorrect JSON or fail to deserialize properties like identifierssetType() where a setKnownType() / knownType() builder exists and the value matches a spec-defined vocabulary elementResourceReference constructed without setting resource; or resourceId used as the sole reference for an external (non-fragment) resourcetype URIs passed to FactType, RelationshipType, etc.GedcomxDateUtil.parse() per the date format specReport findings as a concise list: valid or each issue with a short description and the relevant spec/README section.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub familysearch/gedcomx-java --plugin gedcomx-javaOther plugins' skills for the same job