Xpersona
H

Hui-Yi

CLAWHUB · Unverified

Use for low-frequency archival recall when primary memory is insufficient, authorized cold-memory maintenance, or setting up and repairing automatic user-memory detection and recall. Historical wording alone does not authorize writes; frequent facts belong in primary memory. Skill: Hui-Yi Owner: fuetsui Summary: Use for low-frequency archival recall when primary memory is insufficient, authorized cold-memory maintenance, or setting up and repairing automatic user-memory detection and recall. Historical wording alone does not authorize writes; frequent facts belong in primary memory. Tags: latest:1.2.13 Version history: v1.2.13 | 2026-09-23T10:53:31.178Z | user Includes the unreleased 1.2

62
Rank
84
Safety
1.5k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.5K 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 s176ggpedb2a9em1j7m9x4e6n9840gxa:hui-yi
  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-fuetsui-hui-yi/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

158,874 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: "hui-yi"
description: "Use for low-frequency archival recall when primary memory is insufficient, authorized cold-memory maintenance, or setting up and repairing automatic user-memory detection and recall. Historical wording alone does not authorize writes; frequent facts belong in primary memory."
allowed-tools: Read Write Edit Bash(python:*) Bash(python3:*) Bash(node:*)
---

# Hui Yi

Hui Yi manages the cold reinforcement layer under `memory/cold/`.

Core rule:

**Repeatedly reactivated information deserves reinforcement first. Ebbinghaus sets the pace, not the sole trigger.**

## Use Hui Yi when

- answering the user's request needs older low-frequency context that current conversation and primary memory cannot supply
- the user authorizes archiving a durable lesson, decision, troubleshooting result, or stable low-frequency background note
- the user requests cold-memory review, index repair, metadata cleanup, or retrieval-quality maintenance
- an already-authorized maintenance workflow calls for cooling selected durable daily-note content
- the user asks to set up or repair automatic user-memory detection, primary-cache recall, or the native integration

Recall order: current conversation → recent daily notes / primary memory → relevant tooling notes / learnings → cold memory only if archival context is still needed. Phrases such as “之前”, “回忆一下”, or “do you remember” do not independently select this skill or authorize a write. Read the index and a few relevant notes before opening more archive content.

Follow the user's response language. Chinese examples and schedule messages are examples, not a language requirement; prompt templates are configurable.

## Do not use Hui Yi when

- the content is today's transient note → `memory/YYYY-MM-DD.md`
- the content is a stable high-frequency fact → `MEMORY.md`
- the content is tooling, machine path, or environment setup → `TOOLS.md`
- the content is a fresh mistake or still-unvalidated lesson → `.learnings/`
- the content contains secrets, tokens, or passwords

## Boundary

OpenClaw primary memory handles:
- current chat continuity
- recent daily notes
- stable high-frequency facts
- tooling and environment notes
- fresh learnings

Hui Yi handles:
- low-frequency, high-value knowledge under `memory/cold/`
- historical context that keeps resurfacing across real conversations
- durable experience, decisions, and troubleshooting notes that should not pollute primary memory

## Automatic user memory

For “自动检测用户的记忆信息”, read `references/native-memory.md`. Use the host's native capture and recall pipeline for frequent facts. The optional legacy hook does not provide reliable automatic collection on stock OpenClaw 2026.9.5. Cold-memory search can be selected when the conversation needs archival context; the user need not name this skill or use a slash command.

`scripts/configure_native_memory.py` previews a conservative webchat-only integration. `--apply` changes the existing host config only af

README.md

# 回忆(Hui-Yi)

回忆(Hui-Yi )是一个面向冷记忆的 skill。它的核心不是“时间到了就复习”,而是:

> **会话里反复出现、反复被激活的信息,优先强化;艾宾浩斯曲线负责安排强化节奏。**

也就是说,Hui-Yi 是一个把**冷记忆归档、历史唤回、重复强化**合在一起的系统,而不是普通的定时复习器。

当前源码版本为 **1.2.13**,包含文件安全、OpenClaw 兼容性与自动召回改进,详见 [发行说明](references/release-1.2.13.md)。发布版本可在 [ClawHub](https://clawhub.ai/fuetsui/skills/hui-yi) 与 [GitHub Releases](https://github.com/FueTsui/hui-yi/releases) 核验;发布成功不等于外部安全审计通过。

本次升级接通原生自动记忆与回答前召回,用户不必提供主题列表或手动触发命令。高频个人信息由主记忆承接;Hui-Yi 仍作为最后的低频归档层。中文匹配、相关度优先、真实计数、失效记录过滤及重建去重证据同步修复。

自动接入的范围、后台运行时间、模型调用、运行时守卫和升级步骤见 [自动识别与召回](references/native-memory.md)。旧 signal hook 保留给自定义宿主,当前原生接入会停用它;不能以旧 hook 已启用来证明普通聊天已经自动检测。

---

## 第一层:定位与边界

### 一句话理解

适合 Hui-Yi 的内容:
- 30 天后仍然有价值的经验、决策、背景知识、排障结果
- 当前对话和主记忆仍不能满足、明确需要低频归档知识的历史连续性请求
- 在会话里反复出现、值得强化的低频知识

不适合 Hui-Yi 的内容:
- 当天临时记录:`memory/YYYY-MM-DD.md`
- 高频个人或项目事实:`MEMORY.md`
- 机器环境、路径、工具坑点:`TOOLS.md`
- 新鲜但还没验证的教训:`.learnings/`
- 密钥、口令、token、敏感凭据

### 与 OpenClaw 系统记忆的分工边界

为了避免重复存储、重复召回、重复维护,Hui-Yi 只管理 **冷记忆强化层**,不替代 OpenClaw 自带的系统记忆。

#### OpenClaw 系统记忆负责
- 当前会话上下文
- `memory/YYYY-MM-DD.md` 中的日常流水与最近连续性
- `MEMORY.md` 中的高频稳定事实、用户背景与长期偏好
- `TOOLS.md` 中的环境配置、路径、机器与工具注意事项
- `.learnings/` 中尚在验证期的经验、错误与改进建议

#### Hui-Yi 负责
- `memory/cold/` 下的低频、高价值、可复用历史知识
- 在真实会话里被反复提起、值得长期强化的经验、决策、背景与排障结论
- 对冷记忆进行 repetition-first 的强化、唤回、轻维护和归档质量控制

#### 选择规则
- 回忆顺序:当前对话 → 近期 daily notes / 系统主记忆 → 相关工具记录 / learnings → 仍需低频历史资料时才查 cold memory
- “之前 / 以前 / 回忆一下 / 你记得吗”只是历史上下文线索,不能单凭措辞启用 skill、写回信号或归档
- 加载 skill 不代表授权安装 hook、启用后台采集、注册定时任务或执行 cooling;这些动作需要当前请求或已有明确维护授权
- 回复语言跟随用户;本文中文例子和 schedule 提示词仅为示例,可按使用者语言配置
- **高频且稳定** → 进 OpenClaw 主记忆层,不进 Hui-Yi
- **低频但高价值** → 优先考虑 Hui-Yi
- **当天新鲜上下文** → 留在 daily memory,不急着冷却
- **工具/环境信息** → 固定进 `TOOLS.md`
- **还没验证的新教训** → 先进 `.learnings/`

一句话:

> **OpenClaw 负责“记住”,Hui-Yi 负责“强化那些值得长期巩固、但不应常驻主记忆的信息”。**

### 核心原则

- archive less, but archive better
- reinforce what keeps reappearing
- use time as pacing, not as the only trigger

### 核心模型

#### 1. 主触发:重复出现
优先强化这些内容:
- 当前会话里反复出现的
- 最近多个会话里重复出现的
- 被再次召回且证明有用的
- 用户持续追问或重复关注的

#### 2. 辅助触发:时间压力
艾宾浩斯曲线仍然保留,但它主要用来决定:
- 成功后间隔怎么拉长
- 失败后怎么快速回到短间隔
- 长期未强化的记忆如何保持“应复习”状态

而不是机械地说:
- 日期到了,无论有没有再次出现,都必须优先复习

### 优先级公式

当前实现更接近:

```text
Priority ≈
  0.40 * RepetitionSignal
+ 0.25 * CurrentRelevance
+ 0.15 * DuePressure
+ 0.10 * Importance
+ 0.10 * ReinforcementStrength
```

含义:
- `RepetitionSignal`:真实会话中的重复激活
- `CurrentRelevance`:当前上下文相关性
- `DuePressure`:相对 interval 的时间压力
- `Importance`:长期价值
- `ReinforcementStrength`:weak / normal / strong 记忆强度修正

---

## 第二层:快速开始与常用操作

## 运行方式

### 模式 A:当前仓库根目录直接运行

```text
hui-yi/
├── memory/
│   ├── cold/
│   └── heartbeat-state.json
├── scripts/
├── core/
├── templates/
├── references/
├── SKILL.md
└── manifest.yaml
```

### 模式 B:安装到 `skills/hui-yi/`

```text
<workspace>/
├── memory/
│   ├── cold/
│   └── heartbeat-state.json
└── skills/
    └── hui-yi/
```

从 `<workspace>` 根目录运行时,把:
- `scripts/...` 替换为 `skills/hui-yi/scripts/...`
- hook 模板在 `skills/hui-yi/templates/hook/`,安装目标为 `workspace/hooks/hui-yi-signal

_meta.json

{
  "ownerId": "kn7am7m6grzn2tevfs0pq76zk9840rk7",
  "slug": "hui-yi",
  "version": "1.2.13",
  "publishedAt": 1790160811178
}

references/cold-memory-schema.md

# Cold Memory Schema Reference

用在:创建或修改 cold note、`index.md`、`tags.json`、`retrieval-log.md`。

实际创建优先用 `scripts/create.py`,语义填写参考 `templates/note-template.md`。以下 enum/日期/省略号是字段说明,不是可直接保存的完整 note。跟随用户语言;只记录可支持的事实和真实核验日期,不存凭据或原始会话身份。

目标只有两个:
1. note 对人类可读
2. metadata 对检索和回忆调度有用

不要围着高频词打转,核心单位是 **memory unit**。

---

## Note 最小模板

```markdown
# [Topic title]

## TL;DR
- 这条 note 是什么
- 什么时候有用
- 关键结论

## Memory type
- fact | experience | background

## Importance
- high | medium | low

## Semantic context
1-2 句自然语言说明:这条 note 在什么任务里有帮助,为什么有帮助。

## Triggers
- 触发词或短语

## Use this when
- 具体使用场景

Triggers 书写规范(避免误触发):
- 用**多词短语**或专有名词,不要用单个常用词("archive"、"remember"、"之前"、"cleanup" 都太宽)
- 短语应能区分"提到这个主题"和"日常闲聊撞词"
- 反例:`- 部署`、`- remember`
- 正例:`- staging 部署回滚流程`、`- remember the postgres migration incident`

## Memory state
- hot | warm | cold | dormant

## Review cadence
- interval_days: 1
- review_count: 0
- review_success: 0
- review_fail: 0
- retrieval_count: 0
- reinforcement_count: 0

## Last seen
- YYYY-MM-DD

## Last reviewed
- YYYY-MM-DD

## Next review
- YYYY-MM-DD

## Confidence
- high | medium | low

## Last verified
- YYYY-MM-DD

## Related tags
- tag1
- tag2

## Details
可选,只有真的需要长背景时再写。
```

---

## 字段说明

必需字段:
- Topic title
- TL;DR
- Memory type
- Importance
- Semantic context
- Triggers
- Use this when
- Memory state
- Confidence
- Last verified
- Related tags

推荐字段:
- Review cadence
- Last seen
- Last reviewed
- Next review

简化理解:
- `Importance`:历史价值
- `Memory state`:当前温度
- `Review cadence`:复习节奏
  - `retrieval_count`:这条 note 被实际提起 / 复习的次数
  - `reinforcement_count`:被证明“有用”的提起次数;多次有用后视为强记忆
- `Confidence`:可靠程度
- `Last verified`:实际核验事实/来源的日期;检索一次不等于重新核验。decay 的陈旧度调整影响 Confidence,不因时间流逝自动 demote Memory state
- `Session signals`:当前/近期/跨会话/连续会话计数和 last_activated;来自真实、已授权的激活,不手工补造

---

## 状态建议

```text
hot      最近强化过,能直接用
warm     适合轻提醒
cold     保留但低优先级
dormant  长周期归档;只在强触发下拿出来,不是失败惩罚态
```

---

## 默认 review ladder

```text
创建
+1d
+2d
+4d
+7d
+15d
+30d
+60d
```

之后:
- helpful recall → 间隔逐步拉长
- failed recall → 回到 +1d / +2d relearning step
- dormant 只应来自充分巩固或明确归档,不应来自失败
- 多次有用提及 → 视为 strong memory,降低遗忘风险并更容易进入 `hot`

---

## index.md 格式

```markdown
# Cold Memory Index

- `note-file.md` — 一句话总结
  - type: fact | experience | background
  - importance: high | medium | low
  - state: hot | warm | cold | dormant
  - tags: ...
  - triggers: ...
  - read when: ...
  - confidence: high | medium | low
  - updated: YYYY-MM-DD
  - next review: YYYY-MM-DD | none
```

要求:
- 一条 note 一个 block
- 按最近更新时间排序

---

## tags.json 格式

```json
{
  "_meta": {
    "description": "Structured metadata for cold-memory retrieval",
    "version": 5,
    "updated": "YYYY-MM-DD"
  },
  "notes": [
    {
      "title": "...",
      "path": "memory/cold/xxx.md",
      "type": "fact|experience|background",
      "importance": "high|medium|low",
      "state": "hot|warm|cold|dormant",
      "summary": "...",
      "semantic_context": "...",
      "tags": ["..."],
      "triggers": ["..."],

references/examples.md

# Cold Memory Examples

用在:需要快速参考一个合格 note 长什么样。

---

## Example 1 — experience

```markdown
# Migrating Postgres with zero downtime

## TL;DR
- 用 logical replication,不用 pg_dump
- cutover 可压到约 2 分钟

## Memory type
- experience

## Importance
- high

## Semantic context
如果有人在做生产库迁移并且想最小化停机,这条 note 解释为什么 logical replication 更合适。

## Triggers
- postgres migration
- logical replication

## Use this when
- 规划生产数据库迁移
- 对比 pg_dump 和 replication

## Decisions / lessons
- DO: 提前同步 sequences
- DO: 先在 staging 演练
- AVOID: 对大库直接用 pg_dump 做零停机迁移

## Memory state
- warm

## Review cadence
- interval_days: 4
- review_count: 2
- review_success: 2
- review_fail: 0
- retrieval_count: 2
- reinforcement_count: 2

## Last seen
- 2025-03-15

## Last reviewed
- 2025-03-15

## Next review
- 2025-03-19

## Confidence
- high

## Last verified
- 2025-03-15

## Related tags
- postgres
- migration
- devops
```

---

## Example 2 — fact

```markdown
# Internal API rate limits

## TL;DR
- 支付和用户服务的固定速率限制
- 设计批任务前先看这条

## Memory type
- fact

## Importance
- medium

## Semantic context
如果有人在设计 batch job、load test 或排查 429,这条 note 给出稳定的 rate limit 信息。

## Triggers
- rate limit
- 429 error

## Use this when
- 设计批量请求
- 排查 429

## Key facts
- Payment API: 500 req/s
- User service: 2000 req/s
- Auth service: 100 req/s

## Memory state
- cold

## Review cadence
- interval_days: 30
- review_count: 5
- review_success: 5
- review_fail: 0
- retrieval_count: 5
- reinforcement_count: 3

## Last seen
- 2025-02-20

## Last reviewed
- 2025-02-20

## Next review
- 2025-03-22

## Confidence
- medium

## Last verified
- 2025-02-20

## Related tags
- api
- rate-limit
- infrastructure
```

---

## Example 3 — background

```markdown
# Project Atlas — architecture history

## TL;DR
- Atlas 从 monolith 演进到 4 个服务
- 当前主要痛点是服务间延迟

## Memory type
- background

## Importance
- high

## Semantic context
如果有人在做 Atlas 架构决策、onboarding、或者考虑重新合并服务,这条 note 提供历史背景和决策理由。

## Triggers
- atlas architecture
- service split decision

## Use this when
- 做新架构决策
- onboarding
- 评估是否合并服务

## Memory state
- warm

## Confidence
- high

## Last verified
- 2025-04-01

## Related tags
- atlas
- architecture
- microservices
```

---

## Example 4 — dormant

```markdown
# Legacy vendor PDF export workaround

## TL;DR
- 老供应商导出链路的历史 workaround
- 仅罕见支持场景再看

## Memory type
- experience

## Importance
- low

## Semantic context
如果有人在处理极少见的旧导出链路问题,这条 note 还能用;平时不该主动浮出来。

## Triggers
- vendor pdf export legacy

## Use this when
- 处理历史遗留支持问题

## Memory state
- dormant

## Review cadence
- interval_days: 365
- review_count: 7
- review_success: 7
- review_fail: 0
- retrieval_count: 8
- reinforcement_count: 5

## Last seen
- 2025-01-15

## Last reviewed
- 2025-01-15

## Next review
- 2026-01-15

## Confidence
- low

## Last verified
- 2025-01-15

## Related tags
- legacy
- workaround
- vendor
```

---

## 快速判断

- `fact`:短、稳、直接可复用
- `experience`:最值钱,重点写 lesson
- `background`:给未来做综合判断
- 多次被证明有用的 note 会逐步形成 `strong memory`
- `dormant`:已经充分巩固后进入长周

Sponsored

Ads related to Hui-Yi and adjacent AI workflows.