← 返回 Skills 市场
memory-system
作者
damienCronw
· GitHub ↗
· v1.0.0
335
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install openclow-memory
功能描述
OpenClaw 长期记忆管理系统。提供结构化记忆、向量记忆、语义搜索功能。Use when: 用户需要 AI 记住长期上下文、偏好、决策,或需要从记忆中进行语义搜索。
安全使用建议
This skill mostly does what it says (archives local markdown memories into Postgres and performs vector/semantic search), but there are several red flags you should address before installing or running it on sensitive data:
- The scripts assume psql and curl are available and a local embedding service at http://localhost:11434; those requirements are not declared. Ensure you understand and control those services.
- The code hardcodes the DB username ('damien') and ports; it lacks environment-variable configuration. Prefer changing the scripts to accept DB credentials via secure env vars or a config file before use.
- The archiver reads ~/.openclaw/workspace/memory and will import file contents into a database. Only run it if you trust the source and the destination DB. If the local embedding service proxies requests externally, your data could be sent outside your machine.
- The import uses naive string interpolation to build SQL passed to psql; this is brittle and could lead to SQL quoting issues or injection-like problems for unusual content. Use parameterized inserts or a DB client library instead.
If the author can (a) declare required binaries/env vars, (b) make DB and embedding endpoints configurable through env vars, and (c) fix SQL parameterization, the skill would be much safer. Until then, run it in a controlled/non-sensitive environment and review/modify the scripts yourself.
功能分析
Type: OpenClaw Skill
Name: openclow-memory
Version: 1.0.0
The skill bundle contains significant security vulnerabilities, specifically SQL and shell injection risks in `scripts/memory_manager.py` and `scripts/memory_search.py`. These scripts construct command-line strings for `psql` using f-strings and unsanitized file content or user input, which could be exploited if the agent processes untrusted data. While the behavior aligns with the stated purpose of local memory management and no evidence of intentional exfiltration or remote backdoors was found, the poor security practices and hardcoded local environment details (user 'damien') warrant a suspicious classification.
能力评估
Purpose & Capability
The declared purpose (structured + vector memory with Postgres/pgvector and local embeddings) is coherent with the code. However the skill listing declared no required binaries or env vars, while the scripts assume psql, curl, and a local embedding service on localhost:11434 and use a hardcoded DB user 'damien' and ports 5432/5433. The lack of declared requirements/configuration is a mismatch and reduces transparency.
Instruction Scope
Instructions and scripts explicitly read local files under ~/.openclaw/workspace/memory and insert/archive them into local Postgres — this is within the stated purpose. The vector search posts queries to a hardcoded local embedding API (http://localhost:11434/api/embeddings). There is no evidence of external network exfiltration beyond the local embedding call, but if that local service proxies externally it could leak content.
Install Mechanism
No install spec (instruction + small scripts) — lowest-risk install mechanism. Nothing is downloaded or extracted by the skill itself.
Credentials
No required env vars or credentials were declared in metadata, yet the code hardcodes database access (user 'damien', ports 5432/5433) and assumes presence of psql and curl. This is disproportionate: either required env/binaries should be declared or credentials/parameters should be configurable (env vars or config file). Hardcoded credentials reduce safety and transparency.
Persistence & Privilege
always:false and the skill does not request system-wide persistence or modify other skills. It runs local file I/O and subprocesses but does not request elevated or persistent platform privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclow-memory - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclow-memory触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
OpenClaw 长期记忆管理系统首次发布,支持多种结构化和向量记忆功能。
- 支持结构化记忆(PostgreSQL):目标、决策、状态、偏好、参考
- 向量记忆(pgvector):支持中文 embedding、语义搜索及相似度匹配
- 自动归档:本地文件保留 7 天,定期自动导入数据库
- 多数据库支持,明确定义表结构及端口用法
- 附带归档脚本与检索工具,支持快速更新与搜索记忆
- 支持多种记忆配置方式,包括文件夹、数据库与插件
元数据
常见问题
memory-system 是什么?
OpenClaw 长期记忆管理系统。提供结构化记忆、向量记忆、语义搜索功能。Use when: 用户需要 AI 记住长期上下文、偏好、决策,或需要从记忆中进行语义搜索。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 335 次。
如何安装 memory-system?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclow-memory」即可一键安装,无需额外配置。
memory-system 是免费的吗?
是的,memory-system 完全免费(开源免费),可自由下载、安装和使用。
memory-system 支持哪些平台?
memory-system 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 memory-system?
由 damienCronw(@damiencronw)开发并维护,当前版本 v1.0.0。
推荐 Skills