← 返回 Skills 市场
awublack

Personal Memory System Published

作者 awublack · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
93
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install personal-memory-system-published
功能描述
一个自动化、双层记忆系统,用于持久化和可查询个人知识。它将用户在 MEMORY.md 中的长期记忆,自动同步到 SQLite 数据库 memory.db,实现“自然语言 → SQL 查询”的智能检索。 **使用场景**: (1) 用户需要查询“我过去对 AI 模型的看法?” (2) 用户希望系统自动记录重要决策,...
使用说明 (SKILL.md)

Personal Memory System

概述

这是一个为 OpenClaw 设计的个人知识管理技能。它解决了“人类记忆不可靠”的核心问题,通过自动化流程,将你最重要的想法和决策从易遗忘的 Markdown 文本,转化为机器可查询的结构化数据库。

工作原理

  1. 输入:你将重要的洞察、决策、经验写入 /home/awu/.openclaw/workspace-work/MEMORY.md 文件,使用 ### 标题分隔不同主题。
  2. 同步:每当 OpenClaw 的心跳(heartbeat)被触发,auto_sync_memory.py 脚本会自动运行。
  3. 处理:脚本读取 MEMORY.md,将每个 ### 标题及其下的内容解析为一条数据库记录。
  4. 输出:这些记录被写入 /home/awu/.openclaw/workspace-work/memory.db SQLite 数据库。
  5. 查询:当你提出自然语言问题(如“我过去对 AI 模型的看法?”),AI 助手会将问题转换为 SQL 查询(SELECT content FROM memories WHERE content LIKE '%AI%'),从 memory.db 中精准检索出所有相关记忆,并为你总结。

系统组件

  • MEMORY.md:你的个人长期记忆库,人类可读,可版本控制。
  • memory.db:自动同步的 SQLite 数据库,机器可查询。
  • auto_sync_memory.py:核心同步脚本,由 OpenClaw 心跳机制调用。

安装与使用

  1. 安装:将此技能包放入 OpenClaw 的 skills 目录,或通过 clawhub install personal-memory-system 安装。
  2. 初始化:确保你的工作区根目录下存在 MEMORY.md 文件。如果不存在,请创建它。
  3. 运行:无需手动操作。系统会在每次心跳时自动同步。
  4. 查询:直接向 AI 助手提问,例如:“我过去对 Obsidian 的看法是什么?” 系统会自动检索并回答。

安全与隐私

  • 完全本地化:所有数据(MEMORY.md, memory.db)均存储在你的本地工作区,不上传、不共享。
  • 无外部依赖:不调用任何网络 API,不访问云服务。
  • 可审计:所有操作均在你的控制之下,你可以随时查看 MEMORY.mdmemory.db 的内容。

未来扩展

  • 与 Obsidian 的双向链接功能集成,自动生成知识图谱。
  • 每日自动生成 memory/YYYY-MM-DD.md 的摘要。
  • 支持导出 memory.db 为 CSV 或 JSON 以供备份。

“记忆不是用来记住的,是用来被访问的。” —— 你的数字大脑

安全使用建议
This skill appears to do what it says — local Markdown → SQLite sync — but review and possibly modify it before installing: (1) The script uses absolute, user-specific paths (/home/awu/...), so change them to your workspace path or make them relative to avoid writing to an unexpected location. (2) The script deletes all records and reinserts on each sync; back up your existing memory.db if present and decide whether you prefer incremental updates. (3) Confirm how OpenClaw will trigger the script (heartbeat/autonomous invocation) so you know when syncs run. (4) Because this skill stores personal data locally, check file permissions and backups. If you are not comfortable editing the script, do not enable automatic runs until you verify the paths and behavior.
功能分析
Type: OpenClaw Skill Name: personal-memory-system-published Version: 1.0.0 The skill bundle implements a local memory management system that synchronizes Markdown content from MEMORY.md into a SQLite database (memory.db). The Python script (auto_sync_memory.py) uses standard libraries, employs parameterized queries to handle data safely, and lacks any network access, credential access, or obfuscation. While it uses hardcoded absolute paths specific to a user environment (/home/awu/), the logic is transparent and strictly aligned with the stated purpose of local knowledge persistence.
能力评估
Purpose & Capability
Name and description claim local-only Markdown→SQLite sync; the included script and SKILL.md implement exactly that. Minor inconsistency: SKILL.md lists memory.db as a required existing file, but the script will create memory.db if missing. The use of absolute, user-specific paths (/home/awu/.openclaw/workspace-work/...) is brittle and surprising for a generic skill.
Instruction Scope
Instructions and the script stick to the stated scope: they read MEMORY.md, parse '###' blocks, and write to memory.db. Concerns: (1) both SKILL.md and the script hard-code the same absolute paths, which limits portability and could cause accidental reads/writes if your workspace is elsewhere; (2) the script clears the entire memories table (DELETE FROM memories) and reinserts on each sync, which can lead to data loss or lost metadata if not expected; (3) SKILL.md asserts the script runs on every heartbeat but does not describe how OpenClaw will schedule it—ensure you understand the agent behavior before enabling automatic runs.
Install Mechanism
No install spec — instruction-only skill with a small included Python script. No downloads, no external packages, and nothing is written to disk by an installer. Lower installation risk, but review the included script before use.
Credentials
No environment variables, credentials, or external config paths are requested. The skill only accesses local files (MEMORY.md and memory.db) consistent with its purpose.
Persistence & Privilege
always is false and the skill does not request elevated persistence or modify other skills or global agent config. It can be invoked by the agent (normal behavior) but does not demand permanent inclusion or extra privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install personal-memory-system-published
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /personal-memory-system-published 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- 发布 1.0.0 初始版本:自动化个人记忆持久化与查询系统 - MEMORY.md 内容自动同步到本地 SQLite 数据库,方便结构化检索 - 支持通过自然语言提问,自动转为 SQL 查询并返回相关记忆 - 实现与 Obsidian 和 Git 的无缝集成,本地数据安全、可版本控制 - 无需外部 API,全部数据本地存储,保障隐私与安全
元数据
Slug personal-memory-system-published
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Personal Memory System Published 是什么?

一个自动化、双层记忆系统,用于持久化和可查询个人知识。它将用户在 MEMORY.md 中的长期记忆,自动同步到 SQLite 数据库 memory.db,实现“自然语言 → SQL 查询”的智能检索。 **使用场景**: (1) 用户需要查询“我过去对 AI 模型的看法?” (2) 用户希望系统自动记录重要决策,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 93 次。

如何安装 Personal Memory System Published?

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

Personal Memory System Published 是免费的吗?

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

Personal Memory System Published 支持哪些平台?

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

谁开发了 Personal Memory System Published?

由 awublack(@awublack)开发并维护,当前版本 v1.0.0。

💬 留言讨论