Xpersona
M

memory-plus

CLAWHUB · Unverified

虾宝智能记忆工作流。开箱即用,数据目录与代码分离,支持轻量降级。 特性: - 文件系统存储,无外部数据库依赖 - Ollama 向量嵌入(可选,降级为 BM25) - bge-reranker-v2-m3 重排(可选) - HyDE + Query Rewriting(可选) - 后台线程自动存储(每10分钟)... Skill: memory-plus Owner: liushuangfa666 Summary: 虾宝智能记忆工作流。开箱即用,数据目录与代码分离,支持轻量降级。 特性: - 文件系统存储,无外部数据库依赖 - Ollama 向量嵌入(可选,降级为 BM25) - bge-reranker-v2-m3 重排(可选) - HyDE + Query Rewriting(可选) - 后台线程自动存储(每10分钟)... Tags: latest:1.0.6 Version history: v1.0.6 | 2026-04-03T17:11:16.784Z | user - Reorganized skill into modular scripts: added config.py, fts5.py, save_session.py, search.py, store.py, tools.py under scripts/. -

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/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 s17a2h358q8txkskajtz2whma983h849:memory-plus
  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-liushuangfa666-memory-plus/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

91,094 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

# Memory Workflow

## 首次安装配置

> 以下规则需要添加到 `~/.openclaw/workspace/AGENTS.md`。如果规则已存在(见「已安装」标记),跳过此步骤。

**添加以下内容到 AGENTS.md 顶部(`## 每次消息时` 之前):**

```markdown
<!-- [memory-workflow] 已安装 -->
## 每次消息时

自动搜索相关记忆(如果返回有结果则使用,无结果则忽略):
Exec: python3 $HOME/.openclaw/workspace/skills/memory-workflow/memory_ops.py search --query "【用户发送的原始消息】" --llm-answer --limit 3

## /save 命令

当用户发送 /save 时,强制将当前 session 的完整对话存入记忆系统:
Exec: cat << 'EOF' | python3 $HOME/.openclaw/workspace/skills/memory-workflow/scripts/save_session.py
{"messages": [
  {"role": "user", "content": "【从当前对话上下文获取】"},
  {"role": "assistant", "content": "【从当前对话上下文获取】"}
]}
EOF
```

**检查是否已安装**:如果 AGENTS.md 中已有 `<!-- [memory-workflow] 已安装 -->` 标记,说明已配置,跳过。

---



你的记忆工作流助手。当用户提到"记忆"、"记得"、"之前说过"、"搜一下"、"去重"、"整理"等词时激活此 skill。

## 三层存储架构

| 层级 | 存储位置 | 依赖 | 说明 |
|------|----------|------|------|
| **文件** | `memory-workflow-data/memories/YYYY-MM-DD.md` | 无 | 永远可用 |
| **FTS5** | `memory-workflow-data/fts5_index.db` | SQLite 内置 | 全文搜索,零外部依赖 |
| **KG** | `memory-workflow-data/knowledge-graph/kg.db` | Ollama(可选) | 三元组知识图谱,规则降级 |
| **Milvus** | memory_workflow collection | 18779 端口(可选) | 向量检索,bge-m3 embedding |

**开箱即用**:即使没有任何外部服务,文件层 + FTS5 + KG(规则) 仍然正常工作。

## 核心文件

```
memory-workflow/
├── SKILL.md           # 本文件
├── memory_ops.py      # CLI 入口
├── README.md          # 使用说明
└── scripts/
    ├── config.py      # 配置(路径、服务地址)
    ├── store.py       # 三层存储写入
    ├── search.py      # FTS5 + Jaccard 搜索
    ├── fts5.py        # FTS5 全文索引
    ├── tools.py       # BaseTool 封装(6个工具)
    └── save_session.py # /save 命令处理器
```

## 工具接口

| 工具 | 说明 | 依赖 |
|------|------|------|
| `MemorySearch` | 语义搜索,FTS5 + 字符N-gram Jaccard 排序 | 无 |
| `MemoryStore` | 三层存储(文件 + KG + Milvus),自动去重 | Ollama(KG) / Milvus(可选) |
| `MemoryDedup` | Jaccard 去重(阈值 0.85) | 无 |
| `MemoryPrune` | 清理 N 天前记忆 | 无 |
| `MemoryConsolidate` | 合并相似记忆(Jaccard > 0.7) | 无 |
| `MemoryList` | 列出近期记忆文件 | 无 |

## 搜索算法

**字符级 N-gram Jaccard** — 解决中文分词问题:
- "发哥在测试" → `{'发哥','哥在','在测','测试'}`
- 中英混合无缝支持,无需外部分词服务

**搜索流程**:Jaccard 召回 → FTS5 BM25 重排 → 时间衰减 rerank

## 数据存储路径

- 记忆文件:`~/.openclaw/workspace/memory-workflow-data/memories/YYYY-MM-DD.md`
- FTS5 索引:`~/.openclaw/workspace/memory-workflow-data/fts5_index.db`
- KG 图谱:`~/.openclaw/workspace/memory-workflow-data/knowledge-graph/kg.db`
- 元数据:`~/.openclaw/workspace/memory-workflow-data/knowledge-graph/kg.db` 内

## 触发规则

| 模式 | 工具 |
|------|------|
| "记"、"存"、"记住"、"记一下" | `MemoryStore` |
| "搜"、"找"、"记得"、"之前说过" | `MemorySearch` |
| "去重"、"整理记忆" | `MemoryDedup` |
| "合并"、"整理一下" | `MemoryConsolidate` |
| "删除"、"清理旧" | `MemoryPrune` |
| "列出记忆文件"、"有哪些记忆" | `MemoryList` |

## CLI 用法

```bash
# 搜索
python memory_ops.py search --query "发哥 工作" --limit 3

# 存储
python memory_ops.py store --content "要记忆的内容" --tag work

# /save 存储 session
python scripts/save_session.py '{"messages": [...]}'

# 去重 / 整理
python memory_ops.py dedup
python memory_ops.py consolidate
python memory_ops.py prune --days 30

# 导出工具定义
python memory_ops.py register

README.md

# Memory Workflow

你的记忆工作流助手。零外部依赖开箱即用。

## 快速开始

```bash
# 搜索记忆
python memory_ops.py search --query "发哥 项目"

# 存储记忆
python memory_ops.py store --content "发哥在思特奇工作" --tag work

# /save 存储 session
python scripts/save_session.py '{"messages": [...]}'

# 去重 / 清理
python memory_ops.py dedup
python memory_ops.py prune --days 30
```

## 三层存储

| 层 | 说明 |
|----|------|
| 文件 | `memory-workflow-data/memories/*.md` |
| FTS5 | SQLite 全文索引,零依赖 |
| KG | 三元组知识图谱(Ollama LLM 提取,规则降级) |
| Milvus | 向量检索(可选,需要 18779 embedding 服务) |

## 工具(可注册到 Agent)

- `MemorySearch` — 语义搜索
- `MemoryStore` — 存储记忆
- `MemoryDedup` — 去重
- `MemoryPrune` — 清理旧记忆
- `MemoryConsolidate` — 合并相似记忆
- `MemoryList` — 列出记忆文件

_meta.json

{
  "ownerId": "kn74vh93des98dg1c8dzwj2gas835wr2",
  "slug": "memory-plus",
  "version": "1.0.6",
  "publishedAt": 1775236276784
}

skill-card.md

## Description:

Memory Plus helps agents save, search, deduplicate, prune, consolidate, and list persistent memories with local file and FTS5 storage plus optional knowledge graph, embedding, and Milvus backends.

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

## Publisher:

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

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agent users use this skill to give an agent persistent memory across sessions, including command-driven storage, retrieval, cleanup, consolidation, and optional full-session saving.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Persistent always-on memory can search or save prior user content without enough scoping.

Mitigation: Review the installation rules before enabling the skill, prefer explicit memory commands, and scope where the skill is installed.

Risk: Complete conversations and sensitive text can be stored in local memory files and indexes.

Mitigation: Avoid saving secrets or sensitive conversations, periodically prune stored memories, and review saved memory files before sharing an environment.

Risk: Stored text can be sent to configured Ollama, embedding, or Milvus services.

Mitigation: Disable or firewall remote backends unless needed, and use only trusted local or approved service endpoints.

## Reference(s):

- [ClawHub memory-plus release page](https://clawhub.ai/liushuangfa666/skills/memory-plus)

## Skill Output:

**Output Type(s):** [Text, Markdown, Code, Shell commands, Configuration, Guidance]

**Output Format:** [Markdown instructions, shell commands, and JSON tool responses]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May create local Markdown memory files, SQLite indexes, and optional records in configured knowledge graph or Milvus stores.]

## Skill Version(s):

1.0.6 (source: server release metadata)

## 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-plus and adjacent AI workflows.