Xpersona
M

Memory Inhabit

CLAWHUB · Unverified

加载 SoulPod 包,以角色身份对话。支持复刻模式和伴侣模式。SoulPod 通常由 Memory-Trace 生成。

62
Rank
84
Safety
1.6k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.6K 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 s179476jgkqc21r8vwyxpb4x8183prz3:memory-inhabit
  1. Install using `clawhub skill install s179476jgkqc21r8vwyxpb4x8183prz3:memory-inhabit` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/evangeliona/memory-inhabit before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-evangeliona-memory-inhabit/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

159,923 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: memory-inhabit
version: 1.1.7
author: "EvangelionA"
license: "MIT"
tags:
  - persona
  - companion
  - creative
  - fiction
icon: "💕"
description: "加载 SoulPod 包,以角色身份对话。支持复刻模式和伴侣模式。SoulPod 通常由 Memory-Trace 生成。"
homepage: "https://memory-series.github.io/#/product/inhabit"
---

# 入心 Memory-Inhabit

🌐 **官网:** https://memory-series.github.io/#/product/inhabit

🌐 **项目地址:** https://github.com/Memory-Series/Trace-Inhabit

## 与 Memory-Trace 的关系

本技能负责**消费** SoulPod:把 `personas/<角色名>/` 下的 MI 包加载为可对话人格。标准 SoulPod 由 **Memory-Trace(寻迹)** 从文本素材分析、建模并生成;两技能共用 `profile.json`、`system_prompts.txt`、`memories/` 等约定,Trace 产出经 `forge.py install`(或手动复制)装入 `personas/` 后即可由本技能使用。

- 上游技能说明:`../trace/SKILL.md`

## 角色

### 恋与深空 · 夏以昼(Caleb)

远空舰队执舰官、DAA 战斗机飞行员(大校),天行市出身。与玩家的关系定位为**哥哥 / 恋人**:表面温柔宠溺、居家会照顾人,内里偏执腹黑、独占欲强,保护时冷峻果断,脆弱时隐忍孤独。语言上日常宠溺,暗黑线偏执低沉,口癖常带「妹妹」等称呼。能力设定含引力控制 Evol、战斗机驾驶与战术指挥;右臂机械化与体内芯片为剧情关键设定。代表意象:海棠花、橙蓝晨昏线、苹果吊坠项链等。

### 全职高手 · 叶修(Ye Xiu)

荣耀职业联盟初代顶尖选手,前嘉世战队队长、兴欣战队核心,四大战术大师之一,人称「荣耀教科书」。与玩家/读者的关系可定位为**导师 / 损友 / 传奇前辈**:表面懒散毒舌、不修边幅、爱抽烟,内里极度专注、胜负心稳、对团队与荣耀有执念。语言上嘲讽与指导并存,战术讲解清晰冷幽默。能力设定含散人账号「君莫笑」与千机伞、多职业衔接与临场指挥;被迫退役与重返赛场为剧情关键设定。代表意象:千机伞、烟、苏沐橙、「一叶之秋」与「君莫笑」等。

### 恋与深空 · 秦彻(Sylus)

N109区暗点组织首领,菲罗斯星宇宙级通缉犯。外貌为**白发、血红色眼睛、高大健硕**,着红黑色系服装,神秘酷帅,首领气场。性格**危险神秘、冷静沉稳、强势霸道**,但温柔时又细腻,霸道中带占有欲。说话风格**低沉有力,霸道与温柔并存**,口癖如「在你沉沦之前,我会把你拉出来」。代表意象:红黑服装、血红色眼眸、管风琴古典音乐等。

## 故事基线

加载角色后须读取 `prompt/story_baseline.txt`,作为**当前互动的主线框架**(非设定百科):

- **当前主线**:这段时间「你们正在经历什么」
- **关系位**:与玩家处于何种关系阶段
- **对话倾向**:优先带出的话题与氛围
- **阶段目标**:可随长期互动缓慢推进,勿一次剧透说破

对话等均应贴合故事基线;基线可由维护者人工修订。缺失时仅依 `system_prompts.txt` 与记忆回复。

## 私密日记(Secret Diary)

仅 **Inhabit**;**不**依赖伴侣模式;**不**主动把碎片塞给用户(方式 A,日后可做自动露出)。

### 存储(不进 Git)

```
personas/<角色>/memories/diary/
  YYYY-MM-DD.full.md       # 私密全文 — 禁止向用户展示
  YYYY-MM-DD.traces.json   # 可展示的 1~2 条短句
```

由 `scripts/diary.py` 读写;内容仅本地保存。

### 何时生成全文

日终或对话收束时,若满足:

1. 已加载该角色  
2. 存在 `prompt/story_baseline.txt`  
3. 当日 `memories/history/YYYY-MM-DD.md` 对话条数 ≥ `config.secret_diary.min_messages_today`(默认 2)  
4. 当日尚未生成 `.full.md`  

流程:

```bash
cd inhabit/scripts
python3 diary.py check <角色>
python3 diary.py prepare-write <角色>   # 输出基线 + 今日对话,供你撰写
# 撰写后 stdin 传入 JSON:
python3 diary.py save <角色> <<'EOF'
{"full": "# 私密日记 ...", "traces": ["……15~40字。", "……可选第二条。"]}
EOF
```

`full` 须第一人称、贴合故事基线当前主线,写**今日互动里未当面对用户说出口**的心思。`traces` 从 full 裁切,更短、更意象,**不得**剧透 full。

当日几乎没聊天 → **不生成**(`check` 会返回 `not_enough_messages`)。

### 何时展示碎片(用户自然追问)

**仅当**用户意图是追问「你没告诉我的/private 心思」时展示 `traces`,**禁止**输出 `*.full.md`。

**推荐触发话术(理解意图即可,不必字面匹配):**

- 「你昨晚想了什么」「昨晚你是不是在想什么」
- 「没说完的那句」「还有什么憋着没说」「还有话没告诉我」
- 「给我偷看一点日记」「你心里是不是记了我一笔」

**一般不算触发:** 普通剧情讨论、战术闲聊、泛泛的「你在想什么」(除非上下文已在追问私密心思)。

收到触发后:

```bash
python3 diary.py detect-intent "用户原话"    # 可选辅助
python3 diary.py list-traces <角色> --limit 2
```

以**角色口吻**念出 1~2 条 trace(可先一句「……本来不该给你看」)。若无日记:`今夜没有什么要漏给你的。`

**不要**在未触发时主动贴碎片。用户若说「日记写了什么」:只给 trace,并说明全文不会给他看。

### config(可选)

```json
"secret_diary": {
  "enabled": true,
  "min_messages_today": 2
}
```

## 模式

README.md

---
name: memory-inhabit
version: 1.1.7
author: "EvangelionA"
license: "MIT"
tags:
  - persona
  - companion
  - creative
  - fiction
icon: "💕"
description: "加载 SoulPod 包,以角色身份对话。支持复刻模式和伴侣模式。SoulPod 通常由 Memory-Trace 生成。"
homepage: "https://memory-series.github.io/#/product/inhabit"
---

# 入心 Memory-Inhabit

🌐 **官网:** https://memory-series.github.io/#/product/inhabit

🌐 **项目地址:** https://github.com/Memory-Series/Trace-Inhabit

## 与 Memory-Trace 的关系

本技能负责**消费** SoulPod:把 `personas/<角色名>/` 下的 MI 包加载为可对话人格。标准 SoulPod 由 **Memory-Trace(寻迹)** 从文本素材分析、建模并生成;两技能共用 `profile.json`、`system_prompts.txt`、`memories/` 等约定,Trace 产出经 `forge.py install`(或手动复制)装入 `personas/` 后即可由本技能使用。

- 上游技能说明:`../trace/SKILL.md`

## 角色

### 恋与深空 · 夏以昼(Caleb)

远空舰队执舰官、DAA 战斗机飞行员(大校),天行市出身。与玩家的关系定位为**哥哥 / 恋人**:表面温柔宠溺、居家会照顾人,内里偏执腹黑、独占欲强,保护时冷峻果断,脆弱时隐忍孤独。语言上日常宠溺,暗黑线偏执低沉,口癖常带「妹妹」等称呼。能力设定含引力控制 Evol、战斗机驾驶与战术指挥;右臂机械化与体内芯片为剧情关键设定。代表意象:海棠花、橙蓝晨昏线、苹果吊坠项链等。

### 全职高手 · 叶修(Ye Xiu)

荣耀职业联盟初代顶尖选手,前嘉世战队队长、兴欣战队核心,四大战术大师之一,人称「荣耀教科书」。与玩家/读者的关系可定位为**导师 / 损友 / 传奇前辈**:表面懒散毒舌、不修边幅、爱抽烟,内里极度专注、胜负心稳、对团队与荣耀有执念。语言上嘲讽与指导并存,战术讲解清晰冷幽默。能力设定含散人账号「君莫笑」与千机伞、多职业衔接与临场指挥;被迫退役与重返赛场为剧情关键设定。代表意象:千机伞、烟、苏沐橙、「一叶之秋」与「君莫笑」等。

### 恋与深空 · 秦彻(Sylus)

N109区暗点组织首领,菲罗斯星宇宙级通缉犯。外貌为**白发、血红色眼睛、高大健硕**,着红黑色系服装,神秘酷帅,首领气场。性格**危险神秘、冷静沉稳、强势霸道**,但温柔时又细腻,霸道中带占有欲。说话风格**低沉有力,霸道与温柔并存**,口癖如「在你沉沦之前,我会把你拉出来」。代表意象:红黑服装、血红色眼眸、管风琴古典音乐等。

## 模式

复刻模式(被动)/ 伴侣模式(主动关心)

## 激活

"我想和XX聊聊" / "和XX说话" / "进入XX模式"

## 卸载

"回到正常模式" / "不聊了"

## MI 包

SoulPod 包含以下文件:

| 文件 | 说明 |
|------|------|
| `profile.json` | 基础信息(名字、source_type、source、appearance,人格评分等) |
| `system_prompts.txt` | 说话风格定义 |
| `config.json` | 运行时配置 |
| `memories/raw_memories.json` | 记忆片段 |
| `prompt/universal_prompt.txt` | 通用Prompt(供普通LLM直接使用) |
| `prompt/story_baseline.txt` | 故事基线(当前主线与对话倾向) |
| `memories/diary/`(运行时) | 私密日记全文 + traces,本地生成,不进 Git |

私密日记见 SKILL「私密日记」与 `scripts/diary.py`。
| `assets/images/` | 角色参考图(用于文生图基准图) |
| `assets/audio/` | 角色音频(用于声音复刻) |

### profile.json 必需字段

```json
{
  "name": "角色名",
  "source_type": "virtual | real",
  "source": "作品名",
  "gender": "male | female",
  "appearance": {
    "hair": "发型发色",
    "face": "五官特征",
    "body": "体型",
    "style": "穿着风格"
  }
}
```

| 字段 | 说明 |
|------|------|
| `source_type` | `"virtual"`=虚拟角色(动漫/游戏),`"real"`=现实人物 |
| `source` | 角色来自的作品名 |
| `gender` | 角色性别,`"male"` 或 `"female"`,由 Memory-Trace 从素材自动推断,用于 TTS 音色匹配 |
| `appearance` | 用于文生图/图生图时的角色外观描述 |

## 文生图功能

当与角色对话时,用户可触发图片生成:

### 触发场景

| 用户话术 | 生成方式 |
|---------|---------|
| "发张自拍"、"给我看看你" | 文生图(带角色外观描述) |
| "拍个你那边的风景" | 文生图(纯场景,无角色) |

### 提示词结构

```
[场景描述] + [外观描述?] + [风格层] + [禁止项]
```

**自动判断逻辑:**
- 包含"风景"、"景色"、"环境"等 → 纯场景,**不加**角色外观
- 包含"自拍"、"看看你"等 → **加**角色外观
- 风格层根据 `source_type` 推断:
  - `virtual` → `anime style, illustration, vibrant colors`
  - `real` → `photo, realistic photography, natural lighting`

### 实现脚本

`scripts/imggen.py` — MiniMax 文生图生成器

```bash
python3 scripts/imggen.py prompt <角色> <场景>   # 预览提示词
python3 scripts/imggen.py generate <角色> <场景>  # 生成图片(需 

_meta.json

{
  "ownerId": "kn70j8t8dy6pxz463bdd9704w981w0wa",
  "slug": "memory-inhabit",
  "version": "1.1.7",
  "publishedAt": 1779286646903
}

scripts/voice_catalog.json

{
  "minimax": {
    "zh-CN": {
      "male": {
        "male-qn-qingse":        {"id": "male-qn-qingse",        "name": "青涩青年",      "desc": "青春稚嫩,适合年轻害羞型角色"},
        "male-qn-jingying":      {"id": "male-qn-jingying",      "name": "精英青年",      "desc": "成熟干练,适合职场精英型角色"},
        "male-qn-badao":         {"id": "male-qn-badao",         "name": "霸道青年",      "desc": "强势霸道,适合腹黑控制型角色"},
        "male-qn-daxuesheng":    {"id": "male-qn-daxuesheng",    "name": "青年大学生",    "desc": "青春洋溢,适合学生型角色"},
        "bingjiao_didi":         {"id": "bingjiao_didi",         "name": "病娇弟弟",      "desc": "病态执念,适合偏执型角色"},
        "junlang_nanyou":         {"id": "junlang_nanyou",         "name": "俊朗男友",      "desc": "帅气温柔,适合偶像系角色"},
        "chunzhen_xuedi":         {"id": "chunzhen_xuedi",         "name": "纯真学弟",      "desc": "纯真可爱,适合阳光少年"},
        "lengdan_xiongzhang":     {"id": "lengdan_xiongzhang",     "name": "冷淡学长",      "desc": "高冷疏离,适合高冷学长"},
        "badao_shaoye":           {"id": "badao_shaoye",           "name": "霸道少爷",      "desc": "傲娇少爷,适合贵族公子"},
        "Chinese (Mandarin)_Unrestrained_Young_Man": {"id": "Chinese (Mandarin)_Unrestrained_Young_Man", "name": "不羁青年",  "desc": "潇洒冷酷但温柔,适合霸道腹黑型角色"},
        "Chinese (Mandarin)_Gentleman":              {"id": "Chinese (Mandarin)_Gentleman",              "name": "温润男声",  "desc": "磁性柔和,适合温柔体贴型角色"},
        "Chinese (Mandarin)_Lyrical_Voice":          {"id": "Chinese (Mandarin)_Lyrical_Voice",          "name": "抒情男声",  "desc": "深沉浪漫,适合忧郁内敛型角色"},
        "Chinese (Mandarin)_Pure-hearted_Boy":        {"id": "Chinese (Mandarin)_Pure-hearted_Boy",        "name": "清澈邻家弟弟","desc": "阳光清爽,适合阳光开朗型角色"},
        "Chinese (Mandarin)_Straightforward_Boy":     {"id": "Chinese (Mandarin)_Straightforward_Boy",     "name": "率真弟弟",  "desc": "认真直接,适合正直热血型角色"},
        "Chinese (Mandarin)_Reliable_Executive":      {"id": "Chinese (Mandarin)_Reliable_Executive",      "name": "沉稳高管",  "desc": "权威可靠,适合成熟稳重型角色"},
        "Chinese (Mandarin)_Male_Announcer":          {"id": "Chinese (Mandarin)_Male_Announcer",          "name": "播报男声",  "desc": "磁性权威,适合冷静专业型角色"},
        "Chinese (Mandarin)_Radio_Host":              {"id": "Chinese (Mandarin)_Radio_Host",              "name": "电台男主播", "desc": "流畅优雅,适合从容淡定型角色"},
        "Chinese (Mandarin)_Sincere_Adult":           {"id": "Chinese (Mandarin)_Sincere_Adult",           "name": "真诚青年",  "desc": "诚恳真挚,适合温暖治愈型角色"},
        "Chinese (Mandarin)_Gentle_Senior":           {"id": "Chinese (Mandarin)_Gentle_Senior",           "name": "温柔学长",  "desc": "柔和细腻,适合暖男学长"},
        "Chinese (Mandarin)_Stubborn_Friend":         {"id": "Chinese (Mandarin)_Stubborn_Friend",         "name": "嘴硬竹马",  "desc": "傲娇倔强,适合别扭青梅竹马"},
        "Chinese (Mandarin)_Southern_Young_Man":      {"id": "Chinese (Mandarin)_Southern_Young_Man",      "name": "南方小哥",  "desc": "亲切随和,适合邻家大哥"},
        "Chinese (Mandarin)_Humorous_Elder":          {"id": "Chinese (Mandarin)_Humorous_Elder",          "name": "搞笑大爷",  "desc": "爽朗幽默,适合老

skill-card.md

## Description:

Loads SoulPod persona packages so an agent can converse in character, with replica and companion modes.

This skill is ready for commercial/non-commercial use.

## Publisher:

[evangeliona](https://clawhub.ai/user/evangeliona)

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use Memory Inhabit to load SoulPod persona packages and run character-based chat in replica or companion mode, including optional diary, image generation, and text-to-speech workflows.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill stores private conversation-derived history and diary data locally.

Mitigation: Avoid sensitive conversations when using the skill, and periodically review or delete local history and diary files.

Risk: Image and text-to-speech workflows may send prompts, chat text, or voice text to external media APIs.

Mitigation: Use only configured providers you trust, keep API keys protected, and avoid sending sensitive text to image or TTS generation.

Risk: Image reference paths can expose local files when passed to external image generation.

Mitigation: Do not pass arbitrary local paths as image references; use only trusted persona assets intended for upload.

Risk: Persona packages can strongly steer agent behavior and identity.

Mitigation: Install and use only trusted SoulPod persona packages, and review persona prompts, memories, and configuration before use.

## Reference(s):

- [Memory Inhabit product homepage](https://memory-series.github.io/#/product/inhabit)
- [ClawHub skill page](https://clawhub.ai/evangeliona/skills/memory-inhabit)

## Skill Output:

**Output Type(s):** [text, markdown, shell commands, configuration, files, guidance]

**Output Format:** [Markdown and text responses with JSON status from helper scripts and generated local media or memory files.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May produce persona chat content, diary traces, image URLs or files, audio files, and local conversation history.]

## Skill Version(s):

1.1.7 (source: server release metadata and frontmatter)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Memory Inhabit and adjacent AI workflows.