An evidence-first genealogy skill for AI agents (Codex, Claude Code and other Agent Skills runtimes). It turns an agent into a careful family-history researcher for the former USSR, the Soviet Union and the Russian Empire. The agent reads church books and civil records, military, deportation and repression files, and unindexed archive scans. It keeps every find traceable, separates records from interpretation and says plainly what is proven and what is not.
Coverage includes all 15 former Soviet republics: Russia, Ukraine, Belarus, Moldova, Estonia, Latvia, Lithuania, Georgia, Armenia, Azerbaijan, Kazakhstan, Kyrgyzstan, Tajikistan, Turkmenistan and Uzbekistan. Archives are chosen by the event's historical jurisdiction and current record custodian; a regional example does not replace local research.
The skill's instructions are written in Russian, but the agent talks to you in your language: English, Ukrainian, Russian, Polish, German and so on. It quotes sources in their original spelling with a translation, and builds search queries in the languages of the records.
- Case intake and scope. One research question, known facts, who may be alive, what is off-limits.
- Reproducible registers. Persons, artifacts, claims, relationships and a full search log (CSV), plus a final report template.
- Historical jurisdiction model. It resolves every event to the state, province, district, parish or civil registry as of the event date, not today's map.
- Name-variant matrices. Pre-reform Russian, Ukrainian, Polish, Romanian, German and Yiddish forms, patronymics, maiden names and transliterations.
- Source strategy. Originals first, then official catalogs, indexes, published document collections, and only then trees and forums as leads.
- Evidence protocol. Claims get explainable statuses, not percentages:
hypothesis,single-source,corroborated,strongly-corroborated,contradicted,unresolved. Copies and mirrors of one record share anindependence_group, so they never count as independent proof. - Identity resolution. Namesakes stay separate
person_ids until distinguishing evidence appears: house number, parents, godparents, exact birth date or military unit. - Audit script. It checks referential integrity and flags weak corroboration before you write conclusions. An independence group counts only when a cited artifact belongs to it, so corroboration cannot be declared into existence. It also checks the final report: every cited ID must exist in the registers and every status must match them. A summary shows what is still uncorroborated or marked illegible.
- Final report. Every relationship is laid out edge by edge, with contradictions, failed searches and concrete next steps.
Release history: changelog.
Clone the repository into your agent's skills folder:
# Codex
git clone https://github.com/DenisSergeevitch/ex-ussr-kinship-research ~/.codex/skills/ex-ussr-kinship-research
# Claude Code (personal skills)
git clone https://github.com/DenisSergeevitch/ex-ussr-kinship-research ~/.claude/skills/ex-ussr-kinship-researchFor a single project, put the folder in .claude/skills/ inside the repository. The scripts need only Python 3 and the standard library; build_pdf.py also needs a Chromium-based browser.
Describe the family question. The agent works from available information and continues while questions or access requests await a reply. For example:
- "My great-grandfather was exiled to Kazakhstan in the 1930s. Help me find his parents in church records."
- "Here are scans of a marriage certificate and a soldier card. Check whether they are the same person and build the evidence chain."
- "Find the parish and the right FamilySearch film for a village in Podolia in the 1890s and read the births for the surname X."
Keep private case data outside the skill's Git checkout. From the skill folder:
python scripts/init_case.py --case-dir ~/kinship-cases/my-case --research-question "Who were Maria's parents?" --subject-label "Maria"
python scripts/hash_artifact.py ~/kinship-cases/my-case/scans/marriage-1902.jpg # SHA-256 for every saved artifact
python scripts/audit_evidence.py --case-dir ~/kinship-cases/my-case # check registers before the final report
python scripts/build_pdf.py --html ~/kinship-cases/my-case/pdf-source/report.html --out ~/kinship-cases/my-case/report.pdfinit_case.py refuses to create a case inside the skill folder, including with
--force. Git ignores common legacy case-folder names as an additional safeguard;
check staged files before contributing, especially if moving an existing case.
build_pdf.py needs Chrome, Chromium or Edge installed (or CHROME_PATH). With --png-dir it also renders pages to PNG for review if pypdfium2 is available.
Use static HTML with local or embedded images. Active HTML and network image sources are rejected; source links remain clickable. A failed render preserves any existing output PDF.
SKILL.md main instructions (workflow, hard rules, language policy)
references/
source-strategy.md source hierarchy, query patterns, catalogs, archive requests
evidence-protocol.md artifact assessment, statuses, identity resolution, conflicts
ex-ussr-locale-guide.md jurisdictions, name variants, calendars, record types by period
browser-and-captcha.md browsing, sign-in, CAPTCHA hand-off, rate limits
privacy-and-safety.md living people, minors, DNA, sensitive findings
seed-sources.md curated starting resources with reliability classes
field-lessons.md practical lessons from a real case
changelog.md release history
photo-search.md finding, identifying, dating and storing photos
habsburg-galicia-bukovina.md Galicia and Bukovina under the Habsburgs and after
assets/ case intake, CSV registers, final report template,
photos README template, readable PDF template (report-pdf.template.html)
scripts/ init_case.py, hash_artifact.py, audit_evidence.py, build_pdf.py
evals/discovery-and-logic.yaml trigger and reasoning test cases
tests/ unit tests (python3 -m unittest discover -s tests)
- Family history, not surveillance. The skill refuses to look up current addresses, phones or accounts of living people, and it minimizes their data in reports.
- No bypassing. No CAPTCHA solving, no paywall, geo-block or rate-limit evasion, no leaked databases. Sign-ins are done by the user.
- No uploads of your documents or DNA data to third-party services without your explicit consent.
- Sensitive findings (deportation, repression, adoption, DNA surprises) are reported neutrally and only as far as the question requires.
- Archive access rules change. Always check the current official procedure before sending a request; the skill only drafts requests, it does not send them.
New sources are welcome in references/seed-sources.md. Record verified owner, jurisdiction, collection, provenance, IDs, access, restrictions and check date where known; mark gaps instead of guessing. Keep personal data out of examples.
MIT © 2026 Denis Shiryaev.
Maintained by Denis Shiryaev (@DenisSergeevitch).
