← 返回 Skills 市场
zengury

Family Soul

作者 zengury · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
112
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install family-soul
功能描述
从家庭群聊记录(微信/WhatsApp/其他)提炼数字人格。 输出 soul.md(集体人格)+ 每位成员的 persona 文件,可直接用于 AI agent 的人格底座。 关键词:群聊分析、家庭人格、soul、persona、数字人格、聊天记录、微信导出、人格提炼。
使用说明 (SKILL.md)

SKILL: Soul Forge — 家庭数字人格提炼

这个 skill 把一份家庭群聊记录变成可用于 AI agent 的人格文件。 基于数字民族志方法论:用 AI 完成「田野调查」→「人格合成」的完整流程。


触发条件

以下情况触发此 skill:

  • 用户说"帮我分析聊天记录"、"生成 soul 文件"、"提炼家庭人格"
  • 用户提供了 .json 聊天导出文件
  • 用户说"运行 soul-forge"、"开始人格提炼"
  • 用户问"怎么用聊天记录生成 persona"

执行流程

第一步:确认输入

询问用户:

  1. 聊天记录文件路径(支持微信 WeFlow 导出的 JSON 格式)
  2. 输出目录(默认:~/soul-forge-output/
  3. 家庭成员角色配置(默认:dad/mom/child 三人结构)

确认 ANTHROPIC_API_KEY 已设置(需要调用 Claude API)。

第二步:后台运行 pipeline

调用:

python3 {SKILL_DIR}/scripts/run_forge.py --file {用户提供的文件路径}

四个阶段,agent 依次推进:

阶段 脚本 说明 预计时间
1 01_parse.py 解析原始聊天 JSON → 标准化消息 30秒
2 02_denoise.py 去噪、按时间分块 1分钟
3 03_extract.py Claude Haiku 批量提取行为模式(Batches API) 10-30分钟
4 04_synthesize.py Claude Opus 综合生成 soul.md + persona 5-15分钟

阶段3说明:使用 Batches API 异步处理,成本低,自动缓存进度。 如被中断可用 --resume 恢复,不重复计费。

第三步:进度汇报

解析 run_forge.py 的标记输出:

  • [STAGE:N:START] → 告知用户"正在进行阶段N"
  • [STAGE:N:DONE] → 告知用户"阶段N完成"
  • [PROGRESS:N/M] → 展示进度条
  • [OUTPUT:path] → 列出生成的文件
  • [ERROR:msg] → 报告错误,建议用户如何处理
  • [DONE] → 宣布完成,展示所有输出文件

第四步:完成后

输出文件说明:

soul-forge-output/
├── soul.md          ← 集体人格,可直接作为 AI agent SOUL.md 使用
├── persona_dad.md   ← 爸爸个人人格
├── persona_mom.md   ← 妈妈个人人格
└── persona_child.md ← 孩子/子女人格

询问用户是否要:

  • 将 soul.md 安装为当前 agent 的 SOUL.md
  • 为每个 persona 创建独立 agent

进阶用法

只更新 soul,不重新生成 persona

告诉 agent:「soul-forge 只更新 soul,跳过 persona」

内部:python3 run_forge.py --file {path} --soul-only

只重新生成 persona(soul 已存在)

告诉 agent:「soul-forge 只刷新 persona」

内部:python3 run_forge.py --file {path} --persona-only

从中断处恢复

告诉 agent:「soul-forge 继续上次的任务」

内部:python3 run_forge.py --resume

查看当前进度

告诉 agent:「soul-forge 状态」

内部:python3 run_forge.py --status


支持的输入格式

格式 来源 说明
微信 WeFlow JSON WeFlow 工具导出 完整支持
标准 CSV 自定义导出 需包含 sender/timestamp/content 列

微信导出方法:用 WeFlow(Mac)→ 选群聊 → 导出 JSON 格式。


成本估算

一份 2-3 年的家庭群聊(~500 块对话):

  • 阶段3(Haiku Batches):约 $0.5-1.0
  • 阶段4(Opus):约 $2-5
  • 合计约 $3-6,一次性

常见问题

Q: 阶段3 很慢怎么办? A: Batches API 通常 10-30 分钟,这是正常的。agent 会持续轮询状态,不需要人工干预。

Q: 中途断了怎么办? A: 说「soul-forge 继续」,脚本会从断点恢复,已完成的阶段不会重复执行。

Q: API key 在哪里设置? A: export ANTHROPIC_API_KEY='sk-ant-...',或在 OpenClaw 的环境变量设置里配置。

Q: 支持几个人的群聊? A: 默认三人(dad/mom/child),可在 pipeline/config.py 修改角色配置。


方法论背景

基于数字民族志(Digital Ethnography):

  • 阶段1-2:田野记录整理(去噪、结构化)
  • 阶段3:系统性观察(Haiku 提取五维度行为模式)
  • 阶段4:民族志分析(Opus 综合「厚描」)

Clifford Geertz:「浅描记录行为,厚描解释意义。」

soul.md 是厚描的产物——不是行为清单,而是理解这个家庭需要什么样的解释框架。

安全使用建议
Key things to check before installing or running this skill: - Do not run on real family chat exports until you are comfortable with where the data goes. The code will send chat text to external LLM APIs. - Inspect scripts/run_forge.py (entrypoint) to confirm which extraction implementation it chooses by default. If it calls any of the 'kimi' or 'openclaw' variants, those scripts include an embedded API key and/or will call third-party endpoints. - Search the repository for the literal string 'sk-kimi-' and for domains like 'kimi.com' or 'moonshot.cn'. If present, remove or replace hard-coded keys and change any fallback logic so the code requires an explicit environment variable (do not silently fall back to an embedded credential). - If you intend to use only Anthropic/your own key: ensure all scripts invoked by run_forge.py rely only on ANTHROPIC_API_KEY and fail explicitly if it is missing. Consider removing unused provider scripts from the skill bundle. - Run the pipeline in an isolated environment (network-restricted or monitored) the first time, and test with synthetic/non-sensitive data to confirm behavior and endpoints. - Because the repository includes sample chat exports with PII, delete or replace those files before adding your own real exports. - If you are not comfortable auditing Python code, do not install/run this skill. At minimum, ask the author to remove embedded credentials, to document all external endpoints/providers, and to require explicit env vars for any third-party APIs.
功能分析
Type: OpenClaw Skill Name: family-soul Version: 0.1.0 The skill bundle is designed to analyze chat logs and synthesize digital personas using LLMs. While the logic is consistent with its stated purpose, it contains a significant security vulnerability: a hardcoded Kimi API key (sk-kimi-Sgsy7YYJPrkwJbUu0EvyGCIOZLbkdvNDcGzN0GrxknUNmXwfLlxlzcyG3Ufs3xAI) present in multiple files, including pipeline/03_extract_kimi_openclaw.py, pipeline/03_extract_kimi_v2.py, and pipeline/03_extract_simple.py. Per the instructions, the presence of such vulnerabilities warrants a 'suspicious' classification, although no evidence of intentional malice or data exfiltration to the author was found.
能力评估
Purpose & Capability
The name/description (family chat -> persona/soul.md) aligns with the included parsing/denoising/extraction/synthesis pipeline. Having multiple extractor implementations (Anthropic, Kimi/Moonshot, OpenClaw variants) can be legitimate as provider/backend choices, but the repository does not declare those alternate credentials in SKILL.md or metadata and instead embeds provider-specific code paths and keys. That mismatch is unexpected.
Instruction Scope
SKILL.md instructs the agent to run scripts that parse user-provided chat files and send chunked text to external LLM APIs. That core scope is appropriate for the stated purpose, but the runtime instructions require ANTHROPIC_API_KEY while several pipeline scripts will call Kimi/Moonshot endpoints (and some contain hard-coded API keys/fallbacks). Those scripts therefore expand the instruction surface to send sensitive chat contents to additional third parties that the SKILL.md does not mention.
Install Mechanism
This is an instruction-plus-code skill (no installer). There is no external download during install (low install risk), but the package includes runnable Python scripts which will execute and perform network calls. Because code is shipped with the skill, review of the files is required prior to execution.
Credentials
SKILL.md and README state ANTHROPIC_API_KEY (Anthropic) is required, but multiple pipeline scripts reference KIMI_API_KEY / MOONSHOT_API_KEY and three different scripts include an embedded API key string (e.g. 'sk-kimi-Sgsy7YYJ...'). Hard-coded keys and implicit fallbacks (env var OR hardcoded value) are disproportionate for the stated purpose and risk unauthorized transmission of private chat data to third-party services. The skill metadata declares no required env vars, which is inconsistent with runtime requirements.
Persistence & Privilege
The skill does not request always:true and doesn't declare system-wide modifications. It will read user-provided files and write outputs to a local output directory; that is expected behavior for this functionality.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install family-soul
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /family-soul 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Family chat analysis pipeline - extract behavioral patterns from chat history
元数据
Slug family-soul
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Family Soul 是什么?

从家庭群聊记录(微信/WhatsApp/其他)提炼数字人格。 输出 soul.md(集体人格)+ 每位成员的 persona 文件,可直接用于 AI agent 的人格底座。 关键词:群聊分析、家庭人格、soul、persona、数字人格、聊天记录、微信导出、人格提炼。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 112 次。

如何安装 Family Soul?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install family-soul」即可一键安装,无需额外配置。

Family Soul 是免费的吗?

是的,Family Soul 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Family Soul 支持哪些平台?

Family Soul 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Family Soul?

由 zengury(@zengury)开发并维护,当前版本 v0.1.0。

💬 留言讨论