Local Context Review
python scripts/_handler.py is a local diagnostics helper for the GEDCOM Explorer skill. It may inspect env. Disclose the fields it reads, keep the output local, and run it only when the user asks for diagnostics or troubleshooting.
GEDCOM Explorer
Parse any GEDCOM file and generate a self-contained interactive HTML dashboard.
Quick Start
python3 scripts/build_explorer.py <input.ged> [output.html] [--title "Title"] [--subtitle "Subtitle"]
Examples
# Basic — outputs family-explorer.html in current directory
python3 scripts/build_explorer.py ~/my-family.ged
# Custom output path and title
python3 scripts/build_explorer.py ~/my-family.ged ~/Desktop/hart-family.html \
--title "Hart Family Tree" --subtitle "Six generations of history"
# Demo with bundled US Presidents data
python3 scripts/build_explorer.py assets/demo-presidents.ged presidents.html \
--title "Presidential Family Explorer" --subtitle "US Presidents & Their Ancestors"
Features
- Dashboard — Stats grid (people, families, places, generations), On This Day events, top surnames, geographic origins, people by century, party breakdown (for presidential data)
- Family Tree — Interactive tree visualization with zoom/pan, select any person as root, color-coded by gender/president status
- People — Searchable/filterable directory with gender and president filters, pagination, click for full detail modal
- Timeline — Chronological events (births, deaths, marriages) with filters and search
- Daily Alerts — Today's anniversaries, random ancestor spotlight, fun facts
- Person Modal — Full detail view with parents, spouses, children (all clickable links)
- Global Search — Search across all tabs by name, place, or year
How It Works
build_explorer.py parses the GEDCOM, extracts all individuals + families, computes stats, and embeds everything as inline JSON in a single HTML file. No server needed — just open the HTML.
Auto-detects US Presidents from OCCU (occupation) fields. Works with any GEDCOM; presidential features simply won't appear if no president data exists.
GEDCOM Sources
Users can export .ged files from:
- Ancestry.com → Tree Settings → Export Tree
- FamilySearch.org → Download GEDCOM
- MyHeritage → Family Tree → Export → GEDCOM
- Any genealogy software (Gramps, RootsMagic, Legacy, etc.)
Demo Data
assets/demo-presidents.ged — Public domain US Presidents GEDCOM (2,322 people, 1,115 families, 44 presidents). Source: webtreeprint.com.
Serving Locally
cd /path/to/output/dir
python3 -m http.server 8899
# Open http://localhost:8899/family-explorer.html
Extending
The generated HTML is fully self-contained. To customize:
- Edit CSS variables in
:root for theming
- The dashboard adapts to whatever data is in the GEDCOM — no presidential data required
- For OpenClaw cron integration: parse GEDCOM daily events and send "On This Day" notifications via Telegram
1---2name: gedcom-explorer-73description: Generate an interactive family tree dashboard from any GEDCOM (.ged) file. Creates a single-file HTML app with 5 tabs (Dashboard, Family Tree, People, Timeline, Daily Alerts), search, person modals, charts, and "On This Day" events. Use when asked to visualize genealogy data, explore family history, build a family tree viewer, or work with GEDCOM files. Triggers on "family tree", "genealogy", "GEDCOM", "ancestors", "family explorer", "family history dashboard".4metadata:5 source: https://skillmd.com/skills/knownasnaffy/gedcom-explorer-76---7891011### Local Context Review1213`python scripts/_handler.py` is a local diagnostics helper for the `GEDCOM Explorer` skill. It may inspect env. Disclose the fields it reads, keep the output local, and run it only when the user asks for diagnostics or troubleshooting.1415# GEDCOM Explorer1617Parse any GEDCOM file and generate a self-contained interactive HTML dashboard.1819## Quick Start2021```bash22python3 scripts/build_explorer.py <input.ged> [output.html] [--title "Title"] [--subtitle "Subtitle"]23```2425### Examples2627```bash28# Basic — outputs family-explorer.html in current directory29python3 scripts/build_explorer.py ~/my-family.ged3031# Custom output path and title32python3 scripts/build_explorer.py ~/my-family.ged ~/Desktop/hart-family.html \33 --title "Hart Family Tree" --subtitle "Six generations of history"3435# Demo with bundled US Presidents data36python3 scripts/build_explorer.py assets/demo-presidents.ged presidents.html \37 --title "Presidential Family Explorer" --subtitle "US Presidents & Their Ancestors"38```3940## Features4142- **Dashboard** — Stats grid (people, families, places, generations), On This Day events, top surnames, geographic origins, people by century, party breakdown (for presidential data)43- **Family Tree** — Interactive tree visualization with zoom/pan, select any person as root, color-coded by gender/president status44- **People** — Searchable/filterable directory with gender and president filters, pagination, click for full detail modal45- **Timeline** — Chronological events (births, deaths, marriages) with filters and search46- **Daily Alerts** — Today's anniversaries, random ancestor spotlight, fun facts47- **Person Modal** — Full detail view with parents, spouses, children (all clickable links)48- **Global Search** — Search across all tabs by name, place, or year4950## How It Works5152`build_explorer.py` parses the GEDCOM, extracts all individuals + families, computes stats, and embeds everything as inline JSON in a single HTML file. No server needed — just open the HTML.5354Auto-detects US Presidents from OCCU (occupation) fields. Works with any GEDCOM; presidential features simply won't appear if no president data exists.5556## GEDCOM Sources5758Users can export `.ged` files from:59- **Ancestry.com** → Tree Settings → Export Tree60- **FamilySearch.org** → Download GEDCOM61- **MyHeritage** → Family Tree → Export → GEDCOM62- Any genealogy software (Gramps, RootsMagic, Legacy, etc.)6364## Demo Data6566`assets/demo-presidents.ged` — Public domain US Presidents GEDCOM (2,322 people, 1,115 families, 44 presidents). Source: webtreeprint.com.6768## Serving Locally6970```bash71cd /path/to/output/dir72python3 -m http.server 889973# Open http://localhost:8899/family-explorer.html74```7576## Extending7778The generated HTML is fully self-contained. To customize:79- Edit CSS variables in `:root` for theming80- The dashboard adapts to whatever data is in the GEDCOM — no presidential data required81- For OpenClaw cron integration: parse GEDCOM daily events and send "On This Day" notifications via Telegram