← 返回 Skills 市场
Cross-Session Memory Config
作者
Richardcoder849
· GitHub ↗
· v1.0.0
· MIT-0
73
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install cross-session-memory-config
功能描述
配置 OpenClaw 跨会话记忆规则。首次使用或新装 OpenClaw 时运行,自动在 SOUL.md 和 AGENTS.md 中注入记忆共享规则,使群聊和私聊的长期记忆互通。触发词:'配置跨会话记忆'、'设置记忆共享'、'cross-session memory'、'setup memory sharing'。
使用说明 (SKILL.md)
跨会话记忆配置
将群聊/私聊记忆共享规则注入当前 OpenClaw 实例的配置文件。
何时使用
- 用户要求配置记忆共享
- 新装 OpenClaw 后初始化
- 用户在群聊和私聊间需要记忆互通
执行步骤
1. 检测当前环境
确认 SOUL.md 和 AGENTS.md 的存在与位置:
SOUL.md → ~/.openclaw/workspace/SOUL.md
AGENTS.md → ~/.openclaw/workspace/AGENTS.md
2. 运行配置脚本
Windows (PowerShell):
& "path/to/scripts/setup.ps1"
Linux/macOS (Bash):
bash path/to/scripts/setup.sh
脚本会自动:
- 检测 SOUL.md / AGENTS.md 是否已包含跨会话记忆规则
- 如果没有则注入,有则跳过(幂等,可重复运行)
- 不破坏原有内容
3. 确认结果
读取 SOUL.md 的「跨会话记忆规则」章节和 AGENTS.md 的「🔗 跨会话记忆」章节,确认注入成功。
规则内容
注入的规则包含:
- 群聊和私聊是独立 session,短期记忆不共享
memory/*.md和MEMORY.md是全局共享的- 群聊里学到的重要信息必须写到
memory/YYYY-MM-DD.md - 私聊时先查
memory_search - 写文件才是真正的记忆,不要依赖"心里记着"
注意事项
- 脚本是幂等的,可以多次运行
- 原始内容不会被覆盖,只追加缺失的规则
- 建议运行后手动检查一次确认格式正确
安全使用建议
Review this carefully before installing. It does not show credential theft, network exfiltration, or destructive deletion, but it intentionally changes OpenClaw’s persistent memory behavior. Run it only if you want group and private long-term memories to be shared, back up SOUL.md and AGENTS.md first, and manually inspect the injected rules afterward.
功能分析
Type: OpenClaw Skill
Name: cross-session-memory-config
Version: 1.0.0
The skill is designed to configure cross-session memory for the OpenClaw agent by injecting behavioral rules into local configuration files (SOUL.md and AGENTS.md). The provided script, scripts/setup.sh, uses standard shell commands to modify these files within the user's workspace directory and does not exhibit any signs of data exfiltration, malicious execution, or unauthorized persistence.
能力评估
Purpose & Capability
The stated purpose matches the artifacts: it configures cross-session memory by appending rules to SOUL.md and AGENTS.md. This is disclosed, but it is privacy-sensitive.
Instruction Scope
The injected rules are broad: important group-chat information, user preferences, decisions, and context must be written to shared memory, and private chats should search that memory. The artifacts do not show per-item consent, sensitivity exclusions, retention limits, or a rollback procedure.
Install Mechanism
Setup is a user-run Bash script with no install spec. SKILL.md also references a PowerShell setup.ps1, but the provided manifest only includes scripts/setup.sh and SKILL.md, so the Windows helper is not reviewable here.
Credentials
The script writes to ~/.openclaw/workspace/SOUL.md and AGENTS.md, which are core agent configuration files. That is aligned with the skill’s purpose, but it is high-impact and the script does not create a backup or provide an uninstall path.
Persistence & Privilege
The changes persist across future sessions and influence future agent behavior and memory retrieval until manually removed.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install cross-session-memory-config - 安装完成后,直接呼叫该 Skill 的名称或使用
/cross-session-memory-config触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: auto-configures cross-session memory rules for group/DM sharing
元数据
常见问题
Cross-Session Memory Config 是什么?
配置 OpenClaw 跨会话记忆规则。首次使用或新装 OpenClaw 时运行,自动在 SOUL.md 和 AGENTS.md 中注入记忆共享规则,使群聊和私聊的长期记忆互通。触发词:'配置跨会话记忆'、'设置记忆共享'、'cross-session memory'、'setup memory sharing'。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 73 次。
如何安装 Cross-Session Memory Config?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install cross-session-memory-config」即可一键安装,无需额外配置。
Cross-Session Memory Config 是免费的吗?
是的,Cross-Session Memory Config 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Cross-Session Memory Config 支持哪些平台?
Cross-Session Memory Config 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Cross-Session Memory Config?
由 Richardcoder849(@richardcoder849)开发并维护,当前版本 v1.0.0。
推荐 Skills