# Genealogy Research Skill
Family ancestry discovery. Going deep to discover and _validate_ your true roots.
<img width="448" height="177" alt="CleanShot 2026-12-01 at 16 47 51" src="https://github.com/user-attachments/assets/7c26b084-7b6f-4681-aea0-fd9c92337d88" />
<img width="416" height="113" alt="CleanShot 2026-12-01 at 16 48 16" src="https://github.com/user-attachments/assets/c45cea9a-0f65-4de3-9d09-ef0916723604" />
_https://x.com/dom_sipowicz FDE at Vercel, London/Kraków_
A comprehensive, **global**, evidence-first genealogy skill for AI coding agents (Claude Code, Codex, Copilot CLI, Gemini CLI, Cursor, and any runtime supporting [agentskills.io](https://agentskills.io/specification)), built on the [Genealogical Proof Standard](https://www.bcgcertification.org/ethics-standards/) (GPS).
Covers family history worldwide—Europe, UK & Ireland, the Americas, Oceania, **and full archival/regional depth across all 15 former Soviet republics, the USSR, and the Russian Empire**—from unindexed handwritten parish registers and revision lists to civil registries, military/repression/migration archives, Obsidian vaults, auditable CSV registers, GEDCOM enrichment, and standalone editorial HTML/PDF family reports.
## What It Does
- **Global + Complete Former-USSR Coverage**: National, provincial/departmental, oblast, diocesan, municipal, society, military (WWI/WWII), repression/deportation, Ostarbeiter, cemetery, newspaper, and migration sources across Europe, UK & Ireland, all 15 former Soviet republics, the Americas, and Oceania
- **Analyzes historical documents across languages and scripts**: Preserves literal text, script, transliteration, translation, and normalized interpretation separately, with an anti-hallucination visual verification protocol for handwritten records and unindexed scan volumes
- **Tracks source independence & identity rigor**: Separates copies, mirrors, indexes, and multiple readings into `independence_group`s; isolates namesakes with multi-attribute matrices; builds kinship edge by edge; evaluates authorized DNA data conservatively
- **Delivers Obsidian vaults, auditable CSV registers, and standalone HTML/PDF reports**: Maintains Obsidian notes (`People`, `Places`, `Documents`, `Events`, `Research`), `PROCESS.md`, `research-state.md`, `photos/README.md`, auditable CSV registers (`scripts/evidence_audit.py` + `scripts/register_search.py`), a standalone editorial HTML report with click-to-evidence family tree (`assets/report.template.html`), and optional verified static-HTML-to-PDF export (`scripts/build_pdf.py`)
- **Prevents false negatives & decodes garbled places**: Validates search results against unloaded JS tables, encoding traps (`windows-1251` vs. UTF-8), unapplied URL filters, and catalog-vs-book conflicts; decodes vanished/distorted place names via converging spellings
- **Triages unindexed scans & local HTR/OCR**: Includes `scripts/scan_montage.py` (column-strip contact sheets), `scripts/htr_search.py` (fuzzy multi-term search across PAGE/ALTO/JSON/TXT with diacritic & pre-reform Cyrillic normalization), and `scripts/hash_artifact.py` (SHA-256 + magic-byte verification)
- **Guides FamilySearch / MCP, archive correspondence, family interviews, & photo research**: Scoped FamilySearch MCP & unindexed film workflows, targeted archive/civil-registry requests (including named-field extracts and proof-of-kinship chains), non-leading relative interviews, and provenance-grounded photo identification and dating
- **Works conservatively with GEDCOM**: Builds evidence packets, proposes reviewable patches, cites assertions, enforces privacy redaction, and validates structure, link reciprocity, CSV register alignment (`--case-dir`), and semantic diffs with `scripts/gedcom_check.py`
## Installation
Copy or clone this directory into your runtime's skills folder:
| Runtime | Path |
|---------|------|
| Claude Code | `~/.claude/skills/genealogy-research/` (or `.claude/skills/` inside a project) |
| Codex, Copilot CLI, Gemini CLI | `~/.agents/skills/genealogy-research/` |
| Cursor | `.cursor/skills/genealogy-research/` inside the project |
```bash
# Skills CLI (Claude Code, Codex, Gemini CLI, Cursor, etc.)
npx skills add https://github.com/sliday/genealogy-research
# Or clone directly
git clone https://github.com/sliday/genealogy-research ~/.claude/skills/genealogy-research
```
`genealogy-research.skill` is the same content zipped for Claude Code's skill importer. Rebuild it with `sh scripts/package.sh` after editing. Most scripts use only Python 3's standard library; `scripts/scan_montage.py` optionally uses `Pillow`.
```
genealogy-research/
├── SKILL.md
├── references/
│ ├── evidence-and-identity-protocol.md
│ ├── unindexed-scans-and-paleography.md
│ ├── search-validation-and-continuity.md
│ ├── archive-requests-interviews-photos.md
│ ├── ex-ussr-sources-and-regions.md
│ ├── databases-by-region.md
│ ├── local-databases-by-country.md
│ ├── uk-ireland-local-sources.md
│ ├── source-access-catalog.md
│ ├── naming-conventions.md
│ ├── common-pitfalls.md
│ ├── gedcom-enrichment-workflow.md
│ ├── gedcom-tools-catalog.md
│ ├── familysearch-and-mcp.md
│ └── vault-templates.md
├── assets/
│ ├── report.template.html
│ └── final-report.template.md
├── scripts/
│ ├── gedcom_check.py
│ ├── evidence_audit.py
│ ├── register_search.py
│ ├── build_pdf.py
│ ├── htr_search.py
│ ├── scan_montage.py
│ ├── hash_artifact.py
│ └── package.sh
├── tests/
└── evals/
```
## Usage
Start a conversation with your agent in your family history project directory (keep private case data outside the skill repository). The skill triggers automatically when you:
- Share a scan, photo, or database screenshot of a historical document
- Ask about ancestors, historical jurisdictions, or family history
- Work with an Obsidian vault, CSV research registers, or GEDCOM files
- Read unindexed parish/civil/census films or draft archive requests and relative interviews
### Example Starter Prompt
```
You are a genealogy research partner. My project is in this directory.
Region: Poland / Russian Empire partition, 19th century
Languages: Polish, Russian, Latin
Obsidian vault: vault/
I have scans of parish registers in sources/.
Start by analyzing the documents and building a research plan.
```
## What's Included
| File | Purpose |
|------|---------|
| `SKILL.md` | Core GPS methodology, language policy, workflow, helper index, and guardrails |
| `references/evidence-and-identity-protocol.md` | Source independence (`independence_group`), namesake matrices, edge-by-edge kinship, DNA protocol, privacy & redaction checklist |
| `references/unindexed-scans-and-paleography.md` | Navigating unindexed films, book numbering/totals, anti-hallucination visual reading protocol, record-type tactics (revisions, confessional lists, *brachnye obyski*, early ZAGS) |
| `references/search-validation-and-continuity.md` | Ruling out false-empty searches (JS shells, encoding, URL filters), catalog-vs-book reconciliation, 7-step distorted place-name decoding, multi-session & parallel coordination |
| `references/archive-requests-interviews-photos.md` | Institutional & civil-registry request drafting (`online`/`hybrid`/`offline`), non-leading family interviews, photo discovery, provenance-based identification & dating |
| `references/ex-ussr-sources-and-regions.md` | Comprehensive guide to all 15 former Soviet republics & Russian Empire: Russia (GIS UIAD, Yandex Archive Search, ZAGS *Иные сведения*, repression/rehabilitation law), Ukraine, Belarus, Moldova/Bessarabia, Habsburg Galicia/Bukovina, South Caucasus, Central Asia & 1944 deportations, WWI GWAR/POWs, WWII & Ostarbeiter/Germany |
| `references/databases-by-region.md` | Quick global index of major databases by region |
| `references/local-databases-by-country.md` | Local/regional databases plus native-language query packs |
| `references/uk-ireland-local-sources.md` | Deeper UK and Ireland county/archive/society catalog |
| `references/familysearch-and-mcp.md` | FamilySearch indexed/unindexed collections (`Explore Images`, DGS, Full-Text) and scoped FamilySearch MCP read/write/merge workflows |
| `references/source-access-catalog.md` | Official APIs, open-data protocols (IIIF, OAI-PMH, SRU), exports, manual-only services, and access rules |
| `references/naming-conventions.md` | Surname, patronymic, pre-reform Cyrillic, Slavic, Germanic, Romance/Romanian, Scandinavian, Jewish, Armenian, Turkic/Caucasian patterns, and exact-match query matrices |
| `references/common-pitfalls.md` | Indexing gaps, copy-chain inflation, visual reading & encoding traps, calendar/date traps, military/repression caveats, oral-history drift |
| `references/gedcom-enrichment-workflow.md` | Conservative `.ged` enrichment: backups, evidence packets, single-parent FAM separation, calendar portability, patch gates, citations, privacy, and validation |
| `references/gedcom-tools-catalog.md` | The 22 `gedcom.tools` browser tools: sequencing, privacy/mutation gates, and limits |
| `references/vault-templates.md` | Obsidian templates (`People`, `Places`, `Documents`, `Events`, `Research`), `PROCESS.md`, `SOURCES.md`, `research-state.md`, `photos/README.md`, `case-intake.yaml`, and CSV register headers |
| `assets/report.template.html` | Standalone print-ready, responsive, multilingual editorial HTML family-history report with click-to-evidence family tree |
| `assets/final-report.template.md` | Structured Markdown final report template audited against CSV registers |
| `scripts/gedcom_check.py` | Stdlib GEDCOM 5.5.1/7.0 checker: record counts, duplicate XREFs, dangling pointers, target-type mismatches, `INDI`↔`FAM` reciprocity, format warnings, optional `--case-dir` register cross-check, uncited assertions, possibly-living people, baseline diffs |
| `scripts/evidence_audit.py` | Stdlib CSV register scaffolder (`--init`) & auditor: referential integrity, malformed CSV detection, `independence_group` backing, conclusion-status discipline, `final-report.md` cross-checks, search-log linkage |
| `scripts/register_search.py` | Stdlib idempotent importer registering `manual`, `familysearch`, or `gwar` search leads with SHA-256 raw snapshots as `lead-only` artifacts |
| `scripts/build_pdf.py` | Stdlib static-HTML validator & headless Chrome/Chromium/Edge PDF exporter (strict CSP, rejects scripts/remote images/unfilled placeholders, atomic write) |
| `scripts/htr_search.py` | Stdlib fuzzy multi-term search across PAGE XML, ALTO XML, JSON, and UTF-8 TXT page transcriptions |
| `scripts/scan_montage.py` | Column-strip contact-sheet builder for fast visual triage of uniform archival scans (optional `Pillow`) |
| `scripts/hash_artifact.py` | Stdlib SHA-256 checksum & magic-byte sanity checker for saved downloads/scans |
| `tests/` | Automated `unittest` suite covering all helper scripts (`python3 -m unittest discover -s tests`) |
| `evals/` | Scenario prompts with pass/fail criteria for testing agent behavior |
## Methodology
Based on the Genealogical Proof Standard (GPS):
1. **Conclusion status**: Proven / Probable / Possible / Unresolved / Disproven, based on the whole evidence body
2. **Evidence & independence analysis**: Source type, information quality, direct/indirect/negative evidence, and `independence_group` copy-chain discipline evaluated separately
3. **Planning & validation**: Document knowns, formulate bounded questions, verify technical search validity before treating zero hits as negative evidence
4. **Edge-by-edge kinship & namesake isolation**: Never jump generations or merge same-name candidates without correlated discriminating evidence
5. **API/export before scraping; strict lawful access**: Use documented interfaces and never bypass logins, CAPTCHAs, paywalls, or rate limits
6. **Patch & privacy gates**: Review relationship edits, merges, deletions, and external inquiries before execution; redact living people thoroughly before sharing
7. **Human + AI workflow**: Scripts and APIs provide reproducible artifacts and triage; humans handle restricted access, archive fees/submissions, and ambiguous judgments
## Origin & Acknowledgments
Born from a real family history project that reconstructed 8 generations (1760s–2013) across Poland, Russia, New Zealand, and the USA in two days of systematic research. Enriched with evidence-protocol, paleography/scan-triage, search-validation, correspondence, and former-USSR/Russian Empire field methodology inspired by [DenisSergeevitch/ex-ussr-kinship-research](https://github.com/DenisSergeevitch/ex-ussr-kinship-research) (MIT License).
## License
MIT