Xpersona
S

soul-archive

CLAWHUB · Unverified

Soul Archive — digital personality persistence + agentic memory. Builds your digital soul clone through everyday AI conversations: persona injection at session start, cross-session recall, failure-pattern warning, pattern distillation. Conversation-end auto sedimentation (auto_extract defaults ON). All data local plaintext JSON. | 灵魂存档 —— 数字人格持久化 + 主动智能体记忆。对话开始注入人格摘要、跨会话召回、失败预警、模式蒸馏;对话结束自动沉淀。数据全本地明文 JSON。Trigger: soul extract/chat/report, 灵魂沉淀/存档, 自我反思. Skill: soul-archive Owner: dqsjqian Summary: Soul Archive — digital personality persistence + agentic memory. Builds your digital soul clone through everyday AI conversations: persona injection at session start, cross-session recall, failure-pattern warning, pattern distillation. Conversation-end auto sedimentation (auto_extract defaults ON). All data local plaintext JSON. | 灵魂存档 —— 数字人格持久化 + 主动智能体记忆。对话开始注入人格摘要、跨会话召回

62
Rank
84
Safety
1.7k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.7K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s171bam7r1t26623myew3k4qrn83xjbg:soul-archive
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-dqsjqian-soul-archive/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

156,517 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: soul-archive
slug: soul-archive
displayName: 灵魂存档 (Soul Archive)
display_name: 灵魂存档 (Soul Archive)
display_name_en: Soul Archive
version: 3.2.2
author: dqsjqian
description: "Soul Archive — digital personality persistence + agentic memory. Builds your digital soul clone through everyday AI conversations: persona injection at session start, cross-session recall, failure-pattern warning, pattern distillation. Conversation-end auto sedimentation (auto_extract defaults ON). All data local plaintext JSON. | 灵魂存档 —— 数字人格持久化 + 主动智能体记忆。对话开始注入人格摘要、跨会话召回、失败预警、模式蒸馏;对话结束自动沉淀。数据全本地明文 JSON。Trigger: soul extract/chat/report, 灵魂沉淀/存档, 自我反思."
description_zh: "灵魂存档 —— 数字人格持久化系统 + 主动智能体记忆。通过日常 AI 对话沉淀说话习惯、知识观点、性格特征、工作偏好与情景记忆,构建数字灵魂副本。对话开始注入人格摘要(≤800 token)、跨会话召回、失败模式预警、行为模式蒸馏;对话结束自动沉淀(auto_extract 默认开启)。数据全部本地明文 JSON,不上传云端,细粒度隐私开关。"
description_en: "Soul Archive — digital personality persistence + agentic memory. Builds your digital soul clone through everyday AI conversations: speech habits, knowledge, personality, workflow preferences, episodic memories. Persona injection at session start (under 800 tokens), cross-session recall, failure-pattern warning, behavior-pattern distillation; conversation-end auto sedimentation (auto_extract defaults ON). All data local plaintext JSON, never uploaded, fine-grained privacy switches."
allowed-tools: Read, Write, Edit, Bash, Grep, Glob
# ^^^ 工具说明:Read/Write/Edit 用于读写数据文件;Bash 用于执行 Python 脚本;
# Grep/Glob 用于文件搜索。数据目录默认为 ~/.agent-guild/skills_data/soul-archive/,
# 用户可通过 --soul-dir 或 SOUL_DIR 环境变量自定义。
requirements:
  - "Python 3.10+"
---

# 🧬 Soul Archive

> *"Every conversation is a slice of the soul. Enough slices, and you can rebuild a complete you."*

## Overview

Soul Archive 是一个**数字人格持久化 + 主动智能体记忆**系统。在用户授权或显式触发下,它能:

- 🗣️ **采集说话习惯** —— 口头禅、句式、用词、幽默风格
- 🧠 **采集知识与观点** —— 关注的话题、立场、信奉的方法论
- 👤 **采集个人信息** —— 身份、经历、生活细节
- 💫 **采集性格特征** —— 决策风格、情绪模式、价值观
- ⚙️ **采集工作偏好** —— 工具/技术栈/硬规则/输出偏好
- 🎯 **采集理想抱负** —— 长期目标、正在做的项目、想学的技能
- 📝 **采集情景记忆** —— 具体事件、人生片段
- 🤖 **服务 AI 自身** —— 跨会话召回过往模式、失败预警、行为模式蒸馏

最终成果:一个**数字灵魂副本**,能:
1. **生前** —— 以你的风格替你回应;让其他 AI Agent 一秒"懂你"
2. **身后** —— 让所爱之人继续与"你"对话,留住情感连接

## Core Principles

### 🔒 Privacy First
- 全部数据存在 `~/.agent-guild/skills_data/soul-archive/`,**不上传任何云端**
- 全部明文 JSON。`.gitignore` 拦截 VCS 提交。
- **Soul Chat 流向**:基于本地档案构建 prompt,是否被外部 LLM 看到,取决于你的 agent/平台配置。
- 通过 `config.json` 细粒度控制每个维度的开关。
- 默认敏感话题(健康、财务、亲密关系)需用户确认。

### 🤫 Non-intrusive Extraction
- 不打断对话流,不追问。
- 通过触发词或 `auto_extract: true` 自动激活。
- 只在发现新的、高置信度信息时更新。

> ⚠️ **透明度**:开启 `auto_extract` 意味着 AI 会在对话中提取人格信息。完全控制需 `auto_extract: false`,并以触发词手动激活("沉淀一下" / "soul extract")。首次使用前请审阅 `config.json`。

### 📐 High Confidence
- 每条信息携带置信度。
- 用户明示 > 推理 > 模糊暗示。
- 冲突信息会被标记,不会自动覆盖。

---

## Architecture: Skill ↔ Data Separation

```
{SKILL_DIR}/                                 ← Skill 引擎(本仓库)
~/.agent-guild/skills_data/soul-archive/   ← 你的灵魂数据
```

数据放在 [Agent Guild](https://github.com/dqsjqian/agent-guild) 共享目录的 skills_data 下(与跨 a

README.md

# 🧬 Soul Archive

> *"Every conversation is a slice of the soul. Enough slices, and you can rebuild a complete you."*

[中文版](README_CN.md) · **English** · MIT License

---

A digital personality persistence system + agentic memory engine, working as a [Claude Skill](https://docs.claude.com/en/docs/agents-and-tools/agent-skills/getting-started) / WorkBuddy Skill / generic Python toolkit.

It builds a **digital soul clone** of you through everyday AI conversations, and at the same time gives the AI itself a **proactive long-term memory** so it can stop repeating the same mistakes.

![Soul Archive Header](docs/en/screenshot_header.png)

## Design Principles

- 🔒 **Local-first** — data lives in `~/.agent-guild/skills_data/soul-archive/`, never uploaded
- 📂 **Readable & editable** — plaintext JSON, open and edit anytime
- 🤖 **Active companion** — the AI extracts and recalls automatically as you chat
- 🎯 **Single-user simplicity** — one user, one machine, one soul

## What It Captures

| Axis | Captures |
|---|---|
| 👤 **Identity** | name / age / occupation / location / lifestyle / digital identity |
| 💫 **Personality** | MBTI / Big Five / traits / values / decision style |
| 🗣️ **Language** | catchphrases / sentence patterns / humor / filler words / analogies |
| 🧠 **Knowledge & Views** | topics, stances, belief frameworks (e.g. *first principles*) |
| 📝 **Memory** | episodic events + emotional triggers (12 emotions) |
| ⚙️ **Workflow** | tools / tech stack / hard rules / output preferences |
| 🎯 **Aspirations** | long-term goals / active projects / skills to learn / knowledge gaps |

The result is a **digital soul clone** that can act as you, plus a **persistent context layer** for any AI agent on your machine.

## Six Modes

| Mode | What it does | Trigger |
|---|---|---|
| 🔍 **Soul Extract** | Pull persona info from a conversation into the archive | "soul extract" / "灵魂沉淀" / auto on conversation end |
| 💬 **Soul Chat** | Build a role-play system prompt so the AI talks *as you* | "soul chat" / "灵魂对话" |
| 📊 **Soul Report** | Generate an interactive HTML personality portrait | "soul report" / "灵魂报告" |
| 🎯 **Soul Context Inject** | Output an ≤800-token persona summary for any agent's system prompt | session start |
| 🤖 **Agent Memory** | Recall related patterns / warn on failure-match / distill new patterns | task start |
| 🔄 **AI Self-Improvement** | Reflect, critique, learn from corrections | task completion / user correction |

## Quick Start

```bash
git clone https://github.com/dqsjqian/soul-archive.git
cd soul-archive

# 1. Initialize
python3 scripts/soul.py init

# 2. Check status
python3 scripts/soul.py status

# 3. Inject persona summary at session start
python3 scripts/soul.py context

# 4. Recall related patterns before a task
python3 scripts/soul.py recall --task "the thing I'm about to do"

# 5. Generate the HTML report
python3 scripts/soul.py report --output ~/soul-report.html
```

> **Requirements**: Python 3.10+, no thi

_meta.json

{
  "ownerId": "kn72h3yzebmbfeccjwrz22rnfs83xf4g",
  "slug": "soul-archive",
  "version": "3.2.2",
  "publishedAt": 1789875831306
}

references/extraction_prompts.md

# 灵魂提取 Prompt 模板

## 对话分析提取 Prompt

分析以下对话内容,提取用户的人格信息。只提取你有把握的信息(置信度 > 0.6),不要猜测或编造。

### 提取维度(7 axes)

请按以下格式输出 JSON,**只**包含本次对话中**新发现**的信息:

```jsonc
{
  // 1. 身份(含生活习惯 + 数字身份)
  "basic_info": {
    "name":     { "value": "...", "confidence": 0.9 },
    "occupation": { "value": "...", "confidence": 0.9 },
    "location":   { "value": "...", "confidence": 0.9 },
    "favorite_apps": ["..."]    // 列表类型直接给数组
  },

  // 2. 性格
  "personality": {
    "traits":  ["新发现的性格标签"],
    "values":  ["新发现的价值观"],
    "decision_style": "...",
    "motivation_drivers": ["驱动力"]
  },

  // 3. 语言风格
  "language": {
    "catchphrases":      ["口头禅(出现 2+ 次才算)"],
    "sentence_patterns": ["句式模式描述"],
    "examples":          ["原文例句(直接引用)"],
    "formality_level":   "casual / semi-formal / formal",
    "verbosity":         "concise / moderate / verbose",
    "humor_style":       "描述",
    "filler_words":      ["语气词"],
    "agreement_expressions": ["同意时的表达"],
    "disagreement_expressions": ["不同意时的表达"]
  },

  // 4. 知识与观点
  "topics": [
    {
      "name":         "话题名",
      "sentiment":    "positive / negative / neutral / mixed",
      "stance":       "立场描述",
      "key_opinions": ["具体观点(要有论据)"]
    }
  ],
  "knowledge": {
    "domains":            ["熟悉的领域"],
    "skills":             ["专业技能"],
    "belief_frameworks":  ["信奉的方法论:第一性原理 / 二八法则 / 结论先行 / ..."]
  },

  // 5. 记忆(情景 + 情感)
  "episodic": [
    {
      "event":        "事件描述",
      "emotion":      "当时的情绪",
      "context":      "背景",
      "significance": "normal / important / milestone"
    }
  ],
  "emotional": {
    "triggers": {
      "joy":   ["让 TA 开心的事"],
      "anger": ["让 TA 生气的事"],
      "frustration": ["挫败感来源"]
      // 12 种情绪:joy/anger/sadness/anxiety/excitement/nostalgia/
      //           pride/gratitude/frustration/curiosity/peace/guilt
    },
    "expression_style":   "...",
    "empathy_level":      "low / medium / high",
    "coping_mechanisms":  ["..."]
  },

  // 6. 工作偏好
  "workflow": {
    "tools": {
      "ide":           ["Cursor", "VS Code", "Xcode"],
      "terminal":      ["iTerm2"],
      "ai_tools":      ["Claude Code", "Cursor"],
      "vcs":           ["GitHub", "GitLab"],
      "doc_systems":   ["Notion", "Obsidian"],
      "communication": ["Slack"]
    },
    "tech_stack": {
      "languages":  ["C++", "Python", "Swift"],
      "frameworks": ["React", "FastAPI"],
      "platforms":  ["macOS", "iOS"]
    },
    "hard_rules":          ["禁止 git rebase(仅 merge)", "脏工作树直接 abort"],
    "collab_conventions":  ["公开仓库使用 dqsjqian@163.com"],
    "cli_habits":          ["偏好 gh CLI 而非 git push"],
    "output_preferences": {
      "preferred_format":  "表格优先 / 列表 / 段落",
      "preferred_length":  "简短 / 中等 / 详尽",
      "preferred_tone":    "直接 / 温和 / 活泼",
      "structure_first":   "结论先行 / 推导优先"
    },
    "pet_peeves": ["反感冗长解释", "反感铺垫'好的我来帮你'"]
  },

  // 7. 理想抱负
  "aspirations": {
    "long_term_goals":      ["做一个独立开发者"],
    "active_projects": [
      { "name": "soul-archive", "status": "活跃迭代

docs/multi-device-sync.md

# Multi-device sync & backup

This document covers how to safely back up, sync, or migrate Soul Archive data — especially when you're on multiple machines.

## Where your data lives

```
~/.agent-guild/skills_data/soul-archive/
```

To check the actual path on your machine:

```bash
python scripts/soul_paths.py
```

## Recommended sync strategy

Soul Archive data lives under [Agent Guild](https://github.com/dqsjqian/agent-guild), so backing up the whole tree gives you everything at once:

```bash
# Private git on your own server
cd ~/.agent-guild && git init && git add . && git commit -m "snapshot"

# rsync to a NAS / external drive / another machine
rsync -avz --delete ~/.agent-guild/ user@host:~/.agent-guild/
```

One directory, all your AI-agent state.

## Privacy layering (important)

Soul Archive data has **two sensitivity levels**:

| Sensitivity | Files | Should sync? |
|---|---|---|
| **Public-ish** | `profile.json`, `config.json`, `identity/`, `style/`, `workflow/`, `aspirations.json` | ✅ usually safe — your basic profile and preferences |
| **Highly sensitive** | `memory/episodic/`, `memory/emotional/`, `agent/corrections.jsonl`, `agent/reflections.jsonl` | ⚠️ contains specific events, emotional patterns, AI self-critique logs |

**Recommended `.gitignore` if you version-control your soul data**:

```gitignore
# Highly sensitive — keep out of any git history
skills_data/soul-archive/memory/episodic/
skills_data/soul-archive/memory/emotional/
skills_data/soul-archive/agent/corrections.jsonl
skills_data/soul-archive/agent/reflections.jsonl
skills_data/soul-archive/agent/episodes/
skills_data/soul-archive/*.enc-bak

# OS clutter
.DS_Store
```

## Migrating to a new machine

```bash
# On the old machine: pack it up
tar czf soul-backup.tgz -C ~/.agent-guild skills_data/soul-archive

# Transfer soul-backup.tgz to the new machine.

# On the new machine:
mkdir -p ~/.agent-guild/skills_data/
tar xzf soul-backup.tgz -C ~/.agent-guild/
```

Or simpler with rsync:

```bash
rsync -avz ~/.agent-guild/skills_data/soul-archive/ \
  newhost:~/.agent-guild/skills_data/soul-archive/
```

## Multi-device gotchas

- **Don't sync `*.enc-bak` if you're regenerating encryption keys per machine** — the backups won't be readable.
- **Don't run two machines extracting at the same time without sync** — you'll get conflicting writes to JSON files (last write wins).
- **`config.json` is per-user, not per-machine** — sync it freely.
- **`registry.json` (Agent Guild protocol layer) is also per-user** — agents on different machines will all show up in it; that's fine.

## What NOT to do

- ❌ Don't push your soul data to a **public** git repository, even with `memory/` excluded — `identity/basic_info.json` and `aspirations.json` still contain personal info.
- ❌ Don't sync via cloud providers that read your file contents (e.g. third-party "AI-enhanced" backup services).
- ❌ Don't symlink across two physical machines via NFS / SMB and expect concurrent writes to be safe —

Sponsored

Ads related to soul-archive and adjacent AI workflows.