← 返回
数据分析

Liudao Heritage

Search, enrich, and manage family heritage and historical relationship data from the LiùDào (六道) SQLite database. Use this skill when answering questions abo...
Search, enrich, and manage family heritage and historical relationship data from the LiùDào (六道) SQLite database. Use this skill when answering questions abo...
sirius-777-llm
数据分析 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 640
下载
💾 6
安装
1
版本
#latest

概述

六道 (LiùDào) Heritage Manager

This skill provides access to the LiùDào family heritage and relationship database. It allows you to query historical figures, analyze relationship networks, and manage personal data with strict privacy controls.

Core Capabilities

  1. Search Database: Look up people by name, including their basic info, relationships, and milestones.
  2. Relationship Engine: Resolve complex queries like "A的B" (e.g., "康熙的父亲").
  3. Data Enrichment: Safely upsert new records or append milestones (history today) to existing ones.

Environment Details

  • Database Path: /home/admin/.openclaw/workspace/liudao-bot/data/liudao.db
  • Core Scripts: Located in /home/admin/.openclaw/workspace/liudao-bot/
  • User Privacy: For private entries (e.g., family members), ensure you pass the correct viewer_id (e.g., 1234567890 for the specific authorized user).

Workflows

1. Searching for a Person

When a user asks about a specific historical figure or family member:

  • Run the python search script passing the name and the user's ID for privacy.
  • Example: python3 scripts/search_person.py "康熙" --viewer_id "5104087055"

2. Resolving Relationships ("A的B")

When a user asks relationship questions (e.g., "朱元璋的长子是谁?"):

  • Use the relation engine script.
  • Example: python3 scripts/resolve_relation.py "朱元璋" "长子"

3. Adding/Editing Data

For inserting a new person or adding milestones:

  • Write a quick python script using db_manager.py's upsert_person method.
  • Ensure is_private=1 and creator_id are set when adding personal family data.

Important Notes

  • Always parse the relations_json and milestones_json carefully; they contain structured relationship links and life events.
  • See references/db_schema.md for exact table structures.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 06:12 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 163 📥 59,776
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 64,936
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 367 📥 140,106