360 Secure SkillHub
360 安全技能中心

Genealogy Agent

面向家族史整理:用 LLM 从回忆录、档案、聊天记录等原始文本中抽取人物、日期、地点和亲属关系,存入本地 JSONL 本体图谱,并可检索外部族谱数据库、生成 Obsidian 兼容库、Mermaid 家谱图与标准 GEDCOM 导出文件。

flobo3
flobo3
热度 34.62
最近更新 2026-05-11 17:39:51
分类:知识依赖:代码执行 / 读写文件 / 第三方 API / 内部调用大模型应用场景:研究 / 笔记整理 / 数据处理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add genealogy-agent
Metadata
name
genealogy-agent
description
Extract, structure, research, and visualize family history from raw text. Builds knowledge graphs, generates Mermaid trees, Obsidian vaults, and GEDCOM exports.

genealogy-agent

A powerful agent skill for extracting, structuring, researching, and visualizing family history from raw text (memoirs, archives, chat logs).

Features

  • LLM Extraction: Parses unstructured text to find people, dates, locations, and relationships.
  • Knowledge Graph: Stores family data in a local JSONL ontology graph.
  • Obsidian Vault Generation: Automatically generates an Obsidian-compatible vault (Markdown files with YAML frontmatter) for your family tree.
  • Auto-Research: Autonomously searches global and regional databases (FamilySearch, Ancestry, OBD Memorial, Geneteka, etc.) to find new facts about ancestors.
  • GEDCOM Export: Exports your family tree to the standard .ged format for use in MyHeritage, FamilySearch, or any desktop genealogy software.
  • Mermaid Visualization: Automatically generates beautiful family tree diagrams.

Setup

  1. Install dependencies: uv pip install pydantic litellm duckduckgo-search
  2. Set your preferred LLM provider (e.g., OPENAI_API_KEY or GEMINI_API_KEY).

Usage

You can ask the agent to:

  • "Extract family members from this text: [text]"
  • "Build a family tree from the extracted data"
  • "Research my great-grandfather Ivan Ivanov born in 1910"
  • "Export my family tree to GEDCOM"
  • "Generate an Obsidian vault from my family data"

Tools

  • extract_family_data: Extracts structured family data (people, dates, relationships) from raw text using an LLM.
  • build_family_graph: Saves extracted data into the local ontology graph.
  • generate_mermaid_tree: Generates a Mermaid diagram from the graph.
  • generate_obsidian_vault: Generates an Obsidian-formatted vault from extracted family data.
  • research_ancestor: Autonomously researches an ancestor using web search and LLM extraction.
  • export_gedcom: Exports extracted family data to a standard GEDCOM (.ged) file.