data-modeling

Design genealogy data schemas with source-first evidence and GEDCOM 5.5.1 alignment.

2|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/jonaseck2/slaktforskning --skill data-modeling-jonaseck2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-modeling
Source: https://github.com/jonaseck2/slaktforskning/tree/main/.claude/skills/data-modeling
Command: npx skills add https://github.com/jonaseck2/slaktforskning --skill data-modeling-jonaseck2

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Designing a genealogy schema that preserves evidence correctly while avoiding permanent mistakes like storing inferred values in the database.

Core Features & Use Cases

  • Source-first schema guidance: Separates evidence (sources → citations) from conclusion data (persons, relationships, events, places) so research is traceable.
  • GEDCOM-compatible modeling: Helps align internal entities with GEDCOM 5.5.1 import/export expectations, including relationship/event mappings.
  • Robust uncertainty handling: Defines a genealogy date model (exact/about/before/after/between/unknown) so uncertainty is represented rather than flattened.

Quick Start

Ask the AI to design an ERD and SQL/TypeScript schema for persons, relationships, events, places, sources, and citations that follows the authored-vs-inferred persistence rule and maps cleanly to GEDCOM 5.5.1.

Frequently Asked Questions about data-modeling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design a genealogy database schema that separates evidence from conclusions?

To design a genealogy database schema that separates evidence from conclusions, model sources and citations independently from persons, relationships, and events. This source-first approach enforces an authored-vs-inferred persistence rule, ensuring research remains fully traceable and avoiding permanent mistakes.

How do I model uncertain genealogy dates in SQLite?

To model uncertain genealogy dates in SQLite, implement a structured date model that explicitly captures exact, about, before, after, between, and unknown states. This uncertainty-safe modeling ensures date ambiguity is accurately represented rather than flattened into exact timestamps.

Does GEDCOM 5.5.1 alignment work with custom genealogy database schemas?

GEDCOM 5.5.1 alignment works with custom genealogy schemas by mapping internal entities for persons, relationships, and events to expected import/export structures. This includes evaluating GEDCOM-X vs GEDCOM 5.5.1 scenarios to ensure clean data interchange.

What is an authored-vs-inferred persistence rule in genealogy data modeling?

An authored-vs-inferred persistence rule in genealogy data modeling is a constraint requiring that only explicitly recorded evidence is stored, preventing inferred values from permanently overwriting database records. This keeps conclusion data distinct from source evidence.

How do I structure SQLite batch writes for genealogy data imports?

To structure SQLite batch writes for genealogy data imports, apply performance-aware write guidance that handles junction tables and foreign keys efficiently. This approach manages complex relationship mappings and source citations without degrading database import speed.

Can I generate an ERD for genealogy sources, citations, and media relationships?

Yes, you can generate an ERD for genealogy sources, citations, and media relationships. The schema design defines table relationships and foreign keys across persons, families, events, and media, ensuring proper junction-table modeling for complex many-to-many associations.